Stop scanning for one symbol.Query your codebase.
Local codebase intelligence for AI agents — a SQLite index of symbols, imports, and calls. SQL and recipes instead of scanning the tree.
codemap query --recipe find-symbol-definitions --params name=createCodemapbunx @stainless-code/codemapAsk structure, not grep.
Common agent questions map to one bundled recipe — CLI, MCP, or HTTP.
How it works.
01
Index
One local SQLite map of structure
02
Query
SQL or bundled recipe
03
Join
Compose tables in one predicate
Batteries included.
Recipes, MCP, CI, and agent scaffolding — same index, adopt what you need.
Answer agent questions with named SQL
Bundled recipes for symbol lookup, impact, dead code, and CI formats.
Query from Cursor over MCP
Same recipes as the CLI — tools and resources on the live index.
Gate PRs with recipe SARIF
Run recipes in CI with SARIF, annotations, and badge exit codes.
Scaffold agent rules that stay current
`agents init` writes version-matched pointers; package updates refresh served skill/rule content.
Start querying your codebase.
Dev dependency or one-shot via bunx / npx / yarn dlx / pnx — index once, then query with SQL or a recipe.
bunx @stainless-code/codemap