⚓ firstmate field guide
Reference

Changelog

Every change to this guide, newest first, each with the commit or post it came from.

The tools this guide describes change most days, so the guide does too. Each line links the section that changed and the source that changed it. Days with no change are left out.

2026-11-28#

  • Scaling up — secondmates, dispatch & quota: New config/codex-accounts row: one Codex home per line (ordinary or an absolute CODEX_HOME). Codex ship/scout spawns need --account. fm-codex-account-quota.sh measures each. (firstmate@b119e42)
  • Configuration & state files: New codex-accounts row: one Codex home per line. Codex ship/scout spawns name one with --account. The launch unsets CODEX_API_KEY and CODEX_ACCESS_TOKEN. Off by default, not inherited. (firstmate@b119e42)
  • Harness integration: Native Stop park now admits any canonical codex-cli release at or above 0.163.0. Prerelease, malformed, below-minimum or failed version probes keep the checkpoint loop. (firstmate@977f813)
  • Configuration & state files: codex-stop-park row: the session must be native, interactive, registered through the project SessionStart hook, hold the lock, and run codex-cli 0.163.0 or later. (firstmate@977f813)
  • Configuration & state files: New turnend-abort-absorb presence flag: absorbs bare turn-ends after an explicitly aborted no-mistakes run when the worker is busy again since then. Off by default, not inherited. (firstmate@aa6c123)
  • Configuration & state files: pr-register-scan: a later paused: line naming only the same PR keeps the ready report; one naming no PR or another PR withdraws it. (firstmate@a5225cf)
  • The AXI tools firstmate uses: LAVISH_AXI_PUBLIC_URL sets the session-link origin behind a reverse proxy, overriding MagicDNS and LAVISH_AXI_LINK_HOST. Its host is auto-allowed. Binding is unchanged. Invalid values fail startup. (lavish-axi@0159b44)
  • Kun's playbook: New habit 17: with agents, do a new idea right away while its intent is fresh, instead of backlogging it. (post)

2026-11-27#

  • Configuration & state files: New pr-follow flag (off, not inherited): PRs or MRs you explicitly ask to follow get one direct transcript line per merge, close, failing check or change request, with no task or model turn. (firstmate@d2859c4)
  • Configuration & state files: pr-health-monitor gains opt-in reports, each enabled by its own empty file: any-failure, approved-green, final and stale-review. A label-gated list holds checks until a label releases them. (firstmate@4b1d93d)
  • Configuration & state files: New hold-answer-words flag (off, not inherited): captain-hold intake refuses a bare option letter without its displayed words, and answered records end with a Selected answer: line. (firstmate@cf24bc4)
  • Decisions & captain holds: With config/hold-answer-words, answer refuses a decision that is only an option like A, keyed intake skips a blank-label one, and the resolution block ends with Selected answer:. (firstmate@cf24bc4)
  • Troubleshooting: OUTDATED example now lists treehouse below its new 3.0.1 floor, alongside missing --lease and --root support. (firstmate@8d8ac0d)

2026-11-26#

  • treehouse: The root home uses treehouse's default pool. A local secondmate home passes --root for its own pool at ${TREEHOUSE_ROOT:-$HOME/.treehouse}/fm-secondmate/<home-id>, outside the home. Teardown removes that pool. (firstmate@2f000eb)
  • Troubleshooting: The OUTDATED treehouse example now says bootstrap requires both --lease and --root support. (firstmate@2f000eb)
  • Kun's playbook: New habit 16: watch the median $ cost per task. His cost rose 70% while the codebase grew 10x. Includes his prompt for a 7-day sliding-window cost chart. (post)

2026-11-25#

  • The AXI tools firstmate uses: QUOTA_AXI_CODEX_HOMES opts into one codex-home:<digest> lane per absolute Codex home, each reading only its own auth.json with its own cache slot. Relative entries fail; unset is unchanged. (quota-axi@053d364)

