Curing Claude Code Amnesia with Decision Logs

Top-Appeal4261 · reddit · 2026-07-11

The author instructs Claude Code in CLAUDE.md to append every "non-obvious" design choice to DECISIONS.md and read this file before any planning.

This way, even if context compression occurs during long tasks, the model can reload the rationale behind previous trade-offs, preventing it from repeatedly suggesting rejected solutions. The author gave an example where, during a migration, it successfully avoided re-adding ORM calls that would cause locking issues.

Original post →

More from coding & agent

coding & agent channel →