0. A PROMISE, AND THE ONE IDEA THAT MAKES IT INTERESTING
Most people imagine a neural network slowly shifting its weights when they hear that an agent "learns." Mercury Agent does something far more unusual, and once you see it, the whole design clicks into place: Mercury learns intensely and continuously, yet it never changes a single weight of the language model it talks to. Not one. The model stays frozen, anonymous, and replaceable. Everything Mercury remembers, distills, tunes, and improves lives outside the model—in plain tables, Markdown files, and configuration keys that a human can read, audit, correct, and roll back.
This is the red thread of the entire article, so it's worth stating plainly before anything else. Mercury's learning is non-parametric: it does not adjust the parameters of an LLM. Instead, it changes two things that sit around the LLM. It changes the context the model sees at the start of a run, and it changes the configuration that decides which model runs and how. Because both of those are data rather than opaque weights, every lesson Mercury draws is inspectable, every improvement is reversible, and every automatic change can be placed behind a policy and an approval. That single architectural decision turns a clever assistant into a colleague an administrator can actually trust with real credentials. Keep it in mind as we walk through the spectrum; each mechanism we meet is another way of editing context or editing configuration—never of editing the brain.
1. AN INTRODUCTION TO MERCURY AGENT 1.4.0
Mercury Agent (for open source code see Mercury GitHub repository) is a self-hosted, extensible agentic AI platform written in TypeScript and running on Node 22 or newer. "Agentic" is the operative word. A chatbot answers; an agent reasons in a loop, calls tools, remembers what it has done, reflects on the outcome, and acts again until a task is genuinely finished. "Self-hosted" means the whole thing runs on your own machine or server as a single Node process backed by a single SQLite database file; there is no hosted service in the middle, no data leaving your control by default, and your API keys stay in your own environment. "Extensible" means almost every moving part—from tools and reasoning patterns to language-model providers and messaging adapters—is a drop-in you can add without editing the core.
The detail that surprises newcomers, and the detail that matters most for this article, is that Mercury ships with no language model of its own. Before it can say a single useful word, you must point it at a real LLM—whether that's a cloud endpoint such as OpenAI, Anthropic, or an OpenAI-compatible gateway, or a local runtime such as Ollama or LM Studio. This is deliberate. You choose the brain, you own the bill, and you can run fully offline against a local model if you wish. It also means the brain is interchangeable at any moment, which is exactly why none of Mercury's learning is allowed to depend on a particular model's internals. The learning must survive you swapping the model out tomorrow, and so it is built from portable data rather than from fine-tuned weights.
Structurally, Mercury is a monorepo of seven packages arranged in a strict one-way dependency chain. The command-line interface and the HTTP server depend on a runtime package, which depends on the tools, the Model Context Protocol layer and the gateway, all of which depend on a single core package. The core depends only on a schema-validation library, a YAML parser, and the Node built-in modules, and it is where the interesting machinery lives: configuration, the database, authentication, the language-model abstraction and router, the optional decision engine, the agent loop and its reasoning patterns, memory, skills, workflows, the scheduler, security, and the subject of this article—the learning subsystems. The command-line tool, the web server, the gateway and the scheduler are all thin front-ends over the same runtime, which is why a slash command behaves identically whether you type it in the terminal, in the browser panel, or in a Telegram thread.
Version 1.4.0 is the release in which Mercury's learning story becomes a complete spectrum rather than a single feature. Earlier releases gave it post-run reflection and the first cross-run learning. The 1.2.0 release added skills that Mercury distills from its own successful runs and a deterministic replay that lets you travel back through any run. The 1.3.0 release added evaluation-driven self-improvement, where observed behavior becomes a scored regression suite that can drive a governed auto-tuner, together with sharable agent bundles that let one Mercury hand its learned state to another. The 1.4.0 release completes the picture by promoting memory itself into a governed, auditable long-term knowledge layer and by adding multi-agent teams that coordinate through a shared blackboard. Taken together, these form a layered learning architecture that spans timescales from milliseconds to months, and the rest of this article is a guided walk through every layer of it.
Before we descend into the layers, a simple mental picture of where learning sits in a single run will orient everything that follows. A run flows roughly like this, read from left to right:
user turn
|
v
build context <----( curated memory, semantic recall, skills index,
| experience hint, proven-skill plan hint, knowledge )
v
pick model <----( router + economics + auto-tuned routing )
|
v
reason + call tools (the agent loop)
|
v
answer
|
v
reflect + learn ----> ( lessons, user model, new skills, route stats,
failure playbooks, distilled skills )
Notice that learning appears twice. On the way in, past learning is consulted to shape the context and the model choice. On the way out, the finished run is mined for new learning. The loop closes on itself, and every arrow in it is an edit to context or configuration—never to the model's weights. That is the whole system in miniature.
2. A TAXONOMY WORTH HOLDING IN YOUR HEAD
It helps architects enormously to classify Mercury's learning before cataloging it, because the catalog is long, and the classification makes it memorable. Three axes do the job.
The first axis is timescale. Some learning happens inside a single run and is discarded when the run ends, such as the compression of the working context. Some happens at the boundary of a run—the moment it finishes—such as reflection and skill distillation. And some accumulates across many runs and persists indefinitely, such as the routing statistics, the failure playbooks, and the long-term memory. Thinking in timescales tells you where the cost lives and how quickly a change becomes visible.
The second axis is the substrate of the lesson, which is really the question: "If Mercury learned something, what file or table changed?" Sometimes the substrate is natural-language memory that is injected back into a prompt, such as a curated fact or a memory lesson. Sometimes it is a procedure—a reusable skill that encodes a sequence of tool calls. Sometimes it is a statistic—a counter that nudges a future decision such as which model to route a task to. And sometimes it is a configuration patch—an actual change to a tuning key. Each substrate has a different blast radius and a different review story.
The third axis is autonomy—the degree to which the lesson is applied without a human in the loop. Some learning is passive and always on, quietly recording evidence. Some proposes a change and waits for approval. And some—only when an administrator has explicitly opted in—applies a change automatically within strict guardrails. The default posture across the platform is conservative: the powerful, autonomous forms of learning are off until you turn them on, and when they are on, they refuse to touch anything a governance policy protects. We will see this posture repeated so often that it becomes a kind of refrain.
With those three axes in hand, the spectrum is easy to navigate. We will walk it from the shortest timescale to the longest, pausing at each station to explain the motivation, the mechanism, the way the lesson is leveraged on the next run, and the controls an administrator has over it.
3. WITHIN THE RUN: WORKING MEMORY AND THE ART OF FORGETTING WELL
The shortest-lived form of learning is the management of the agent's own working memory during a single conversation, and although it is the most ephemeral, it is also the one every user feels first. A language model can only attend to a bounded window of text. As a conversation grows, the transcript eventually threatens to overflow that window, and a naive agent either crashes into the limit or silently drops the oldest messages and loses the thread. Mercury instead learns—within the run—which parts of its own history still matter and which can be compressed into a summary.
The component responsible is the context compressor. On every iteration of the agent loop, it estimates the token footprint of the running message list and compares it against a configured fraction of the active model's context window. The fraction is the compression threshold, and its default is seventy-five percent, which means compaction begins well before the window is actually full so that there is always headroom for the model's reply. When the threshold is crossed, the system prompt is kept verbatim, the most recent handful of messages are kept verbatim, and everything in between is handed to the model to be rewritten as one compact summary message that takes their place. A subtle but important rule governs the cut: a tool call and its result are never separated, so the kept tail is rewound to begin at a clean user message rather than in the middle of a tool exchange. The number of recent messages preserved untouched is itself configurable.
The behavior is driven by a small, legible section of configuration. The values below are the defaults and exist to show the shape of the knobs rather than to be copied blindly:
agent:
compression:
threshold: 0.75 # start compacting at 75% of the model's context window
keepLast: 6 # keep the six most recent messages verbatim, always
A user who wants to force the behavior rather than wait for the threshold can do so from inside any chat with a single slash command, which is useful just before pasting a large document when you want to clear room deliberately:
/compress
Why call this learning at all, rather than mere housekeeping? Because the summary the model writes is a genuine act of distillation under a constraint: it must decide what from the last fifty exchanges is still load-bearing for the task and discard the rest without losing the plot. The result is a smaller, denser representation of the same knowledge, produced on the fly, and it directly shapes the quality of every subsequent turn in that conversation. It is learning on the scale of seconds, and it is thrown away when the run ends, which is precisely why it belongs at the near end of our timescale axis.
4. AT THE BOUNDARY OF THE RUN: REFLECTION, LESSONS AND A SELF THAT WRITES ITS OWN SKILLS
The moment a run finishes is the richest learning opportunity Mercury has, because the whole trajectory—every model call, tool call, decision, and guardrail verdict—is now complete and available as evidence. Reflection is the subsystem that mines that completed trajectory, and it is the one users ask about most, usually under two names that turn out to be the same system seen from different angles: "reflections" and "memory lessons."
The motivation is the oldest one in pedagogy. An actor that never reviews its own work repeats its own mistakes forever. Mercury therefore runs a post-task review after a run completes. The review is performed by the decision engine, which may be the optional typed decision model when it is configured, or your ordinary LLM, or—when neither is available—a safe built-in heuristic, so that reflection degrades gracefully rather than demanding extra infrastructure. The review produces up to three distinct artefacts, and understanding the difference between them dissolves most of the confusion around the feature.
The first artefact is a score—an answer-quality judgement of how well the run served its goal, gated by a confidence threshold that defaults to one half. The second artefact is a set of lessons, the "memory lessons" people ask about: short, durable, natural-language takeaways distilled from what went right or wrong, which are stored and then surfaced in later runs so that the same mistake is not made twice. The third artefact is an update to the user model—a refinement of the traits Mercury has inferred about the specific person it is working for. Each of the three can be switched on or off independently, and the whole subsystem has a single master switch:
reflection:
enabled: true # run the post-task review at all
lessons: true # store durable memory lessons for future runs
userModel: true # refine the inferred, per-user trait profile
A user influences this loop directly and cheaply. After any run, a single rating feeds straight into reflection as an explicit signal of success or failure, and the lessons and scores can later be browsed through the reflections panel in the web interface or read over the HTTP API:
/feedback good
/feedback bad
The most striking part of reflection is what happens when a run was not only successful but substantial. When a run reached its goal and used at least a configured minimum number of tool calls, with the default minimum being four, and automatic skill creation is enabled, reflection can turn the successful sequence of actions into a brand-new skill. Mercury, in other words, writes its own procedural memory. It observes that it just solved a class of problem through a particular dance of tools, generalizes that dance, and files it away so that next time the same class of problem can be solved by replaying a known-good procedure rather than by reasoning from scratch. It can also refine an existing skill with fresh success statistics rather than duplicating it. This is the point at which the second axis of our taxonomy—the substrate of the lesson—shifts from natural-language memory to executable procedure, and it is the hinge between this section and the next.
5. THE AGENT THAT DISTILLS ITS OWN PLAYBOOK: SELF-DISTILLING SKILLS
Reflection can create a skill as a side effect of review, but Mercury 1.4.0 also contains a dedicated, more rigorous engine whose entire job is to distill reusable, parameterized skills from winning runs. It lives in its own module and is worth treating separately, because it embodies the governance refrain more clearly than almost anything else in the platform.
A skill in Mercury is a procedure written in the open agentskills.io format: a Markdown file with a little frontmatter naming the skill and describing when it applies, followed by the body of the procedure. Progressive disclosure keeps these cheap. Only the index—the name and the one-line description—sits in the system prompt, so an agent can carry hundreds of skills without bloating its context; the full body is loaded on demand only when a skill is actually invoked. The distiller's contribution is to manufacture such skills automatically from experience.
The mechanism is careful. The distiller subscribes to the event bus and wakes on two signals: a run that ended in success, and a run that received an explicit positive rating. When it wakes, it reads that run's sequence of tool calls and generalizes the concrete argument values into named parameters, so that a run which happened to summarize one particular PDF becomes a skill for summarizing any PDF. The product is a candidate skill carrying a trigger phrase, a parameter list, an ordered set of steps, and a record of which runs it was distilled from. Crucially, the whole engine is off at its master switch by default; until an administrator enables it, nothing is distilled, matched, or recorded at all.
skills:
distill:
enabled: false # master switch; nothing happens until true
autoApprove: false # candidates stay "pending" until a human approves
minToolCalls: 4 # a winning run needs at least this many tool calls
dedupMinSimilarity: 0.8 # near-identical triggers update, not duplicate
matchMinSimilarity: 0.6 # how close a new task must be to reuse a skill
retireBelowSuccessRate: 0.5 # demote a skill that stops working
minRunsBeforeRetire: 5 # but only after enough evidence
maxSkills: 200 # cap retention; oldest retired pruned first
Several of these keys tell a story about evidence and humility rather than about mechanics, and it is worth reading them as a policy. Because a candidate lands with a pending status and is inert until approved, a newly distilled skill cannot influence any run until a human has blessed it—unless the administrator has deliberately switched on automatic approval. Because a trigger that is very similar to an existing skill updates that skill and bumps its version rather than inserting a near-duplicate, the library stays clean as experience accumulates. And because every use of an approved skill updates counters for uses, successes, failures, and cost, a skill that looked good when it was born but that quietly stops working in the field will see its observed success rate fall, and once it has enough runs behind it and drops below the retirement threshold, it is auto-retired. The agent is thus not only writing its own playbook but also pruning the plays that no longer win.
The payoff arrives on the next matching task. When a new request comes in, Mercury looks for an approved distilled skill whose trigger is similar enough to the request, and if it finds one, it injects the proven path into the system prompt as a strong plan hint, effectively telling itself: "You have solved this exact kind of thing before, and here is the procedure that worked." The agent then executes a known-good sequence instead of rediscovering it, which is faster, cheaper, and more reliable. This is procedural memory functioning exactly as it does in a skilled human: the first time is deliberate and slow, and every time afterwards is fluent.
6. ACROSS MANY RUNS: THE LEARNING SERVICE
We now cross from the boundary of a single run to the accumulation of evidence across the whole history of runs, which is where Mercury's cross-run learning service lives. It is driven entirely by the real runs table and the event bus, with no external state and no separate training job, and like the distiller, it is off at its master switch by default so that nothing is recorded, injected, or adjusted until an administrator opts in. It performs three independent kinds of learning, each separately toggleable, and together they form the backbone of Mercury getting better at its job over time.
learning:
enabled: true # master switch (default false)
hints:
enabled: true
maxExamples: 3 # example values shown to convey the shape
minSimilarity: 0.3
lookback: 200
routing:
minSamples: 20 # need this many observations before trusting a model
minSuccessRate: 0.8 # and this observed success rate before preferring it
playbooks:
enabled: true
minOccurrences: 3
minSimilarity: 0.4
The first kind is experience hints. When a new task arrives, the service searches the history for the most similar past run that actually succeeded, using a cheap token-overlap similarity so that the lookup costs almost nothing, and from the best matches it distills a short natural-language hint that is injected into the run's starting context. Conceptually, the agent does this to itself at the top of a run:
// Look for the closest past SUCCESSFUL run and, if one exists, fold its
// lesson into the system prompt before the model ever sees the task.
const hint = learning.hintFor(task, userId);
if (hint) {
systemPrompt += "\n\nLearned from past runs:\n" + hint;
}
The honesty of this design is in the "if." When no sufficiently similar successful run exists, there is simply no hint, and the agent proceeds unaided rather than being handed an irrelevant and possibly misleading example. Learning here is strictly additive and strictly earned.
The second kind is auto-tuned routing, and it is the clearest example in the platform of learning expressed as a statistic that steers a decision. Every finished run updates a small table keyed by a pair: the difficulty bucket that the task was judged to fall into, and the model that handled it. For each pair, the table tracks how many runs there were, how many succeeded, and how much they cost in money and tokens. The router, which ordinarily chooses a model from rules, capabilities, and a cost-quality-latency score, exposes an optional seam through which this accumulated evidence can override its first choice. Conceptually, the seam is this tiny interface:
// A RouteLearner lets observed outcomes override the router's first pick,
// but only once enough evidence has accumulated to justify it.
interface RouteLearner {
// Return the model with the best observed success rate for this
// difficulty bucket, or null to leave the router's own choice intact.
suggest(bucket: string, candidates: string[]): string | null;
}
The guardrails are everything. The learner returns a suggestion only once a bucket has cleared a minimum number of samples and a minimum observed success rate, with ties broken in favor of the cheaper model; until then, it returns nothing and the router keeps its own economics-driven choice. When the learner does override, the resulting routing decision is flagged as adjusted by learning, so the change is never silent and always traceable. Over weeks of operation, this quietly moves routine work onto whichever model has proven cheapest-yet-reliable for that class of task, and reserves the expensive models for the buckets that genuinely need them—all without anyone hand-tuning a routing table.
The third kind is failure playbooks, which is institutional memory for things that go wrong. When a run fails, its error is normalized into a stable signature by stripping out the volatile parts—the identifiers, numbers, quoted paths, and hex strings—so that a thousand superficially different failures collapse into a handful of recurring shapes. When a later, similar task eventually succeeds, what worked is recorded as the remediation for that signature. Thereafter, when a task matches a known failure signature or a run trips over a known error, Mercury can surface the remediation that resolved it last time. The failure, in other words, is only suffered properly once; afterwards, it becomes advice.
Every part of this is readable from outside, which matters as much as the learning itself. An administrator can inspect the accumulated statistics, ask what hint a given task would receive, and review the playbooks—all from the command line or the HTTP API—and a dedicated panel in the web interface renders the status, the routing table, and the playbooks for a human to audit:
mercury learn stats
mercury learn hints "summarise a quarterly PDF and email the team"
mercury learn playbooks
One design principle deserves emphasis because it recurs throughout the platform: learning must never break a run. Every piece of recording is wrapped so that a failure in the learning machinery is swallowed rather than allowed to derail the actual work. The agent's job comes first; getting better at it is a strictly secondary activity that is never permitted to get in the way.
7. THE LONG MEMORY: SIX KINDS, NOW GOVERNED
If the learning service is how Mercury improves its behavior, memory is how it retains knowledge, and Mercury does not have "a memory" in the singular; it has six, each with a different job and all scoped per user. The working memory we met in section three is the first and shortest. The second is episodic memory—the full searchable history of past sessions stored with a full-text index so that any earlier conversation can be found and summarized. The third is semantic memory—a store of discrete facts that can be remembered, recalled by meaning, and forgotten on request, backed by both full-text search and a vector index. The fourth is curated memory—two small hand-editable Markdown files per user. The fifth is procedural memory—the skills we have already discussed. And the sixth is the user model together with a shared blackboard that multi-agent runs coordinate through.
The two curated files repay a closer look because they are the most human part of the whole system. One file holds facts the agent should always know, such as your timezone, your stack, and your standing preferences; the other holds what Mercury has inferred about you over time. Both are deliberately small, bounded by character limits of roughly a couple of thousand characters and a bit over a thousand characters respectively, and the smallness is the point: curated memory is injected into every prompt, so it must stay high-signal, and the bound forces a constant, healthy triage of what truly deserves to be always-on. You can edit these files by hand, through a slash command, or through the web panel, which means a human can correct the agent's self-updated understanding directly—a property that pure weight-based learning can never offer.
Semantic facts behave in the way a user intuitively expects of memory, and the natural-language interface hides the machinery:
remember that our staging database host is db-stage.internal
what is our staging database host?
forget the staging database detail
The embeddings that give recall its sense of meaning are themselves pluggable. The default provider is a deterministic hash-based embedding that needs no API key and no network, which keeps a fresh install working entirely offline, while an administrator who wants true semantic similarity can switch to a real embeddings provider. This is the same philosophy as the replaceable brain: a sensible, zero-configuration default that works today, and a clean upgrade path when you want more.
The headline memory advance in 1.4.0 is that this whole subsystem is lifted into a governed, auditable knowledge layer, while every existing call keeps working unchanged because governance is soft or off by default. Three capabilities arrive together. The first is governance proper: before a fact is written or read, it can be routed through policy, scanned for personally identifiable information such as email addresses, card numbers, national identifiers, IP addresses, and phone numbers, and then either redacted or blocked according to configuration, with every decision—whether allow, deny, or redact—recorded to an audit ledger and to the global audit bus. Conceptually, the write path looks like this, and the comment is the whole point of it:
// Governance runs BEFORE a fact is persisted. Detect PII, then redact or
// block per policy, and only the clean text is ever written to storage.
const { redacted, matches } = scanPii(rawFact);
if (matches.length > 0 && policy === "block") {
throw new Error("fact rejected: contains PII");
}
store.remember(redacted, { namespace }); // only the clean text persists
The second capability is structure and hygiene. Facts now carry a namespace dimension on top of their per-user scope, so knowledge can be partitioned by project or domain, and a retention policy can prune by age or by a maximum number of items per namespace so that memory does not grow without bound. The third capability is retrieval-augmented knowledge. Whole documents can be ingested by splitting them into overlapping chunks, embedding each chunk, and storing it with its source, after which a hybrid of full-text and vector search recalls the most relevant chunks together with their provenance, so that an answer grounded in your documents can cite where it came from. The ingestion half of that is as simple as this in spirit:
// Ingestion: split a document into overlapping chunks and store each one
// with its source, so later recall can prove where an answer came from.
for (const chunk of chunkText(document, { size: 800, overlap: 100 })) {
await knowledge.add(chunk, { source: path, embed: embeddings });
}
When knowledge is enabled, it quietly grounds the context-building step of every run, which closes a loop that the earlier sections opened: the same context that is shaped by experience hints and proven-skill plan hints is now also shaped by grounded, cited knowledge drawn from your own corpus. All of it is reachable from the command line and the HTTP interface, and a memory-and-knowledge panel renders it for inspection, with the audit log being a first-class, queryable object rather than a hidden side effect:
mercury memory remember "we deploy on Tuesdays, never on Fridays"
mercury memory ns # list the namespaces in use
mercury memory knowledge add ./runbooks/tls-rotation.md
mercury memory knowledge search "how do we rotate TLS certificates?"
mercury memory audit # read the governance decision ledger
The governance story is the clearest proof of the article's thesis. Because every remembered fact is text in a table rather than a weight in a network, it can be scanned, redacted, namespaced, expired, audited, and deleted. None of those verbs has any meaning for a fine-tuned weight. Mercury's choice to learn into data rather than into parameters is exactly what makes a compliant, forgettable, explainable memory possible at all.
8. CLOSING THE LOOP WITH EVIDENCE: EVALUATION-DRIVEN SELF-IMPROVEMENT
Everything so far improves Mercury's inputs, its context, and its model choice. The evaluation subsystem goes one step further and lets Mercury improve its own configuration, under tight governance, on the strength of measured evidence. It is the most autonomous form of learning in the platform and therefore the most carefully fenced. The scoring harness itself is on by default because measuring is harmless, but the auto-tuner that can act on those measurements is off by default because acting is not.
The loop begins by turning real behavior into a test. Any real run, or any run a user rated positively, can be promoted into a labeled evaluation case that captures the input along with the tools the run used, the substrings its output contained, and the cost it incurred, and cases are grouped into suites. These are not synthetic benchmarks; they are the agent's own good days, frozen so that tomorrow's changes can be checked against them.
Scoring is deterministic and pure. Running a suite executes every case through an ephemeral, non-reflecting agent run and scores each one against clear criteria: a case passes when the run did not error, used all the tools the reference run used, produced all the expected substrings, and stayed within the cost ceiling, while a similarity measure compares the new output to the reference. The per-case results are then combined into a single number between zero and one that blends the pass rate, the cost per task, the intervention rate, and the output similarity according to configurable weights, and that number is persisted over time so that quality becomes a trend you can watch rather than a feeling you argue about.
evals:
enabled: true # the scoring harness runs by default
costCeiling: 0.02 # per-task cost ceiling, in your currency unit
autotune:
enabled: false # governed auto-tuning is OFF by default
autoApply: false # even when enabled, propose rather than apply
minImprovement: 0.05 # accept a change only if it beats the suite by >=5%
The auto-tuner is where learning becomes a configuration patch, and the gate it must pass through is strict in three independent ways. A proposal might change model routing, a reasoning pattern, a temperature, the promotion or retirement of a skill, or a prompt, and before any of that can take effect, it is measured against the suite. The first gate is governance: any proposal that would touch a protected area of configuration—the security settings, the governance settings, the approvals, or the policies—is rejected outright, so the tuner can never widen its own powers. The second gate is cost: a proposal whose cost per task would exceed the ceiling is rejected regardless of how much it improves quality. The third gate is merit: a proposal is accepted only if it improves the aggregate score by at least the configured minimum margin. Even after passing all three, a proposal is applied automatically only when both the auto-tuning switch and the auto-apply switch are on; otherwise, it is simply returned for a human to review.
The final safeguard is that every applied change is versioned and reversible. When a tune is applied, the previous values are captured and written into a versioned record, and a single operation restores those captured values and marks the record reverted, idempotently. An administrator who arrives on Monday to find that the agent tuned itself over the weekend can read exactly what changed, see the evidence that justified it, and undo it completely with one command if they disagree. This is self-improvement that an auditor can live with, and it is only possible because the thing being improved is legible configuration rather than an inscrutable weight update.
9. CARRYING LEARNING ELSEWHERE: AGENT BUNDLES
A lesson that cannot leave the machine it was learned on is of limited value to an organization. Because all of Mercury's learning is data, it can be packaged, and the agent-bundles subsystem does exactly that. A bundle is a signed, portable package of an agent's configuration and learned assets—its skills, its tuned settings, and the rest of the state that makes one Mercury behave like a seasoned specialist—which can be exported, downloaded, carried to another installation, and installed there. One team can train a research assistant or a support triage agent through weeks of real use and reflection, and then hand that accumulated competence to another team as a single artefact rather than as a wiki page of instructions to be re-implemented by hand. This portability is a direct dividend of the non-parametric design: you cannot easily extract and transplant "the part of a fine-tuned model that got good at your runbooks," but you can absolutely zip up a folder of skills, facts, and configuration and sign it.
10. A DIFFERENT SHAPE OF KNOWLEDGE: THE LLM WIKI
One further learning activity rounds out the spectrum and deserves honest framing. Mercury contains an ingestion-time knowledge base inspired by the "LLM wiki" pattern, in which raw sources are stored immutably, the model synthesizes and continually updates a set of cross-linked pages from them, and an index ties the whole thing together, with support for detecting contradictions and for linting recently changed pages. It is a complement to the retrieval-augmented knowledge of section seven: where that layer chunks and retrieves documents close to their original form, the wiki actively rewrites many sources into a coherent, navigable body of synthesized knowledge. Honesty requires noting what the project itself notes: that the synthesis, query, and contradiction-detection quality of the wiki has been exercised against a test-local fake rather than validated against a real language model, so an architect should treat it as a promising mechanism to evaluate rather than as a proven, battle-tested path. The platform's own status documentation is the authority on exactly which subsystems have and have not been validated end to end, and it is the right place to check before depending on any single capability in production.
11. HOW THE LAYERS COOPERATE: ONE TASK, SEEN THROUGH THE LEARNING LENS
To see the spectrum working as a single organism rather than as ten separate features, follow one realistic task through it. An administrator asks Mercury, for the fifth time this quarter, to pull a vendor's PDF invoice, extract the totals, reconcile them against a ledger, and email a summary to finance.
As the run begins, several forms of past learning converge on the context before the model emits a token. Curated memory reminds the agent of the finance distribution list and the house rule never to send external email without approval. The learning service finds the four earlier successful invoice runs and folds a short hint drawn from them into the prompt. The distiller recognizes the request as matching an approved, proven skill and injects the known-good procedure as a strong plan hint. If grounded knowledge is enabled, the relevant lines of the reconciliation runbook are retrieved with their provenance. Meanwhile, the router, consulting the routing statistics for this difficulty bucket, quietly selects the model that has handled invoice reconciliation most reliably and most cheaply over the preceding months. None of this required a human this morning; all of it was learned on earlier mornings and is being spent now.
The run then executes, and because so much proven context was front-loaded, it tends to proceed fluently rather than exploratorily. When it finishes, the second half of the loop engages. Reflection scores the outcome and, if the user rates it well, may refine the invoice skill with fresh success statistics. The learning service updates the routing table for this bucket and, if anything went wrong and was later resolved, records a remediation in the failure playbooks. If evaluation is configured, this very run can be promoted into a case so that future changes to the agent are measured against the standard this run just set. The organism has consumed its past learning and produced new learning, and the model at the centre of it all is exactly as it was before: unchanged, replaceable, and none the wiser, while the data around it grew measurably smarter.
12. WHAT THIS MEANS FOR YOU, BY ROLE
For a developer, the practical consequence is that you extend Mercury's intelligence mostly by shaping data and honouring seams rather than by training anything. You can author skills in a documented Markdown format, let the distiller propose more, and reach every learning signal through a clean facade and a REST surface, which makes the learning observable from your own tooling and testable without a GPU in sight. The interfaces that matter—the route-learner seam, the memory facade, the evaluation store—are small and typed, and the whole system is designed so that a failure in any learning path is swallowed rather than allowed to break the run you actually care about.
For an administrator, the governance refrain is the headline. The powerful, autonomous forms of learning—cross-run learning, skill distillation, and auto-tuning—are off until you deliberately enable them, and even when enabled, they refuse to touch protected configuration, respect cost ceilings, require a margin of proven improvement before acting, and record everything they do in a ledger you can read and a history you can revert. Memory can scan for and redact sensitive data, partition knowledge into namespaces, expire it on a schedule, and prove every decision after the fact. You are never asked to trust a black box; you are given a set of switches, a cost meter, an audit log, and an undo button.
For an architect, the lesson is the thesis we began with, now earned rather than merely asserted. By refusing to encode learning in model weights and insisting instead that every lesson
