factory
The owner's control page for the AI software factory: what waits on the owner, where every project stands (build, loop, run lane), what each agent is doing, and multi-provider token telemetry and costs (Tokens view: Claude, Antigravity, OpenCode across 24 h / 7 d / 30 d windows with daily stacked bar charts and per-agent accounting). Agents write through the factory CLI; T3 Code is the agent registry. The Org chart tab shows who each agent is, who it reports to, when it runs, its command, and what it did in the last 24 h (statuses: ok, late — no action in the window its schedule implies — or failing).
- Validated prototype:
prototype/factory.html (synthetic data). The real page is template/factory.html, filled by factory build.
- Decisions from validation:
docs/DECISIONS.md (binding).
- Design authority:
docs/DESIGN.md. Product context: docs/PRODUCT.md.
- Data contract and its changes from the prototype:
docs/DATA.md.
Install
Python 3.10+ with the standard library; PyJWT for the Cloudflare Access check (pip install pyjwt). gh logged in, and git.
ln -s "$PWD/bin/factory" ~/.local/bin/factory # or run bin/factory, or python3 -m factory
factory doctor # says exactly which source is missing
Agent skills
Agents work with the factory through four skills, five sub-agents, and a merge-gate hook, bundled as a Claude Code plugin (v1.1.0). Install it from your clone, inside Claude Code:
/plugin marketplace add /path/to/your/factory/clone
/plugin install factory@factory
| Skill | Needed for | Bundled |
|---|
factory | Every agent session on a planned project: plans, updates, factory ask and answers | yes |
factory-policies | Prototype-first feature builds and the mandatory PR review loop (plus BRIEF.md and RESULT.md templates) | yes |
release-manager | Daily releases: factory release plan messages tell the release thread to follow it. Product-specific steps come from a RELEASE.md in each product repo (the skill lists what it holds) | yes |
intake | The agent in the team's WhatsApp and Telegram groups: checks a report, asks the team for the missing piece, files it with factory intake file | yes |
| a short-video skill | The release comms video; without one, jobs send with a static card | no, optional |
Plugin 1.1.0 adds the factory-policies skill, the five factory sub-agents in agents/ (factory-triage, factory-prototyper, factory-builder, factory-simplifier, factory-reviewer), and a PreToolUse Bash hook in hooks/ (merge_gate.py) that blocks gh pr merge / gh api .../pulls/<n>/merge unless the exact head SHA carries a factory/review=success commit status from a trusted GitHub login. Trusted logins come from FACTORY_REVIEW_TRUSTED (comma-separated), else factory config get review.trusted (comma-separated), else gh api user -q .login.
The Skills view on the dashboard lists every skill installed on the machine (~/.claude/skills, ~/.agents/skills, plugins) and how often Claude Code sessions call it. factory/skills_groups.json only sorts them into groups for that view; it installs nothing.
Where state lives
Everything is in ~/.factory/ ($FACTORY_HOME overrides it). Writes are atomic (temp file then rename) under one lock (.lock).
A guard protects against development checkouts writing live state: when running from any checkout other than the live installation (~/factory-live), FACTORY_HOME must be set (e.g. export FACTORY_HOME=$(mktemp -d)). To explicitly use the live state from a development checkout, set FACTORY_HOME=~/.factory. Without FACTORY_HOME, commands refuse to run with a one-line error.