Platform guide

How self-improving AI agents work.

Most software stays as good as the day it shipped. An AI agent sees, on every run, what the work needed and where it went wrong, so it has what it needs to do the next run better. This guide covers how that should work, where each lesson should go, and the changes a person should always decide.

cvlSoft10 min read

Three things self-improving can mean.

Vendors use the phrase for three quite different designs. They differ in what changes, whether your team can read the change, and how the change is undone.

What changesCan your team read it?How it is undone
Retraining the modelThe model itself, adjusted using your dataNo. The change is spread through the modelRetrain again, or go back to an older model
Rewriting its own promptThe instructions the agent gives itselfOnly if someone goes lookingRestore an earlier version of the prompt
Improving the contextThe knowledge, limits and guidance each run is givenYes. Each lesson is written down, tied to the workflow it came fromEdit or retire the lesson

Retraining is the slowest of the three and the hardest to check, because the change is spread through the model instead of written down where someone can read it. A prompt that keeps rewriting itself is quick, but it is hard to test, because the instructions you tested last week are no longer the ones that run.

Improving the context keeps the model as it is and changes what each run is handed. It is the one of the three that can be inspected, measured and reversed, and it is how AIOS works. No model is retrained on your data.

What every run should leave behind.

An agent can only learn from what it records. A run that ends with a single word, done, teaches the next run nothing. AIOS is built on the principle that context improves with every run, and the principle names the evidence a run should leave.

  • The context it needed. Which procedures, rules and parts of the customer’s history the run drew on.
  • What was missing. The document it had to ask for, the system it could not reach, or the rule nobody had written down.
  • Which decisions went to a person. Every exception it handed over, and what the person decided.
  • Where the workflow stalled. The step that failed, the retry, or the long wait on another system or on an approval.
  • Which outcomes held. Whether the case stayed closed, or came back.

Each AIOS run also keeps a trace: every step in order, how long it took and every call it made to another system, beside the run’s goal and a plain-language account of what happened. The Executor page shows one. Everything below learns from that record, so an agent that keeps a thinner record has less to learn from.

Lessons: what one run teaches the next.

The smallest unit of improvement is a lesson: a short piece of advice drawn from one or more runs and kept for the next run of the same work.

After each run, AIOS records what helped, what failed and what resolved the issue. Before it plans the next run, it recalls the lessons that apply. They come in a few kinds.

  • What resolved a problem. In a chase for a borrower’s missing documents, calling the next morning when the borrower does not answer the first text.
  • An error pattern to avoid. A step that fails in a predictable way, and what to do instead.
  • A better way through. An order of work, or a check, that reaches the goal with less effort.
  • A constraint to follow. A limit the run should respect that nobody had written into the workflow.

Each lesson is scored, tied to the workflow it came from and shows how many runs it came from, so your team can read it and check it. The Memory page shows what that looks like.

Lessons are part of what a run is given at the start, alongside its procedures, its tools and the customer’s history. Choosing that context for each job is a discipline of its own, covered in context engineering for AI agents. This guide is about how that context gets better over time.

Keep what works and prune what does harm.

A lesson drawn from one unusual case can do damage if it is applied to every case. So lessons should be kept on evidence. In AIOS, useful lessons rise and harmful ones are pruned, and edits your people make stay protected.

  • Score a lesson on what happened after it was used, not on how sensible it sounds.
  • Let people overrule it. Your team can edit or retire any lesson by hand, and an edit a person made is not overwritten by the next run.
  • Keep its origin. A lesson that points to the runs it came from can be checked. A lesson with no origin can only be taken on trust.

Why a lesson should not become a new agent.

A common way to handle a new kind of case is to build a new agent for it. The refund agent gets a partner for disputed refunds, then another for refunds over a limit. Each one carries its own rules, tools and memory, and each has to be secured, tested and maintained on its own.

AIOS takes the other route. One of its principles is that it gets smarter without turning every lesson into a new agent. The lesson goes into the context the same core is given for that work, so the rules, the controls and the record stay the same for every workflow that shares the core.

cvlSoft calls this Agentic Context Evolution: the context each run receives improves over time, based on what earlier runs needed, missed and got right. What is AI agent sprawl? covers what happens when each lesson becomes an agent instead.

Overnight: changing the workflow itself.

Some problems are bigger than a lesson. A step keeps failing whatever advice it is given. A retry always succeeds on the second try, so every first try is wasted. A policy stalls approvals. Or your team keeps looking something up by hand because the agent cannot reach the system it lives in. These need the workflow, or the software around it, to change.

In AIOS, Nightshift reviews the day’s runs every night and builds the fix. It reads what failed that day, what cost more and what drifted from its usual pattern, and prepares the change: a repaired workflow, a new tool or a missing connector. In the morning, the change is waiting for an expert’s sign-off.

