# Spawn instance

> Spawn instance is an open-source agent skill for developer tools. Creates a new aweb teammate from a soul, with its own identity, home and worktree. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/awebai/aweb/tree/main/naapp/folio/.agents/skills/spawn-instance
- **Repository:** https://github.com/awebai/aweb
- **GitHub stars:** 132
- **License:** MIT
- **Skill name:** spawn-instance
- **Collection:** https://github.com/awebai/aweb
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up a new working instance of an agent role defined as a soul. It creates a home directory for the instance, registers a fresh aweb identity for it through the team invite flow, and links the shared role instructions into that home. The soul's configuration decides where the instance works: developer-type roles get their own git worktree on a dedicated branch, while coordinator or reviewer-type roles are pointed at the main checkout.

The workflow is a shell block the agent runs from its own instance home, since the aw CLI reads identity from the current directory. It captures an invite token, accepts it under a chosen alias, initializes the workspace without touching AGENTS.md, and wires symlinks for the instructions and the Claude Code config file. It also warns that instance homes must not be moved after initialization, and it hands the human a launch command rather than starting the session itself.

It expects a git checkout of the aweb repository with an agents/souls directory, the aw command line tool, and an existing connected instance that can issue invites. A dashboard-based path is described for setups without the invite command. Retiring an instance is handled by a separate skill.

## When your agent uses it

> Add a teammate — create an instance of a soul with its own new aweb identity and home, plus its own git worktree for developers. Use when a human asks for a teammate or assigned work needs one.

## What it can access

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

- [Instructions only, no scripts](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/.agents/skills/spawn-instance)
- [License: MIT](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/.agents/skills/spawn-instance)

## Features

- **Instance home setup:** Creates a dedicated home directory holding the role instructions and a new aweb identity.
- **Team invite flow:** Issues and accepts an invite token so the new instance joins the team under its own alias.
- **Git worktree per developer:** Gives developer-type instances their own worktree on a branch named after the instance.
- **Shared main checkout:** Links coordinator and reviewer instances to the main checkout instead of a separate worktree.
- **Soul-based role configuration:** Reads the work mode from each role's soul.yaml so roles stay consistent.
- **Launch command handoff:** Prints the command a human runs to start the session, rather than launching it automatically.

## Good for

- Add a developer teammate to work on a specific feature branch
- Spawn a reviewer instance to check a pull request
- Create a standing coordinator instance for the team
- Set up a separate worktree so parallel work does not collide

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/spawn-instance` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spawn-instance &&
cp -R "$tmp/naapp/folio/.agents/skills/spawn-instance" ~/.claude/skills/spawn-instance &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spawn-instance &&
cp -R "$tmp/naapp/folio/.agents/skills/spawn-instance" ~/.agents/skills/spawn-instance &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spawn-instance &&
cp -R "$tmp/naapp/folio/.agents/skills/spawn-instance" ~/.cursor/skills/spawn-instance &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/spawn-instance` 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/awebai/aweb.git --path naapp/folio/.agents/skills/spawn-instance
```

Or copy the folder to `~/.gemini/skills/spawn-instance` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spawn-instance &&
cp -R "$tmp/naapp/folio/.agents/skills/spawn-instance" ~/.copilot/skills/spawn-instance &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awebai/aweb.git
```

Then copy `aweb/naapp/folio/.agents/skills/spawn-instance` into your agent's skills folder as `spawn-instance`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Spawn instance trigger?

When a human asks for a teammate, or when assigned work needs one. The agent is told not to spawn instances on its own initiative.

### What does Spawn instance need to run?

A git checkout of the aweb repository with agents/souls, the aw CLI, and an existing connected instance that can create invites. Without the invite command, the dashboard can be used instead.

### Can I move an instance folder after creating Spawn instance?

No. The skill warns that aweb registers the workspace at its path, so relocating requires re-minting in place.

### How do I install Spawn instance in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/spawn-instance to use it in all your projects, or to .claude/skills/spawn-instance in one project.

### Does Spawn instance 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 Spawn instance?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Spawn instance?

The closest alternatives to Spawn instance are Aweb coordination, Aweb team membership, Retire instance, Vibe workstream orchestration and Worktrees.

## Where this comes from

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

## Alternatives

- [Aweb coordination](https://ai-powered.com/skills/aweb-coordination): Aweb coordination is an open-source agent skill for developer tools.
- [Aweb team membership](https://ai-powered.com/skills/aweb-team-membership): Aweb team membership is an open-source agent skill for developer tools.
- [Retire instance](https://ai-powered.com/skills/retire-instance): Retire instance is an open-source agent skill for developer tools.
- [Vibe workstream orchestration](https://ai-powered.com/skills/vibe-workstream-orchestration): Vibe workstream orchestration is an open-source agent skill for developer tools.
- [Worktrees](https://ai-powered.com/skills/worktrees-richardgill-4): Worktrees is an open-source agent skill for developer tools.
- [Aweb messaging](https://ai-powered.com/skills/aweb-messaging): Aweb messaging is an open-source agent skill for developer tools.
- [Agent creator](https://ai-powered.com/skills/agent-creator): Agent creator is an open-source agent skill for developer tools.
- [Agent hub init](https://ai-powered.com/skills/agent-hub-init): Agent hub init is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spawn-instance
