An agent that can edit its own prompts, skills, memory, or sub-agent setup has crossed into a different kind of engineering problem.

The question is no longer only what the agent can do during this task. It is also what it is allowed to change about the conditions of every task that follows.

Prime Intellect’s Prime Agent makes that distinction visible. Its Continual Harness treats prompts, skills, memory, and sub-agents as state an agent can create, read, update, and delete during its own trajectory, as the Prime Agent technical report (submitted 24 August 2026) describes.

That is an interesting capability. It also means that a harness update deserves the same care as any other consequential workflow change.

Diagram introducing the design question and control surface created when an agent can change its own harness

01

What an agent harness is, and why it is now a control surface

An agent harness is everything around the model that turns it into an agent: the loop that runs it, the instructions it starts from, the tools and skills it can call, the memory it reads back, the sub-agents it can start, and the checks and logs around each step. Addy Osmani’s Agent Harness Engineering quotes Viv Trivedy’s line “Agent = Model + Harness” and defines the harness as every piece of code, configuration and execution logic that is not the model itself.

His list covers system prompts and AGENTS.md files, tools, skills and MCP servers, sandboxes, orchestration logic, hooks for deterministic execution, and observability. My own harness has the same parts: routing guides, skills, a shared memory, unattended runs and a review path for code changes, each listed further down with the route its changes take.

A tool call has a familiar shape. An agent reads a file, queries a service, drafts a response, or prepares a report. You can define its permissions, validate the result, then decide what happens next.

Harness changes are different because they alter future behaviour. A new skill can change how work is carried out. A memory update can alter which context gets retrieved later. A prompt edit can change a decision pattern that nobody is watching in the current moment. A persistent sub-agent can retain a role, instructions, and assumptions beyond the task that created it.

None of that is automatically unsafe. The mistake would be to treat every self-generated update as harmless housekeeping. If a change can affect a later decision, access pattern, or external action, it needs a defined path into the system.

02

A proposed change needs a policy

I would begin with a narrow question: what category of state is changing?

A scratch note written for one task is different from a shared memory entry. A local prompt experiment is different from a skill that other agents will use. A temporary helper is different from a persistent sub-agent with access to tools or sensitive context.

The policy does not need to be complicated. It does need to be explicit.

For each category, define four things:

  • Allowed scope. Which agent can propose the change, where can it write, and who or what can use the updated state afterwards?
  • Required evidence. What should accompany the proposal: a task reference, a failure it addresses, a test result, or a reviewer’s note?
  • Validation path. Which checks are deterministic, and which changes require a person to inspect the proposal?
  • Recovery path. Can the prior state be restored, and can someone reconstruct why the change happened?

That gives a team a useful answer when an agent decides it has found a better way to work: perhaps. Show the change, show its scope, and show how it will be checked.

03

Keep the decision path deterministic

A model can be useful in this loop. It can identify repeated friction, suggest a revised instruction, write a candidate skill, or explain why an earlier attempt failed.

It should not silently decide every boundary around those changes.

Deterministic code is well suited to the parts that need predictable treatment: permitted write locations, schema checks, version creation, approval requirements, retry limits, and rollback rules. A model can propose a change in natural language. The system should decide whether the change belongs in a draft area, can be applied within a narrow policy, or must wait for review.

This is the same split that matters in document workflows. Models can interpret an ambiguous document, classify a request, or prepare a recommendation. The surrounding workflow handles permissions, state transitions, validation, approval, and recovery.

Read the guide to deterministic controls for AI workflows. Which steps need fixed, testable rules and where a model can safely interpret, shown on a production floorplan pipeline.

Three-step harness change control path: propose, check scope and evidence, then route to automatic update or human review

04

A small control path is enough to start

A useful first design does not require a large governance program. It can be a short, inspectable route:

proposed change → policy check → validation → automatic update or human review → versioned state and rollback record

The important detail is that each stage has a real condition.

For example, an agent might be permitted to write a task-local note after passing a schema check. It may propose a new reusable skill, yet that proposal stays in review until a person confirms its scope and wording. A change to a shared memory source may require a source reference and a named approval record before it becomes retrievable by other agents.

The workflow is then able to say more than “the agent learned something.” It can show what changed, where it came from, who could use it, and how to reverse it.

05

Review should follow risk and reach

Human review does not need to sit in front of every write. That would turn the harness into a queue of small edits and make the system harder to use.

It belongs where a change has meaningful reach.

A practical rule is to look at two dimensions:

  • Scope: Does the update affect one task, one project, or many future tasks?
  • Authority: Could it change access, influence an external action, modify a shared decision rule, or affect client-facing work?

The further a change travels, and the more authority it carries, the stronger the review and recovery requirements should be.

That keeps the small things small. It also prevents a convenient local improvement from quietly becoming an organisation-wide behaviour change.

06

How my own agent harness routes changes

My working setup, described in Inside my AI agent setup, lets agents change parts of their own harness. Each kind of change has its own path. This is how it was configured when I checked on 8 November 2026:

  • Run scratch. Every unattended run writes its temporary files into its own private directory, and anything idle for 24 hours is pruned. Nothing outlives the run, so nothing is reviewed.
  • Skill pitfalls. An agent may append a lesson to the skill it just used, for example a command that failed and the one that worked. A skill covers one activity and is loaded only when that activity comes up again.
  • Routing guides. The AGENTS.md files that tell every agent where work and records belong are read-only during unattended runs. A protection gate refuses the write and no approver is on call, so the edit waits for a session with me.
  • Shared memory. Ideas and lessons go to a system’s lab first. Only an entry promoted on evidence becomes a verdict, and only verdicts reach the recall every later task reads.
  • Code and site changes. Agents open draft pull requests, an automated reviewer comments on each push, and I do every merge. Destructive shell commands need an interactive approval and fail when nobody answers.

The strictness follows the scope and authority test above. Scratch files reach nothing. A skill pitfall reaches one activity. A routing guide or a verdict shapes every future task, so those two have the slowest path.

07

Evaluation has to include the harness state

Most agent evaluation focuses on immediate outputs: did the model extract the right field, use the right tool, or route the case to the right person?

Those tests still matter. A system that can update its own harness adds another question: did the update make the next task better, worse, or harder to inspect?

This calls for a few extra cases in an evaluation library. Test an update that should be accepted. Test one that should remain task-local. Test a proposal that lacks evidence. Test an attempted write outside the allowed scope. Test a rollback after a bad change. Test whether a reviewer can recover the relevant context without reading a transcript dump.

The aim is to make adaptation legible enough that a team can decide when to trust it, correct it, or stop it.

See the same evaluation split in an executed synthetic workflow. Its 56 predeclared cases include known-bad, edge, permission and recovery tests, with blocked actions and decisions reconstructed from audit records. It demonstrates the method, not a client outcome or production deployment.

08

The capability is only the beginning

Self-modifying harnesses will make many systems more capable over time. The useful engineering response is precision about the change surface: what may evolve, what must be checked, who retains authority, and how the system gets back to a known state when a change is wrong.

That is where agent reliability starts to look less like a model-selection problem and more like workflow design.

Designing those change paths for a team’s agents is part of the agent and workflow builds I take on, next to the deterministic controls around the workflow itself.