← Back to PRs

#7896: docs: enforce immediate memory persistence in AGENTS.md

by FelixFoster open 2026-02-03 09:00 View on GitHub →
docs stale
Updates AGENTS.md template to explicitly instruct agents to persist important context to disk immediately. This prevents memory loss upon session restarts/gateway resets, addressing a common user pain point where context is lost because it was only held in the context window. <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR updates the `docs/reference/templates/AGENTS.md` workspace template to explicitly instruct agents to persist important user context to disk immediately (e.g., updating `MEMORY.md` or `memory/YYYY-MM-DD.md`) rather than relying on the chat context window. This aligns the template’s “Write it down / no mental notes” guidance with the common failure mode of context loss after session restarts or gateway resets. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with minimal risk. - Single-line documentation-only change in the AGENTS template; no code paths or tooling behavior are modified, and the new instruction is consistent with existing memory guidance in the same file. - No files require special attention <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> <details><summary><h4>Context used (3)</h4></summary> - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) - Context from `dashboard` - docs/reference/templates/AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=ef691cbd-a005-4c3e-998b-6fcd72f2d312)) </details> <!-- /greptile_comment -->

Most Similar PRs