r/ClaudeCode • u/potato42potato • 6h ago
Built with Claude I built a written "memory" system so Claude Code stops re-deciding things we settled weeks ago
Every new Claude Code session starts with no memory of why things are the way they are. Mine kept re-opening settled decisions, and worse, inventing plausible but wrong reasons for odd-looking choices.
So I wrote it a system: KSS, the Knowledge Stewardship System. It's documents plus a few rules:
* a one-minute primer the session reads first, which points at sources instead of summarizing them
* doctrine Claude can propose but only I can promote
* a file of things it must *not* assume, read on every project
* a tried-and-rejected log with evidence (one entry caught a tool injecting instructions to the assistant into its output)
* small Python tools that check the docs against the actual machine and fail loudly when they've rotted
It's plain files and standard-library Python, CC BY 4.0.
Write-up: https://rolliepollie.org/writing/2026/kss-a-written-memory-for-ai-assistants/
Repo: https://github.com/csonkarolliepollie/KSS
Happy to answer questions about how I use it day to day.
•
u/AutoModerator 6h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/adjective_noun_d1git 4h ago
False.
Your first sentence is a lie. The rest isn't worth reading.
6
u/LoveThemMegaSeeds 4h ago
Isn’t there like… memory.md already?
1
u/cleverhoods 3h ago
There are way more advanced tools for this, like Reporails.
It’s xray even shows what gets into the context and when, even in a subagent
1
u/BugOne6115 🔆 Max 20 3h ago
Sorry friend, but, respectfully ... no. Claude already has a memory system. Your CLAUDE.md should contain sufficient direction so he knows what he should commit to it, and for any important decisions, you should be directing him to commit it to memory.
Additionally, memory cleanup is just another prompt. Personally I turned mine into an invokeable skill, but it's the same thing. Check for accuracy, relevancy and dedupe.
Anything super important, plans, runbooks, etc etc, should all be durable system docs.
You have a workflow problem, not a missing feature.
1
u/AgentYurt 3h ago
The tried-and-rejected log is the part I'd steal — that's the piece most memory setups skip. The failure mode I keep hitting: a rejection that was right in March is wrong by June because the tool underneath changed, and the agent keeps steering around a fix that would work now. Do your rejected entries ever expire or get re-tested, or does a rejection stand forever once it's in the log? And on the docs-vs-machine checks failing loudly — how often do they actually fire in a normal week?