agent-shared-memory
Skill30 starsChanged 3 months agoMITView on GitHub
Use when a user asks to inspect coordination memory, propose a durable decision or resolution, review pending memory proposals, or apply an explicitly approved proposal as a new append-only event.
In this repository6 other files it gives its agents.
- agent-acceptance-gateSkill
- agent-context-budgetSkill
- agent-debateSkill
- agent-output-reconcilerSkill
- agent-plan-act-reflectSkill
- agent-task-splitterSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
All memory mutations start as proposals:
- Distinctive: line 28
Read canonical events and return:
- Distinctive: line 36
Do not load raw agent logs into the primary session.
- Distinctive: line 41
Create a proposal with:
- Distinctive: line 65
Only a human may approve, decline, or revise a proposal.
- Distinctive: line 100
Use this memory for agent coordination decisions, questions, artifact pointers, and execution outcomes.
- Distinctive: line 121
Never report an unapproved proposal as a canonical decision.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
agent-shared-memory
Coordinate durable facts without letting an agent silently rewrite project memory. Read the event schema in references/coord_memory_schema.md before creating or applying a proposal.
Authority
Repository state, current evidence, and recorded human decisions outrank memory. Recall systems are optional caches.
All memory mutations start as proposals:
.coord/memory-proposals/<proposal-id>.jsonWithout an explicit human approve decision, do not add, supersede, archive, delete, overwrite, or compact canonical memory.
Modes
Read
Read canonical events and return:
- current decisions, following supersedes references
- unresolved questions
- relevant artifact/evidence pointers
- recent execution outcomes
- conflicts or stale claims
Do not load raw agent logs into the primary session. Follow their stable paths only when needed.
Propose
Create a proposal with:
{
"schema_version": 1,
"proposal_id": "<uuid>",
"source_task": "<task id>",
"action": {
"operation": "add | supersede | archive | delete",
"target_ref": null,
"summary": "<compact proposed event>",
"evidence_refs": ["<stable ref>"]
},
"state": "proposed",
"created_at": "<ISO 8601>",
"decision": null
}Supersede, archive, and delete require a specific action.target_ref. A
proposal with no action.evidence_refs remains pending and must not be applied.
The action object is immutable. Its canonical JSON bytes, not the mutable
proposal envelope, are the approval payload.
Decide
Only a human may approve, decline, or revise a proposal. Record:
- actor
- decision
- timestamp
- rationale
- affected proposal/action hash
- HMAC authorization from the trusted host
Decline and timeout remain non-success. A revise decision creates or updates a proposal; it is not approval.
Apply
Apply only a proposal whose recorded state is approved and whose immutable
action bytes still match decision.affected_action_hash. Decision metadata
and state are outside that hashed payload, so recording approval does not
invalidate the approval hash.
The decision uses the same hmac-sha256 authorization boundary as checkpoint
human records. Do not expose the signing secret to a delegated executor.
Application appends one immutable event to .coord/memory.yml. It does not edit the target event:
It never edits an existing event; a resolution, correction, or supersession is a new append-only event.
- Superseding a decision appends a new decision event with supersedes.
- Resolving a question appends a resolution event with resolves.
- Archiving or deleting appends a lifecycle event referencing target_ref.
- Canonical removal, compaction, or physical deletion requires a separate repository-specific retention decision.
Coordination scope
Use this memory for agent coordination decisions, questions, artifact pointers, and execution outcomes. Research truth belongs in research evidence stores; paper claims belong in the paper's claim/evidence contract.
Artifact policy
.coord/ is scratch and gitignored by default. Do not commit every proposal or agent boundary. Promote only an explicitly selected checkpoint snapshot, shipping artifact, or acceptance record into a repository-owned evidence path.
Output
Always report:
- mode: read, propose, decide, or apply
- proposal/event id
- state
- evidence refs
- whether canonical memory changed
- human decision still required
Never report an unapproved proposal as a canonical decision.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

