shared-memory

A release workflow for checking a connected code repository, running its available validations, updating project knowledge, committing changes, and pushing them when possible.

In plain words
What is it for?
Use it to preview or carry out release preparation, create a commit, push changes, and optionally open a pull request for review.
Why use it?
It reduces the chance of releasing from the wrong Git state, skipping checks, or forgetting related project updates.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/robotaitai/project-bedrock/shared-memory
Clone the repo
git clone --depth 1 https://github.com/robotaitai/project-bedrock
Per session 960 This file is loaded in full into every session.
When invoked 960 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00960 $0.00960
Opus 5 $0.00480 $0.00480
Sonnet 5 $0.00192 $0.00192
Haiku 4.5 $0.00096 $0.00096

Measured 2d ago against content hash 7d9cc9ef06d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

shared-memory 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 2d 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.

assets/rules/shared-memory.mdc · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shared Memory

This project stores persistent memory at agent-knowledge/Memory/MEMORY.md. The repo-local ./agent-knowledge path is the working entrypoint and should point to the real dedicated knowledge folder. If Cursor project memory is used, ~/.cursor/projects/<project-id>/memory/ should point to ./agent-knowledge/Memory/ so all agents read and write the same curated files.

When the symlink is missing or broken, create it:

ln -s <workspace>/agent-knowledge/Memory ~/.cursor/projects/<project-id>/memory

Tree structure

Memory is organized as a tree using the same-name branch convention. Agents load only the branches relevant to their current task.

agent-knowledge/
  Memory/
    MEMORY.md               <- root curated-memory index -- always loaded, max ~200 lines
    <topic>.md              <- flat branch note (no subtopics)
    <topic>/
      <topic>.md            <- branch entry note (same name as folder)
      <subtopic>.md         <- leaf note beside the entry
    decisions/
      decisions.md          <- decision log
  Evidence/
    raw/
    imports/

Reading the tree

  1. Memory/MEMORY.md is always loaded automatically. It is a concise index only -- no deep detail.
  2. At session start, identify which branch(es) your task touches from the Branches section.
  3. Read the relevant branch entry notes before starting work.
  4. If the branch has subtopic files needed for your task, read those too.
  5. Do not read branches unrelated to your task -- keep context lean.

Writing to the tree

  • Memory/MEMORY.md: short branch summaries with relative links. Keep it under 200 lines.
  • Branch entry note (<topic>.md or <topic>/<topic>.md): stable facts for one focused domain.
  • Subtopic note (<topic>/<subtopic>.md): created only when a branch note grows beyond ~150 lines.
  • When adding a subtopic, replace the inline detail in the entry note with a link.
  • Each note must stay under ~150 lines. Split if bigger.
  • Link related notes with relative markdown links (e.g., See [perception](perception/perception.md)).
  • One branch = one functional domain. Do NOT lump unrelated subsystems into one file.

Read the full file on GitHub · 102 lines

Changes

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.

  1. 2d ago First seen · 102 lines · 960 tokens per session scan A 7d9cc9ef06d8

Subscribe to this mod's changes

shared-memory is a cursor rule published in the GitHub repository robotaitai/project-bedrock (44 stars, last pushed 12d ago), licensed MIT. It adds 960 tokens to every session, about $0.0048 per session on Opus 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.