# Code subagents

> Code subagents is an open-source agent skill for developer tools. Dispatches implementation subagents in sequence or parallel with batch review. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/martinffx/atelier/tree/main/skills/code-subagents
- **Repository:** https://github.com/martinffx/atelier
- **GitHub stars:** 53
- **License:** MIT
- **Skill name:** code-subagents
- **Collection:** https://github.com/martinffx/atelier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets out how an agent should hand off well-specified implementation work to fresh subagents. It covers when a task qualifies, namely a settled design with explicit requirements, owned files and a validation command, and how to decide between running items one after another or concurrently based on whether they touch the same files.

For parallel batches on a shared working tree, the skill asks the coordinator to assign each task an exclusive file list, stop implementers from staging or committing, and capture the git status and a path-scoped patch before and after each task. Work is rejected if it strays outside its assigned paths, and overlapping file ownership forces sequential runs.

Before each dispatch, the skill points to a convention-source walk that maps the files a task touches to the rules and skills an implementer must read, and it requires implementers to report which files they read and which rules they checked. One combined reviewer then checks requirements and code quality for the whole batch, and failed tasks go to a fresh fix subagent, with escalation to a human after two failures.

## When your agent uses it

> Implementation subagent dispatch patterns. Use when a task's design is settled and the file just needs to be made, or when independent implementation work can run in parallel. Covers eligibility, dispatch, shared-tree patch snapshots, one combined review per completed batch, and serial integration.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/martinffx/atelier/tree/HEAD/skills/code-subagents)
- [License: MIT](https://github.com/martinffx/atelier/tree/HEAD/skills/code-subagents)

## Features

- **Eligibility checks:** Criteria for deciding whether a task suits a fresh subagent based on design status and clear requirements.
- **Sequential and parallel dispatch:** Guidance for running dependent tasks one at a time and independent tasks concurrently.
- **Shared-tree patch capture:** Steps for assigning file ownership and capturing path-scoped patches so parallel edits stay isolated.
- **Convention source walk:** A procedure that maps a task's files to the rules and skills the implementer must read before writing.
- **Combined batch review:** One reviewer checks requirements compliance and code quality across all tasks in a completed batch.
- **Failure escalation:** A fix-and-retry pattern for failed subagent tasks, escalating to a human after repeated failure.

## Good for

- Generate new boilerplate files from a settled design spec
- Implement several independent modules in parallel on a shared repository
- Dispatch a sequence of dependent entity, repository and service files one after another
- Review a completed batch of subagent changes against requirements and project rules
- Resend a failed implementation task to a fresh subagent with the gap named

## Install

### Claude Code

This skill ships in the `atelier` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelier
```

Or copy only this skill to `~/.claude/skills/code-subagents`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.claude/skills/code-subagents &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-subagents` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-subagents` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.agents/skills/code-subagents &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-subagents` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-subagents` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.cursor/skills/code-subagents &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-subagents` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/martinffx/atelier.git --path skills/code-subagents
```

Or copy the folder to `~/.gemini/skills/code-subagents` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-subagents`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.copilot/skills/code-subagents &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-subagents` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/martinffx/atelier.git
```

Then copy `atelier/skills/code-subagents` into your agent's skills folder as `code-subagents`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Code subagents be used?

When a task's design is settled and the file just needs to be made, or when independent implementation work can run in parallel.

### How are parallel tasks kept from conflicting?

Each task gets an exclusive file list before dispatch, implementers do not stage or commit, and each task's path-scoped patch is checked for changes outside its assigned paths. Tasks with overlapping files run sequentially.

### How many reviews happen per batch?

One combined review covers the whole completed batch rather than a separate review for each task.

### What happens when a subagent fails a task?

The main agent dispatches a fix subagent with specific instructions. If it fails twice, the skill says to stop and escalate to the human.

### How do I install Code subagents in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-subagents to use it in all your projects, or to .claude/skills/code-subagents in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.

### Does Code subagents run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code subagents?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code subagents?

The closest alternatives to Code subagents are Dispatching parallel agents, Multi agent handoff, Cmux dispatch, Control tower and Agent Collaboration & Parallelism.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Dispatching parallel agents](https://ai-powered.com/skills/dispatching-parallel-agents): Dispatching parallel agents is an open-source agent skill for developer tools.
- [Multi agent handoff](https://ai-powered.com/skills/multi-agent-handoff): Multi agent handoff is an open-source agent skill for developer tools.
- [Cmux dispatch](https://ai-powered.com/skills/cmux-dispatch): Cmux dispatch is an open-source agent skill for developer tools.
- [Control tower](https://ai-powered.com/skills/control-tower): Control tower is an open-source agent skill for developer tools.
- [Agent Collaboration & Parallelism](https://ai-powered.com/skills/agent-collaboration-parallelism): Agent Collaboration & Parallelism is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-martinffx): Code review is an open-source agent skill for developer tools.
- [Dispatched bash agent git checkout clobbers uncommitted edit](https://ai-powered.com/skills/dispatched-bash-agent-git-checkout-clobbers-uncommitted-edit): Dispatched bash agent git checkout clobbers uncommitted edit is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-subagents
