Stop Re-Explaining Yourself to Your AI: The Power of βComment to Changeβ
Weβve all been there. You open up a new session with your AI agent whether itβs Claude, Cursor, or an MCP-powered tool and you spend the first ten minutes doing the inevitable ritual dance: context setting.
Learn more at-Β https://spiderbrain.ai/
βRemember, we are using JWT with RS256, not SHA256.βΒ βDonβt forget all database writes must go through the repository layer.βΒ βWait, scratch that last part, we actually shifted to a JWKS endpoint yesterday.β
It works, but itβs exhausting. The moment a project decision changes, youβre stuck re-explaining the new constraints every single time you start a new thread. It feels less like working with a brilliant engineering partner and more like onboarding a new junior developer every single morning.
There is a better way. Instead of rewriting your prompts from scratch, what if you could just edit the AIβs memory directly?
EnterΒ Spiderbrainβs comment-to-change mechanism.
The Problem: The Empty Context Trap
The fundamental issue with traditional re-prompting is that every new AI session starts with an empty slate. You have to rebuild the context from scratch: which decisions were made, which constraints apply, and which architectural patterns the team follows.
As a project grows, this manual reconstruction becomes error-prone and time-consuming. You forget to mention a minor constraint, the AI hallucinates an old pattern, and suddenly youβre debugging code that shouldnβt have been written in the first place.
Trying to solve this by dumping everything into a massive, global system prompt doesnβt work either. It clogs the AIβs context window with irrelevant details and dilutes its focus.
Enter the Memory Tree
Instead of floating around in ephemeral chat histories or bloated system prompts, authoritative project data belongs in aΒ Memory Tree.
The Memory Tree is a hierarchical, persistent record of your projectβs decisions, constraints, patterns, and preferences. Each node in the tree is a structured fact that your AI recalls over the Model Context Protocol (MCP) in every single session.
These arenβt passing instructions; they are foundational truths about your codebase. For example:
βThe auth module uses JWT with RS256. Never SHA256.β
βThe API response envelope uses data and error fields. No other top-level keys.β
βAll database writes must go through the repository layer. Direct ORM calls from controllers are not allowed.β
How βComment-to-Changeβ Actually Works
When engineering decisions inevitably shift, you shouldnβt have to rewrite a master prompt document. With a Memory Tree, you just leave a comment on the specific memory node that needs updating.
Letβs say your team decides to migrate to a JWKS endpoint. Instead of worrying about how to phrase this to the AI next time, you simply annotate the existing memory node:
Comment:Β βUpdate this: weβre migrating to a JWKS endpoint, not a static public key.β
On your very next AI session, the magic happens behind the scenes:
The Client Reads the Tree:Β Your connected client (Claude, Cursor, Claude Code, etc.) scans the Memory Tree.
It Finds the Flag:Β It spots the node with the unresolved comment.
It Rewrites the History:Β The AI reads the original memory, processes your comment, applies the update to the node content, and marks the comment as resolved.
The next time the AI references that architectural rule, the memory automatically reads:Β βThe auth module uses JWT verified against the JWKS endpoint at /auth/.well-known/jwks.β
You didnβt have to explainΒ howΒ to change it. You just ratified the change by leaving a quick note.
Why This Changes the Game
Shifting from prompt engineering to memory annotation provides three massive advantages for developers:
1. Scoped Steering (No More Global Noise)
The comment-to-change mechanism isnβt global. Memory nodes are anchored to specific files or modules. If you leave a comment on a memory node anchored toΒ auth/, only AI sessions working within theΒ auth/Β directory will see and resolve that comment. The AI working on your frontend UI won't be bogged down by data-layer architecture changes. Your steering is precise and targeted.
2. Radical Efficiency & Auditability
Updating the Memory Tree is significantly cheaper than updating a prompt because you change exactly one node, not every future chat thread. Furthermore, because the tree maintains a history, your AIβs βbrainβ becomes entirely auditable. You can see exactly when a constraint changed and why.
3. Absolute User Control
A common fear with AI memory is βauto-extractionβ β the idea that an AI might misunderstand a hypothetical conversation and permanently save a wrong fact.
Spiderbrain relies on a strict design principle:Β You ratify memory. Nothing is stored without your intent.Β The AI doesnβt automatically pull facts from your chats. If it discovers something worth remembering, itΒ proposesΒ a memory, and you confirm it. The same goes for comment-to-change: you write the comment, the AI interprets it, and you review the resolution before itβs locked in.
The Takeaway
We need to stop treating AI context as something we build up and tear down with every single task. By moving our architectural constraints into a persistent, scoped Memory Tree and using a simple comment-to-change workflow to keep it updated we can finally stop onboarding our AI tools, and just start coding.
Have you experimented with persistent memory or MCP in your current development workflow? Letβs talk about it in the comments below!











