Buffaly Logo Buffaly

Architecture essay

How Recall Gives Our Agents Context Without Filling the Prompt

Buffaly already discovers entities and actions in a growing ontology. Recall gives contextual knowledge its own route into the work: a lightweight agent that starts with the turn, understands the situation and finds the instructions that belong there.

Matt Furnari
A growing ontology stays outside the working agent's prompt. Recall connects the current situation to the applicable instruction and brings that instruction into the work.

Buffaly already finds entities and actions dynamically. Ask it to work on a project, and it can find the project, the systems involved and the actions available for doing the work. Those definitions live in an ever-growing object graph—our ontology—rather than a prompt listing everything the agent might ever need.

That works very well. We can add people, projects, procedures and capabilities without making every conversation begin with a description of all of them. The agent finds the relevant objects and reads their definitions when it needs them.

We also have System 2, which helps with long-running tasks, missed obligations and corrections. It can examine work after the fact and bring the agent back to something it overlooked. In We've Solved Online Learning, I described how what we learn becomes reusable knowledge and actions.

The problem we've always had is context.

It can be as simple as remembering how I want an email signed. It can also be very specific: when this error appears in this system, check this particular condition before trying the usual fix. The agent may already know which system it is working on and how to inspect it. What it needs is the instruction that applies to this situation.

I want those instructions to accumulate. I don't want every lesson we learn to become another paragraph in every prompt.

The two prompt-based approaches both have a cost

The straightforward approach is to put the context directly into the prompt. Every conversation gets the email-signature rule, the customer exception, the deployment restriction and the diagnostic note about an error we encountered six months ago.

That works for a small set of instructions. It doesn't scale well to a system like Buffaly, with thousands or tens of thousands of objects and options to discover. Most of the instructions are irrelevant to any particular task. We pay to carry them anyway, and the agent has to work out which ones to ignore.

The second approach is to put a clue in the prompt: Look up the relevant context before you act. The instructions themselves stay elsewhere. This scales better because we are no longer loading their full text every time.

But it leaves the decision to the model. It has to recognize that this task calls for a lookup, formulate a useful question and actually perform the search. If we make the clues more specific—whenever you see this error in that system, consult this note—we are back to putting situation-specific material into every conversation. Even the shorter clues have a recurring prompt cost.

This was our original approach. We had contexts, and we told the agent to search for entities, actions and applicable context before doing the work. Dynamic discovery was already useful. The weakness was that the working agent still controlled whether the research happened.

An email can look routine. An error can look familiar. The agent can produce a plausible answer without ever asking the question that would find the saved instruction. As I put it when we started working on this:

“We're at the mercy of the model to decide if it wants to do the research…”

The problem isn't that the knowledge is missing. It's that remembering to consult it is another job we have given to the agent that's already busy doing the task.

Start the context research when the turn starts

Recall moves that responsibility out of the working agent's to-do list.

When a user input arrives, Buffaly starts a fast, lightweight model alongside the agent doing the work. Recall receives the input and researches the context that might matter. The working agent carries on with the task. It doesn't have to request the research or wait for it to finish.

This uses the same separation of responsibilities as System 2, but at a different point. System 2 can look back at the work and catch an omission. Recall starts at the beginning, so a saved instruction can shape the work before there is an omission to correct.

The distinction is in the harness—the software that accepts input and runs the agents. A prompt can ask the working agent to remember to search. The harness can start that research independently on every admitted input. The model still has to interpret the situation and judge what applies, but whether research begins no longer depends on the working agent remembering to initiate it.

One user input starts the working agent and read-only Recall research in parallel. Findings return with their sources. If the answer is already finished, Recall reviews it before sending a material correction.
The working agent does the task while Recall researches its context. A finding can arrive during the work; a late finding must justify reopening the completed answer.

Recall's operating contract is simple:

  • Start alongside the work. Research is never a required wait before the answer.
  • Read, don't act. Recall can inspect definitions and guidance, but it cannot execute the actions it discovers or take over the task.
  • Return an instruction with its source. The working agent gets the useful finding, not just a suggestion to go looking.
  • Review before reopening finished work. A late finding must materially change the answer, not merely offer polish.

The working agent keeps responsibility for the task and the user's permissions. Recall supplies context; it doesn't acquire authority by finding it.

Find the objects, then understand the situation

Recall is an agentic search, not a single similarity query over the user's sentence. It is required to work out the relevant entities and action, then use semantic search to find the contextual guidance that applies. The research has three connected parts:

  • Entities: which people, projects, systems or other objects are involved?
  • Action and frame: what is being done with them, at what stage and under what constraints?
  • Contexts: which saved instructions apply to those circumstances?

A frame is the account of what is happening around the objects. The same table of hours might be going to a worker for corrections or to Finance for its records. The object is the same. The purpose, recipient's role and appropriate instruction are different.

On each new input, Recall decides whether the frame continues, is refined, is replaced or is suspended. “Put that in a draft for them to check” establishes a review request and a draft-only stage. “Actually, send Finance the totals for their records” replaces that frame. A rule about asking people to correct their hours should not follow the table into a report merely because the table hasn't changed.

