Skip to content
Design33 min readUpdated 23 Nov 2026

Memory hierarchy and primitives

Memory, on this page, is everything an agent can know while it works: what is in its context, what it can look up, and what the workspace keeps after the session ends. The page answers three questions. Where does each kind of knowledge live? What moves it from one place to another? And what should change, given what was measured?

An agent's context is its working memory, and it is the expensive kind. The harness sends the whole context to the model on every request, so a file or a build log that an agent reads early in a session is paid for again on every later request. Reaktor cannot edit that context, because Claude Code, Codex and the Antigravity app each build their own requests. Reaktor decides only what it adds to the context, through the answers of its door, through hooks, and through the first prompt of a run it starts. Everything else it controls lies outside the context: the code graph, the record of the work, and the facts the workspace keeps. The design on this page follows from that. It keeps little in the context, keeps the rest one lookup away, and moves work between agents as a short frame of references.

Parts of this page describe what runs today, and parts describe a design. Each section says which. The parts that run today are Atlas, the fact store and its operations, recall at the start of a session, briefs for task graphs, imports and exports of each vendor's own memory, check reducers and work logs. The working frame, the record written by the host, freshness by linked declaration and consolidation from accepted work are designs.

Overview#

Five levels of memory in the agentic plane. Three are in the model's context and are paid for on every request: turn state, standing context and the working frame. Two are outside it and cost nothing until looked up: the record of the work and long-term knowledge. Six operations move knowledge between them: assemble, look up, write back, hand off, consolidate and expire.IN THE CONTEXT · PAID FOR ON EVERY REQUESTOUTSIDE THE CONTEXT · FREE UNTIL LOOKED UP0 · Turn stateThe model's own reasoning, and all it has read so farPrivate to one session of one vendorLives until a compaction or the end of the session1 · Standing contextSystem prompt, rules file, tool definitions,skill descriptions, the vendor's own memory fileThe same for every session, and sent every time2 · Working frameThe work item, the code in its region, kept facts,what was tried and what is newBuilt for one step of one piece of workREAKTOR ADDS TEXT IN THREE WAYSa door answera hooka first promptIt cannot remove or reorder what is already there.3 · Record of the workAttempts, candidates and check receiptsFindings, messages and handoff notesThe plan's history and work logsLives as long as the plan4 · Long-term knowledgeCode graph: Atlas, derived from the sourceKept facts: scope, links to code, provenanceMechanisms: hooks, refusals, checks, laddersOutlives every planRead by every vendor's agent through the one doorwrite back, by the host3hand off, in four lines4assemble a frame1look up a reference2consolidate, after acceptance56ExpireA fact goes stale when the code it links changesThe two sides meet onlythrough these six operations.
Three levels sit in the context and are paid for on every request. Two sit outside it and cost nothing until an agent looks something up. Six operations move knowledge between them.

The plane has five levels of memory. Three are inside the model's context, and two are outside it.

  • Level 0, turn state. The model's own reasoning and the provider's cache of the context. It belongs to one session, and nobody else can read it.
  • Level 1, standing context. What the harness loads into every session: the vendor's system prompt, the rules file, the definitions of the tools, the descriptions of the skills and the vendor's own memory file.
  • Level 2, the working frame. What one piece of work needs for its next step: the work item, the code in its region, the facts kept about that code, what was tried and what is new.
  • Level 3, the record of the work. Everything that happened on a piece of work: attempts, candidates, check receipts, findings, messages and handoff notes. It lives as long as the plan.
  • Level 4, long-term knowledge. What outlives a plan: the code graph, kept facts linked to code, and mechanisms that act without being read.

Three rules follow from the cost of the context, and the rest of the page applies them.

  1. Keep little in the context, and keep the rest one lookup away. A reference costs one line. The thing it names costs nothing until the agent asks the door for it.
  2. Move work between agents as a frame of references. A transcript cannot move between vendors, and copying one is the most expensive way to pass on what an agent knows.
  3. Let long-term knowledge grow only from accepted work. A lesson from work that nobody checked is a claim. It becomes knowledge when someone other than its author has accepted the work it came from.

Try it#

All three calls below run today. The first is the usual way to meet a kept fact: look the code up with the atlas_query tool, and the facts linked to that code come back in the same answer.

{"from": {"name": "AgentSourceScope"},
 "follow": [{"rel": "references", "dir": "in"}], "limit": 5}

atlas_query answered this on 17 November 2026, shortened here:

