@dongxi_nlp: https://x.com/dongxi_nlp/status/2068922428516892998

X AI KOLs Timeline News

Summary

This is the sixth article in the series, explaining in detail the concept of subagent, its working principles, and its role in coding agents, including tool call and runtime mechanisms, as well as the applicable scenarios of different subagent types (fresh child, forked child, partial fork).

https://t.co/1n8IN40nzx
Original Article
View Cached Full Text

Cached at: 06/22/26, 01:45 PM

A Subagent Opens A New Context

Harness Series Article 6, about subagent.

A subagent is a tool call that opens a new work context for the coding agent.

What happens when a subagent is launched?

Short answer: Tool call outside, runtime inside.

First, the Tool Call

Why is launching a subagent essentially a tool call?

For example, the user says: “Use a verifier subagent to audit webhook retries.”

If Harness supports it, you can directly use the slash command /delegate to make a spawn_agent tool call.

After the tool finishes, the parent gets a child handle.

Now, the Runtime

In Harness article 3, we mentioned that every tool call changes the coding agent’s world state.

So what happens after this tool call that launches a subagent? Let’s look at the runtime inside.

The tool call is the entry point. Going deeper, Harness opens a new work context.

What is the relationship between a subagent’s context and the coding agent’s context?

Session, Context, Subagent

These three terms are easy to mix up.

  • Session is the runtime container: thread, transcript, tools, permissions, resources, status, artifacts.

  • Context is the projection visible to a given model call: instructions, skills, AGENTS.md, recent turns, summaries, tool results, file state.

  • Subagent is a child session opened under the parent session. It can inherit resources and also receives a selected context slice.

Tool Call Outside, Runtime Inside

  • The term “subagent” can be a bit misleading—it sounds like a smaller agent.

  • In Harness, it’s more like a managed child runtime. A subagent can use many of the same Harness resources the parent can: tools, skills, AGENTS.md, MCP servers, cwd, sandbox, permissions.

  • But shared resources do not mean a shared transcript. The child has its own work context. The parent decides how much context to project into it.

Fresh Agent, Forked Agent, or Partial Fork?

What context the parent projects to the subagent depends on the subagent type. There are three common subagent patterns:

  • Fresh child – It needs to receive: goal, relevant files, what has been tried, exact output, and depth of answer.

  • Forked child – It has already inherited the surrounding context, so the prompt should directly give the next directive.

  • Partial fork – This is the most practical intermediate option. It gives the child enough local memory to work while preventing the parent history from becoming inherited noise.

Here are some examples to think about: what kind of subagent suits which task?

  • Parallelism Agent: one subagent checks database migration, one looks at frontend state, one runs verification.

  • Role Specialization: Explorer, Planner, Verifier, Worker, Reviewer…

  • Background Work: e.g., multiple subagents handle a large refactor or long tests.

Subagent Workflow

A practical subagent workflow:

Organizing multiple subagents to accomplish work is actually very challenging. The clearer the definition of a subagent’s role, context, and tools, the better.

Finally:

More agents do not guarantee better work; more agents create more runtime state.

Harness must know who is working, what it knows, what it changed, when it finishes, and how the result becomes evidence.

A subagent expands the world for the coding agent, and Harness is about whether that new world is better or more chaotic.

Similar Articles

@dongxi_nlp: https://x.com/dongxi_nlp/status/2066290950352081336

X AI KOLs Timeline

This article discusses the design concept of how Markdown files (such as AGENTS.md and SKILL.md) in Coding Agents effectively influence agent behavior through the Harness mechanism, emphasizing the importance of loading different contexts at the right time.

@dongxi_nlp: https://x.com/dongxi_nlp/status/2065200644802101633

X AI KOLs Timeline

The article proposes that in a Coding Agent, tool invocations should be treated as contracts rather than simple functions, emphasizing the Harness's adjudication role in verification, permissions, lifecycle management, and others, and discusses in detail the composition and lifecycle of tool contracts.

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

X AI KOLs

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

@vintcessun: Tonight I came across a learning roadmap project that redefined where to start learning Agent. I used to think Agent was just a pile of tools and frameworks, but its core is the "observe-think-execute" loop and the harness engineering's organization of permissions, state, and backtracking. It breaks down learning into building a minimal Agent loop from scratch all the way to deploying a real Agent, with 8 stages, each with clear deliverables and recommended resources — not just links but an actionable todo list. This systematic approach made me realize my previous learning was too fragmented.

X AI KOLs Timeline

An open-source learning roadmap project called Agent-Learning-Hub, which breaks down AI Agent learning into 8 stages from building a minimal Agent loop to production deployment, providing executable todo lists and recommended resources, maintained by members of the Datawhale community.

@dongxi_nlp: https://x.com/dongxi_nlp/status/2066991890348572950

X AI KOLs Following

This is the 6th article in the "Context Is A Projection Harness" series. It delves into the core issues of context management in coding agents, proposing a Harness method that projects the full history into the narrow window needed by the model. Key techniques include Large-Result Preview, Idle-Gap Microcompact, Old-Span Collapse, and Auto-Compact Near The Limit.