Troubleshooting
Start with the built-in diagnostics — they catch most problems:
bash
tokengraph doctor # diagnose the install / environment
tokengraph health # index + graph health
tokengraph status # branch / index freshness / savings snapshotInstall
tokengraph: command not found— install withpipx install "contextiq[all]", or run from source withpython tokengraph_all.py ….- Missing optional features — install the extras:
pip install "contextiq[all]".
Indexing
- Stale or empty results — the graph auto-refreshes, but you can force it:
tokengraph index(MCP tool:reindex). Confirm counts withtokengraph stats. - A file isn't parsed deeply — its tree-sitter grammar may be missing; it falls back to regex. Check
tokengraph langsandtokengraph diagnose-extractors.
Semantic search
semanticreturns nothing / errors — warm the embedding model once:tokengraph embed-warm, then retry. Checkembedding_status.
MCP / editor wiring
- Editor doesn't see the tools — run
tokengraph ide-setupand confirm withtokengraph ide-setup --verify(exits 1 on any unwired editor). - Windsurf / Cline not wired — they're per-user configs; add
--global. - Server won't start — run
tokengraph servedirectly to see the error.
Coverage / trust gates
validatealways fails — lower--min-coverage, raise--budget, or make the task string more specific.verifyflags real symbols — the graph may be behind; runtokengraph indexand retry.
Still stuck?
Open an issue with the output of tokengraph doctor and tokengraph status.
Next steps
- Reference: CLI
- Setup: MCP server