#569569th of 706 in Skills, plugins and prompts

memory.cpp

Local CLI that compiles repo memory into cache-stable context for coding agents

Releases and problems feed (RSS)

Stars
661
License
MIT
Last commit
Nov 2026
Language
Rust

Missed the latest GitHub check; these facts may be older.

Overview

memory.cpp stores repo decisions, fixes and rules in a local SQLite vault and compiles them into token-budgeted prompt packs. Each pack separates a blake3-hashed stable prefix from a fresh suffix, targets Anthropic, OpenAI, Gemini or generic formats, and excludes stale, contradicted or secret-bearing memories. It also writes a ledger and lockfile of what was sent, and can install an MCP server for clients such as Claude.

Who it is for: Engineers feeding repo history to coding agents who want prompt-cache reuse

Strengths

  • Stable prefix excludes task text, so its hash is identical across tasks and prompt caches can hit
  • Freshness proofs and negative memory block stale, contradicted or secret content before prompting
  • Ledger, lockfile and verify-pack make each compiled context reproducible and auditable
  • Local SQLite vault; README states no cloud, accounts, telemetry or network calls by default

Weaknesses

  • CAMC-Bench uses a synthetic corpus; README says it measures mechanism, not real-world win rates
  • KV and latency figures are estimates unless measured separately with the runtime bench script
  • No tagged release; must be built from source with cargo or the install scripts
  • Large CLI surface with many research-oriented commands to learn

What it needs

  • Needs Rust toolchain (cargo), SQLite (local vault)
  • Models: Anthropic, OpenAI, Gemini, generic

Also in Skills, plugins and prompts

See all 706
Also in Skills, plugins and prompts
RankProjectScore
#567old-coderAgent skill that requires a test plan up front and an evidence report after760 starsMIT47 out of 100
#568claude-token-optimizerCLI that shrinks the CLAUDE.md and notes Claude Code loads at session start671 starsMIT47 out of 100
#570elon-musk-skillAgent Skill that answers using Elon Musk's decision frameworks and speaking style586 starsMIT47 out of 100
#571snarktank/ralphBash loop that reruns Amp or Claude Code until every PRD story passes22.3k stars+321 (+1.5%) in 30 daysMIT46 out of 100
#572inference-optimisation-skillAgent skill for hill-climbing local LLM server speed with measured controls2.7k stars+2,167 (+393%) in 30 daysMIT46 out of 100