Software Factory gives coding agents a local workflow for turning approved plans into tested changes. It plans work as Markdown tickets, runs the project's own checks, and keeps the evidence with the delivery. It works with Claude Code, Codex, and other runners that can drive the Factory CLI and return agent results.
- Plan. Describe a feature or fix. The Factory writes tickets with acceptance criteria and opens finished plans in Plannotator for approval.
- Build. A researcher identifies the existing code, dependencies, and tests. A builder implements the ticket on a local branch.
- Verify. The Factory runs the project's configured gates and sends the tested change to a fresh reviewer. UI work records a browser check, with screenshots when acceptance depends on a visual comparison.
- Learn. Human feedback and recurring failures can produce proposed changes to agent instructions. The Factory adopts a proposal only when independent replay shows an improvement and preserves passing behavior.
Tickets, shared requirements, and run evidence are ordinary files in the project's checkout. The Factory prepares a local branch and a pull request draft for each delivery.
You'll need Git, Python 3.10 or newer, and an agent runner. Install the Plannotator CLI for plan approval.
In Claude Code, add the GitHub marketplace and install Factory.
/plugin marketplace add https://github.com/maajix/software-factory.git
/plugin install factory@software-factory
The same install is available from the terminal.
claude plugin marketplace add https://github.com/maajix/software-factory.git
claude plugin install factory@software-factory --scope userLink the skill once, then open Codex in the project you want to work on.
git clone https://github.com/maajix/software-factory.git
factory_dir="$(cd software-factory && pwd)"
mkdir -p "$HOME/.agents/skills"
ln -s "$factory_dir/codex/skills/factory" "$HOME/.agents/skills/factory"Use $factory init, $factory feature, and $factory run in place of the Claude Code
slash commands.
| Step | Claude Code command | What happens |
|---|---|---|
| Initialize | /factory:init |
Detect project conventions and verify the gates in .factory/profile.json. |
| Plan | /factory:feature <idea> |
Write one or more tickets under docs/work/ and open Plannotator. |
| Check the board | /factory:board |
See which issues await approval, are in progress, or are ready for review. |
| Build | /factory:run |
Work the approved queue and record checks and review for each delivery. |
| Verify the result | /factory:feature-review <effort> --implemented |
Check the integrated behavior and save the evidence with the tickets. |
Use /factory:feature revise <effort> <change> when requirements change. The Factory tracks the
shared contract revision and holds affected tickets until their plans match it. Use
/factory:learn to see recurring signals and /factory:eval to capture a reproducible improvement.
Use factory eval compare to compare paired native staging runs from existing local evidence.
Benchmark input and output
Use a local Factory clone as factory_dir, as in the Codex setup above.
"$factory_dir/bin/factory" --root /path/to/project detect
"$factory_dir/bin/factory" --root /path/to/project board
"$factory_dir/bin/factory" --helpThe CLI exposes the same board, plan review, gates, and run state used by the built-in
integrations. Runners dispatch the actions from factory next and feed complete results back with
factory record <run> <result> <spawn> on standard input. The
Codex skill shows that protocol in use.
Project gates and Git conventions live in .factory/profile.json. If UI builders need the
emil-design-eng skill without a native skill tool, set review.ui_skill_file to its local
SKILL.md. Use UI-Proof: screenshots on a ticket when acceptance requires visual evidence.
The plan approval covers that header. The UI tester runs for a screenshot ticket, a brief marked
UI: yes, or an actual change matching review.ui_paths. For projects that require an isolated live
stack, configure review.ui_preflight with a repo, a read-only cmd, and optional requires.
The probe checks the project's specific stack and any required login or fixture. It exits nonzero
if a prerequisite fails, or prints a Proof: ... observation on success. The Factory checks before
research for screenshot tickets, before build for UI declared in research, and before the gates when
the build reveals UI files. The gate record carries the probe evidence alongside the tested commits.
The tester still records browser observations and the required screenshots on the tested checkout.
factory next --ticket <ticket> runs one ticket and stops after its outcome. factory next works
the queue and can stack on reviewed queue deliveries. New research briefs declare the exact
Factory-pinned SHAs for the affected repos in BASES. Build branches and gates keep those SHAs.
After reviewing and merging a delivery, run
factory confirm-merge <ticket>. It checks the reviewed commits on each affected repo's configured
base ref, records the evidence and marks the ticket done. For a squash or rebase, pass
--confirmation '…' with the merge evidence for the affected refs. The integration pipeline owns
umbrella gitlinks. A dependent single-ticket run uses the configured bases after its blockers are done.
factory pause <run> holds an active build in place. An outstanding result has unknown agent
liveness and may still arrive while paused. If the operator confirms the old agent has stopped and
needs a retry, use factory release <run> <stem> to invalidate its spawn. Use factory resume <run>
followed by factory next, or /factory:run resume <run>, to continue with the same checkout and
evidence. New run records include the loaded plugin manifest version, Git commit when available, and
a hash of the runtime files. A packaged install can deliver tickets and collect learning signals.
Learning runs require a committed Factory source checkout for replay and adoption.
Set simple_builder_haiku_first to true in the profile to use Haiku for the first builder on
a fresh simple ticket when the runner supports Claude model aliases. Later attempts use Sonnet.
An explicit models.builder override takes precedence.
When the user systemd manager has a heavy.slice with MemoryMax of at most 10 GiB,
factory gate starts its detached runner as a transient user service in that slice.
factory verify runs in the same slice, including setup. The slice budget is shared by all
its descendants. The host's MemoryHigh and MemorySwapMax settings also apply. On other
hosts the commands use their portable execution path. Set FACTORY_HEAVY=1 to require the
slice. If the slice is configured or required and systemd cannot start the work there, the
command reports an error.
factory gate can print RUNNING after its nine-minute poll window. Call it again to read
the same round's report. If the transient service stops before writing a report, the poll
exits with an error and points to the runner log and unit journal. After diagnosing the
failure, call factory gate again to retry in the slice.
Systemd transient units
Docker clients started in the slice share its budget. Builds and containers started by a separate Docker daemon need their own limits. The 10 GiB ceiling applies to the user slice. Docker build and test container limits
Run the unit suite from the Factory checkout.
python3 -m unittest discover -s testsUse a separate Factory checkout to run the queue when developing Factory itself. This keeps the running engine stable while a builder changes its implementation. Automatic adoption of an instruction also requires a clean Factory checkout.