Take a team that looks up each customer’s usage by hand on every billing dispute, because AIOS cannot reach the system that holds it. Overnight, Nightshift notices and builds the connection. The next morning someone approves it, and from then on AIOS does the lookup itself.

When a process needs a connector that does not exist, Nightshift autonomously builds it, tests it and hands it to a cvlSoft engineer for review. Gaps beyond what it may build itself go to the cvlSoft team as a request with the evidence attached: which runs, which trend, and what it would change.

What must never change without a person.

An agent that changes itself without review is hard to trust, because the version running tomorrow is not the version anyone tested. Some changes can safely be made on evidence alone, such as raising or pruning a lesson. Others should always wait for a person.

  • The workflow. Every change Nightshift prepares is a proposal. It acts only with an expert’s sign-off.
  • The code. Anything Nightshift writes, such as a new connector, is reviewed by a cvlSoft engineer.
  • The rules. Your policies change when your team changes them. Describe a new policy to the AIOS agent and it writes the rule, shows which workflow steps it would catch, and saves nothing until you confirm.
  • What goes live. Every release is versioned and tested. The test suite runs again when a release is promoted, someone other than the person who asked for it decides whether it moves forward, and you can return to a previous release when you need to.
  • The goal. A workflow’s goal is written from the workflow itself and stays fixed until the workflow changes, so improvement can never quietly redefine success.
  • What people entered. Anything a person entered about a customer is never overwritten by AI.

An approval only protects you if the reviewer can see what would change and why. What an approval gate should cover sets out what a reviewer needs in front of them, and why a gate on every trivial change teaches people to approve without reading.

How to tell whether it is improving.

An agent that says it learns should be able to show it. Look at the same workflow over time, on its own record rather than a vendor’s summary.

  • Whether each change worked. After a change ships, Nightshift keeps watching and marks it as worked, went the wrong way, or still being checked. A change that made things worse reaches you instead of going unnoticed.
  • Goals met. How often runs achieve the workflow’s goal, judged against a goal that has not moved.
  • Steps that fail or retry. These should fall as lessons and fixes land. If they do not, the lessons being kept are not the ones that matter.
  • Exceptions handed to people. Fewer is better only if the cases that should reach a person still do. A fall that comes from looser limits is a warning, not progress.
  • Cost per run. Fewer wasted steps and retries should show here too.
  • The test suite. Each new release should still pass every case the last one passed.

Improvement after go-live depends on the tests that came before it. How to evaluate an AI agent before it goes live covers the cases a workflow should pass on its first release and on every release after.

What your team does each week.

Self-improvement needs a little attention from the people who know the work, regularly. In AIOS, that comes down to a short routine.

  1. 1

    Read the morning view.

    Nightshift’s morning view shows what needs your attention, what it delivered and whether each change worked.

  2. 2

    Approve or decline each proposal.

    Decline anything you cannot explain. A change you could not describe to an auditor should not run.

  3. 3

    Read the lessons for your busiest workflow.

    Retire any that are wrong, and edit any that are nearly right. Your edits stay protected.

  4. 4

    Tell it what it cannot see.

    A changed policy or a new kind of case is quicker to describe than to wait for the runs to reveal. Describe the policy to the AIOS agent, and it writes the rule for you to confirm.

The knowledge each run starts with comes from your experts in the first place, and How to capture tacit knowledge covers that first step. After it, the work itself keeps teaching AIOS, and what your experts know stays in the process after they move on.

Questions.

Do self-improving AI agents retrain the model on our data?

Not in AIOS. No model is retrained on your data. What improves is the context each run is given, and your team can read, edit or retire any lesson AIOS keeps.

What is Agentic Context Evolution?

cvlSoft’s name for how AIOS improves: the context each run receives gets better over time, based on what earlier runs needed, missed and got right. Lessons go into that context, not into a new agent.

Can Nightshift change production on its own?

No. Every change is a proposal. It acts only with an expert’s sign-off, and the code it writes is reviewed by a cvlSoft engineer.

What if a lesson is wrong?

Harmful lessons are pruned on evidence, and your team can edit or retire any lesson by hand. Edits people make stay protected.

What if a change makes things worse?

Nightshift keeps watching after a change ships and marks it as having gone the wrong way, so it reaches you instead of going unnoticed. You can return to a previous release when you need to.

Does it only improve at night?

No. Lessons are recorded after every run and recalled before the next plan. Nightshift reviews the day’s runs every night on its own, and you can start a review at any time.

You pay for results. Not for software.

AIOS learns your processes and carries out the work across your existing systems—from customer follow-ups to invoice collection. Your team handles approvals and exceptions.

More guides