Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/robotaitai/project-bedrocknpx agentmods add rules/robotaitai/project-bedrock/memory-writebackWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/robotaitai/project-bedrock/memory-writeback)<a href="https://agentmods.dev/rules/robotaitai/project-bedrock/memory-writeback"><img src="https://agentmods.dev/badge/rules/robotaitai/project-bedrock/memory-writeback/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/robotaitai/project-bedrock/memory-writeback"><img src="https://agentmods.dev/badge/rules/robotaitai/project-bedrock/memory-writeback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00805 | $0.00805 |
| Opus 5.5 | $0.00322 | $0.00322 |
| Sonnet 5.5 | $0.00161 | $0.00161 |
| Haiku 4.5 | $0.00081 | $0.00081 |
Grade A, and why
memory-writeback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory Writeback
After any meaningful project change, evaluate whether durable project understanding changed. If yes, update the correct memory branch before ending the session. If no, say so explicitly.
Evaluation -- ask after every meaningful task
"Did this session change what future sessions should understand about this project?"
Write to memory if the answer is yes for any of:
- An architectural decision was made or reversed
- A new pattern or convention was confirmed
- A critical gotcha was discovered (build, DB, API, environment, path)
- A feature area was substantially completed or its design changed
- A recurring mistake was corrected (record the lesson)
- A dependency or external constraint changed
Skip writeback if:
- The session was read-only exploration with no new conclusions
- The change is already captured in git or inline documentation
- The fact is session-specific and won't matter in a future session
- The fact is speculative and not yet confirmed
- The work changed code but not project understanding
When skipping, state it: Memory writeback: none needed.
What to write and where
| Fact type | Target |
|---|---|
| Architectural decision | Memory/decisions/decisions.md (append numbered entry) + optionally Memory/decisions/YYYY-MM-DD-slug.md for a deep-dive |
| New pattern or convention | relevant branch note -> Current State |
| Gotcha or constraint | relevant branch note -> Current State |
| Stack change | relevant branch note -> Current State + Recent Changes |
| Completed feature area | relevant branch note -> Current State |
| Lesson from a mistake | relevant branch note -> Current State, with Why: and How to apply: |
If no existing branch fits the fact, create a new branch note using the same-name convention. Use the project's own terminology for branch names.
How to write
- Identify the target branch note.
- Read its current content.
- Preserve YAML frontmatter and add or update the fact in the correct section.
- Current State: what is true now (replace stale entries, don't append duplicates)
- Recent Changes: YYYY-MM-DD -- what changed (prune entries older than ~4 weeks)
- Decisions: link to decision file
- Open Questions: add unresolved items only if they remain open after verification
- Use emojis in section headers to improve scannability. Pick an emoji that matches the section's purpose (e.g.
## 🔄 Recent Changes,## 🔗 See Also,## ⚠️ Gotchas,## 📦 Build,## 🔍 Detection,## 🧩 Patterns). Keep existing headers consistent. - If the branch now exceeds ~150 lines, follow the
memory-compactionskill. - If branch summaries changed, update
agent-knowledge/Memory/MEMORY.md.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 92 lines · 805 tokens per session scan A d013cad76543
memory-writeback is a cursor rule published in the GitHub repository robotaitai/project-bedrock (45 stars, last pushed 1mo ago), licensed MIT. It adds 805 tokens to every session, about $0.0032 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
mempalace-recall-always
Always-on MemPalace recall — search the palace before answering about past work, people, projects, or prior decisions.
dreamd-recall
Recall lessons, decisions, and prior context from the .agent/ memory daemon. Use when starting work in a project that has a .agent/ folder, when the user references a past decision, or when you are about to make a choice that has a documented prior.
session-memory
Use at conversation wrap-up or when the user explicitly indicates end-of-session — capture residual lessons not captured in-flight.
common_memory_bank
I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read…
self-improving-obsidian-llm-wiki
LLM Wiki OS operating rules.
memsprout
Cursor rule "memsprout" from memsprout/agents, covering using memsprout, search first, capturing, spaces and topics and files.