Open-source MuscleMemory cuts Claude Code input tokens by 43.5% with procedural memory

maa____z · reddit · 2026-10-14

A new open-source project, MuscleMemory, gives AI coding agents procedural memory so they stop re-reading entire projects each session. Hooks record Claude Code sessions and only "learn" a skill when tests pass after the last code change, with a two-session probation plus user approval before trust.

In an 8-session test on the same 4 tasks, Claude Code with MuscleMemory read 43.5% fewer input tokens (459,366 → 259,436), made 30% fewer tool calls, and cut cost 18.4% ($0.261 → $0.213), with all 4 tasks passing and time roughly flat. Skills learned by Codex transferred to Claude Code.

It also runs as an MCP server with five tools (recall, observe, learn, evaluate, inspect), works only for Claude Code for now, and surfaced quirks like Claude editing via Bash heredocs and piped tests swallowing exit codes. Apache-2.0, fully local.

Related event: MuscleMemory: Open-Source Procedural Memory for Coding Agents(3 posts)→

Original post →

More from coding & agent

coding & agent channel →