Files
helpers/CODEGRAPH.md

1.1 KiB

CodeGraph

When an AI agent needs to understand code — to answer a question or make a change — it discovers structure the slow way: grep, glob, and Read, one file at a time, rebuilding call paths and dependencies by hand. That's a pile of tool calls and round-trips before it even starts the real work.

CodeGraph hands the agent the exact code it needs in one call. It's a pre-built knowledge graph of every symbol, call edge, and dependency in your codebase — so instead of crawling files, the agent asks one question and gets back the relevant source, the call paths between those symbols (including dynamic-dispatch hops grep can't follow), and the blast radius of a change. Surgical context, not a file-by-file search — which means fewer tool calls and faster answers on every codebase, large or small.

Check Codex & NPM installed

codex --version node --version npm --version

Install CodeGraph

npm install -g @colbymchenry/codegraph

codegraph --version

codegraph install --target=codex

Init CodeGraph for project

codegraph init

Reindex for project

codegraph index / codegraph sync

Check status

codegraph status