5 of 7 · resolved (kotlin-psi/2.4.21, …) · the compiler checked 6 of the 6 files searched
../reaktor/reaktor-conductor/src/jvmMain/…/conductor/workspace/AgentSourceScope.kt
  19:21 class AgentSourceScope: internal data class AgentSourceScope( val paths: …
  59 use in AgentSourceScope.Companion.of: if (values.isEmpty() || values.any {
     it.trim() in setOf("", "*", ".", "./") }) return AgentSourceScope(listOf("*"), …)
note: 2 more beyond the limit of 5
next: atlas_read {"id":"d:../reaktor/reaktor-conductor/…/AgentSourceScope.kt:18:20@f6663ae8"}

When the store holds kept facts that link symbol:AgentSourceScope or that file, the answer lists them after the code, each with its scope, its freshness and where it came from. This answer listed none, because the store was empty on that day; What the measurements show comes back to that.

Read the kept facts for exact references, without a code lookup:

{"operation": "memory.linked", "arguments": {
  "links": ["symbol:WorkPlanStore", "module:reaktor-conductor"]}}

Propose a fact. It stays a proposal, and no agent is shown it, until a person keeps it:

{"operation": "memory.propose", "arguments": {"draft": {
  "title": "An empty scope means the whole workspace",
  "text": "An empty list becomes the scope \"*\", so an unscoped writer blocks all others.",
  "source": "symbol:AgentSourceScope.of",
  "sourceDate": 1794900000000,
  "subjectRefs": ["module:reaktor-conductor"]}}}

What the measurements show#

Each row gives a measurement or a fact about the code, with its date and its source. Together they say where the current plane keeps knowledge in the wrong place.

What was foundDate and sourceWhat it means
Claude Code made 47,187 model calls with an average context of 296,000 tokens. Reading the cached context back and writing it to the cache made up 78% of the cost of those calls (56% and 22%). Codex made 63,022 calls with an average context of 111,000 tokens, of which 98% was cachedThe 14 days to 12 November 2026, from the sessions' own records on diskMost of what an agent costs is the context it sends again. What enters the context early is the most expensive thing an agent does
Claude Code sessions read files 2,538 times with the harness's own file tool and made 500 Atlas calls. They ran Gradle from the shell 1,061 times and used check_run 113 times. Reading and searching made up 36% of the cost of those sessions' main threads, and builds, tests and scripts 40%The same 14 days, the same recordsWhole files and raw build output go into level 0 and stay there. A lookup and a reduced check would have left a reference and a few findings
The shared fact store held no fact and no proposal in any of the three workspaces. Claude Code's own memory folder for those workspaces held 327 notes, and Codex's own held 113 files17 November 2026, counted in the stores and foldersThe store is built and tested, and the knowledge is elsewhere. What one vendor's agents learned stays with that vendor
The rules file of the largest workspace grew from about 53,700 bytes to 63,694 bytes. Codex reads a rules file only up to a configured size, 32 KiB unless it is raised, so for a time everything after that point had never reached Codex17 October and 17 November 2026, the file's size; the limit was found on 17 October in a saved Codex sessionLevel 1 has a capacity, it is paid for on every request, and it grows by a paragraph each time something goes wrong
The store labels a fact stale as soon as the workspace's source revision differs from the revision the fact was read at, and the older model drops a fact after 30 daysThe code on 17 November 2026: MemoryGraph and AgentMemoryStore.freshOne commit anywhere marks every fact stale, including facts about code that did not change
A brief is assembled only for a task in a task graph. Lessons are proposed only from runs that the kernel started and from finished task graphsThe code on 17 November 2026: TaskContextAssembly, MemoryExtractorMost work runs from plans in the vendors' apps, so it gets no brief and leaves no lesson. That is consistent with the empty store

The five levels#

LevelWhat it holdsWho can read itHow long it livesWhat it costsWhat Reaktor does there today
0. Turn stateThe model's reasoning, and everything the session has read so far. The provider's cache of that contextOne session of one vendorUntil the harness compacts the context or the session endsSent on every request. The cached part is charged at a lower rate, and it was still most of the cost measuredNothing directly. It adds text only through door answers, hooks and first prompts
1. Standing contextThe vendor's system prompt, the rules file (AGENTS.md, which CLAUDE.md points at, and GEMINI.md), tool definitions, skill descriptions, the vendor's own memory fileEvery session of that harness in the workspaceUntil someone edits the filesSent on every request of every sessionWrites one rules file for all three vendors, exports skills and agent profiles, and exports kept facts into a shared section of each vendor's memory file
2. Working frameThe work item, the code in its region, the kept facts for that code, what was tried, what is newThe agent that holds the workOne step, rebuilt when the work is taken, handed over or reviewedSent once, then carried like the rest of the contextBuilds a brief for a task in a task graph. Work from a plan gets none
3. Record of the workAttempts, candidates, check receipts, findings, messages, handoff notes, the plan's history, work logsAnyone on the plan, through the doorAs long as the planNothing until it is readKeeps each of these, in separate stores
4. Long-term knowledgeThe code graph (Atlas). Kept facts with scope, links and provenance. Mechanisms: hooks, refusals at the door, check reducers, escalation laddersEvery agent of every vendor, through the doorUntil the code changes or a person retires itNothing until it is read. A mechanism is never read at allAtlas and the fact store answer through the door. Hooks and reducers run

Two properties decide the order of the levels. The first is cost: levels 0 to 2 are inside the context and are paid for on every request, and levels 3 and 4 are outside it. The second is reach: level 0 belongs to one session, level 1 to one vendor's sessions, and levels 3 and 4 to everyone, because they are read through the one door that all three vendors share.

Two analogies helped to shape the levels. Both are analogies, and the last column says where each one stops holding.

LevelIn a brainIn a computerWhere the analogy stops
0. Turn stateThe thought in progressA processor's registers and its private cacheA cache line can be copied to another processor. A model's reasoning is signed or encrypted by its provider, and no other provider accepts it
1. Standing contextWhat a person knows about how to behave in a place, without recalling itThe part of an operating system that is loaded for every processA program pays for that part once. An agent pays for its standing context on every request
2. Working frameWorking memory: the few things held in mind for the task at hand (Miller 1956; Cowan 2001)A process's working set, the pages it needs now (Denning 1968)A person does not receive their working memory from someone else. A frame is built outside the agent for each step
3. Record of the workMemory of events, laid down quickly and in order (McClelland, McNaughton and O'Reilly 1995)A journal that a store appends toThe record is exact and does not fade, so nothing has to be rehearsed to keep it
4. Kept facts and the code graphKnowledge of what is so, apart from when it was learned (Squire 2004)A database and an index derived from the sourceEvery fact names its source and can be checked against it
4. MechanismsSkills that run without recall (Squire 2004)Protection in the operating system, which holds whether or not a program remembers the ruleA mechanism is written and reviewed by someone. It does not form by repetition

Where a piece of knowledge belongs#

Most of the faults in the table of measurements are knowledge kept at the wrong level. This table says where each kind belongs.

The knowledgeWhere it belongsWhy
Needed by every session, whatever the task: the build loop, the safety rulesThe rules file, level 1It is paid for on every request, so every paragraph has to be worth that
How to do one kind of task: ship a release, add a moduleA skill, level 1The harness always loads the skill's short description and loads its body only when a task calls for it
About one declaration, file or module: a trap, a decision, a pointerA kept fact linked to that code, level 4It arrives with the lookup of that code, and it can expire when that code changes
What happened on one piece of workThe record, level 3The next holder and the reviewer need it. Nobody else does
A rule that a program can checkA mechanism, level 4It holds whether or not any agent remembers it, and it takes no room in any context
What the agent is thinking nowIts own context, level 0. On a handoff, a note of four linesNothing else can carry it

What runs today#

The code graph: Atlas#

Atlas is Reaktor's index of the code in a workspace and the builds it includes. It is derived from the source, so it can always be rebuilt, and every agent reaches it through the reaktor door.

  • atlas_query follows relations from a declaration. references inward lists every use with the declaration it sits in, then the comments, strings and files that mention the name. references outward lists what a declaration calls and the types it names. A text query finds literal text.
  • atlas_read returns the exact source of a declaration or a file position, with line numbers.
  • Each answer says on its first line how much of it the compiler checked. A use found only by name is marked as a name match.
  • An answer carries the kept facts linked to what it names. The kernel collects up to 64 references from the answer, such as symbol:, file:, module:, graph: and op: references, and adds each kept fact that links one of them: its title, the first 1,500 characters of its text, its scope, a freshness label, its revision and its provenance. Facts that do not fit the answer's size are counted, with a pointer to memory.linked.

Atlas is what makes one ground truth across vendors. A Claude, Codex or Gemini agent that asks the same question gets the same answer, with the same statement of how far the compiler checked it. Kernel describes the door and its tools.

Kept facts#

A fact is something an agent or a person learned and wants later work to know.

FieldValues
ScopeThe workspace, a repository, a plan or one agent
KindFact, decision, preference, gotcha or reference
StatusProposed, kept or retired
TextA title of up to 200 characters and a text of up to 6,000
LinksUp to 100 references to code: files, symbols, modules, graphs, operations
ProvenanceThe agent, session, run and event it came from, its source, the source's date and revision
ReviewWho kept it, its revision, the fact it supersedes, and an importance from 1 to 3

Facts enter the store in three ways, and all three produce proposals.

  • An explicit proposal. An agent or a person calls memory.propose with a title, a text, a source and the source's date.
  • Lessons from finished work. When a run that the kernel started completes, Reaktor asks a model for at most eight lessons from the end of the run's output and its last ten messages, and it accepts only links that were in the run's context. When a task graph finishes, Reaktor assembles a retrospective without calling a model: the repairs and the findings that caused them, the failed checks, the interventions and the longest waits.
  • An import from a vendor's own memory. memory.import reads a Claude Code or Codex memory file, the repository's AGENTS.md, or Antigravity's AGENTS.md or GEMINI.md, whole or by line range, and turns it into proposals that quote the text and record its content hash.

A person keeps or drops each proposal with memory.review. A proposal that nobody has reviewed never enters a brief or an answer.

Kept facts reach an agent in five ways.

HowWhenHow much
With a code lookupAn Atlas answer names code that a fact linksAs many as fit the answer's size, with the rest counted
At the start of a sessionThe session-start hook of Reaktor's plugin calls memory.recall for the workspace, the repository, the session's plan and the agentAt most four facts, 700 characters of each
In a briefA task in a task graph startsWithin the brief's size, see Briefs
On requestmemory.search, memory.linked, memory.read, or the resource memory://fact/<id>What the caller asks for
In the vendor's own memory filememory.export wrote kept facts into the shared section of a Claude Code memory index, the repository's AGENTS.md or Antigravity's GEMINI.md, and left the hand-written text as it wasThe harness loads the file itself, with no call

Recall at the start of a session says of each fact that its freshness is unknown until it is checked against the checkout. The plugin's hooks are installed and trusted for Codex. On 17 November 2026 the Claude Code checkouts still ran older shell hooks that print only the inbox, and Antigravity had the door and the skills without hooks.

Briefs and context packets#

When a task graph starts a task, Reaktor assembles its brief, so the agent is not told to look around first.

  • The context packet is the envelope of a brief. It records the workspace, the principal it was built for, its source, the revision it was read at, how fresh it is, whether it is partial, its entries, how many entries it left out, and notices about anything it could not include. In a workspace run, each turn's packet holds at most 22,000 characters: the candidate, up to 20 supplied entries and up to 10 unresolved findings.
  • The Atlas slice gives the task the declarations in its scope, their uses and the tests that reach them, within a fixed share of the brief's size. Hangar's context preview shows each part of a brief with its size.
  • Visibility rules decide what each participant may see. In a blind round, the answers of other participants are left out even when they are supplied, so that independent answers stay independent. An entry that the participant has already seen is not sent twice.
  • System contexts are saved instruction sets for a kind of work: design, building, review, testing, security and performance. Each one carries its instructions, the access it allows, whether Reaktor's tools are fully available, limited to Atlas, or off, and an optional budget.

An agent that works from a plan, outside a task graph, gets no assembled brief. It reads the plan's news since its last revision, its inbox, and whatever it looks up itself.

The record and the reduced checks#

The record of a piece of work exists today, in separate stores.

  • The plan keeps each item's history, its completion report and its work logs, which are the time windows in which a session held the item.
  • Work logs are read from each vendor's own session records, for Claude Code, Codex and Antigravity, into one model of a session: its prompts, tool calls, edits and checks. The host reads them, so they cost no model tokens.
  • Check output is reduced before an agent reads it. One reducer reads Gradle's test summary and named failures, one reads Kotlin compiler diagnostics, and a fallback keeps the tail of anything else. The agent receives findings, and the full log stays on disk.
  • Large answers are paged. The door returns a large result as answer://<id>/<page> resources, which the agent reads in parts.

Evidence and acceptance primitives describes candidates, receipts, findings and the other records. Messaging and coordination primitives describes messages and handoffs.

The working frame#

This section is a design. It replaces "read the plan and look around" with a frame that the door builds when an agent takes a piece of work.

The working frame WM/1. The door builds it without calling a model, from the plan, Atlas, the fact store, the evidence store and the messages. It has four bands: work, knowledge, record and news. It reaches an agent in the answer to the call that takes the work, in a hook, or in the first prompt. The host and the agent then write back to the record.THE DOOR READSthe plan and its historyAtlas, for the item's regionthe fact store, by linkthe evidence storemessages for the holderNo model is called to builda frame, so it costs no tokensuntil an agent receives it.THE FRAME, WM/1WorkOutcome, requester, holder, region,acceptance check and deadlineFixed while the item is heldKnowledgeDeclarations in the region, with digestsKept facts linked to themChanges when that code changesRecordAttempts, candidates, check receipts,findings and handoff notesOnly ever appended toNewsMessages and plan changes sincethe holder last lookedChanges at every stepFrom what changes least to what changes at every stepbuildsHOW IT REACHES AN AGENTThe answer to taking workevery vendor's agent, through plan.nextA hookat session start, or after a compactionThe first prompta run that Hangar or a lead startsWHAT GOES BACK TO THE RECORDThe host writesfiles read and edited, checks run,taken from the vendor's session recordThe agent writes a notedoing · belief · ruled out · look firstfour lines, marked as a claim
The door builds the frame from stores it already has. The agent receives it in the answer to the call that takes the work, and what happens next goes back to the record.

Why a transcript cannot be the unit#

Three facts rule out passing one agent's conversation to another.

  1. Reasoning does not cross vendors. Each provider returns a model's reasoning encrypted, in a form that only its own service can read back: a signature on each thinking block at Anthropic, encrypted reasoning items at OpenAI, and thought signatures at Google.
  2. A transcript is the largest thing an agent has. The average context measured for Claude Code was 296,000 tokens. The next agent would pay for all of it, most of which is exploration that led nowhere.
  3. Asking the outgoing model to summarise costs output tokens and loses exactness. A summary drops file positions and receipt identifiers, which are the parts the next agent needs to be exact.

The host can supply almost everything without asking the model. Reaktor already reads each vendor's session record, so it knows which files the session read and edited and which checks it ran. The only part it cannot observe is what the agent believes and what it ruled out, and that fits in four lines.

What a frame holds#

A frame has four bands, ordered from what changes least to what changes at every step.

BandWhat it holdsWhen it changes
WorkThe outcome, who asked for it, who holds it, the region it may change, the check that proves it, the deadlineWhen the item is edited
KnowledgeThe declarations in the region with their digests, the number of their uses and tests, and the kept facts linked to themWhen that code changes
RecordEach attempt with its candidate and its check receipts, the findings, and the handoff notesOnly by appending
NewsMessages, plan changes and invalidations since the holder last lookedAt every step

The frame is plain text, one record to a line. Each line carries a reference that the door resolves, in the forms the plane already uses: symbol:, file:, module:, flow: and memory://fact/<id>. The design adds two forms, one for a candidate and one for a check receipt. A line names a thing and says one sentence about it. The thing itself stays outside the context until the agent asks for it.

frame WM/1  item=scope-empty  plan=hangar:scope  revision=7  budget=22000

[work]
outcome    A writer that names no scope holds no files
requester  person:owner
holder     (codex, xhigh, sol 6.1, engine)
region     symbol:AgentSourceScope.of  file:…/workspace/AgentSourceScopeTest.kt
accept     reaktor-conductor:jvmTest --tests '*AgentSourceScope*'
due        2026-11-18T18:00Z

[knowledge]
code       symbol:AgentSourceScope.of  digest=f6663ae8  18 lines
uses       7 uses in 6 files, 2 tests
fact       memory://fact/19  Gotcha  fresh  "An empty scope means the whole workspace"

[record]
attempt 1  by (claude, max, opus 5.5, engineer)  candidate:77a0  +34 -12  receipt:901 FAILED
           AgentSourceScopeTest: a writer with no scope blocked a module it never touched
note 1     ruled out: special-casing "." in the callers; the cause is the empty list  (claim)
attempt 2  by (claude, max, opus 5.5, engineer)  candidate:88b4  +19 -8   receipt:904 PASSED
note 2     belief: an empty scope now holds nothing; build files need their own rule  (claim)

[news]
message    6502ea27 from person:owner, 18:14: keep edits to settings.gradle.kts exclusive

Four choices in this format matter.

  • The order makes a second frame cheap. The first two bands rarely change, and the record only grows. An agent that already holds a frame asks for what was added since its revision and receives the new lines of the last two bands. After a compaction it asks for the whole frame again.
  • The size starts from what exists. Today's context packet holds 22,000 characters. The frame starts there, and the record of use described below is what should change the number.
  • A note is marked as a claim. Everything else in a frame was observed by the host or checked by a program. A note is what an agent said it believed, and the next agent reads it as that.
  • The door builds it without a model. Every band comes from a store the door already reads: the plan, Atlas, the fact store, the evidence store and the messages.

How a frame reaches each harness#

Reaktor has three channels into a context, and the frame uses whichever one the harness offers.

ChannelReachesWhen
The answer to the call that takes the workEvery vendor's agent, because tool results are the one channel all three harnesses shareWhen the agent takes an item with plan.next and take: true
A hookHarnesses where Reaktor's plugin hooks are installed: Codex todayAt the start of a session, where recall of facts runs today, and after a compaction
The first promptRuns that Hangar or a lead startsWhen the run starts, where the brief of a task graph and the brief of a seat go today

For the three vendors' harnesses a frame arrives at the end of the context, so the order of its bands does not change what their caches hold. The order matters in the two places where Reaktor composes the whole request itself, the local model runtime and calls through the gateway, because a cache keeps the unchanged beginning of a request.

A frame also changes when a session should end. The record is outside the session, so a session can end when its item ends, and the next item starts in a new session from a frame of 22,000 characters. A session that continues carries everything it has read.

The team file already has a field for this choice. A member can carry a memory role: an elephant keeps a long memory across tasks, and a goldfish starts every task with fresh context. On 17 November 2026 the role is stored on the member and shown in the team's shape, and nothing acts on it. In the design it decides how the frame is delivered. A goldfish starts each item in a new session and receives the whole frame. An elephant continues its session and receives only the lines added since the revision it holds. A reviewer is a goldfish, because a review reads the candidate on a fresh context. A lead that carries the reasons behind a plan across many items is a case for an elephant, and it pays for that with a context that keeps growing.

The six operations#

Six operations move knowledge between the levels. For each one, the first paragraph says what runs today and the second says what the design changes.

1. Assemble#

Assembling brings into the context what one step needs. Today Reaktor assembles a brief for a task in a task graph, and the session-start hook recalls up to four facts.

In the design, the door assembles a frame whenever an agent takes an item, is handed one, reviews one or returns from a compaction, for work from plans as well as from task graphs.

2. Look up#

Looking up turns a reference into the thing it names. Today the door resolves declarations and file positions (atlas_read), uses and callers (atlas_query), kept facts (memory://fact/<id>, memory.linked) and the pages of a large answer (answer://). A check through check_run returns findings, and the log stays on disk.

In the design, two more references resolve the same way, a candidate and a check receipt. Where the harness runs a hook before a tool call, as Claude Code's PreToolUse does, a guard answers a whole-file read of indexed code or a Gradle run from the shell with the door call that does the same job. The measurements above are the reason. The lookups exist, and Claude Code sessions read whole files five times as often as they asked Atlas and ran Gradle from the shell nine times as often as through check_run.

3. Write back#

Writing back moves what a session did from its private context into the shared record. Today the host reads work logs from each vendor's session records, the plan keeps the time windows in which a session held an item, and plan.score reports tokens, compactions and check outcomes for each item of a plan. An agent that closes an item may attach a completion report of up to 1,000 characters and 20 changed paths.

In the design, the host appends an entry to the item's record at the end of each turn: the files the session read, the files it edited with the candidate they form, and the checks it ran with their receipts. It takes them from the session record, so the model writes nothing and spends nothing.

4. Hand off#

Handing off passes a piece of work to another agent. Today the plan-handoff workflow, which Reaktor exports as a skill and as an MCP prompt, tells the outgoing agent to state the evidence and the remaining work, a message of kind Handoff carries it, and plan.next with take: true, a thread and an item lets the named agent take that item.

In the design, the outgoing agent writes a note of four lines into the item's record, and the incoming agent finds it in its frame.

LineWhat it says
DoingThe step in progress
BeliefWhat the agent thinks is true, and why
Ruled outWhat it tried that failed, so the next agent does not try it again
Look firstThe symbols or checks the next agent should start from

5. Consolidate#

Consolidating turns the record of finished work into long-term knowledge. Today lessons are proposed from runs that the kernel started and from finished task graphs, whether or not anyone accepted the work, and a person reviews every proposal.

The design changes the trigger and adds a second kind of output.

  • The trigger is acceptance. When someone other than the author accepts an item, the door proposes facts from that item's record, each linked to the declarations in the item's region. Evidence and acceptance primitives describes acceptance, and this step depends on it.
  • A fact that a check demonstrates is kept without a person. If a check failed before the accepted change and passed after it, the gotcha it shows is kept, and the check receipt is recorded as its reviewer. Decisions and preferences always need a person.
  • A finding that recurs becomes a mechanism. When reviews raise the same finding three times, the door proposes a check, a refusal at the door or a hook in place of a new paragraph in the rules file. A person approves the mechanism, and the paragraph it replaces leaves the rules file.

6. Expire#

Expiring removes knowledge that stopped being true. Today a fact is labelled stale when the workspace's source revision differs from the one the fact was read at, and the older model also drops a fact after 30 days.

In the design, each link of a fact stores the digest of the declaration it names, which Atlas already computes. A fact is fresh while every linked digest matches. When one changes, the fact is marked stale and its author or a person confirms or retires it. A fact with no link to code, such as a preference, carries a date on which a person looks at it again.

Build order#

The work graph's steps W0 to W5 build coordination and acceptance, and Reaktor work graph lists them. Memory has five steps of its own. Each says what it needs and how to tell that it worked.

StepWhat is builtNeedsHow to tell it worked
M1. Use what is builtInstall the plugin's hooks for all three harnesses. Import the vendors' notes that are about the code or the workspace as proposals with links, review them in batches, and export the kept facts to each vendor's memory file. Guard whole-file reads and shell builds toward the doorNothing newEach store holds kept facts with links. Atlas calls are at least as many as file reads, and at least 80% of builds go through check_run
M2. Freshness by declarationStore a digest with each link. Retire the older fact model, so that one model answers memory.searchM1A commit marks stale only the facts that link what it changed
M3. The frameThe door builds a frame when an item is taken. The host writes the record at the end of each turn. The handoff note has four linesW1 gives an item its outcome, requester and acceptance check as fields. Until then the frame reads them from the item's detail and its check itemsThe average context of a Claude Code session falls below 150,000 tokens, from the 296,000 measured in November 2026
M4. Record of useRecord which entries of a frame the agent then looked up or citedM3The size of each band is set from that record. A fact that no agent used in a set number of frames is offered for retirement
M5. ConsolidationFacts and mechanisms are proposed when an item is acceptedW3, acceptance by someone other than the authorThe largest rules file is smaller at the end of a month than at its start, and each kept fact names the accepted item it came from

M1 comes first because it needs no new code and because the measurements say the knowledge exists and sits in the wrong place.

Inspirations and prior work#

The design borrows from three bodies of work. Each paragraph says what was borrowed and what was left behind.

Memory in the brain. Working memory holds a few bound items, about seven in Miller's account (1956) and about four in Cowan's (2001), and it holds pointers into long-term memory more than content (Baddeley and Hitch 1974). The frame borrows that: a short list of references, with the content elsewhere. O'Reilly and Frank (2006) model a gate that decides when working memory takes in something new and when it holds what it has. The four bands borrow the idea that some of the frame should hold still while one part changes. McClelland, McNaughton and O'Reilly (1995) argue that a brain needs a fast store for single events and a slow store for general knowledge, with replay moving material from the first to the second (Buzsáki 2015). The record and the kept facts are that pair. Squire (2004) separates knowledge that is recalled from skill that is performed, which is the difference between a kept fact and a mechanism. Schultz, Dayan and Montague (1997) show learning driven by the difference between an expected and an observed outcome. The design's counterpart is that only an outcome someone else checked changes long-term knowledge. None of the neural mechanisms is borrowed. The plane's stores are exact and do not fade, so nothing in it rehearses or decays.

Memory in a computer. A processor keeps a private cache and shares main memory, and the hardware keeps the shared part consistent while leaving each cache private (Papamarcos and Patel 1984). The plane does the same with a model's context and the shared record. A process runs well when the pages it needs now, its working set, fit in memory (Denning 1968). An agent runs well when its working frame fits in a small part of its context. A program addresses memory by reference, and the system brings a page in when it is touched. The door does that for references in a frame. The difference is the price. A page brought into memory is paid for once, and a line brought into a context is paid for on every later request, which is why a frame holds references and few contents.

Agents that keep memory. CoALA (Sumers et al. 2024) describes language agents with working, episodic, semantic and procedural memory, which is close to levels 2 to 4. MemGPT (Packer et al. 2023) pages between a bounded context and outside storage, under the model's own control. In the plane the door does the paging, so that it works the same for three vendors. Generative Agents (Park et al. 2023) keep a stream of events and reflect on it from time to time. Reflexion (Shinn et al. 2023) shows that a kept note about a failed attempt improves the next attempt, which is the "ruled out" line of the handoff note. Voyager (Wang et al. 2023) grows a library of skills that later tasks call. Work on several models checking each other (Du et al. 2023) is one reason acceptance comes from someone other than the author. Those systems were built for one agent or for a simulated world. The plane adds two things they did not need: a code graph that a compiler checked, and three vendors that cannot read each other's contexts.

What it improves#

Usual approachWhat goes wrongReaktor's approach
The agent searches with grep and reads whole filesThe context fills with text that is paid for again on every request, and uses are missedAtlas returns compiler-checked uses and exact source in one call, with the kept facts linked to that code
A build log pasted into the conversationThousands of lines are carried for the rest of the sessionCheck reducers return findings, and the log stays on disk
One agent's transcript copied or summarised for the nextReasoning does not cross vendors, the copy is the largest thing the agent has, and a summary loses positions and identifiersIn the design, a frame of references built by the door, a record written by the host, and a note of four lines
Each vendor's agent keeps its own memoryA lesson learned by one vendor's agent never reaches another'sOne fact store with scope, links and provenance, imports from each vendor's memory, and exports back into each vendor's memory file
A fact store invalidated by any change, or neverEvery commit marks everything stale, or stale facts mislead later workIn the design, freshness by the digests of the declarations a fact links
A new paragraph in the rules file after every mistakeThe file is paid for on every request, grows every month, and can pass a harness's size limit unnoticedIn the design, a finding that recurs becomes a check, a refusal or a hook, and the paragraph leaves the file
Lessons taken from any finished runWork that was never checked teaches the next sessionIn the design, facts are proposed when someone other than the author accepts the work

Limitations#

  • The shared store is empty. On 17 November 2026 it held no fact in any of the three workspaces. Until step M1 is done, the parts of this page that deliver kept facts deliver nothing.
  • Every proposal waits for a person. Review is one person's work today. Importing several hundred notes makes that the bottleneck, so M1 includes review in batches by scope and kind.
  • Reaktor cannot change a vendor's context. It cannot remove what an agent has already read, choose what a harness caches, or prevent a compaction. It can only add text and answer lookups.
  • The first request after a handoff pays for the frame in full. Nothing of one model's cache carries over to another model.
  • A note is a claim. The host checks what a session read, edited and ran. It cannot check what an agent says it believes.
  • Hooks differ by harness. The plugin's hooks run in Codex. The Claude Code checkouts use older hooks, and Antigravity has none installed, so recall at the start of a session reaches only Codex today.
  • What an agent used from a brief is not recorded. The size of each part of a brief is a guess until step M4.
  • Two fact models exist. The door's memory.search still answers from the older model, with its expiry after 30 days, while recall and linked facts use the newer one.

Reference#

  • Atlas and the door: BestBuds ../hangar/host (KernelMemory.kt adds linked facts to Atlas answers), and Kernel.
  • Facts: reaktor/reaktor-conductor, memory/: MemoryFact.kt (the fact, its scope, kind, status and provenance, and RecallFacts), MemoryStore.kt, MemoryRuntime.kt (recall), MemoryGraph.kt (freshness labels), MemoryExtractor.kt (lessons from a run), MemoryHarness.kt (import and export of vendor memory files), MemoryResources.kt. The older model is workspace/AgentMemory.kt and workspace/AgentMemoryStore.kt.
  • Hooks and the plugin: cli/AgentPluginBundle.kt (the plugin for each harness, with its hooks and skills), cli/AgentContextHook.kt (the inbox and recall at session start), cli/HangarWorkflow.kt (the plan-work, plan-review, plan-handoff and session-recall workflows).
  • Briefs: ContextPacket.kt, ContextCompiler.kt, workspace/TaskContext.kt, workspace/TaskContextAssembly.kt, workspace/SystemContext.kt, workspace/HybridHandoffs.kt.
  • The record: worklog/ (WorkLog.kt, ClaudeLog.kt, CodexLog.kt, AntigravityLog.kt), CheckReducers.kt, workspace/SourceCandidates.kt, workspace/WorkPlan.kt (completion reports and work logs).
  • Operations: memory.search, memory.read, memory.linked, memory.resources, memory.resource, memory.propose, memory.import, memory.review, memory.export, memory.remember, memory.forget.
  • Papers cited: Miller, "The magical number seven, plus or minus two", Psychological Review, 1956. Cowan, "The magical number 4 in short-term memory", Behavioral and Brain Sciences, 2001. Baddeley and Hitch, "Working memory", 1974. O'Reilly and Frank, "Making working memory work", Neural Computation, 2006. McClelland, McNaughton and O'Reilly, "Why there are complementary learning systems in the hippocampus and neocortex", Psychological Review, 1995. Buzsáki, "Hippocampal sharp wave-ripple", Hippocampus, 2015. Squire, "Memory systems of the brain", Neurobiology of Learning and Memory, 2004. Schultz, Dayan and Montague, "A neural substrate of prediction and reward", Science, 1997. Papamarcos and Patel, "A low-overhead coherence solution for multiprocessors with private cache memories", 1984. Denning, "The working set model for program behavior", Communications of the ACM, 1968.
  • Vendor documentation, read on 17 November 2026: Anthropic's page on thinking (each thinking block carries a signature, an encrypted copy of the reasoning that is passed back unchanged). OpenAI's guide to reasoning models (reasoning items carry encrypted_content when responses are not stored). Google's page on thought signatures (encrypted representations of the model's thought process). The Claude Code hooks reference and skills page.
  • Related pages: The agentic plane, Messaging and coordination primitives, Evidence and acceptance primitives, Teams, tiers and review, Reaktor work graph.