feat(cli): add callers, callees, impact commands for CLI/MCP parity#204
Merged
colbymchenry merged 3 commits intoMay 22, 2026
Merged
Conversation
MCP couples graph intelligence to the agent runtime. Developers using scripts, CI pipelines, git hooks, or editor-agnostic workflows need the same capabilities without a running MCP server. This brings the CLI to feature parity with the three most-used graph traversal MCP tools. New commands: codegraph callers <symbol> Find what calls a function/method (--limit, --json) codegraph callees <symbol> Find what a function/method calls (--limit, --json) codegraph impact <symbol> Analyze what code is affected by a change (--depth, --json) All three commands support --path for explicit project targeting and --json for machine-readable output suitable for piping into other tools. impact groups output by file, matching the MCP codegraph_impact layout. Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Drop the opinionated 'Why CLI parity with MCP matters' README blockquote and the long motivation code comment; keep the factual command docs. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
|
Merged — thanks @zhuchaokn! 🎉 Solid, clean implementation. Validated end-to-end on the current main (your branch was 47 commits behind, so I merged main in first): all three commands produce correct output against a fresh index — One small polish on your branch before merge (credited to you): dropped the 'Why CLI parity with MCP matters' README blockquote and trimmed the long motivation comment — kept the factual command docs to match the repo's terser README/comment voice. The feature itself is unchanged. Great contribution. 🙏 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
MCP couples graph intelligence to the agent runtime. Developers using scripts, CI pipelines, git hooks, or editor-agnostic workflows need the same capabilities without a running MCP server. This brings the CLI to feature parity with the three most-used graph traversal MCP tools.
New commands:
codegraph callers Find what calls a function/method (--limit, --json)
codegraph callees Find what a function/method calls (--limit, --json)
codegraph impact Analyze what code is affected by a change (--depth, --json)
All three commands support --path for explicit project targeting and --json for machine-readable output suitable for piping into other tools. impact groups output by file, matching the MCP codegraph_impact layout.