All plugins

factonio

Phase-based software factory for GitHub repositories: Define, optional Design (pure-Hermes default, optional Claude Design), isolated worktree Build, and parallel Verify (Code Check + Behavior Check) with per-phase model routing, a tick Watchdog, and Desktop metrics UI. Disclosure — runs git, gh (with your full environment), the optional claude CLI, and repository check/test commands; repository commands from .factonio/ run only after you approve their exact command list with hermes factonio harness approve or the dashboard, and again whenever it changes, with a minimal environment. Reads and pushes branches and opens and merges PRs through your existing gh login; under the default ask policy each merge or publish needs your approval in an interactive session. Stores trail.db and run artifacts under HERMES_HOME/plugin-data/factonio/. An explicit hermes factonio init (never run on load, hook or tool call) creates an isolated factonio worker profile with approvals.mode: off, leaving your active profile's approvals unchanged, and --apply-config updates root Kanban dispatch settings.

tozesAutomationv0.4.2Updated 38 minutes ago

About

Phase-based software factory for GitHub repositories: Define, optional Design (pure-Hermes default, optional Claude Design), isolated worktree Build, and parallel Verify (Code Check + Behavior Check) with per-phase model routing, a tick Watchdog, and Desktop metrics UI. Disclosure — runs git, gh (with your full environment), the optional claude CLI, and repository check/test commands; repository commands from .factonio/ run only after you approve their exact command list with hermes factonio harness approve or the dashboard, and again whenever it changes, with a minimal environment. Reads and pushes branches and opens and merges PRs through your existing gh login; under the default ask policy each merge or publish needs your approval in an interactive session. Stores trail.db and run artifacts under HERMES_HOME/plugin-data/factonio/. An explicit hermes factonio init (never run on load, hook or tool call) creates an isolated factonio worker profile with approvals.mode: off, leaving your active profile's approvals unchanged, and --apply-config updates root Kanban dispatch settings.

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.

CI
Hermes Upstream
MIT License

Quick Start · How It Works · Desktop UI · Develop & Contribute · Glossary · Architecture

Animated walkthrough of Factonio taking an issue from Define and Design through parallel Build, an isolated Behavior Check catch, Retry 1, a Verify pass, and PR merge in Hermes Desktop

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 RepositoriesTune cross-model VerifyDevelop or contribute
Quick StartConfigure phase modelsDevelopment 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:

