contextsmith
ContextSmith is a local code context engine that provides precise code retrieval for coding agents such as Claude Code, Cursor, and Codex. Using a code graph, hybrid search, embeddings, and Git history, it returns the most relevant code snippets within a user-set token budget. In Django tests on SWE-bench Lite, it achieves 92% correct-file recall at a 4k token budget, compared with only 29% for the conventional search-plus-whole-file approach. It is MIT-licensed, requires no API key, and performs all processing locally.