# Sub-Agent Setup

> Operational rules for Claude Code sub-agents that prevent git conflicts, stalled runs, and wasted tokens.

Sub-Agent Setup is a paid AI agent skill on Agensi by Georgina Hawley, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Georgina Hawley](https://www.agensi.io/creators/georgina-hawley)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-28
- Security: scan passed (2026-10-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sub-agent-setup
- Tags: ai-agents, automation, prompt-engineering, claude-code, orchestration, git-workflow, sub-agents, agents

## About this skill

Stop wasting tokens and time on failed sub-agent runs. Unplanned spawns can cause git index conflicts, stalled background runs, and repeated work with no context. This skill gives you the rules to decide when to spawn, which isolation to use, when to run in the foreground, how to send follow-ups, and how to get a clean report back.

### What it does
- Decides when a task needs a sub-agent instead of a single tool call.
- Uses worktree isolation for any agent that writes or commits.
- Runs in the foreground in unattended sessions, so runs don't stall.
- Sends follow-ups to the same agent with `SendMessage`, instead of a new spawn.
- Sets a fixed output shape so the parent can read the result quickly.

### Use cases
- Splitting a refactor across directories with worktree isolation.
- Running a build-and-test pass and a separate verification pass on code changes.
- Background documentation while the parent handles logic.
- Migrations that need isolated build and test loops.

### Known limitations
Doesn't fix a weak task plan. Needs git worktree support for full isolation. Written for multi-agent setups in Git repositories.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Sub-Agent Setup skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Do I need multiple agents to use this?

No. It helps any time Claude Code spawns a sub-agent, and it's most useful once you run two or more at once. For a single lookup, the skill tells you not to spawn at all.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
