Skip to content

feat(cli): add callers, callees, impact commands for CLI/MCP parity#204

Open
zhuchaokn wants to merge 1 commit into
colbymchenry:mainfrom
zhuchaokn:feat/cli-callers-callees-impact
Open

feat(cli): add callers, callees, impact commands for CLI/MCP parity#204
zhuchaokn wants to merge 1 commit into
colbymchenry:mainfrom
zhuchaokn:feat/cli-callers-callees-impact

Conversation

@zhuchaokn
Copy link
Copy Markdown

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.

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>
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