docs/adapters/claude-code.md

Using factory with Claude Code

Claude Code loads the factory as a plugin. Its workflows are /factory:* commands, and its roles are the plugin's factory:builder, factory:reviewer, factory:designer and factory:design-reviewer subagents.

Install

Install Claude Code, then in the product repository run:

/plugin marketplace add je3yk/software-factory
/plugin install factory@software-factory

Choose the project scope to enable the factory only for that repository. Restart Claude Code, then run /factory:define <your idea>. See updating for plugin updates.

Invocation

Workflow Command
define /factory:define <idea>
deliver /factory:deliver <task-id>
design /factory:design define <idea> or /factory:design deliver <task-id>
tasks /factory:tasks (overview; settles merged tasks first)
settle /factory:settle: mark tasks whose PR was merged done
journal /factory:journal <note> or /factory:journal review
feedback /factory:feedback
migrate /factory:migrate [check | apply] [version]
codex /factory:codex [check]: set up or check the Codex copy

Roles and handoffs

Workflows start roles through the internal delegate skill, as fresh-context subagents with only the inputs they list. The reviewer and design-reviewer run on Codex when the session can start it, as delegate describes. From the command line, use codex exec --sandbox read-only --cd <product checkout> with the role file's body and the brief as the prompt. If no fresh worker can start, delegate falls back to a separate-session handoff, which can run in either agent; the orchestrator never reviews its own work.

Original Markdown, including metadata
# Using factory with Claude Code

Claude Code loads the factory as a plugin. Its workflows are `/factory:*` commands, and its roles are the plugin's `factory:builder`, `factory:reviewer`, `factory:designer` and `factory:design-reviewer` subagents.

## Install

Install [Claude Code](https://code.claude.com/docs/en/setup), then in the product repository run:

```text
/plugin marketplace add je3yk/software-factory
/plugin install factory@software-factory
```

Choose the **project** scope to enable the factory only for that repository. Restart Claude Code, then run `/factory:define <your idea>`. See [updating](../updating.md) for plugin updates.

## Invocation

| Workflow | Command |
| --- | --- |
| define | `/factory:define <idea>` |
| deliver | `/factory:deliver <task-id>` |
| design | `/factory:design define <idea>` or `/factory:design deliver <task-id>` |
| tasks | `/factory:tasks` (overview; settles merged tasks first) |
| settle | `/factory:settle`: mark tasks whose PR was merged `done` |
| journal | `/factory:journal <note>` or `/factory:journal review` |
| feedback | `/factory:feedback` |
| migrate | `/factory:migrate [check \| apply] [version]` |
| codex | `/factory:codex [check]`: set up or check the [Codex copy](codex.md) |

## Roles and handoffs

Workflows start roles through the internal [delegate](../../skills/delegate/SKILL.md) skill, as fresh-context subagents with only the inputs they list. The reviewer and design-reviewer run on Codex when the session can start it, as [delegate](../../skills/delegate/SKILL.md#reviewers-run-on-the-other-agent) describes. From the command line, use `codex exec --sandbox read-only --cd <product checkout>` with the role file's body and the brief as the prompt. If no fresh worker can start, delegate falls back to a separate-session handoff, which can run in either agent; the orchestrator never reviews its own work.