Factonio pipeline: Define, optional Design, parallel Build, isolated Code Check and Behavior Check behind an Information Barrier, then the exact-HEAD Merge Gate

  1. Phase 1 — Define (factonio:define) explores the Repository, writes the Specification spec.md (acceptance criteria, technical plan, and a parallel Unit DAG) and the public Acceptance Contract acceptance.md, and authors hidden prose Holdouts (behavioral scenarios) under holdout/.
  2. Phase 1b — Optional UI/UX Design (factonio:design) runs when a Unit touches UI (has_ui: true or on request). By default (design_provider: hermes) it builds pure-Hermes HTML/CSS previews; set design_provider: claude-design to opt in to supervising interactive Claude Design (/design) through the claude CLI on PATH.
  3. Phase 2 — Parallel Build (factonio:build) dispatches independent Specification Units as [build] Cards in parallel git Worktrees (reading spec.md and approved design/ only — never holdout/), runs Repository tests, and opens GitHub pull requests.
  4. 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 exact head_sha in a throwaway worktree, plus an optional remote CI pre-gate set by gate_verify_on_ci (auto: wait for green CI only before rigor: high Verification Panels; always: wait for green CI before every AI check; never: local checks only, CI still enforced at the Merge Gate). It records a head_sha-pinned deterministic_verify receipt 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) and git diff without ever seeing holdout/, 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.
    • On a rejected Verdict, Factonio runs bounded Retries (up to the Repository's max_retries limit, persisted as max_fix_rounds; reporting only observable symptoms). Once GitHub CI and both checks pass on the exact live head_sha, the PR merges with the Repository's merge_method (squash by default) when merge_policy: auto, or waits for your approval under the default merge_policy: ask.
    • Local-first publishing (publish_policy: ask): publish_policy and merge_policy default to ask (globals default_publish_policy / default_merge_policy); Repositories that already persist an explicit auto keep it. With publish_policy: auto, Build pushes its branch and opens the PR itself. With publish_policy: ask, Build commits only on a local Worktree branch (no git push, no gh pr create), both checks (and rigor="high" Verification Panels) verify the unpublished branch at its exact head_sha, and nothing reaches GitHub until you approve. The Orchestrator then publishes that exact verified SHA with factonio_publish_pr (hermes factonio publish-pr), and the normal GitHub CI, Merge Gate, and merge_policy flow takes over.

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:

Factonio Dashboard Overview tab showing the Overview / Decisions / Repositories tabs, governance alerts for audit findings and a same-vendor Verification Panel, the range selector, the model routing strip, KPI cards including Verification Panels, the Trends strip and Phase Durations

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:

Animated walkthrough of editing a registered Repository inline on the Factonio Repositories tab

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 TabSettings → Plugins → Factonio
Factonio Right Sidebar tab beside Files with a compact All / Active header and Dashboard button, a collapsible Phase 1 strip, delivery Units on a static hairline spine (Build with a Retry chip, Mechanical Verification, a unified AI Verification card with Code and Behavior cells, Merge Gate with a Git icon), one contextual detail strip with a needs-input card and Reply in chat, and an amber Ready to publish Unit with a Publish PR actionSettings Plugins Factonio landing page showing the Verification Panel status above Phase Models (with the opt-in Summary row Off (not configured)), and Agent settings

Quick start

Prerequisites

  • Hermes Agent installed and configured
  • git and GitHub CLI (gh), authenticated via gh auth login
  • Optional: the claude CLI on PATH, only if you explicitly opt in to interactive Claude Design (/design) for Phase 1b with design_provider: claude-design; the default design_provider: hermes needs 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:

SlotPhaseRecommendation
factonio_defineDefineStrong reasoning/planning model
factonio_designPhase 1b Design (optional)UI/frontend-capable model
factonio_implementBuild (frozen legacy slot key)Fast, accurate coding model
factonio_verifyVerify (Code Check + Behavior Check)Different vendor family from Build for cross-model independence (e.g. Claude vs GPT or Gemini)
factonio_watchdogAmbiguous stall triage (optional)Low-cost fast model
factonio_summaryHuman-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 or rigor="high" Verification Panels — simply pick models from different vendor families on that same provider (for example nous with anthropic/claude-... for factonio_implement and nous with openai/gpt-... or google/gemini-... for factonio_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 ...)

CommandPurpose
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 (optional max_fix_rounds / max_retries Retry limit)
  • factonio_update_repo — update agent-editable per-Repository settings (merge_method, max_fix_rounds or its alias max_retries, default_branch, design_provider); owner-only policy fields are refused
  • factonio_start — start a Workstream (feature, bug, quick, behavior-preserving refactor, benchmark-checked perf, read-only investigate, or escaped_from for Escaped Regressions); CLI: hermes factonio start <repo> "<request>" --kind ...
  • factonio_spawn_design — spawn a Phase 1b UI/UX Design Card (pure-Hermes hermes by default; claude-design only 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 via base_branch / stack_parent_pr; optional unit enforces the unified Retry budget, and closed Workstreams are refused unless allow_closed_workstream)
  • factonio_spawn_verify — run the zero-LLM Phase 3a Deterministic Verification Gate (Harness, Formal Check and the gate_verify_on_ci CI pre-gate on the exact head_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's default_rigor: high) fans out one isolated pair per model of a multi-vendor verify_panel, failing closed unless it spans >= 2 vendor families
  • factonio_evaluate_panel — aggregate a high-Rigor Verification Panel's lanes into a fail-closed consensus (merge_allowed only on unanimous pass), with disagreement_summary and aggregated findings, and log verify_panel_consensus to trail.db
  • factonio_spawn_arena — opt-in Arena for contested Specifications or Designs: isolated cross-vendor candidates per vendor family plus a dependent hand-grafting judge
  • factonio_evaluate_arena — read-only Arena progress (ready_for_synthesis, synthesized)
  • factonio_status — inspect active Workstream Cards, registered Repositories, and resolved phase models
  • factonio_pr_gate — Merge Gate check: verify live PR HEAD SHA and CI status checks via gh
  • factonio_merge_pr — verify exact HEAD SHA and merge a verified PR with the Repository's merge_method (default squash); under merge_policy: ask the pre_tool_call gate requires a one-shot human approval for that exact PR, SHA, method and merge flags
  • factonio_publish_pr — after explicit human approval, push the exact locally verified expected_head_sha of an unpublished branch and open its GitHub PR (fail-closed on HEAD drift, invalid input, or unregistered Repository; logs publish_pr to trail.db)
  • factonio_bootstrap_verify — init / check / show / audit a 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-closed formal_spec staleness, --run-cqs read-only checks) (running Doctor, hooks or CQS only once the owner ran harness approve; prove-red / prove-sensitivity are owner CLI only); Behavior Check Cards receive it automatically
  • factonio_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-only triage of open issues, or verify_existing_fix (deterministic before/after Verdict on an existing PR) before writing a duplicate fix; issue text is treated as untrusted data
  • factonio_log_decision — append a decision (fork, pivot, Attack the Premise probe, gate countersign) to the append-only trail.db; correct one by logging a new row with supersedes_id; Factonio's own system decisions (RESERVED_SYSTEM_DECISIONS: merge_pr, spawn_verify, deterministic_verify, ...) are refused case-insensitively here and on POST /trail/decisions, both as the logged decision and as a supersedes_id target, the actor comes 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.json still persists max_fix_rounds, config.yaml keeps default_max_fix_rounds and the factonio_implement Auxiliary Model slot, and GET /api/plugins/factonio/repos keeps its defaults.max_fix_rounds / max_fix_rounds response keys.
  • Additive aliases: --max-retries / max_retries alongside --max-fix-rounds / max_fix_rounds (see above; a root-config default_max_retries likewise wins over default_max_fix_rounds), canonical --phase names in models, eval and trail, and canonical verify_code_task_id / verify_behavior_task_id / code_model / behavior_model keys beside the legacy verify_diff_task_id / verify_blackbox_task_id / diff_model / blackbox_model keys in factonio_spawn_verify results and spawn_verify evidence.
  • Read compatibility: historical Kanban Cards ([implement], [verify:diff], [verify:blackbox], factonio:implement / factonio:verify-diff / factonio:verify-blackbox) and historical trail.db rows (implement, verify-diff, verify-blackbox) are still read, filtered, audited and counted exactly like their canonical spellings across status, 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 git and the GitHub CLI gh, your Repositories' own build/test/verification commands (from .factonio/harness.json and the Kanban Cards), and the claude CLI only when you explicitly set design_provider: claude-design. It never reads vendor credential stores such as ~/.claude/.
  • GitHub operations via gh: with your existing gh auth token it reads Repository metadata, CI checks, and issues, and pushes branches, opens, closes, and merges pull requests (with each Repository's merge_method, default squash) according to its publish_policy and merge_policy. Both policies default to ask, keeping a human in the loop: a pre_tool_call hook blocks factonio_merge_pr / factonio_publish_pr in the factonio worker profile and in unattended, YOLO or approvals-off sessions, and otherwise asks you to approve the exact call (every argument, head_sha included); 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 headless factonio profile with approvals.mode: off so Kanban workers can run non-interactively. It never changes your active profile's approval settings.
  • Root config: hermes factonio init only recommends root config.yaml Kanban 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 under plugins.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 add clones a Repository (unless --no-clone) to --path or <repos_root>/<owner>/<name> (default ~/dev; an existing <repos_root>/<name> checkout whose origin is 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/inconclusive Verdicts, the tiered Merge Gate, live merge readback, and git patch-id verdict continuity.
  • Wave 2 adaptations: show-me-your-work (the append-only trail.db Decision Trail and factonio_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_pr Build Cards and --onto restacks in a throwaway Worktree with git patch-id Verdict continuity via factonio_restack_pr), and an opt-in multi-model Verification Panel (rigor: high Verify fanned out across distinct vendor families with fail-closed consensus via factonio_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.

More by tozes

2 plugins by tozes in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section