The decision nobody wrote down
Every Gagarin project has one memory, and everyone on the project shares it, along with every agent they use. A team can keep the reasons behind its decisions there, and each deploy can leave a note for the next one.
Three people work on saas, an invoicing app for small agencies. In October
Ana moved the worker service from size s to size m, because rendering a
long invoice got it OOM-killed. That costs $20.44 a month more. In late
November Dana, who pays for the project, asks their agent to cut the bill. The
agent reads gg status, sees a worker at m using a tenth of its CPU, and
suggests moving it back to s.
Anyone who missed October would suggest the same, and the agent missed it
too. gg status shows the size, and the person who chose it holds the
reason. You'd find it in a chat thread from six weeks ago, or by messaging
whoever is on holiday this week.
Project memory gives that reason a home. An agent writes it down once. Every later session on the project reads it back before it suggests anything, on anyone's machine.
The memory belongs to the project
A Gagarin project keeps its memory next to its services, so you can move to a
new laptop or lose a chat history without losing it. The rule that decides
who can deploy also decides who can use the memory. Dana shared saas with
Ana as an editor and with Ben as a viewer. Pick a person to see what their
agent may do:
- memory_briefingread the briefing●
- memory_searchsearch it●
- rememberwrite a memoryrefused
- memory_updateconfirm, dispute, editrefused
[insufficient_role] you are a viewer on project "saas", which is read-only hint: ask the project's owner or an editor to give you edit access
The ledger is the console's Members tab, where gg share adds people.
Reads need viewer and writes need editor, the same rule the engine
applies to a deploy, so Ben's agent can brief itself on everything the team
knows and can't change any of it.
Each person's agent signs in to Gagarin's MCP server as that person and reads
the memory through it. Commit .gagarin.json to the repository, and a
teammate's agent will know which project it's working on. From then on your
agent and theirs read the same facts, and whatever one of them learns, the
next session starts with.
A memory holds one small fact of one kind: overview, architecture,
decision, convention, gotcha, howto, reference or state. Write
down what a future session would spend an hour rediscovering: why a decision
went the way it did, a gotcha that cost an afternoon, where this deploy
differs from the obvious one. Leave out what the repository already says, and
keep credentials out. Gagarin encrypts the title and body at rest. It stores
tags, keys, file paths and the kind as plain text, so keep secrets out of
those too.
A briefing for the task at hand
An agent opens each session with memory_briefing. If it knows the task, it
passes the task as a focus and the files it will touch as paths, and the
matching memories come first. Dana's agent asks with the focus "cut the
bill: move worker to size s", at a budget of 600 tokens. Switch the focus off
to see what a session that names no task gets instead:
cut the bill: move worker to size s
An example project, laid out line for line the way axon's briefing code lays one out. The worker's gotcha, outlined, is an index line on a cold start and the first thing in full once the task mentions the worker's size.
The agent reads #18 before it has touched a file. It leaves the worker at m and comes back with a better plan: render page by page, then move to s. #18 also tells it nobody has built that yet.
Read the Recent (7d): group as the team's changelog of decisions. It shows
what your teammates' sessions learned this week: a new rule for invoice
numbers, a new howto, a gotcha somebody corrected, a stale fact somebody
archived. The header carries the date of the last write, so you can see
whether the team keeps the memory up.
Each deploy leaves a note for the next one
Gagarin's deploy skill asks for a briefing focused on the deploy before it starts. Afterwards, it writes down what the next session would otherwise rediscover the slow way: the port, a Dockerfile quirk, and the names of the variables the application insists on (never their values).
On Gagarin those names carry extra weight. A deploy replaces the whole
environment, and any variable it leaves out is gone from the next revision.
An agent deploying worker for the first time reads in #24 that it has to
restate PDF_FONT_DIR and LOG_LEVEL, and the renderer keeps its fonts.
The skill files the state of each service under a key, deploy/<service>,
the name that fact will always go by. A project allows one active memory per
key, so each deploy's note replaces the last. Step through the worker's three
deploys:
- #172026-10-14What worker runs nowsize m · moved from s after the OOM killsPDF_FONT_DIRsuperseded by #21
- #212026-11-02What worker runs nowsize m · LOG_LEVEL addedPDF_FONT_DIRLOG_LEVELsuperseded by #24
- #242026-11-19What worker runs nowsize m · fonts copied into /app/fontsPDF_FONT_DIRLOG_LEVELholds deploy/worker
Saved #24 (71t, key deploy/worker) in saas. Replaced #21 (key deploy/worker); its links moved to #24.
The links move with the note, so the OOM gotcha points at whatever the worker runs today. The older notes stay in the project, marked superseded, as the record of what was true before. A variable new to a deploy is outlined in green.
Two agents, one fact
Two people on a team will learn the same thing in the same week. If both
their agents write it down, the briefing spends its budget on the fact twice.
So remember compares each new memory with the ones the project holds, and
answers by how close the nearest one comes. Try three things Dana's agent
might write after reading about the OOM kills:
Not saved — near-duplicate of: #18 gotcha · worker runs at size m: PDF rendering is OOM-killed at s [0.91] Use update to amend it, supersedes=<id> to replace it, or force=true to keep both.
The thresholds are axon's defaults; the similarities are illustrative, since the real ones come from the embedding model. At 0.85 and above nothing is saved. Below it, the write goes through with a warning to merge it.
A refused agent adds what it learned to #18, or links its finding to #18, and the team keeps one wording of the fact.
Facts go stale, and the memory says so
Say somebody removes a deploy flag in March. The note telling agents to pass it is still there in April, and an agent that trusts the note does worse than one with no memory at all. So each memory records when someone last checked it:
confirmmeans "I checked, this is still true." It resets the memory's age. Editing a memory confirms it too, since whoever rewrote it has read it.disputemeans "this looks wrong, and I can't tell what's right." The memory sinks to the bottom of the briefing marked⚠ disputed, and the footer counts it until somebody confirms it, fixes it or archives it. In the example above, a teammate's agent noticed thatapiruns its migrations at boot now, which puts the howto in #11 in doubt.- Age lowers a memory's rank at a rate set by its kind. A
statememory loses half its weight in 30 days. Gotchas, howtos and references take 180 days, and the rest take a year. Rank stops falling at 40%, so a fact can't age out of the briefing. A state memory unchecked for more than 60 days, or a gotcha unchecked for more than 180, carries its age on its line, as #14 does.
- state
- 40%
- gotcha · howto · reference
- 75%
- decision · architecture · …
- 87%
Drag to age the memories, and press confirm to do what memory_update confirm=true does. The curves are axon's: each kind halves at its own
half-life, and none falls below the dashed floor at 40%.
Every month or so, or when a briefing starts counting disputed memories, ask
your agent to call memory_review. It lists likely duplicates, memories with
no links, oversized ones, stale and unread ones, disputed ones, and the
distance to the project's cap. An agent can do most of the tidy-up in ten
minutes.
A decision keeps its history
To reverse a decision, an agent writes the new one and has it supersede the old. The old memory stays, linked and marked superseded, so a later reader sees what the team believed and why that changed. In the example project, sessions lived in valkey until a restart logged every user out. A team that keeps that record won't move sessions back into valkey a year later, after everyone has forgotten the restart.
What it costs
Memories in use cost $0.10 per 1,000 a month, and reads cost nothing. A project holds up to 5,000 memories, so memory costs at most $0.50 a month. Most projects hold a few dozen and pay a fraction of a cent. Archived and superseded memories don't count, so archiving a fact that has stopped being true also takes it off the bill.
What it doesn't do yet
- Your agent has to write. Axon stores what an agent decides to
remember, and it reads neither your Slack nor your pull requests. The Gagarin skill teaches agents when to write. A decision you make in a meeting reaches memory when you tell an agent about it. - It needs the MCP server.
gghas no memory command yet, and the console has no memory tab. An agent without Gagarin's MCP server goes without memory, and deploys as before. - The whole team shares one memory per project. That suits decisions. Keep a personal preference in your own agent's notes.
- We hold the encryption key. To hold it yourself, run your own instance of axon on Gagarin. The code is open source.
If you run a project on Gagarin, it has a memory. Next time you start on a task, tell your agent what the task is and ask it for a briefing. Before the session ends, ask it to remember why it did what it did.