Pure-Hermes, phase-based software factory plugin for any GitHub repository.
Define, optional UI Design, parallel git-Worktree Build, and mutually isolated Code Check + Behavior Check Verify — using only Hermes Agent, git, and gh.
Quick Start · How It Works · Desktop UI · Develop & Contribute · Glossary · Architecture

End-to-end Factonio Workstream in Hermes Desktop: Define → Design → Build → isolated Code Check + Behavior Check Verify → bounded Retry → exact-HEAD Merge Gate.
Choose your starting point
| Run Factonio on your Repositories | Tune cross-model Verify | Develop or contribute |
|---|---|---|
| Quick Start | Configure phase models | Development guide |
Install the plugin, initialize the headless factonio worker profile, and register a GitHub Repository. | Assign distinct models to the Build slot (factonio_implement) and factonio_verify in Hermes Auxiliary Models. | Run the clean-room test suite locally, inspect the Desktop UI harness, and read CONTRIBUTING.md. |
How it works
Factonio runs autonomous software delivery on a dedicated headless factonio worker profile across four explicit Phases, with a strict Information Barrier during Verify to prevent confirmation bias and test overfitting:
- Phase 1 — Define (
factonio:define) explores the Repository, writes the Specificationspec.md(acceptance criteria, technical plan, and a parallel Unit DAG) and the public Acceptance Contractacceptance.md, and authors hidden prose Holdouts (behavioral scenarios) underholdout/. - Phase 1b — Optional UI/UX Design (
factonio:design) runs when a Unit touches UI (has_ui: trueor on request). By default (design_provider: hermes) it builds pure-Hermes HTML/CSS previews; setdesign_provider: claude-designto opt in to supervising interactive Claude Design (/design) through theclaudeCLI onPATH. - Phase 2 — Parallel Build (
factonio:build) dispatches independent Specification Units as[build]Cards in parallel git Worktrees (readingspec.mdand approveddesign/only — neverholdout/), runs Repository tests, and opens GitHub pull requests. - Phase 3 — Isolated Parallel Verify (
factonio:verify-code+factonio:verify-behavior) verifies every PR in two stages:- Phase 3a — Deterministic Verification Gate (zero-LLM): before any AI check runs, Factonio runs the Repository's Harness (Doctor, required hooks, CQS and Gate Loosening checks; hidden
holdout/Holdouts are prose and never executed) and Formal Check on the exacthead_shain a throwaway worktree, plus an optional remote CI pre-gate set bygate_verify_on_ci(auto: wait for green CI only beforerigor: highVerification Panels;always: wait for green CI before every AI check;never: local checks only, CI still enforced at the Merge Gate). It records ahead_sha-pinneddeterministic_verifyreceipt in the Decision Trail and spawns no AI check when it fails or is pending. A passing receipt also earns the fast path automatically (Behavior Check is skipped only when zero Holdouts exist). - Phase 3b — AI Verify launches two concurrent, mutually isolated checks that never repeat what Phase 3a already proved on that commit:
- Code Check (
[verify:code]) inspects the Specification (spec.md) andgit diffwithout ever seeingholdout/, spending its turns on Specification fidelity, semantics, blast radius and gate integrity (including.factonio/formal/models) instead of re-running tests, lint or type checks. - Behavior Check (
[verify:behavior]) runs the built artifact against the Acceptance Contract and Holdouts (holdout/) without reading source code or diffs, executing only the non-deterministic checks (prose, interactive, exploratory and UI/visual scenarios); it is skipped entirely when the earned fast path applies.
- Code Check (
- On a rejected Verdict, Factonio runs bounded Retries (up to the Repository's
max_retrieslimit, persisted asmax_fix_rounds; reporting only observable symptoms). Once GitHub CI and both checks pass on the exact livehead_sha, the PR merges with the Repository'smerge_method(squashby default) whenmerge_policy: auto, or waits for your approval under the defaultmerge_policy: ask. - Local-first publishing (
publish_policy: ask):publish_policyandmerge_policydefault toask(globalsdefault_publish_policy/default_merge_policy); Repositories that already persist an explicitautokeep it. Withpublish_policy: auto, Build pushes its branch and opens the PR itself. Withpublish_policy: ask, Build commits only on a local Worktree branch (nogit push, nogh pr create), both checks (andrigor="high"Verification Panels) verify the unpublished branch at its exacthead_sha, and nothing reaches GitHub until you approve. The Orchestrator then publishes that exact verified SHA withfactonio_publish_pr(hermes factonio publish-pr), and the normal GitHub CI, Merge Gate, andmerge_policyflow takes over.
- Phase 3a — Deterministic Verification Gate (zero-LLM): before any AI check runs, Factonio runs the Repository's Harness (Doctor, required hooks, CQS and Gate Loosening checks; hidden
For canonical domain terminology see GLOSSARY.md. For a full technical breakdown of Worktrees, storage locking, Watchdog ticks, and API endpoints, see docs/architecture.md.
Desktop UI
Factonio ships a zero-build Hermes Desktop UI (desktop/plugin.js) using only public @hermes/plugin-sdk surfaces and live host theme tokens.
Metrics Dashboard (/factonio)
Track Workstream throughput, Code Check vs Behavior Check pass rates, rework rate, post-merge Escaped Regression (escape) rate, high-Rigor Verification Panel outcomes (with disagreements highlighted), a Trends strip of long-term trail.db snapshots (inline-SVG sparklines for pass rate, Escaped Regression rate and throughput), per-phase median/P90 durations and a one-line model routing status on the Overview tab; the append-only Decision Trail (Key Decisions / Flagged / All presets, search, an audit findings banner, folded routine gate ticks, inline supersession chains, an Evidence Inspector and confirmation-gated human decisions) on the Decisions tab; and registered Repositories on the Repositories tab. Governance alerts (audit findings, same-vendor verification) sit above all three tabs, and ?tab= deep-links to any of them:

Inline Repository Settings Editor
Edit any registered Repository's default_branch, merge_policy, merge_method, publish_policy, max Retries (max_fix_rounds), design_provider, design_approval, default_rigor, gate_verify_on_ci, or generated_rebuild_command directly in /factonio — inherited global defaults read as quiet text (choose Inherit (…) to clear an override), while per-Repository overrides show as solid pills:

Docked Right-Sidebar Tab & Settings
Monitor active Workstreams beside your chat transcript in the hideable Factonio tab docked next to Files — with a calm signal spine per delivery Unit (Build, Mechanical Verification, a unified AI Verification card with Code | Behavior cells, Merge Gate / Publish PR / Merged), compact All / Active filters, semantic Git icons, attention callouts, PR shortcuts, Workstream Mode badges (refactor, perf, investigate · read-only), opt-in /arena Arena strips (candidate and judge vendors), high-Rigor Verification Panel strips (consensus, vendor lanes and a disagreement callout), and expandable Card detail drawers. With the opt-in factonio_summary model configured, Workstreams, Units and substantive Cards show human-readable names (raw slugs, PR numbers and branches stay in tooltips), callouts, Verification Panel disagreements and Merge Gate holds read as a plain-English headline plus 1–2 sentences, a collapsed Workstream or Unit that needs you shows a one-line attention subtitle (calm rows stay one line), and the Card drawer keeps the original text under Raw details & diagnostics; Settings shows the Summary slot as Off (not configured) until you set it:
| Docked Factonio Sidebar Tab | Settings → Plugins → Factonio |
|---|---|
![]() | ![]() |
Quick start
Prerequisites
- Hermes Agent installed and configured
gitand GitHub CLI (gh), authenticated viagh auth login- Optional: the
claudeCLI onPATH, only if you explicitly opt in to interactive Claude Design (/design) for Phase 1b withdesign_provider: claude-design; the defaultdesign_provider: hermesneeds nothing beyond Hermes
1. Install and enable the plugin
hermes plugins install https://github.com/omnim-ai/factonio
hermes plugins enable factonio
If using Hermes Desktop, toggle Factonio on once under Capabilities → Plugins to enable the Desktop dashboard, docked sidebar tab, Settings page, and status bar pill.
2. Initialize the headless worker profile
hermes factonio init --apply-config
hermes factonio doctor
hermes factonio init creates the dedicated headless factonio profile (approvals.mode: off), links the Factonio plugin into it so workers resolve every factonio:* skill, and applies the recommended root Kanban settings (kanban.dispatch_in_gateway: true, kanban.auto_decompose: false).
3. Configure phase models
Factonio registers six native Hermes Auxiliary Model slots:
| Slot | Phase | Recommendation |
|---|---|---|
factonio_define | Define | Strong reasoning/planning model |
factonio_design | Phase 1b Design (optional) | UI/frontend-capable model |
factonio_implement | Build (frozen legacy slot key) | Fast, accurate coding model |
factonio_verify | Verify (Code Check + Behavior Check) | Different vendor family from Build for cross-model independence (e.g. Claude vs GPT or Gemini) |
factonio_watchdog | Ambiguous stall triage (optional) | Low-cost fast model |
factonio_summary | Human-readable names and plain-English attention summaries (opt-in: Off (not configured) until set; never falls back to the profile default) | Low-cost fast model |
Single-provider multi-vendor routers work out of the box: If you use Nous Portal (
nous), OpenRouter (openrouter), Vertex (vertex), Bedrock (bedrock), or another multi-vendor router, you do not need a second chat provider for cross-vendor Verify orrigor="high"Verification Panels — simply pick models from different vendor families on that same provider (for examplenouswithanthropic/claude-...forfactonio_implementandnouswithopenai/gpt-...orgoogle/gemini-...forfactonio_verify).
Set them in hermes model → Auxiliary Models or Hermes Desktop Settings → Model → Auxiliary, then verify the resolved matrix (add --phase build, verify-code or verify-behavior to show one Phase or Verify pass; legacy implement / verify-diff / verify-blackbox are accepted too):
hermes factonio models
hermes factonio models --phase build
4. Register a Repository and start work
hermes factonio add owner/repo
Then ask your Hermes chat session to build a feature or fix an issue on owner/repo — Factonio's Orchestrator coordinates Define, optional Design, parallel Build, isolated Verify, and the Merge Gate automatically.
Edit Repository settings anytime
Adjust any registered Repository's settings without re-adding it (only passed flags change):
hermes factonio update owner/repo --merge-policy ask --max-retries 5 # alias of --max-fix-rounds 5
hermes factonio update owner/repo --publish-policy ask # verify locally, publish PRs only on approval
hermes factonio update owner-repo --default-branch develop
hermes factonio update owner/repo --design-provider hermes --design-approval auto
hermes factonio update owner/repo --design-provider inherit # revert to global default
hermes factonio update owner/repo --overlap-rebase-policy conflicts_only # Merge Gate allows GitHub-MERGEABLE trunk overlap
hermes factonio edit owner/repo --merge-policy auto --json # `edit` is an alias
You can also edit settings from chat via factonio_update_repo, or inline on /factonio (PATCH /api/plugins/factonio/repos/<slug>, which requires "confirmed": true). Every successful update appends an immutable update_repo row to trail.db naming the changed fields and the actor (human Dashboard, cli, orchestrator agent tool). The safety/policy fields merge_policy, publish_policy, generated_rebuild_command, gate_verify_on_ci, overlap_rebase_policy, default_rigor and design_approval are owner-only: agent tools (factonio_add_repo / factonio_update_repo) and CLI runs inside the factonio worker profile refuse them, while the owner CLI and PATCH /repos/{slug} keep every field editable. The Retry limit accepts --max-retries / max_retries as an additive alias of --max-fix-rounds / max_fix_rounds on add, update / edit, factonio_add_repo, factonio_update_repo and PATCH /repos/{slug}: either alias alone (an integer >= 1) or both with equal values persist max_fix_rounds in repos.json, while conflicting or invalid values fail closed with no write (CLI exit 1, tool ok: false, HTTP 422).
CLI and agent tools reference
CLI subcommands (hermes factonio ...)
| Command | Purpose |
|---|---|
hermes factonio init [--apply-config] [--workers N] [--force] [--force-link] | Create or update the headless factonio worker profile and plugin link (refuses to link a persistent profile to an ephemeral worktree/workspace/scratch checkout unless --force-link) |
hermes factonio doctor [--json] | Check git, gh auth, worker profile, Kanban config, and cross-model setup |
hermes factonio add <owner/repo> [--path DIR] [--merge-policy auto|ask] [--merge-method squash|merge|rebase] [--publish-policy auto|ask] [--max-fix-rounds N] [--max-retries N] [--overlap-rebase-policy strict|conflicts_only] | Register, clone (unless --no-clone; without --path into <repos_root>/<owner>/<name>, reusing an existing <repos_root>/<name> checkout of the same Repository), anchor Hermes Project, and inspect required checks from branch protection and Repository Rulesets |
hermes factonio update|edit <repo> [--merge-policy ...] [--merge-method squash|merge|rebase|inherit] [--publish-policy auto|ask] [--max-fix-rounds N] [--max-retries N] [--default-branch B] [--design-provider ...] [--design-approval ...] [--default-rigor standard|high|inherit] [--overlap-rebase-policy strict|conflicts_only|inherit] | Update per-Repository settings (inherit clears design, rigor, merge method and overlap rebase overrides; an invalid --overlap-rebase-policy exits 1 without writes) |
hermes factonio list [--json] | List registered Repositories and active settings |
hermes factonio remove <repo> | Unregister a Repository (keeps local files intact) |
hermes factonio models [--repo SLUG] [--phase P] [--json] | Show resolved provider/model per Phase (human output names build, not implement), default Rigor, the high-Rigor Verification Panel, and cross-model warning; --phase selects one of define, design, build, verify, verify-code, verify-behavior, watchdog, summary (legacy implement / verify-diff / verify-blackbox accepted) and fails closed on unknown names; --json without --phase keeps its existing keys |
hermes factonio start <repo> <request> [--kind feature|bug|quick|refactor|perf|investigate] [--title T] [--issue N] [--skip-define] [--escaped-from CARD] [--unit SLUG] [--json] | Start a Workstream; refactor pins behavior, perf embeds the 7+7 benchmark checklist, investigate is read-only (writes investigation.md, no PRs, rejects --skip-define); --unit stamps a Unit slug on a direct Build Card (quick / --skip-define only) |
hermes factonio status [--tenant T] [--json] | Show active Factonio Kanban Workstreams and Cards |
| `hermes factonio verify --tenant T (--pr N | --branch B --head-sha SHA [--base-branch B]) [--deterministic-only] [--rigor standard|high] [--gate-verify-on-ci auto|always|never] [--has-ui|--no-ui] [--impl-card-id ID] [--run-hint H] [--json]` |
hermes factonio panel [panel_id] [--tenant T] [--pr N] [--record] [--json] | Evaluate a rigor=high Verification Panel's fail-closed consensus (pass / reject / inconclusive / pending), disagreement summary, and findings; --record logs a terminal consensus to trail.db (exits non-zero when no panel matches) |
hermes factonio arena spawn|status [repo] [--request R] [--target define|design] [--tenant T] [--candidate M ...] [--judge-model M] [--no-judge] [--strict-cross-vendor] [--arena-id ID] [--spawn-judge] [--json] | Opt-in Arena: fan out competing cross-vendor Define or Design candidates (fails closed unless >= 2 vendor families) plus a dependent judge that hand-grafts the canonical artifact, or report read-only Arena progress |
hermes factonio pr-gate <repo> <pr_number> [--json] | Inspect live PR HEAD SHA, mergeability, and CI check status |
hermes factonio publish-pr <repo> <branch> --expected-head-sha <sha> --title <title> [--body <text> | --body-file <path>] [--base B] [--draft] [--remote R] [--tenant T] [--card-id ID] [--json] | Publish a locally verified branch (publish_policy: ask): refuses on any HEAD drift, a missing passing local verification at that exact SHA and base, a Holdout reference in the title or body, or a --body-file that is not a regular, non-hidden, non-symlink file inside the registered checkout before any remote call, pushes exactly <sha>:refs/heads/<branch>, opens the PR via a temporary body file, and confirms it by live readback (exit 0 only when published; refused inside the factonio worker profile) |
hermes factonio merge-pr <repo> <pr_number> --expected-head-sha <sha> [--method squash|merge|rebase] [--keep-branch] [--allow-patch-continuity] [--allow-stacked-merge] [--fetch] [--tenant T] [--card-id ID] [--json] | Owner-only Merge Gate merge at the exact verified HEAD SHA under any merge_policy (refused inside the factonio worker profile; exit 0 only when merged or queued) |
hermes factonio harness init|check|show|audit|prove-red|prove-sensitivity|verify-trace|run-layer-a|approve <repo> [--force] [--dry-run] [--prove] [--base REF] [--run-doctor] [--run-hooks] [--run-cqs] [--cmd C] [--negative-cmd C] [--test-file F] [--config P] [--trace P] [--spec P] [--holdout-dir D] [--timeout S] [--ref REF] [--revoke] [--json] | Owner-only approve pins the exact SHA-256 digest of the Harness's auto-executed commands (printed with the command list; --ref reads a committed harness with git show, --revoke clears it); Doctor, hooks, CQS, init --prove, run-layer-a and Phase 3a refuse to run anything until it matches. Bootstrap, validate, show, or read-only drift-audit the Repository's .factonio/verify.md + harness.json Behavior Check Harness; prove-red proves a regression test fails at --base, prove-sensitivity proves a faulted negative control fails for real, verify-trace replays a formal trace against its Quint model, and run-layer-a runs the deterministic Layer A Repository checks, with --holdout-dir optional and never executed (init --prove fails closed and rolls back unless Doctor, required hooks and evidence survival pass; check fails when required gates were removed/downgraded vs --base, default HEAD; audit exits non-zero when stale or missing and classifies drift as doc_drift / harness_gap / product_regression) |
hermes factonio close-pr <repo> <pr_number> [--reason superseded|abandoned] [--superseded-by N] [--delete-branch] [--archive-workstream] [--tenant T] [--card-id ID] [--why W] [--json] | Close an abandoned or superseded PR, archive the Cards targeting it (or the whole Workstream), optionally delete its head branch, and record the decision in trail.db |
hermes factonio archive <tenant> [--repo R] [--why W] [--json] | Archive every Card of a Workstream and record the decision in trail.db |
hermes factonio worktrees [repo] [--base REF] [--prune-safe] [--json] | Safety-bucketed worktree audit across registered Repositories; --prune-safe removes only worktrees in the safe bucket |
hermes factonio issues <repo> [--issue N] [--label L] [--require-label L] [--allow-author A] [--allow-label L] [--limit N] [--json] | Read-only GitHub Issues triage: stop-the-line labels, ownership/allowlist gate, and active-Workstream / linked-PR / duplicate detection |
hermes factonio restack <repo> [pr_number] [--parent-pr N] [--from-branch B] [--new-base B] [--old-base-sha SHA] [--verified-sha SHA] [--no-push] [--no-retarget] [--dry-run] [--json] | Rebase a stacked PR (or every open child of a parent) onto its new base in a throwaway Worktree and report git patch-id Verdict continuity |
hermes factonio eval ab|audit|bloat <inputs...> [--phase P] [--seed S] [--model-a/-b M] [--provider-a/-b P] [--judge-model M] [--judge-provider P] [--strict-vendor] [--record-trail] [--dry-run] [--baseline PATH] [--strict] [--json] | Offline, deterministic blind skill/model eval (--phase takes canonical build, verify-code, verify-behavior, plus define, design, verify-formal, orchestrator; legacy implement / verify-diff / verify-blackbox are accepted and output shows the canonical name): ab blinds two candidate transcripts into seeded Candidate X / Candidate Y packets and unblinds the winner (barrier leaks disqualify; --strict-vendor fails closed on any unknown candidate/judge vendor or a shared judge vendor; --dry-run never writes trail.db); audit flags real Information Barrier leaks (exit 1); bloat measures skill token budgets (soft 3000 / hard 4500) for files or whole skill directories and reports over_budget skills with exit 0, or exit 1 with --strict / --fail-on-over-budget. Also runs without Hermes as python3 tools/eval_skills.py ... |
hermes factonio trail [--tenant T] [--repo R] [--phase P] [--card ID] [--limit N] [--markdown] [--audit] [--recall] [--query Q] [--json] | Show the append-only Decision Trail (trail.db) as text, a Markdown table, or the {decisions, summary, filters} JSON contract (--phase build / verify-code / verify-behavior also match historical implement / verify-diff / verify-blackbox rows, and vice versa); --audit runs a read-only pre-handoff evidence audit (exit 1 on findings), --recall surfaces prior Escaped Regressions, dead ends and relevant decisions across Workstreams |
hermes factonio metrics [--range 1d|3d|7d|30d|90d|all] [--tenant T] [--repo R] [--history] [--snapshot] [--source S] [--since S] [--limit N] [--json] | Show factory KPIs; --snapshot appends a factory-wide snapshot to trail.db; --history lists long-term snapshots oldest -> newest as {snapshots, summary, filters} |
Agent tools (toolset factonio)
Owner and Orchestrator sessions register all 17 tools below; inside the factonio worker profile or a Kanban worker run only the read/log worker-safe set (agent_tools.WORKER_SAFE_TOOLS: factonio_pr_gate, factonio_log_decision) is registered.
factonio_add_repo— register a GitHub repository as a Repository and anchor its Hermes Project (optionalmax_fix_rounds/max_retriesRetry limit)factonio_update_repo— update agent-editable per-Repository settings (merge_method,max_fix_roundsor its aliasmax_retries,default_branch,design_provider); owner-only policy fields are refusedfactonio_start— start a Workstream (feature,bug,quick, behavior-preservingrefactor, benchmark-checkedperf, read-onlyinvestigate, orescaped_fromfor Escaped Regressions); CLI:hermes factonio start <repo> "<request>" --kind ...factonio_spawn_design— spawn a Phase 1b UI/UX Design Card (pure-Hermeshermesby default;claude-designonly on explicit opt-in)factonio_spawn_implement— spawn a scoped git-Worktree[build]Build Card (frozen legacy tool name; optionally stacked on a parent PR viabase_branch/stack_parent_pr; optionalunitenforces the unified Retry budget, and closed Workstreams are refused unlessallow_closed_workstream)factonio_spawn_verify— run the zero-LLM Phase 3a Deterministic Verification Gate (Harness, Formal Check and thegate_verify_on_ciCI pre-gate on the exacthead_sha; fails fast with no Cards) and then spawn mutually isolated[verify:code]Code Check and[verify:behavior]Behavior Check Cards in parallel for a PR (pr_number) or an unpublished local branch (branch+head_sha[+base_branch]);rigor: "high"(or a Repository'sdefault_rigor: high) fans out one isolated pair per model of a multi-vendorverify_panel, failing closed unless it spans >= 2 vendor familiesfactonio_evaluate_panel— aggregate a high-Rigor Verification Panel's lanes into a fail-closed consensus (merge_allowedonly on unanimouspass), withdisagreement_summaryand aggregated findings, and logverify_panel_consensustotrail.dbfactonio_spawn_arena— opt-in Arena for contested Specifications or Designs: isolated cross-vendor candidates per vendor family plus a dependent hand-grafting judgefactonio_evaluate_arena— read-only Arena progress (ready_for_synthesis,synthesized)factonio_status— inspect active Workstream Cards, registered Repositories, and resolved phase modelsfactonio_pr_gate— Merge Gate check: verify live PR HEAD SHA and CI status checks viaghfactonio_merge_pr— verify exact HEAD SHA and merge a verified PR with the Repository'smerge_method(defaultsquash); undermerge_policy: askthepre_tool_callgate requires a one-shot human approval for that exact PR, SHA, method and merge flagsfactonio_publish_pr— after explicit human approval, push the exact locally verifiedexpected_head_shaof an unpublished branch and open its GitHub PR (fail-closed on HEAD drift, invalid input, or unregistered Repository; logspublish_prtotrail.db)factonio_bootstrap_verify—init/check/show/audita Repository's.factonio/Harness (Launch / Doctor / Drive / Evidence / Cleanup playbook, feature map, schema v2 hooks:static_check/architecture/code_health/property_test/mutation/formal_spec/visual_diff/custom, fail-closedformal_specstaleness,--run-cqsread-only checks) (running Doctor, hooks or CQS only once the owner ranharness approve;prove-red/prove-sensitivityare owner CLI only); Behavior Check Cards receive it automaticallyfactonio_restack_pr— after a parent PR lands, rebase its child PR(s) onto the new base, push with--force-with-lease, retarget, and report whether Verify Verdicts carry over (verdict_continuous)factonio_triage_issues— Hermes-native GitHub Issues intake: read-onlytriageof open issues, orverify_existing_fix(deterministic before/after Verdict on an existing PR) before writing a duplicate fix; issue text is treated as untrusted datafactonio_log_decision— append a decision (fork, pivot, Attack the Premise probe, gate countersign) to the append-onlytrail.db; correct one by logging a new row withsupersedes_id; Factonio's own system decisions (RESERVED_SYSTEM_DECISIONS:merge_pr,spawn_verify,deterministic_verify, ...) are refused case-insensitively here and onPOST /trail/decisions, both as the logged decision and as asupersedes_idtarget, theactorcomes from the runtime context (worker/orchestrator, never an argument), and every row is Information Barrier-scrubbed before it is stored
Canonical names and legacy aliases
New Cards, skills and Decision Trail rows use GLOSSARY.md names: skills factonio:build, factonio:verify-code and factonio:verify-behavior (skills/build/, skills/verify-code/, skills/verify-behavior/), Card prefixes [build], [verify:code] and [verify:behavior], and phase="build" for Build spawns in trail.db. Renaming is additive, so existing integrations keep working:
- Frozen wire and storage names: all 17 agent tool names (e.g.
factonio_spawn_implement) and all 23 CLI subcommands are unchanged;repos.jsonstill persistsmax_fix_rounds,config.yamlkeepsdefault_max_fix_roundsand thefactonio_implementAuxiliary Model slot, andGET /api/plugins/factonio/reposkeeps itsdefaults.max_fix_rounds/max_fix_roundsresponse keys. - Additive aliases:
--max-retries/max_retriesalongside--max-fix-rounds/max_fix_rounds(see above; a root-configdefault_max_retrieslikewise wins overdefault_max_fix_rounds), canonical--phasenames inmodels,evalandtrail, and canonicalverify_code_task_id/verify_behavior_task_id/code_model/behavior_modelkeys beside the legacyverify_diff_task_id/verify_blackbox_task_id/diff_model/blackbox_modelkeys infactonio_spawn_verifyresults andspawn_verifyevidence. - Read compatibility: historical Kanban Cards (
[implement],[verify:diff],[verify:blackbox],factonio:implement/factonio:verify-diff/factonio:verify-blackbox) and historicaltrail.dbrows (implement,verify-diff,verify-blackbox) are still read, filtered, audited and counted exactly like their canonical spellings acrossstatus,trail,trail --audit,metrics, the Dashboard API and the Desktop UI.
Factory transitions (start, Escaped Regression, Design/Build/Verify spawns, PR publication, Merge Gate and merge outcomes) are recorded in <HERMES_HOME>/plugin-data/factonio/trail.db automatically and served at GET /api/plugins/factonio/trail?tenant=&repo=&phase=&card_id=&limit= (single rows at GET /api/plugins/factonio/trail/{decision_id}; additive actor, q, signal=all|key|attention and include_superseded filters; read-only trail --audit findings at GET /api/plugins/factonio/trail/audit; confirmation-gated human decisions via POST /api/plugins/factonio/trail/decisions). The same API exposes the Desktop control-plane actions documented in docs/architecture.md: POST /publish-pr (locally verified branches only), POST /merge-pr (owner merge at an exact verified HEAD SHA), POST /repos/{slug}/harness/audit, POST /panels/evaluate, POST /arenas/evaluate, and the read-only GET /workstreams/{tenant}/report investigation viewer. Merges, terminal Verification Panel consensus, and retro decisions also append a factory KPI snapshot to trail.db (schema v2 metric_snapshots), so trends survive kanban.db resets; read them at GET /api/plugins/factonio/metrics/history?repo=&tenant=&source=&since=1d|3d|7d|30d|90d|all|<ISO-8601>&limit= or with hermes factonio metrics --history.
Security, permissions, and local storage
Factonio runs with your OS user's permissions. Before enabling it, know what it does on your machine:
- Subprocesses: runs
gitand the GitHub CLIgh, your Repositories' own build/test/verification commands (from.factonio/harness.jsonand the Kanban Cards), and theclaudeCLI only when you explicitly setdesign_provider: claude-design. It never reads vendor credential stores such as~/.claude/. - GitHub operations via
gh: with your existinggh authtoken it reads Repository metadata, CI checks, and issues, and pushes branches, opens, closes, and merges pull requests (with each Repository'smerge_method, defaultsquash) according to itspublish_policyandmerge_policy. Both policies default toask, keeping a human in the loop: apre_tool_callhook blocksfactonio_merge_pr/factonio_publish_prin thefactonioworker profile and in unattended, YOLO or approvals-off sessions, and otherwise asks you to approve the exact call (every argument,head_shaincluded); only your approval, never a denial or timeout, authorizes that one call. Keep GitHub branch protection or Rulesets enabled too. - Dedicated worker profile:
hermes factonio init(run explicitly, never on install) creates a separate headlessfactonioprofile withapprovals.mode: offso Kanban workers can run non-interactively. It never changes your active profile's approval settings. - Root config:
hermes factonio initonly recommends rootconfig.yamlKanban settings (kanban.dispatch_in_gateway,kanban.auto_decompose,kanban.max_in_progress); it writes them only when you pass--apply-config. Plugin settings you change live underplugins.entries.factonio.settings. - Local storage: registered Repositories in
<HERMES_HOME>/plugin-data/factonio/repos.json, per-Workstream Specifications, designs, and reports under<HERMES_HOME>/plugin-data/factonio/runs/, and the append-only Decision Trail in<HERMES_HOME>/plugin-data/factonio/trail.db.hermes factonio addclones a Repository (unless--no-clone) to--pathor<repos_root>/<owner>/<name>(default~/dev; an existing<repos_root>/<name>checkout whoseoriginis the same Repository is reused, and a path claimed by another registered Repository or occupied by an unrelated checkout fails closed), and Build works in git Worktrees under that checkout.
See SECURITY.md for the full trust model and how to report vulnerabilities.
Developing and contributing
Contributions are welcome — bug reports, skill improvements, Orchestrator/Watchdog fixes, Desktop UI enhancements, tests, and documentation.
Local development checkout
git clone git@github.com:omnim-ai/factonio.git
cd factonio
ln -sfn "$PWD" "${HERMES_HOME:-$HOME/.hermes}/plugins/factonio"
hermes plugins enable factonio
hermes skills trust # auto-loads contributor skills in .agents/skills/ (e.g. update-readme-media)
Run tests and checks
Every test runs in an isolated temporary HERMES_HOME (tests._env.isolated_hermes_home()) and never touches your real ~/.hermes:
# Full test suite (requires a Hermes Agent checkout + Node 22.15+)
PYTHONPATH=/path/to/hermes-agent /path/to/hermes-agent/.venv/bin/python -m unittest discover -s tests -v
# Standalone static & integrity checks
python3 -W error -m compileall -q .
uvx ruff check .
uvx mypy
node --check desktop/plugin.js
python3 tools/check_repo_integrity.py
Read CONTRIBUTING.md for PR expectations, core invariants, and the change-to-checks guide, and docs/development.md for setting up a pinned Hermes checkout, understanding the zero-build Node ESM Desktop test harness, and keeping README screenshots/GIFs up to date via the .agents/skills/update-readme-media/SKILL.md contributor skill (enforced on UI PRs in CI).
Report security vulnerabilities privately through SECURITY.md. See GitHub Releases for release history.
Acknowledgments
Special thanks to Lauren Tan (@poteto) and pstack (MIT License). Factonio's worker contract and phase skills adapt several pstack engineering patterns:
- Worker execution contract: the card's acceptance bar is the whole bar, autonomy on reversible choices, and no blocking on pre-existing base defects.
- Define rigor: data-shape-first design, an Architect step with two candidate shapes, empirical prototypes, a Throughput Checkpoint before the Unit DAG, and binary-search bug diagnosis.
- Build discipline: the Attack the Premise circuit breaker, skeptical review-thread triage with prompt-injection hygiene, comment hygiene, and a short PR briefing template.
- Verify and Merge Gate rigor: run-proven findings, blast-radius proof, base-vs-PR attribution, tri-state
pass/reject/inconclusiveVerdicts, the tiered Merge Gate, live merge readback, andgit patch-idverdict continuity. - Wave 2 adaptations:
show-me-your-work(the append-onlytrail.dbDecision Trail andfactonio_log_decision),ketchup(decision-ready human handoffs in the Orchestrator skill),/correct(the retro's recurring-mistake mining, enforcement ladder, and prove-it-fails rule, plus Escaped Regression Verification Gap Analysis),worktree-audit.sh(safety-bucketed worktree audit and opt-in pruning), and side-effect liveness (Watchdog progress detection beyond heartbeats). - Wave 3 adaptations: stacked PR landing (
base_branch/stack_parent_prBuild Cards and--ontorestacks in a throwaway Worktree withgit patch-idVerdict continuity viafactonio_restack_pr), and an opt-in multi-model Verification Panel (rigor: highVerify fanned out across distinct vendor families with fail-closed consensus viafactonio_evaluate_panel).
pstack's copyright and permission notice is reproduced in THIRD_PARTY_NOTICES.md.
Setting this up for your team
Factonio is free and MIT-licensed. If you want help deploying a software factory in your team's Repositories, tuning the pipeline for your codebase, or figuring out broader AI adoption in your engineering workflow, reach out at tony@omnim.ai or connect on LinkedIn.
Affiliation and trademarks
Factonio is an independent open-source project by Omnim AI. It is built for compatibility with Hermes Agent and is not officially affiliated with, endorsed by, or sponsored by Nous Research.
License
Licensed under the MIT License.
README from the reviewed commit 7255ca8; it updates when the author re-pins.

tozes

