-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: add GitHub Copilot platform support #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Vignesh-Thangamariappan
wants to merge
3
commits into
tirth8205:main
from
Vignesh-Thangamariappan:main
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| --- | ||
| applyTo: '**' | ||
| description: Use code-review-graph MCP tools for token-efficient codebase exploration and code review instead of built-in file/search tools. | ||
| --- | ||
|
|
||
| <!-- code-review-graph MCP tools --> | ||
| ## MCP Tools: code-review-graph | ||
|
|
||
| **IMPORTANT: This project has a knowledge graph. ALWAYS use the | ||
| code-review-graph MCP tools BEFORE using #tool:read/readFile #tool:search/fileSearch #tool:search/textSearch to explore | ||
| the codebase.** The graph is faster, cheaper (fewer tokens), and gives | ||
| you structural context (callers, dependents, test coverage) that file | ||
| scanning cannot. | ||
|
|
||
| ### When to use graph tools FIRST | ||
|
|
||
| - **Exploring code**: `semantic_search_nodes` or `query_graph` instead of Grep | ||
| - **Understanding impact**: `get_impact_radius` instead of manually tracing imports | ||
| - **Code review**: `detect_changes` + `get_review_context` instead of reading entire files | ||
| - **Finding relationships**: `query_graph` with callers_of/callees_of/imports_of/tests_for | ||
| - **Architecture questions**: `get_architecture_overview` + `list_communities` | ||
|
|
||
| Fall back to Grep/Glob/Read **only** when the graph doesn't cover what you need. | ||
|
|
||
| ### Key Tools | ||
|
|
||
| | Tool | Use when | | ||
| | ------ | ---------- | | ||
| | `detect_changes` | Reviewing code changes — gives risk-scored analysis | | ||
| | `get_review_context` | Need source snippets for review — token-efficient | | ||
| | `get_impact_radius` | Understanding blast radius of a change | | ||
| | `get_affected_flows` | Finding which execution paths are impacted | | ||
| | `query_graph` | Tracing callers, callees, imports, tests, dependencies | | ||
| | `semantic_search_nodes` | Finding functions/classes by name or keyword | | ||
| | `get_architecture_overview` | Understanding high-level codebase structure | | ||
| | `refactor_tool` | Planning renames, finding dead code | | ||
|
|
||
| ### Workflow | ||
|
|
||
| 1. The graph auto-updates on file changes (via hooks). | ||
| 2. Use `detect_changes` for code review. | ||
| 3. Use `get_affected_flows` to understand impact. | ||
| 4. Use `query_graph` pattern="tests_for" to check coverage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.