Open-source tool 'myc' preserves AI coding agent decisions before context compaction
A developer built myc, an open-source local memory layer for coding agents, after observing an AI repeatedly re-proposing rejected solutions across sessions. The problem stems from context window compaction, which retains what was decided but discards the reasoning behind it. myc installs a PreCompact hook in Claude Code that fires just before compaction, writing the session episode to disk and injecting a rescue summary back into the surviving context. Extracted decisions are stored as unconfirmed candidates and remain hidden from the agent until a human manually reviews and approves them, preventing hallucinated memories from being treated as facts. The tool is built on Bun and TypeScript under the MIT license, with enforced latency budgets on all hot-path operations to discourage agents from skipping memory calls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in