2026-11-23#

  • no-mistakes: Lists opt-in ci.remote_only_verification: the CI repair agent skips local tests and leaves verification to CI; global default, trusted repo config overrides either way. (no-mistakes@7040139)
  • Herdr & the wider toolkit: Notes Kun's deep-dive video on how he uses /vision, for when agents keep asking for decisions and your judgment becomes a bottleneck. (post)

2026-11-22#

  • Kun's playbook: Adds Kun's PR batching: light CI per branch, passing branches batched into one PR with heavier CI, one open PR per repo, PRs down from ~200/day to 30-ish. (post)

2026-11-21#

  • no-mistakes: GitHub Copilot reviews can be opted in through ci.required_reviews on GitHub.com. no-mistakes builds an ExternalReview: copilot check from Copilot's latest verified review, so its items become ask-user findings. (no-mistakes@ecb10b6)

2026-11-20#

  • no-mistakes: The configure list now includes review.prepare, trusted default branch only and off by default. It runs commands.prepare lazily before the first Review fix turn. A preparation failure fails Review. (no-mistakes@af4b61f)
  • AXI — Agent eXperience Interface: The community catalog now lists over 100 AXIs instead of about 85, per Kun's 2026-11-19 post. (post)
  • Relay, voice & extras: The Grok Bot variant note adds that Kun submitted his Firstmate bot for sharing and praised how easily Grok bots can be shared. (post)

2026-11-19#

  • Kun's playbook: New 2026-11-18 update: after a day with GPT 6.2 Astra and Sol, Kun always uses Sol ultrafast as his code reviewer. He now prefers Astra for planning in HTML artifacts, but still finds its judgment weak. (post)
  • treehouse: Commands table adds treehouse return --if-clean. It returns only if no process, uncommitted or seeded change, or unpushed commit would be lost. Otherwise it exits 4 and prints the blocker. (treehouse@38fcb38)

2026-11-18#

  • Kun's playbook: Adds Kun's 2026-11-17 view: paid cloud Mac sandboxes cost a Mac mini's price every few weeks, so he runs agents on his own Macs. (post)

2026-11-17#

  • Kun's playbook: Adds his November split of validation into four kinds: per-PR checks on a fixed ~5 min budget, full suite in merge queue or post-push, feature gates for release, fix forward. (post)
  • no-mistakes: Documents axi run --caller-restrictions <file>: an immutable, tighten-only restrictions record that every agent turn receives, kept out of PR text, inherited by rerun and retry. These are instructions only, not containment. (no-mistakes@c4a98b2)

2026-11-16#

  • Harness integration: New caveat: Kun warns that Google's AI subscription requires Antigravity prompts to come directly from the user, not an orchestrator or loop, and that users have been banned for this. (post)

2026-11-15#

  • no-mistakes: axi retry also continues a run that pushed and then failed in PR or CI. It reruns only PR and CI and never pushes. It refuses if the remote head moved or CI already ran a fix round. (no-mistakes@35850db)
  • no-mistakes: An explicit --base-remote binds a run to another integration remote. That remote supplies the run's push and PR-base routing, and the repo's registration is unchanged. (no-mistakes@0a283bf)
  • The AXI tools firstmate uses: gh-axi issue view <n> --fields returns the selected gh JSON fields as TOON under issue. Issue create/edit now pass through the blocked-by and blocking relationship flags. (gh-axi@81313b3, gh-axi@a1c6935)
  • Kun's playbook: Adds Kun's prediction that running many agents effectively will become a prerequisite for being a people leader. (post)

2026-11-14#

  • Decisions & captain holds: PR settlement is an opt-in third way to resolve a hold. pr-policy declares that a GitHub PR merge or closure answers it, and it is recorded as forge evidence, not a captain answer. (firstmate@34c77d5)
  • Configuration & state files: New hold-pr-settle flag. It settles captain holds that declare a PR policy when the PR merges or closes, and reports an unmerged closure for a still-open hold. Off by default, not inherited. (firstmate@34c77d5)
  • Relay, voice & extras: Grok Bot note now links Kun's video walkthrough of his full Grok bot setup with the firstmate, kun and distill anyone bots. (post)

