A Rust-based tool that maps a codebase into a knowledge graph and injects relevant context into Claude Code sessions via hooks.
Adapted from @DanKornasYour coding agent shouldn’t have to rediscover your repo every session. base is a Rust-based workspace memory engine for Claude Code users who want an agent to carry relevant codebase and project context into its work. It helps you surface the right context at the right moment by mapping a workspace into a knowledge graph and injecting targeted briefings through Claude Code hooks. Key features: • Workspace knowledge graph – maps code structure, projects, decisions, rules, and documents into connected data • Four hook injection points – adds relevant context at session start, prompts, and before/after tool calls • Automatic code mapping – builds and refreshes an app map as Claude Code works on files • Cross-session handoffs – includes commands for carrying decisions, tasks, and learnings into the next session • Local, git-native persistence – stores graph data as plain-text NQuads files that can live in a repo and diff in Git It’s source-available under the Functional Source License 1.1, with an Apache 2.0 future license. Link in the reply 👇 🔗 GitHub: https://github.com/ChristopherKahler/base --- ✉️ If you’re into AI, ML, agents, and building real systems, join my newsletter (it’s free): https://dankornas.substack.com