KaaS Factory turns a goal into reviewed pull requests: it plans tickets, runs them on parallel coding-agent sessions, checks each result against your gates, and lands them through a merge queue.
Inside the repository you want to automate:
factory doctor
factory init --tier solo --tracker github --yes
factory first-run --dry-rundoctor checks your tools. init writes factory.yaml into your repo's .factory folder; --tracker github needs owner/name from --repo or the origin remote, and without --yes init needs a terminal. first-run --dry-run audits the repository with the auditor binary, lists the first fixes, and changes nothing. On a real repo, run factory onboard instead of init: it writes a shadow-mode config and lists the gaps. Trackers and dispatchers: docs/install.md.
flowchart LR
G[Goal] --> P[Plan]
P --> T[Tickets]
T --> S1[Session 1]
T --> S2[Session 2]
T --> S3[Session 3]
S1 & S2 & S3 --> V{Verify}
V -- pass --> M[Merge queue]
V -- fail --> T
M --> B[Green base]
Each ticket runs in its own session. Your own gates (tests, lint, build) decide whether a result moves on. The merge queue lands one change at a time, so the base stays green. Risky changes wait for your approval.
brew install kaas-team/tap/factoryOr, with no sudo (installs to $HOME/.local/bin, checks the checksum first):
curl -fsSL https://raw.githubusercontent.com/KaaS-team/factory/main/install.sh | shOr build from a clone with Go 1.26 or newer: go build -o factory ./cmd/factory; add -tags ee for the enterprise build with the policy and scim commands (ee/LICENSE). More in docs/install.md.
factory plan "add rate limiting to the API"
factory plan "add rate limiting to the API" --approve
factory run
factory status
factory queue
factory logs <ticket>
factory steer <ticket> "use the existing limiter"
factory cancel <ticket>
factory retry <ticket>plan turns a goal into a ticket graph. --approve files it. run starts the loop.
| Group | Commands |
|---|---|
| Set up | doctor, smoke, init, onboard, first-run, ready, config, packs, add, upgrade, version |
| Plan and run | plan, plan-review, triage, run, merge, stack, program, resume, dispatch, serve, worker, eval, design, review, review-dismiss, learn, repomap, checkpoint, browsercheck, apply |
| Watch and steer | status, queue, logs, open, steer, ask, manage, cancel, retry, board, dashboard, report, shadow, audit, attention, metrics |
| Connect | mcp, a2a, intake |
The full flag list for every command is in docs/cli-reference.md. A test keeps it equal to the real command tree.
Use the factory from Claude Code or any MCP client.
factory mcpThis serves over stdio. Add --http 127.0.0.1:8080 for HTTP at /mcp; it needs a bearer secret
(see factory mcp --help). Tools include plan, approve_plan, create_task, status, list_tickets,
queue, dispatch, cancel, retry and steer. The board is a resource at factory://board.
Pick one with factory init --tier <name>. Each tier is a preset you can edit afterwards.
| Tier | --tier |
What it sets |
|---|---|---|
| Solo | solo |
One slot, local sessions, you approve every change. |
| Team | startup, scaleup |
Three to six local slots, low-risk changes auto-approve. |
| Org | enterprise |
Six slots, approval always, daily team and monthly spend caps. |
| Enterprise | regulated |
Approval always, and the requester cannot approve or auto-merge. |
oss is a fifth preset: two local slots, approval always.
Settings come from layers, lowest to highest: defaults, the org file, the team file, the repository
file, FACTORY_* variables, and flags. The org layer is a ceiling. Every key is in
docs/config.md. Alerts are off until notify.channels lists one (notifications).
sandbox_runtime may also be docker, microsandbox or e2b (opt-in, warm image from a .factory/setup.json file).
- docs/config.md for every setting, and docs/merge.md for
factory merge. - AGENTS.md for the package map and the gate.
- Issues and releases: https://github.com/KaaS-team/factory
See CONTRIBUTING.md and LICENSE. Built by KaaS. Security: SECURITY.md.