liveBook · Manning

Subagent

As explained in Vibe Engineering

A subagent is a specialized AI assistant that independently performs a delegated task with its own context, prompt, tools, and permissions.

A subagent is a specialized AI assistant assigned a delegated task with its own context. Using a fresh context window can keep a task from inheriting an ever-growing conversation, but it also means the task must carry the information needed to perform it. section 3.5.3

This separation offers an alternative to repeated context compaction. Compaction summarizes a conversation and can discard early instructions; a fresh subagent instead starts from a task and persisted project state. The tradeoff is that plans must be explicit enough for an implementer with zero prior codebase context. section 3.5.2 section 3.5.3

Task execution with persisted state

In GSD’s Discuss → Plan → Execute → Verify workflow, product decisions are recorded in CONTEXT.md. Planning can use a research subagent and produces small tasks for fresh agents. Specs, plans, research notes, and validation contracts persist in .planning/, while each completed task gets its own git commit. section 3.5.3

Subagent definitions can also be distributed in a plugin alongside skills, commands, MCP server configurations, and hooks. The plugin is installed and versioned as one unit, making a configured workflow transferable across a team. section 3.3.6

How Vibe Engineering covers it

How deep it goes
Explains fresh-context execution and persisted project state, but does not detail subagent configuration or implementation.
Examples
Illustrates a research subagent and fresh task agents in GSD, with plans and validation contracts stored in .planning/.
What you can do after
Evaluate subagent delegation against compaction by considering context isolation and the need for explicit, persisted task state.
How it connects
Connects subagents to context compaction, externalized state, agentic skills, and plugins.

Also explained in

Compare how 7 books explain subagent →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Vibe Engineering. The section links point to the parts of the book it draws on.