2026-11-13#

  • no-mistakes: Freshly passed --pr-title/--pr-body-file now also update an existing PR once per run (description replaces the narrative, appendix refreshed); inherited text on rerun/retry never rewrites one. (no-mistakes@d52bba2)
  • no-mistakes: Trusted test.instructions_file (read from the pinned trusted commit, fails closed) and test.path_instructions (matched against all changed files) extend the Test runbook. (no-mistakes@3d2d4bf)
  • Configuration & state files: pr-register-scan records a PR only from an exact ready done: report, and a different ready PR replaces a pr= the status log named; timed-out registrations also wake. (firstmate@a02b089)
  • Configuration & state files: New park-on-review and auto-land flags: stop idle ship lanes awaiting human review (relaunch on review activity, clean up on merge) and clean up unparked lanes on merge. (firstmate@a9ae3c0)
  • Configuration & state files: New record-hygiene flag: bootstrap prints RECORD_HYGIENE: lines, the heartbeat raises check: record hygiene:, and mutating session start archives orphan status logs older than 24h. (firstmate@afa1859)
  • Configuration & state files: New treehouse-pool-report flag: bootstrap prints read-only TREEHOUSE_POOL_REPORT: findings for unavailable paths, old unowned slots, duplicate clones and leftover test pools. Needs jq. (firstmate@bf0f346)
  • Configuration & state files: New pr-squash-summary flag: GitHub squash merges by fm-pr-merge.sh use the PR title plus (#N) and the body's ## What Changed section. (firstmate@afc5b76)
  • Configuration & state files: New paused-wait-supersession flag: the foreground watcher surfaces a paused: lane early once its run is parked at a human-owed gate or terminal. (firstmate@47df77f)
  • Harness integration: An omp installed with bun install -g @oh-my-pi/pi-coding-agent (process named bun) is now detected as omp; before, it read as unknown and the session lock refused. (firstmate@09ca015)
  • Kun's playbook: New habit 15: an executive mindset. Don't watch agents after prompting, ask for documents for big decisions, fix root causes, don't be the tester; imagine 100x more agents. (post)

2026-11-12#

  • Configuration & state files: crew-exclude-tools: Claude workers can now hide tools via --disallowedTools, dropping schemas from every request; mcp__<server> hides a whole server; misspelled Claude names silently do nothing. (firstmate@64254de)
  • Configuration & state files: New paused-recheck-silent row: presence flag; an unchanged paused: recheck queues no wake while agent alive, until not due, no open decision. Off by default; not inherited. (firstmate@bb3b2d6)
  • The supervision engine: With opt-in config/paused-recheck-silent, an unchanged paused declaration's recheck is logged without a wake if the agent is alive, until is not due, and no decision is open. (firstmate@bb3b2d6)
  • no-mistakes: New readable squash-merge commits guide: set GitHub squash message to PR title and description, plus pr.appendix: minimal and pr.publish_intent: false on the default branch. (no-mistakes@d3c38fb)

2026-11-11#

  • Harness integration: Automatic hand-back retries now reach a verified tmux or herdr pane. On herdr the pane's agent must be claude and read idle in both native state and rendered footer. (firstmate@913bb7a)
  • Configuration & state files: New pr-degraded-watch row. This presence flag makes the merge poll wake once when a ready PR/MR degrades (failing check, failed pipeline, merge-train drop). Off by default, not inherited. (firstmate@97e309c)
  • The bin/ toolbelt: fm-pr-check.sh: with config/pr-degraded-watch, the poll also wakes once when a ready PR/MR degrades, and a GitLab watch needs jq on PATH. (firstmate@97e309c)
  • Kun's playbook: New habit 14: Kun's Fable 5.2 prompt to audit a codebase for implicit state machines worth making explicit, discussed in lavish-axi (optional). (post)

2026-11-10#

  • Configuration & state files: lane-capacity first line may be auto, a budget measured from free memory, run queue and disk (max-lanes, min-gpu-free-gb); opt-in admit-spawns makes fm-spawn.sh defer refused ship/scout spawns (exit 75). (firstmate@14d06b0)
  • Configuration & state files: New stow-guard row: a Claude Stop hook asks a Claude primary to run /stow at tokens (default 300000) context or when the last /stow is hours (default 24) old. (firstmate@774e429)
  • Configuration & state files: New pause-ceiling row: an overdue paused: wait opens one blocked [key=paused-overdue-<task>] decision instead of the recheck; undated pauses are overdue after FM_PAUSE_UNDATED_MAX_SECS (86400). (firstmate@c8d8fda)
  • The AXI tools firstmate uses: /lavish-url <url> [--mobile] captures a page into an annotatable Lavish review with Fix Layout/Update Text/Mobile Bug chips; feedback is filed to the owning project's backlog via config/lavish-url-domains. (firstmate@bc9370e)
  • Daily commands: Seven built-in skills are user-invocable; the command table now lists /lavish-url <url> [--mobile] for capturing a page into a Lavish review. (firstmate@bc9370e)
  • Scaling up — secondmates, dispatch & quota: Only the account's primary code root uses fm-remote; other roots get their own Herdr session and launch agent. Readiness uses safe --fix --automatic; run explicit --fix only when no mate is launching. (firstmate@315c82a)
  • no-mistakes: no-mistakes axi pr-verify --repo <remote-url> --pr <n> read-only checks a live PR's owned appendix: verdict match/mismatch/malformed/absent, exit 0, never edits the PR or starts a run. (no-mistakes@e4ab9d4)

2026-11-09#

  • Harness integration: The Claude autoarm hook is also registered under StopFailure, without the turn-end guard. Its continuations are paced to one per FM_CLAUDE_STOPFAILURE_REWAKE_COOLDOWN (default 300s) and never dropped. (firstmate@5c935cf)
  • The supervision engine: The Claude Code arm owner is the Stop and StopFailure asyncRewake hook, so a turn that ends on an API error also re-arms the watcher. (firstmate@5c935cf)
  • Install & first launch: Claude Code stays supervised through tracked Stop and StopFailure hooks (asyncRewake), including after turns that end on an API error. (firstmate@5c935cf)
  • Scaling up — secondmates, dispatch & quota: With crew-dispatch.json present, a crewmate or scout spawn needs the task's dispatch-resolution.json record. A clear record binds harness/model/effort unless --dispatch-override is given. --relaunch skips the check. (firstmate@18b20ea)
  • Kun's playbook: Kun published a /headless skill that sets up a Mac, PC or Linux box as an always-on headless machine. (post)

2026-11-08#

  • The AXI tools firstmate uses: issue create and pr create need --body or --body-file unless --attach is given. A bare --title fails with VALIDATION_ERROR before any gh call. (gh-axi@ad26055)
  • The AXI tools firstmate uses: Closing an issue or PR that is already closed sends nothing to gh. The output names the options it did not apply and points to issue comment/pr comment. (gh-axi@c200fbd)
  • no-mistakes: The submitter's git author and committer are saved with the run and used for every pipeline commit. A plain gate push fails to launch when checkout identities differ. Use no-mistakes axi run then. (no-mistakes@823a4ee)

2026-11-07#

  • Troubleshooting: A GitHub PR behind its base is refused unless the request passes --update-branch. That flag updates the branch and waits ~15s for checks. The update stays, and --expected-head stays pinned. (firstmate@65a9a51)
  • Configuration & state files: New optional TYPESAFE_BASE row. It replaces the default https://api.typesafe.ai base, posts to <base>/v1/systemone, exits 2 if invalid, and takes FM_DISPATCH_PROVIDER=typesafe plus FM_DISPATCH_MODEL for gateway models. (firstmate@998c19f)

2026-11-06#

  • Configuration & state files: New osc7501-status row: on by default, workers report status to herdr-core, the Herdr app, Ghostty or Rex. Native reporters are skipped. Unrecognized words read as off. (firstmate@350cb69)
  • Troubleshooting: fm-pr-merge.sh --expected-head <full-sha> pins the reviewed commit. If the live head is different, the merge is refused before any forge write. (firstmate@4bd1e3a)
  • no-mistakes: update --when-idle installs the new binary and restarts the daemon once no run is executing. daemon restart --when-idle does the same. Pushes are held until then. A plain update still refuses. (no-mistakes@90ff92e)
  • The AXI tools firstmate uses: gh-axi search rejects two or more qualifiers in one argument with VALIDATION_ERROR. Pass them as separate arguments, e.g. 'is:open' 'author:@me'. (gh-axi@6231608)
  • Kun's playbook: New habit 13: before agents write much code, have one add a lint rule that caps lines per file (he uses 1000). Do it early. (post)

2026-11-05#

  • no-mistakes: axi run and rerun take --pr-title and --pr-body-file <path|->. They are used verbatim only when the run creates the PR. There is no inline body flag. Rerun and axi retry inherit them. (no-mistakes@08a7e0d)
  • Kun's playbook: Kun published "runner-up", a free OSS tool for self-hosting GitHub Actions runners on his own machines. He puts the cloud cost of his thousands of daily CI jobs at $5000-$9000 a month. (post)
  • Kun's playbook: His OSS lessons at 30k+ stars: videos bring in more users than tweets, every contribution must go through no-mistakes, and agents triage issues and PRs against a written vision. (post)
  • Kun's playbook: New bullet: Kun finds working with AI managerial and says it takes away the joy of direct craftsmanship. He asks whether everyone becoming an agent manager is what we want. (post)
  • Configuration & state files: A watched-tools.json entry with command can add published (npm package or GitHub repo). This compares the installed version with npm's latest dist-tag or GitHub's latest release, via curl, with no login. (firstmate@37e9a36)

2026-11-04#

2026-11-03#

  • Runtime backends: hc is auto-selected only when firstmate's own terminal is a labelled Herdr app terminal on the running core. Bare HC_TERMINAL_* markers or an open app window never select it. Explicit settings still win. (firstmate@a4bf5f8)
  • Runtime backends: Auto-detect ends with the Herdr app terminal signal (hc), after cmux. Only Zellij, Orca, Paseo, T3 Code and tern are never auto-detected. (firstmate@a4bf5f8)
  • The bin/ toolbelt: Auto-detect order is $TMUX, HERDR_ENV=1, Rex, cmux, then the Herdr app terminal signal (hc). Only Zellij, Orca, Paseo, T3 Code and tern are never auto-detected. (firstmate@a4bf5f8)
  • Configuration & state files: The backend row now says hc is also auto-detected inside a Herdr app terminal. It is no longer explicit-only. (firstmate@a4bf5f8)
  • Scaling up — secondmates, dispatch & quota: Remote second mates run on Herdr by default. --backend rex selects Rex, with one session per home on a persistent rex server and a ready fm-remote-doctor verdict. The host needs that backend's CLI. (firstmate@8b9c22a)
  • Runtime backends: Herdr is the default backend for remote secondmates, not the only one. Rex can host one when explicitly selected and fm-remote-doctor reports the host ready. (firstmate@8b9c22a)
  • Harness integration: Opt-in config/codex-stop-park lets a verified native interactive Codex session (CLI 0.163.0) park in an async Stop hook. It gets wakes via codex queue --thread. Other sessions keep checkpoints. (firstmate@c61646f)
  • The supervision engine: The Codex row adds the opt-in native Stop park (config/codex-stop-park). A parked session gets wakes through codex queue --thread. (firstmate@c61646f)
  • Configuration & state files: New codex-stop-park row. This presence flag opts a verified native Codex primary into the Stop-hook park. It is read at session start, off by default and not inherited. (firstmate@c61646f)
  • Configuration & state files: New pr-register-scan row. The check sweep records the PR from a ship task's newest done: line when there is no pr=. A refusal wakes once as check: pr-register:. Not inherited. (firstmate@9224c90)
  • Herdr & the wider toolkit: gnhf --max-run-time <duration> caps a run by wall-clock time. The current iteration finishes and no new one starts. Suggested for overnight local-model runs. The clock restarts on resume. (gnhf@f330845)

2026-11-02#

  • Configuration & state files: pr-health-monitor wakes once per latest commit for a conflict, failing check or author action. Maintainer-gated CI and missing reviews are recorded silently. Reads follow GitHub notifications, with a 15-min fallback sweep. (firstmate@e1a7a2f)
  • Runtime backends: hc needs herdr-core 0.1.14+ on protocol generation 1. The binary is FM_HC_BIN, then herdr-core, then hc. fm-install-hc.sh installs the pinned build, and a tests-hc CI lane exists. (firstmate@95f006f)
  • Decisions & captain holds: answer --release works only in attended sessions. It is refused while the away-posture record exists, and a release intake line is reported refused:. A quiet record counts as present. (firstmate@bdaf633)
  • The AXI tools firstmate uses: gh-axi run view <id> --attempt <n> reads an earlier run attempt and reports attempt and head_sha. A mismatched attempt, run or job fails with VALIDATION_ERROR. (gh-axi@0626d2c)
  • The AXI tools firstmate uses: open and newpage take --timeout <ms> or CHROME_DEVTOOLS_AXI_NAVIGATION_TIMEOUT_MS, and the flag wins. This overrides the 10-second navigation default. An invalid value is a usage error. (chrome-devtools-axi@ecb14d6)
  • Runtime backends: After testing Rex, Kun is sticking with herdr. Rex sits between GUI and TUI, so it gives neither rich GUI visuals nor plain-SSH keyboard access. (post)
  • Kun's playbook: With review and CI solved, Kun hit GitHub's 5000 requests/hour per-user limit, which hundreds of agents outrun. firstmate's PR health monitor now reads the uncounted-304 notifications feed. (post)

2026-11-01#

  • Daily commands: fm-update.sh updates from origin unless config/self-update-source names a <remote> <branch> to follow. An unusable file stops the update and does not fall back to origin. Spawns and reviews still use origin. (firstmate@58eb59f)
  • Configuration & state files: New row: config/self-update-source holds one <remote> <branch> line that /updatefirstmate follows instead of origin. Nothing else reads it. Not inherited by secondmates. (firstmate@58eb59f)
  • Scaling up — secondmates, dispatch & quota: Profiles can declare quota_scope, which binds one exact quota-axi row such as an Antigravity tier. It is never inferred from the model name. A missing row means unranked, not blocked. (firstmate@043d834)
  • The supervision engine: Opt-in FM_STREAM_SILENT_MAX_SECS, set where both the Pi worker and its watcher launch, escalates a silent foreground model stream early, for inspection only. Gated to Pi 1.2.0. (firstmate@8fdf262)
  • no-mistakes: Opted-in CodeRabbit now works on GHES (configured app ID) and GitLab: a completion check from the configured account ID plus an MR-version-bound note. Unresolved threads block completion. (no-mistakes@e0815ec)

Older entries#

October 2026 · September 2026

Unofficial guide built 2026-09-26 from kunchenguid/firstmate, the AXI repos, and Kun Chen's public posts. The repo moves daily; when this guide and the repo disagree, the repo wins.