← All Posts

Post-training without the training: Welcome to Exosomatic Learning

Published on

Exosomatic learning title beside a rounded six-cell table of tool icons, a hammer, a book, code braces, a mouse, a check mark and a plus sign, for the tools that hold the knowledge of an AI agent

For a long time, we tried to teach our agent through prompts.

Every failure meant another instruction, another caveat, another “make sure you…”. It was whack-a-mole. Fix one behavior in the prompt and another breaks. The prompt grows, the model follows some of it, and you never quite know which part.

So at Klarent, we stopped relying on the prompt. We started evolving the tools instead.

From prompt fixes to evolving the agent’s tools

Our agent works through a set of built-in functions. Every time the agent fails, the failure gets analyzed: what knowledge was missing? That knowledge goes into the function, not the prompt.

And no, we don’t do this by hand. We use AI to analyze the failures and rewrite the functions.

Two ways to handle an AI agent failure: teaching through prompts adds another instruction to a growing prompt the model may or may not follow, while Exosomatic Learning uses AI to find the missing knowledge and rewrite the agent’s function, with the model weights never changing The lesson from a failure goes into the function, not the prompt.

Why scrolling is harder than it looks

Take scrolling. It sounds simple. It isn’t. Pages scroll inside nested containers, content loads as you move, elements sit just off-screen.

Instead of adding another line to the prompt each time the agent gets it wrong, the lesson goes into our scrolling function. The agent doesn’t need to know any of that, because the function already does.

Exosomatic Learning: knowledge that lives outside the model

The model’s weights never change. But the system gets smarter with every failure, because the knowledge lives in the code around the model, not inside it.

Karl Popper had a word for this. Humans, he argued, evolve exosomatically: outside the body, through the tools we build. A hammer extends the arm. A book extends memory.

We call our version Exosomatic Learning.

A prompt is a suggestion the model may or may not follow. A function is a guarantee. It’s memory by design, not memory by recall.

What Exosomatic Learning gives enterprise teams

This architecture unlocks benefits for enterprise that traditional fine-tuning or prompt engineering can’t touch.

  • Customer-specific isolation. We can evolve functions based strictly on one customer’s unique edge cases, without cross-contaminating that hard-won knowledge across accounts.
  • True data portability. Because the lessons are encoded in discrete functions rather than baked into a proprietary LLM’s weights, the knowledge belongs to the customer. If they leave, they can take it with them.
  • Zero token bloat. Passing a 5,000-word prompt of rules on every API call is expensive and slow. Functions keep the context window clean, reducing latency and costs.
  • Unit-testable reliability. You can’t write a reliable unit test for a massive prompt. You can write a unit test for a function. We replace probabilistic hope with deterministic code.
  • Model agnosticism. When your agent’s knowledge lives in the surrounding code, swapping models becomes trivial. You aren’t locked into one vendor’s specific prompt quirks.

Post-training, without the training

It’s early days, but the idea scales. Over time, these functions become a record of everything the agent has ever gotten wrong, turned into things it now gets right.

Post-training, without the training.

The catch? It only captures what you can make concrete. But in agentic workflows, that covers a lot more ground than most teams realize.

FAQs

Exosomatic Learning is Klarent's approach to improving an AI agent without changing the model. When the agent fails, the failure is analyzed to find the knowledge that was missing, and that knowledge is written into the built-in functions the agent uses rather than into its prompt. The name comes from Karl Popper's idea that humans evolve outside the body, through the tools they build.
Fine-tuning changes the model's weights. Exosomatic Learning never touches them. The knowledge lives in the code around the model, so it can be kept separate per customer, unit tested, carried over when the model is swapped, and taken with the customer if they leave.
A prompt is a suggestion the model may or may not follow. Each new instruction can break another behavior, the prompt keeps growing, and you never quite know which parts the model is following. A long prompt is also sent on every call, which adds cost and latency. A function behaves the same way every time.
Not a person working by hand. Klarent uses AI to analyze each failure, work out what knowledge was missing, and rewrite the relevant function.
No. Because the agent's knowledge lives in the surrounding code rather than in one model's weights or one vendor's prompt quirks, swapping models is far simpler.
It only captures knowledge that can be made concrete enough to write into a function. In agentic workflows, that covers more ground than most teams expect.
━━━━

See how Klarent can achieve 90%+ test coverage in just two weeks.

Book a free 30 minute call
Asheem Panakkat, Co-Founder & CEO at Klarent

Written by

Asheem Panakkat

Co-Founder & CEO at Klarent

View full bio

More blogs