Skip to content

Introduce CodeGraph integration#932

Open
ryo246912 wants to merge 1 commit into
mainfrom
feat/introduce-codegraph-12053809015488874666
Open

Introduce CodeGraph integration#932
ryo246912 wants to merge 1 commit into
mainfrom
feat/introduce-codegraph-12053809015488874666

Conversation

@ryo246912
Copy link
Copy Markdown
Owner

@ryo246912 ryo246912 commented May 5, 2026

Integrated CodeGraph, a semantic code intelligence tool, into the repository. Updated mise.toml, MCP configuration, Claude Code settings, and added usage documentation and AI rules.


PR created automatically by Jules for task 12053809015488874666 started by @ryo246912

変更内容概要

CodeGraph(semantic code intelligence ツール)をリポジトリに統合するための以下の変更を実施しました:

  • セントラルAI設定: dot_claude/settings.jsonmcp__codegraph__* MCP 権限を追加
  • MCP サーバー設定: mcp.json.tmpl に codegraph MCP サーバー(stdio 型、codegraph serve --mcp コマンド)を追加
  • 運用ルール: CODEGRAPH.md を新規作成し、主要セッション・Explore エージェント・初期化時の使用方法を定義
  • ツール依存性: mise.toml に npm パッケージ @colbymchenry/codegraph@0.7.3 を追加

変更理由

CodeGraph を semantic code intelligence ツールとしてリポジトリに統合し、コード分析・探索機能を拡張するため。特に Explore エージェントとの連携により、コード理解と変更検討を効率化します。

確認した項目

  • MCP 権限設定の追加確認
  • MCP サーバー設定の構文確認
  • 運用ルールドキュメントの完全性確認
  • 外部ツール依存性の指定確認

@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

📝 Walkthrough

Walkthrough

CodeGraphツールの統合を実施しました。mise.tomlへnpm版CodeGraph(v0.7.3)を追加し、MCP設定ファイルで新しいMCPサーバーcodegraphを登録しました。settings.jsonの許可リストにmcp__codegraph__*パーミッションを追加しています。また、CodeGraphの運用ルールを定義したドキュメントCODEGRAPH.mdを新規作成し、主セッションとExploreエージェント間でのツール利用方法を明記しました。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトル「Introduce CodeGraph integration」は、変更セットの主要な目的を明確に要約しています。mise.toml、MCP設定、Claude Code設定、そしてCodeGraphの使用ドキュメントが追加されており、全ての変更がCodeGraphの統合に関連しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/introduce-codegraph-12053809015488874666

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9f3478df-0788-4081-95b9-36fb9a044ed9

📥 Commits

Reviewing files that changed from the base of the PR and between ff2cf34 and c9f2850.

⛔ Files ignored due to path filters (1)
  • not_config/memo/codegraph.md is excluded by !not_config/**
📒 Files selected for processing (4)
  • dot_claude/settings.json
  • dot_config/rulesync/exact_dot_rulesync/mcp.json.tmpl
  • dot_config/rulesync/exact_dot_rulesync/rules/CODEGRAPH.md
  • mise.toml

Comment thread dot_claude/settings.json
"Bash(shfmt:*)",
"WebFetch(domain:docs.anthropic.com)"
"WebFetch(domain:docs.anthropic.com)",
"mcp__codegraph__*"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

CodeGraph 権限がワイルドカードで広すぎます。

Line 16 の mcp__codegraph__* は将来追加される CodeGraph 側の全ツールまで許可対象になり、最小権限の原則から外れます。少なくとも現時点で運用対象のツール名へ明示的に絞ることを推奨します。

権限を明示列挙へ寄せる例
-      "mcp__codegraph__*"
+      "mcp__codegraph__codegraph_search",
+      "mcp__codegraph__codegraph_callers",
+      "mcp__codegraph__codegraph_callees",
+      "mcp__codegraph__codegraph_impact",
+      "mcp__codegraph__codegraph_node"

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces CodeGraph to the repository, enabling advanced semantic code analysis. The changes include installing the necessary dependencies, configuring the tool for use with MCP, and establishing clear guidelines for AI agents to interact with the CodeGraph toolset efficiently without overloading the context window.

Highlights

  • CodeGraph Integration: Integrated CodeGraph as a semantic code intelligence tool to enhance code exploration and context management.
  • Configuration Updates: Updated mise.toml to include the CodeGraph package and modified MCP configurations to support the new tool.
  • Documentation and Rules: Added comprehensive usage documentation and AI rules to guide the usage of CodeGraph tools within the development environment.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: not_config/** (1)
    • not_config/memo/codegraph.md
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

このプルリクエストでは、CodeGraphをプロジェクトに導入するための設定が追加されました。具体的には、Claudeの設定更新、MCPサーバー構成の追加、利用ガイド(CODEGRAPH.md)の作成、およびmise.tomlへのパッケージ追加が行われています。レビューでは、MCPサーバーの実行にnpxを使用してバージョンの一貫性を確保すること、およびドキュメント内の誤字(「再読回」から「再読込」)の修正が提案されました。

Comment on lines +68 to +72
"codegraph": {
"type": "stdio",
"command": "codegraph",
"args": ["serve", "--mcp"]
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

このリポジトリ内の他の npm パッケージを利用した MCP サーバー設定(context7chrome-devtools-mcp など)のパターンに従い、npx を使用して実行することを推奨します。これにより、実行環境の PATH 設定に依存せず、mise.toml で指定されたバージョンと一致するバイナリを確実に実行できるようになり、再現性と保守性が向上します。

    "codegraph": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@colbymchenry/codegraph@0.7.3", "serve", "--mcp"]
    },
References
  1. 保守性、安全性、再現性に直結する点に絞って指摘を行う。 (link)

> **ルール:**
>
> 1. `codegraph_explore` のツール説明にある探索コール予算に従ってください。
> 2. `codegraph_explore` が既にソースコードを返したファイルを再読回しないでください。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

「再読回」は「再読込」の誤字と思われます。ドキュメントの正確性のために修正を推奨します。

Suggested change
> 2. `codegraph_explore` が既にソースコードを返したファイルを再読回しないでください
> 2. `codegraph_explore` が既にソースコードを返したファイルを再読込しないでください

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant