PotpieCodebase context graph for AI coding agents
Codebase Memory vs Potpie
How Codebase Memory and Potpie compare on popularity, activity, license and platforms: two open-source AI Assisted Coding projects, both alternatives to Sourcegraph.
At a glance
- Codebase Memory has more GitHub stars (49.6k vs 5.8k, about 9× as many).
- Codebase Memory was updated more recently (last commit today, Potpie 1 month ago).
- Codebase Memory uses MIT; Potpie uses Apache-2.0 (both permissive).
- Codebase Memory can be self-hosted.
- Potpie is the older project (repository started 2024; Codebase Memory in 2026).
Side by side
| Codebase Memory | Potpie | |
|---|---|---|
| GitHub stars | ★ 49,590 +426 in 9 days | ★ 5,811 |
| Forks | 4,170 | 698 |
| Last commit | today | 1 month ago |
| Latest version | v0.12.1 | v2.0.1 |
| Repository started | February 2026 | August 2024 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Yes | Unknown |
| Platforms | Linux, macOS, Windows, CLI | CLI, Web |
| Main language | C | Python |
| Alternative to | Sourcegraph | Sourcegraph |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
Codebase Memory
Codebase Memory indexes repositories into a persistent local graph and exposes it through MCP tools and a CLI. Optional CBM Lens UI explores calls, docs, and infrastructure links on your machine.
Key features
- Seventeen MCP graph query tools
- Persistent local index and SQLite storage
- Tree-sitter parsing and hybrid LSP types
- Infrastructure and docs linked to code
- Installer hooks for many coding agents
- Native CLI alongside MCP access
Potpie
Potpie indexes repositories and SDLC artifacts into a living context graph so CLI-connected coding agents can answer, plan, debug, and implement with project-specific knowledge.
Key features
- Context graph indexing
- CLI setup wizard
- GitHub and issue tracker links
- Agent harness skill install
- Local graph web UI
- Search and resolve commands