BASE (basemode)
A Rust engine by Christopher Kahler, the author of PAUL, that maps your workspace into a knowledge graph and wires it into Claude Code hooks. The graph holds more than code (functions, calls, imports, extracted with tree-sitter): it also carries your projects, tasks, decisions with their rationale, and rules filed by domain. At four moments, session start, prompt submission, before and after a tool call, a hook queries the graph and slips into context the slice that concerns what you are doing, instead of loading everything up front.
Strengths
- Injection at the useful moment: session start, prompt, before and after each tool call
- The graph also carries projects, decisions with rationale and per-domain rules, not just code
- Hooks re-sync the graph while you work, instead of an export you rerun by hand
Limitations
- The graph only knows what you teach it: a rule never added will never be injected
- Install it after Claude Code: with no existing ~/.claude folder the binary stays inert and you rerun the install
- Source-available rather than open source licence, worth checking if you plan to build it into a commercial offer
Best for
- A long project where rules depend on the domain being touched more than on the folder, and past decisions get lost
- Several parallel Claude Code sessions that need to share the same project state