Use with CODEMAP_ROOT / CODEMAP_TEST_BENCH pointed at the project under test. Copy to fixtures/qa/<name>.local.md, fill in Ground truth after one index, then run the same prompts with Codemap (query / skill) and without (Read/Grep only) and compare.
Run codemap query --json (or bun src/index.ts query --json) with the SQL in each section; omit --json if you prefer a terminal table. Answers should match before you trust free-form chat prose.
Prompts
- How many source files are in the Codemap index for this repo? How many React components are indexed?
- Roughly how many
TODOmarkers does the index report vsNOTE?
SQL checks
SELECT COUNT(*) AS files FROM files;
SELECT COUNT(*) AS components FROM components;
SELECT kind, COUNT(*) AS n FROM markers GROUP BY kind ORDER BY n DESC;Prompts
- In which file is the symbol
<PickARealSymbol>defined, and what kind is it (function,const, …)? - What npm or workspace packages does
<ThatFile>import directly (first 10 import sources)?
SQL checks
SELECT name, kind, file_path FROM symbols WHERE name = '...';
SELECT DISTINCT source FROM imports WHERE file_path = '...' ORDER BY source LIMIT 15;Prompts
- What are the top 5 files by outgoing dependency count (
dependenciesedges wherefrom_pathis that file)? - Why might
<top file>be a refactor risk?
SQL checks
SELECT from_path, COUNT(*) AS deps
FROM dependencies GROUP BY from_path ORDER BY deps DESC LIMIT 5;Prompts
- Which
~/…import paths are most common? Pick one and estimate how many import statements reference it. - Where is
~/api/client/types.gen(or your top alias) consumed from — routers vs components?
SQL checks
SELECT source, COUNT(*) AS c FROM imports WHERE source LIKE '~/%'
GROUP BY source ORDER BY c DESC LIMIT 15;Prompts
- Does this repo contain a generated route tree file? Name it and say what it likely depends on.
- List only facts you can support from the index: file path + one column value from a query. No guessing.
Cross-check
Open the cited file in the editor and confirm the symbol/import exists on the claimed line if the tool gave line numbers.
| Step | With Codemap | Without |
|---|---|---|
| 1 | Answer prompts 1–4 using query / skill SQL |
Same prompts using Glob + Read + Grep |
| 2 | Paste chat export | Paste chat export |
| 3 | Score: factual errors, hedging, path accuracy | Same |
Record wall-clock time and token usage if your client shows it.