factory-run
Skill33 starsChanged 32 days agoMITView on GitHub
Operate the local factory (GitHub issues → shipped work, across every repo in ~/.claude/factory/factory.json) in plain words. "start" installs the 10-minute tick, the dashboard and the monitor and runs a first tick; "stop" removes them; "status" shows targets, workers, parked issues and the last tick; "tick" runs one pass now; "pause <target>" / "resume <target>" flips a target; "add target" adds one (repo + batch or labels + scope rule); "add repo" adds a repo. Use for "/factory-run", "start the factory", "stop the factory", "factory status", "is the factory running", "run a tick now", "add this to the factory".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- BuilderIO/agent-nativetheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- BuilderIO/agent-native★ 7.8ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- add-ruleSkill
- babysit-prSkill
- designSkill
- e2e-verifySkill
- evaluate-runSkill
- factory-autoSkill
- factory-monitorSkill
- factory-opsSkill
- factory-planSkill
- factory-projectSkill
- factorySkill
- factory-triageSkill
- review-loopSkill
- review-multi-modelSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Read state/last-tick.json, state/status.md, the last 15 lines of state/tick.log, and claude agents --json --all filtered to the repos' …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
factory-run
Everything lives in ~/.claude/factory/ (config factory.json, bin/, state/, README.md, the shared issue flow issues.md). Never ask the user to type a node command; run it for them and report in plain words.
start
gh auth statusmust show a logged-in account withreposcope (the factory acts as that account);claude agents --jsonmust run. Either failing → say exactly what to do and stop.- At least one target unpaused, or ask which to start (recommend the one just discussed).
node ~/.claude/factory/bin/factory-tick.mjs --dry-run --verbose→ summarize per target what it would triage and dispatch. Anything failing → fix or report, do not install.sh ~/.claude/factory/bin/install-launchd.sh 600→ tick every 10 minutes, dashboard at http://localhost:7788, monitor every 30 minutes.node ~/.claude/factory/bin/factory-tick.mjsonce now. Report: targets, triaged, dispatched, parked. Thenopen http://localhost:7788.- One line on how to watch (dashboard,
claude agents,~/.claude/factory/state/tick.log) and how the owner gets pinged (a macOS banner, and the relay webhook when set, when an issue parks or a PR is green; they answer with a comment on the issue).
stop
sh ~/.claude/factory/bin/install-launchd.sh --remove. Running workers keep running until they finish their turn; say so. Offer claude agents to stop individual ones.
status
Read state/last-tick.json, state/status.md, the last 15 lines of state/tick.log, and claude agents --json --all filtered to the repos' worktrees dirs. Report targets per repo, busy workers, in review, parked (with the question), and whether the launchd agents are loaded (launchctl print gui/$(id -u)/local.factory-tick exit code).
tick
node ~/.claude/factory/bin/factory-tick.mjs [--dry-run] --verbose and summarize the log lines it printed.
pause / resume
Set "paused": true|false on the named target in factory.json (the tick skips paused targets). Report.
add target
A target is one repo plus a selection of its issues. Ask only what the conversation hasn't settled:
repo: a key ofrepos(add the repo first if it's new).batch(a parent issue number: its sub-issues) and/orlabels(all must be present). A project is usually a batch parent;/factory-projectcreates one.scope_rule: one sentence on what this target does not do, ending "If unsure, 'later'."max_in_flight(default 2), and for PR reposmax_awaiting_review(default 5). New targets start"paused": trueunless the owner says start.
Append it to targets, run --dry-run --only=<name> and report the counts.
add repo
Add an entry to repos: github slug, path (the main local clone, a directory Claude already trusts), worktrees_dir (default <path>/.claude/worktrees), remote, base, branch_prefix (e.g. factory/), setup (install command), ship (push when the repo's CLAUDE.md lands changes straight on its base branch, pr when it ships through PRs), ship_why (one line every worker prompt repeats), principles (default principles/<repo>.md; start it from principles/TEMPLATE.md: ship mode, when to park, repo-specific hard rules, pointing at the repo's CLAUDE.md rather than restating it). Then add a backlog section to the repo's CLAUDE.md that imports the issue flow: @~/.claude/factory/issues.md, plus the repo's own stream: labels.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

