codegraph-cli
codegraph-cli
Supporting utility skill (Layer 11 Meta · "Code Reading Tools" pair with
gitnexus-repo-map). Wraps the CodeGraph CLI (npm i -g @colbymchenry/codegraph· clicodegraph) so the harness can use it for fast local symbol traversal and affected-test selection without bolting an MCP server onto Claude Code by default. Upstream: https://github.com/colbymchenry/codegraph · License: MIT.
1. Purpose
CodeGraph parses a repo with tree-sitter, stores symbols + edges + files in a local SQLite (FTS5) at .codegraph/codegraph.db, and exposes a CLI that lets you ask precise questions about the local code:
- "Who calls this function?"
- "What does this function call?"
- "If I change this symbol, what is affected?"
- "For this task description, what is the minimum context I need?"
- "Given this
git diff, which test files should I run?"
This skill uses only the CLI surface. CodeGraph also ships an MCP server (codegraph serve --mcp) and a multi-agent installer (codegraph install) that registers itself in ~/.claude.json, ~/.cursor/, ~/.codex/, ~/.config/opencode/, etc. The harness does not auto-enable any of that — the harness already has its own MCP and orchestrator topology; we use CodeGraph as a knife, not as a daemon.