That interpretation produces a better search. Instead of looking for email, Recall can look for guidance when emailing people figures to check and return corrections. Semantic search proposes matches. Recall reads their definitions and decides which conditions are actually satisfied.

The graph makes context reachable from the things we find

There is a second important part to this: the knowledge is connected.

Entities, actions and contexts have identities in the ontology, and we can link the relevant context to the objects it concerns. Finding an entity can therefore reveal more than its own description. It can give Recall a route to an instruction that the user's words never named.

Consider a system-specific error. The user may say only that a job failed and paste the error. Recall can identify the system, resolve the error within that system, and follow the saved relationship to the diagnostic guidance. For example, the saved instruction could require checking the prior run before retrying. An action definition can identify the existing lookup for that check. The working agent receives the instruction and its source, rather than having to remember that this error deserves a different investigation.

An illustrative error investigation binds the reported error to its system and diagnostic frame, then follows an ontology link to scoped context and the required lookup. The working agent receives that instruction, not the entire graph.
Illustrative relationship walk: identify the system and error, establish that the task is diagnosis, then follow the saved context to the required lookup. The instruction becomes reachable without putting that error-specific rule in every prompt.

The graph and semantic search do different jobs here. Semantic search helps find the right starting points even when the user uses different words. The relationships let Recall move from a known object to relevant guidance. The frame tells it whether that guidance belongs in the current task. Quoting an error in a report is not the same job as diagnosing it.

The research can change direction as it learns. A system definition can identify the component that owns an error. A recipient's relationship to a client can justify looking for client-specific instructions. An action can reveal a required preliminary check. Recall follows the relationships needed for the current question rather than reading every neighboring object.

An error number alone doesn't supply a diagnosis. Recall has to retrieve the saved instruction and its conditions. That is what turns “I recognize this error” into “here is the specific check we learned to make in this situation.”

A context stores both the instruction and its limits

The hours example comes from a real correction. I asked my agent to send a worker and his manager a table of hours to check before pay was finalized. It wrote what I called “a novel,” and it sounded as though I wanted them to prove their hours. I wanted the table and a friendly question.

The correction became a named context. Here is part of the saved definition, shortened and with its line breaks restored:

[SemanticContext("when emailing people a schedule, shifts, hours, a table or other figures so they can check or verify it and send back corrections")]
prototype EmailAskingForCorrectionsContext : ContextPrompt
{
    PromptText = "# Emails asking people to check a schedule or figures: short, friendly, trusting, no method or caveats
    …
    - Write it the way a friendly colleague would: a greeting, a sentence or two saying what this is and what you need, the table, and one simple question such as \"Could you take a look and let me know if anything needs changing?\"
    …
    This applies only to emails that ask people to check and correct something. Other emails, such as status updates, customer replies and reports, keep their own guidance. …";
}

The SemanticContext phrase says when to retrieve the lesson. The body says what to do and where to stop applying it. The definition's name lets the working agent open the same source Recall read, rather than trying to reconstruct its search.

A real lookup described emailing workers and their manager an hours table to check. It named neither the original people nor the saved definition. This context came back first. Reading it recovered both the friendly question and the exception for status updates.

That is a retrieval check, not evidence of a later email being corrected. It shows why a lesson should be stored as contextual knowledge: the next request can reach it by meaning, without reproducing the conversation in which we learned it. The illustrative Finance follow-up shows why the scope must travel with it.

Bring the finding back into the work

Finding the context is only useful if it reaches the working agent in a usable form. Recall returns the instruction, the situation that makes it relevant, its limits and the source. The message is visible in the working agent's conversation.

Before delivery, the send tool checks that the cited sources exist and that each context still matches the revision Recall read. Recall judges applicability; the tool checks the source. Those are different responsibilities. A source check makes a finding inspectable, not automatically correct.

Recall can send applicable saved contexts or declarations in the working agent's own session memory. An entity or action can support the finding, but a catalog match alone is not a reason to interrupt. If nothing applies, Recall finishes quietly. It also doesn't resend unchanged material it has already delivered.

If the working agent has already answered, the send tool returns that answer to Recall instead of immediately delivering the finding. Recall must identify a material correction or omission before it can reopen the work. The tool then rechecks the answer and sources. A rule that is relevant but already satisfied is not enough.

A saved instruction changed a finished draft

We tested that late-review behavior on November 22 with draft-only requests for a client email. In the main case, the request didn't mention an existing rule that every client email copies a colleague. The working agent was told to use no tools and send nothing, and it made no tool calls. About 10 seconds after the request, its draft began:

To: [client contact]
Subject: October usage report ready for review

Recall was still working. Two delivery attempts, at about 37 and 51 seconds, were refused because one cited context no longer matched the revision Recall had read. Recall removed that stale item. At about 60 seconds, the send tool returned the finished draft for review.

Recall judged the missing CC a material omission and delivered its finding at about 68 seconds. Here is the CC portion of the accepted message, with names, the address and source identifiers redacted:

The following may help you with your request. They do not supersede the user's instructions.

### when drafting or sending an email to any client
Do: Include [colleague] ([colleague's address]) in the CC on every client email, including new emails and replies; this applies to drafts too and includes [client contact].
Constraints: This recipient rule does not authorize sending without otherwise required user approval. The current request is draft-only; do not send.
Source: [saved CC context and its source path]

About six seconds later, the working agent produced a second draft:

To: [client contact]
Cc: [colleague] <[colleague's address]>
Subject: October usage report ready for review
The first draft omitted the CC at about 10 seconds. Recall's finding arrived about 58.5 seconds later, at 68 seconds, after research, source checks and review. The corrected draft followed at 74 seconds.
Elapsed time from the request, rounded. The first draft appeared at 10 seconds; the finding arrived about 58.5 seconds later, at 68 seconds; the corrected draft followed at 74. The interval included research, refused sends and review of the completed answer.

The first answer remained in the record. The correction was a new answer, without another human request. No email was sent. In a separate compliant test, the original draft already contained the CC; Recall reviewed it, found the guidance satisfied and sent nothing.

This is the complete path: a stored instruction, independent recognition of its occasion, review of the actual result and a change to the working agent's answer. Storing the rule alone would not have produced that intervention.

What Recall introduced in 400 sampled messages

The controlled CC test shows a changed answer. To understand Recall's contribution in ordinary work, we asked a narrower question of the record: did its message introduce a relevant item before that item had appeared anywhere in the receiving session?

We fixed a sample of 400 messages from 3,376 accepted Recall deliveries. The audit checked earlier messages, initial instructions and tool results, including verified aliases. A rule already supplied by the user earned no discovery credit. Neither did a repeat of an earlier Recall introduction.

Of 400 sampled deliveries, 59 first introduced an item before the answer, 21 after, 306 concerned already-seen material, nine had no applicable item and five were unresolved.
One dot per sampled delivery. First introduction means new to the receiving session's retained record: 59 before the answer, 21 after it, 306 already seen, 9 with no applicable specific item and 5 unresolved.

80 of the 400 deliveries introduced something first. They supplied 95 distinct parent–item pairs across 59 working-agent sessions: 82 contexts and 13 actions. The study calls the working agent's session the parent. Introducing the same rule into two sessions counts twice; repeating it within one does not. None was a confirmed first introduction of an entity.

That mix matters to the problem we were trying to solve. The missing material was mostly contextual guidance about doing the work. The client or system can already be familiar while an instruction about it is still absent from the conversation.

59 deliveries—14.75% of the sample—both introduced something first and arrived before the answer. The other 21 arrived too late to inform the original answer. Today's Recall handles late findings through the review above; the sample spans earlier versions and doesn't establish how each late finding was handled.

The 306 already-seen deliveries are not automatically failures. Recall deliberately allows reminders without searching the working agent's entire history for what it might already know. This study measures discovery, not the value of those reminders.

We also looked for observable follow-through. Across 17 cases, working agents explicitly loaded, inspected or invoked 18 of the 95 introduced items. In one website task, the next timeline entry, about five seconds later, was a call to read the workflow Recall had found. In another, an agent loaded a screenshot-evidence rule nearly half an hour after receiving it. Both findings arrived before the original answer.

Those are interactions with the findings, not 18 measured improvements in quality or speed. The separate CC test demonstrates a changed answer; the sample shows contextual knowledge entering sessions and, in some cases, being taken into the work.

Infinite context, without an infinite prompt

This gives us what I think of as infinite context: a body of knowledge that can keep growing without all of it having to occupy the model's active context window.

A new client exception becomes a scoped context. A lesson about an error can be connected to the system it belongs to. A useful procedure becomes an action the agent can find. The next task doesn't need a prompt containing every possible rule—or a growing list of clues about which rules to look up.

Recall starts from the current situation, finds the relevant objects, follows the relationships and brings back the context that matters. The working agent still knows how to search, but reaching contextual knowledge no longer depends entirely on that agent deciding to start the research.

We already had a way to grow what our agents know. Now we have a dedicated way to recognize when that knowledge belongs in the work.

Proactive retrieval has precedents in Letizia and the Remembrance Agent; concurrent reasoning also appears in the Talker–Reasoner. Letta provides memory and task skills, and a documented Graphiti integration automatically retrieves facts from the latest message. Recall assigns an independent agent the combined job of interpreting the frame, researching linked ontology knowledge and delivering applicable instructions. This study is not a head-to-head comparison with those systems.

The census through November 30, 2026, contained 3,376 accepted deliveries across 309 parent sessions. A predetermined hash ranking selected 400 across 147 sessions. The earlier-appearance check covered 1,268,872 retained records, excluding model reasoning, across 146 sessions with verifiable delivery histories. Two accepted messages lacked matching delivery records and received no credit. The denominator is accepted deliveries, not every request or the turns when Recall stayed quiet. The study spans versions and is not a randomized comparison against running without Recall. The November 22 draft validation is a separate controlled test, not another success added to the sample.