Your issues become pull requests overnight.

Give thirdshift a GitHub issue URL. It runs the coding agents you already use to implement the issue, review the change and deliver a pull request ready for review, or merge it when asked. You are the day shift: talk the idea through, write the spec and cut it into tickets. Agents work the third shift, unattended. Start a Ticket run whenever you like, or let your operating system start passes on a schedule. thirdshift is free and open source.

How thirdshift works: an engineer's guide from issue to pull request, through Worktrees, agent review and Delivery. Architecture draws what runs where and who does each step. Documentation covers installation, commands and configuration. Videos explain it in a few minutes.

Built on Matt Pocock's skills: aihero.dev/skills · mattpocock/skills. Read every prompt and skill thirdshift sends.

Install

curl -fsSL https://thirdshift.app/install.sh | sh
Show the full commandcurl -LsSf https://github.com/JacobStephens2/thirdshift/releases/latest/download/thirdshift-installer.sh | sh

Then run thirdshift setup to choose your defaults. Keep the binary current with thirdshift update.

Maintainers can run thirdshift release as a Pass over green shipped changes, automatically choosing minor or patch. Pin the bump with --major, --minor or --patch, or supply an explicit version. A Release run prepares a temporary worktree, waits for publication and merges the bump PR. Console starts require admin scope.

Two shifts

You plan by day. Agents work at night.

Day shift

Humans, with Matt Pocock's skills, used interactively

  1. /grill-with-docs
  2. /to-spec
  3. /to-tickets

The human half of the workflow: shaping work into issues the factory can take on, by grilling the idea with /grill-with-docs, writing the spec with /to-spec and cutting it into tickets with /to-tickets, and reviewing the pull requests it delivers, except those a Ticket run Self-merges when you ask.

Third shift

Agents, with headless copies of the same skills

  1. /thirdshift-implement
  2. /thirdshift-code-review
  3. /thirdshift-pr

thirdshift takes an Issue URL: one issue starts a Ticket run; an issue with sub-issues starts a Spec run. Its Factory skills implement the issue, review the change and write the pull request.

How bug issues are handled

Issues labelled bug first use /thirdshift-diagnosing-bugs to reproduce the reported failure and write a failing regression test before fixing it. A Continuation whose Issue branch is ahead of the Base branch reproduces at their merge base, and a fix already on the branch still goes on to review and the pull request. If it cannot reproduce the bug, the Ticket run leaves triage notes and needs-info on the issue, ending successfully without a new pull request. Flaky-test Tickets use the recorded CI failure as evidence and go straight to implementation. Security fixes and Base fixes keep their own flow.

Skills and Processes in detail

Review Passes recognize reviewed and pushed heads only in comments by the GitHub account thirdshift acts as. When an upper pull request lacks Review run fixes delivered to its base, its comment says it needs updating before merge; the author updates the stack.

Review Passes (review --author) and Fix Passes skip release-* pull requests targeting main, leaving their version-only heads to the Release run. Explicit thirdshift fix <pr-url> --no-merge --no-base-fix still repairs those pull requests.

Review retries recover clean retained worktrees with verified ownership and committed fixes above the same captured PR head. Author Passes skip other local conflicts, notify once per state and continue to later waiting pull requests. An explicit PR URL still fails with preservation advice.

Review runs and pull-request Custom processes record their target PR URL and title before the first session starts. It appears in thirdshift status and the Command log while the run is live, and Command log and Session trace pages show the selected Command's GitHub issue or pull request link and title below the page heading (including a Pickup or Pass run's opened pull requests). Compact Working rows, including Overview, show live Fix and Review targets as clickable PR #number links beside the repository and run type, on desktop and phone, locally and across the Fleet. Explicit and Pass-selected targets appear alike. A Base branch CI repair shows its exact Base branch before publication and keeps it beside the PR link afterwards; older records without a target keep their Command label.

thirdshift fix <PR URL or number> takes an open pull request by a Trusted account, ready or draft, straight through Delivery and the Repair loop against its own Base branch. With no PR target, thirdshift fix [base <branch>] [--author <login>] is a Pass taking the lowest-numbered eligible ready PR with a Merge conflict or CI red, passing over head branches checked out locally with the PR URL and occupying path on stderr. It skips cleanly at the Command limit or when none can be taken, recording occupancy reasons in the Activity log. An explicit PR target still fails and names the occupying worktree. It skips implementation and initial code review, reserves the PR until it ends, and supplies Repairs with trusted PR and linked closing-issue context. Add merge for Self-merge or base-fix for inherited failures; the usual User config defaults apply. Self-merge needs recorded agent review of the adopted head; without it a Fix Pass, or a targeted Fix run asked to merge only by merge.always, repairs the PR and finishes successfully Ready for review, logging the hold. An explicit thirdshift fix <PR> merge still fails with the hold and leaves the repaired PR ready. Other failures preserve work, draft the PR and offer a Fix run retry. Fix runs

A Fix Pass checks every linked closing issue before and after reserving the PR. An in-progress Claim on a Spec or standalone Ticket run's issue, including on another host, makes it skip the PR and name the claimed issue on stderr. It can adopt the PR on a later Pass after the Claim ends. Unreadable links or labels fail closed; explicit PR targets keep their existing behavior.

Without --author, a Fix Pass first checks Base branch CI on origin. A failed first push attempt gets one failed-jobs re-run, then PR selection continues without waiting. Pending or re-running Base checks, an occupied CI reservation, or an existing repair branch or PR skip only Base branch maintenance; stderr and the Activity log record the reason. Persistent or non-rerunnable failures get a CI-fix session on fix-<base>-<short-sha> and a repair PR targeting the Base branch, with every red check its own to fix; that Fix run ends the Pass. Failed opening sessions publish preserved work as draft repair PRs with a Fix Recovery command. An existing repair branch or PR prevents duplicates, including failed drafts. Completed Ticket, Spec and Base CI Deliveries record their exact agent-authored or reviewed heads for later Fix Self-merge. Merge and email flags and User config apply; Self-merge also closes the Base branch's CI-red reports and Base fix issues.

If the Base branch CI-fix session commits nothing, the Fix run pushes no repair branch, opens no PR and exits successfully, with the reason on stderr and in the Activity log. A local Git ref remembers that Base branch and full commit in the Launch repository, so later Passes there skip that CI-fix and can select another PR. No further Check re-run is requested.

Fix CI sessions keep command and test logs in the worktree's Git-excluded .validation-logs/ directory, which cleanup discards. They reproduce with the failing test file or filter before a full suite, without full-suite debug output or sleep-and-tail polling loops. Review sessions check whether the PR is open at most once, immediately before a multi-minute validation suite; thirdshift also checks its state around the session and before Delivery.

After publishing, addressing Review runs and pull-request Custom processes wait for checks and commit statuses on the exact delivered head, including unchanged branches. Up to five CI-fix Repairs validate and publish fixes for the branch's own failures; a Custom process may lower the cap. An unchanged Repair gets one eligible Check re-run. Inherited failures, unreadable CI and unresolved red CI end failed with check evidence in the comment and notification. No ready notification is sent while CI is pending. Concurrent PR changes stop Delivery, and a final merge conflict asks the author to update the branch. Review never rebases the author's stack, and merges only when its command or [review] merge asks for Self-merge. --recommend-only stays report-only.

Every Review run validates its worktree after addressing findings, following the repository's agent instructions and extra commands from review.commands_by_repo in the User config. Its comment names what ran, passed, failed or could not run. A suite invalid from a worktree is reported not run against the branch, never passing. With no extra list, repository final validation still runs; --recommend-only validates after reviewing too. Disposable validation logs stay inside the worktree under .review-logs/, so even a Review run that fails before delivering removes its worktree and local branch when nothing else is left. Failure diagnosis targets the failing test file or filter and reads large logs with bounded streaming tools to limit memory use. If a later Step commits more changes, Delivery repeats validation on the final head before pushing and reports those results. When that report includes private Security review material, the comment says the results were withheld instead of quoting the session.

thirdshift review <PR URL> reviews an open, ready pull request by a Trusted account on its own branch and base, addresses findings and pushes fixes without force. It posts one comment with what it fixed and every Unaddressed finding, using linked closing issues as the Spec or explicitly the body alone. A departure explained only by the body stays unaddressed with that reason and no triage issue. If the branch moves before the push, the comment describes the proposed fixes and says nothing was pushed. Add --recommend-only for findings without fixes. Forks and drafts are refused. A successful unmerged Review run sends its Run notification and stays in Ready for review until the pull request is merged or closed. Review runs

thirdshift skill runs one skill. thirdshift process is experimental: it runs skill, command or catalogue Steps from ~/.thirdshift/processes, including Steps that run together in throwaway worktrees the file names. The catalogue Step run-published-issue starts a Ticket run or a Spec run on the issue the session Step before it published. Its optional process = "<name>" setting selects the child Ticket Process, defaulting to ticket-run; it must exist and declare an Issue-branch worktree. An issue with Tickets still starts a Spec run. An optional Step can fail without stopping the process. Pass issue to give the process an issue, so each session Step works from that issue. A file can name one Issue-branch worktree and a delivery Step: the run holds the Claim, and Delivery leaves a ready-for-review pull request and then removes the Claim. A self-merge Step directly after it merges when merge or the User config asks, and a file can only tighten limits. With no issue, and neither an Issue-branch nor a Spec-branch worktree, it is a Pass: it skips, exiting 0 with no Run notification, while the repository is at its Command limit, and it does not take an Architect run's Ready-issue or Architect-idea gates. With an issue, it is not a Pass. Status, the Console and the Activity log list it as Process <name>, and a failed one is in Needs you. It sends a Run notification under the same email rules as a Ticket run, except a skipped Process sends none. Custom processes.

Add merge or --merge to thirdshift review <PR URL> or review --author <login> for a Self-merge after Delivery. [review] merge = true opts this machine in; the default is false, no-merge overrides it, and merge.always does not apply. Self-merge uses the Fix run’s exact reviewed-head and CI gates and merge-time Repair loop. Required reviews, open PR bases and failed or incomplete Security reviews leave the PR ready with a logged hold: an author Pass exits 0, a targeted merge request exits non-zero. Successful merges report merged, close linked closing issues and delete the branch. --recommend-only with merge is an argument error. Review Self-merge.

For cron, thirdshift review --author <login> takes one author's lowest-numbered eligible open pull request. It skips reviewed or pushed heads, in-progress pull requests and bases that are open pull requests awaiting review at their current head. It also skips PRs whose linked closing issues carry an in-progress Claim or an issue reservation, including Ticket and Spec Delivery on another machine, logging the holding issue and trying the next candidate. Once the hold ends, a later Pass can take the PR; retained reservations need operator recovery. Explicit PR URLs keep their existing behavior. This Pass skips at the Command limit. Review runs reserve their pull request and remove in-progress when they end; the Sweep clears it from closed pull requests.

On a Review run, security-review or [security] review = true adds a Security review after it addresses Standards and Spec findings. It uses security.harness and the usual fallback, pushes its fixes with the others, and lists unfixed introduced Security findings in the comment. no-security-review overrides the setting; --recommend-only skips the Security review.

A Step may name its own Harness, Model and Effort. Each omitted setting inherits the Command's resolved value, including --harness and User config choices. process check prints each choice, its origin and whether the Harness starts. thirdshift process list lists Processes and marks Built-in processes; process show <name> prints a Process file exactly, ready to save under a new Custom process name. The compiled-in ticket-run file runs implement → security-review → delivery → self-merge. Ticket runs execute it by default, including those started by Spec, Architect and Security runs, inheriting the Command's Harness, Model and Effort, Child asks and Limits. The Security review and Self-merge still run only when asked. Inspect it with process show ticket-run, or use process check ticket-run with an issue <issue> argument.

Spec runs execute the compiled-in spec-run file: land-tickets → spec-review → security-review → delivery → self-merge, on a spec-branch worktree. Every starter uses it: an Issue URL, Pickup, Architect and Security runs, and run-published-issue. Dispatch, the Claim, Child asks and Limits stay in front of the file. The run keeps its sessions, progress lines and Spec run name, and records the compiled file's hash. Inspect it with thirdshift process show spec-run or validate it with thirdshift process check spec-run issue <spec>; its name is reserved against Custom processes.

Security runs execute the compiled-in security-run file: security-audit → reproduce-findings → fix-findings → close-findings. The Command limit, the lock of its kind and Ready-issue, failed-fix and unchanged-Base skip gates stay before the file, followed by a check that the repository has Issues turned on: with Issues off, the run fails before any session and says to turn them on or remove its Security schedule. An earlier reproduced finding awaiting an allowed fix makes the first two Steps skip. The run fixes at most one finding and closes only that finding after its fix merges and its proof passes. Sessions, progress, logs, Run notifications and the Security run name stay the same, with the compiled file's hash recorded. Inspect it with thirdshift process show security-run or validate it with thirdshift process check security-run; its name is reserved against Custom processes. A copy under a new name follows the Command limit without a lock of a kind and can fix several findings.

Pickup has no Built-in process file. It selects and reserves a Ready issue, then dispatches ticket-run or spec-run.

A Custom process can instead declare a spec-branch worktree and use land-tickets to gather Tickets in dependency order into a draft Spec PR and its checklist, up to spec.parallel at once. Its process setting selects every child Ticket's Process. A file can declare one Issue-branch or one Spec-branch worktree, never both; the former refuses Specs, the latter requires one, and both require an issue and make the Claim before the worktree. The draft Spec PR keeps its Claim while it waits.

Follow land-tickets with spec-review → security-review → delivery → self-merge on the Spec-branch worktree to deliver the Spec PR. The Spec review reviews the whole Spec with its usual report contract. Delivery restores the Tickets checklist, runs the Repair loop and leaves the PR ready for review, removing its Claim. Security review and Self-merge run only when asked; a refused or incomplete Security review holds the merge.

The implement catalogue Step runs the Ticket run's implementation session on an Issue-branch worktree, starting fresh or continuing existing work. On an ordinary bug issue it diagnoses first; Flaky-test Tickets use recorded evidence directly; if the bug is not reproduced, the Process ends successfully with triage notes and needs-info, skips later Steps and cleans up its Claim and worktree.

The security-review catalogue Step reviews the Issue branch after editing and before delivery, when the command or User config asks. It keeps the Ticket run's Harness fallback, and a refused or incomplete review holds a following Self-merge.

The architecture-review catalogue Step reviews the Base branch in its own throwaway worktree. Follow it with run-published-issue to build a Strong Architect plan. An Architect idea in the repository at origin, or thirdshift process <name> --plan-only, ends the Process successfully and skips later Steps, with the reason recorded. An idea outside that repository is refused before it is viewed or labelled.

security-audit → reproduce-findings audits the Base branch, records findings privately and reproduces each at its audited commit. Each Step takes its own Harness, Model and Effort and keeps completed reproductions. Both skip when a recorded finding awaits an allowed fix; Security runs keep their existing skip gates.

Every session Step gets one Resume when background work was killed as its turn ended. If the Resume leaves work running too, the Process names it and carries on; a later failure names that killed work first. A Resume does not spend a Repair.

The compiled-in architect-run file runs architecture-review → run-published-issue. Architect runs execute it after the Command limit, the lock of their kind and the open-plan, waiting-idea and Ready-or-settling-issue gates. The review Step ends successfully on an idea in the repository at origin, or with --plan-only; an idea outside that repository is refused before it is viewed or labelled. Otherwise the next Step runs the plan. Read it with thirdshift process show architect-run or validate it with thirdshift process check architect-run. A copy under a new Custom process name follows the Command limit without a lock of a kind. Architect runs keep their name, progress, logs and Run notification.

Command records and Session traces keep each run's Process name, whether it is Built-in or Custom, and the SHA-256 hash of its file. Architect runs record the compiled architect-run file. Child Ticket runs record their selected Process independently of their parent, defaulting to ticket-run. Runs awaiting a Built-in file keep their run-type name without a hash; the displayed run names stay the same.

A Custom process can use fix-findings → close-findings to fix reproduced Security findings and close only merged fixes whose proof-of-concept passes against the merged Base branch. The Steps keep private records and the Security run’s fixing and closing permissions. fix-findings can select a child Ticket Process with process; it defaults to ticket-run. Failed fixes and failed rechecks stay with the Day shift. Their sessions and the Ticket runs they start stay off any configured OTLP endpoint, as a Security run's do. The Built-in Security run still fixes at most one finding per invocation.

Read every prompt and skill the agents get →

How a Ticket run works

One issue in, one pull request out.

A Ticket run takes one issue through four steps and delivers a pull request that is ready for review, or merged when you ask for a Self-merge. Steps 2 and 3 are one agent session in the Harness you choose. Under each step are lines thirdshift printed on stderr during a real Ticket run, overnight on 12 October 2026. A scheduled Pickup run took issue #663 at 00:21, and its Ticket run Self-merged pull request #665 at 01:22. That pull request refreshed the floor plan further down this page. Click a step to see what it does. Every prompt and skill it sends is on the Prompts and skills page.

From issue #663 to merged pull request #665 in four steps Issue #663 passes through Step 1 · Prepare, Step 2 · Implement, Step 3 · Review and Step 4 · Finish. A bracket over steps 2 and 3 marks them as one agent session. Pull request #665 comes out merged into main. ONE AGENT SESSION ISSUE #663 the issue C STEP 1 · PREPARE M STEP 2 · IMPLEMENT Y STEP 3 · REVIEW K STEP 4 · FINISH PR #665 · MERGED merged into main

Step 1 · Prepare

Pre-flight checks the Origin match, the open issue, the Base branch and the selected Harness, plus Git’s commit identity. thirdshift picks the Issue branch, fresh or a Continuation, claims the issue with in-progress, and creates a worktree next to your clone. Here a scheduled Pickup run took the issue.

  1. thirdshift: 00:21:01 Pickup run starting, 2026-10-12 -0400
  2. thirdshift: 00:21:05 taking Ready issue #663 "update https://thirdshift.app/ based on the latest which is part of thirdshift", as thirdshift https://github.com/JacobStephens2/thirdshift/issues/663 would
  3. thirdshift: 00:21:05 checking the Model and Effort against codex debug models
  4. thirdshift: 00:21:06 logging this command to /home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/commands/pickup/663-20261012T002101-0400.log
  5. thirdshift: 00:21:06 sessions run on codex · gpt-6.1-sol · high
  6. thirdshift: 00:21:08 updating main in the Launch directory from origin/main
  7. thirdshift: 00:21:08 labelling #663 in-progress, in place of ready-for-agent
  8. thirdshift: 00:21:10 creating worktree /home/jacob/repos/thirdshift-issue-663 on issue-663 from origin/main

Step 2 · Implement

A headless session in the selected Harness, with the Factory skills loaded, implements the issue in the worktree, test-first where it can, and commits. The recorded Ticket run used Codex.

  1. thirdshift: 00:21:10 logging the session to /home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/commands/pickup/663-20261012T002101-0400-implement.jsonl
  2. thirdshift: 00:21:11 implement: session started
  3. thirdshift: 00:21:19 implement: $ pwd && git status --short && git branch --show-current && cat /tmp/thirdshift-skills-OIZYKN/thirdshi…
  4. thirdshift: 00:21:25 implement: $ cat AGENTS.md GLOSSARY.md docs/agents/issue-tracker.md docs/agents/domain.md docs/agents/triage-label…
  5. thirdshift: 00:21:25 implement: $ gh issue view 663 --repo JacobStephens2/thirdshift --json title,body,comments,labels && git log -5 -…
  6. thirdshift: 00:21:30 implement: web search
  7. thirdshift: 00:21:30 implement: $ cat CODING_STANDARDS.md && rg --files | rg '("'^site/|web|index.html|landing|pages|astro|package.jso…
  8. thirdshift: 00:21:35 implement: $ cat site/index.html site/main.js
  9. 7 lines cut: more reading
  10. thirdshift: 00:23:41 implement: $ cat > /tmp/issue-663-pr.md <<'EOF'
  11. thirdshift: 00:24:13 implement: $ "cat > /tmp/verify-site-663.cjs <<'JS'
  12. thirdshift: 00:24:15 implement: $ cargo check --all-targets && cargo test --test share_card --test site_deploy
  13. thirdshift: 00:24:25 implement: $ node /tmp/verify-site-663.cjs
  14. thirdshift: 00:24:26 implement: $ git diff --check && git diff -- site/index.html site/styles.css
  15. thirdshift: 00:24:39 implement: $ python3 - <<'PY'
  16. thirdshift: 00:24:48 implement: $ rg -n '\\.unit|\\.floor|hopper' site/styles.css && sed -n '115,160p' site/styles.css
  17. thirdshift: 00:25:13 implement: $ python3 - <<'PY'
  18. thirdshift: 00:25:26 implement: commit

Step 3 · Review

The same session reviews its work against the Base branch, fixes the Standards findings and Spec findings it agrees with, and lists the rest as Unaddressed findings in the pull request body. Behavior findings need a test or command that exercises them before the agent decides. It fixes reproduced failures and keeps the test. Then it opens the pull request, ready for review. Evidence includes actual failing-before and passing-after execution output, plus embedded Before and After screenshots or recordings for visual changes when a headless browser is available.

  1. thirdshift: 00:26:05 implement: $ git status --short && gh pr list --repo JacobStephens2/thirdshift --head issue-663 --state open --js…
  2. thirdshift: 00:26:26 implement: $ cargo fmt --check && cargo clippy --all-targets -- -D warnings
  3. thirdshift: 00:26:27 implement: $ git check-ignore .thirdshift-review-ZgRuM9/standards.md; rg -n 'thirdshift-review' /home/jacob/repos…
  4. thirdshift: 00:27:10 implement: $ ls -l /tmp/issue-663-standards-initial.md /tmp/issue-663-spec-initial.md 2>/dev/null && cat /tmp/iss…
  5. thirdshift: 00:27:13 implement: $ cat /tmp/issue-663-standards-initial.md
  6. thirdshift: 00:27:29 implement: $ python3 - <<'PY'
  7. thirdshift: 00:27:30 implement: commit
  8. thirdshift: 00:27:41 implement: $ cat /tmp/issue-663-spec-initial.md
  9. thirdshift: 00:27:53 implement: $ cargo test > /tmp/issue-663-cargo-test.log 2>&1
  10. thirdshift: 00:27:54 implement: $ "mkdir -p .thirdshift-review-ZgRuM9 && cp /tmp/issue-663-standards-initial.md .thirdshift-review-ZgR…
  11. thirdshift: 00:28:10 implement: $ tail -n 12 /tmp/issue-663-cargo-test.log && git status --short && git log main..HEAD --oneline
  12. thirdshift: 00:28:30 implement: $ "cat > /tmp/issue-663-pr.md <<'EOF'
  13. thirdshift: 00:28:51 implement: push
  14. thirdshift: 00:28:52 implement: $ tail -n 14 /tmp/issue-663-cargo-test.log
  15. 20 lines cut: mostly waiting on the full test suite
  16. thirdshift: 00:46:48 implement: $ python3 - <<'PY'
  17. thirdshift: 00:46:59 implement: $ gh pr view issue-663 --repo JacobStephens2/thirdshift --json number,url,state,isDraft,baseRefName,he…
  18. thirdshift: 00:47:13 implement: session ended after 26m 2s: 7416316 input tokens (7285760 cached), 20664 output tokens

Step 4 · Finish

An optional Security review checks the change first. Then thirdshift pushes, checks the pull request, opening it in the session's place if the session pushed commits but ended before opening one, merges the Base branch in and watches CI. A merge conflict or failing CI starts a Repair, at most 5. For generated-file conflicts, the Repair resolves the sources and regenerates the output. A Resume can happen in any session and isn't a Repair. The Ticket run ends once the pull request is open, ready, mergeable and passing CI. A Ticket run that Self-merges, requested with thirdshift merge <Issue URL> or the User config, then merges it. Here the Security review found nothing, main moved during CI and was merged in again, and no Repair was needed.

  1. thirdshift: 00:47:13 Security review private report: /home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/security-reviews/663-20261012T002101-0400-0eoBGA/pre-existing.json
  2. thirdshift: 00:47:13 logging the session to /home/jacob/.thirdshift/logs/JacobStephens2/thirdshift/commands/pickup/663-20261012T002101-0400-security-review.jsonl
  3. thirdshift: 00:47:14 security-review: session started
  4. thirdshift: 00:47:14 security-review: Model: gpt-6.1-sol (requested)
  5. thirdshift: 00:47:23 security-review: $ git status --short --branch
  6. thirdshift: 00:47:23 security-review: $ cat .agents/skills/thirdshift-security-audit/SKILL.md
  7. 28 lines cut: the review reading and checking the change
  8. thirdshift: 00:49:54 security-review: session ended after 2m 41s: 981609 input tokens (882304 cached), 5030 output tokens
  9. thirdshift: 00:49:54 pushing issue-663
  10. thirdshift: 00:49:56 writing "Built with codex 0.160.0 · gpt-6.1-sol · high" in the pull request's body
  11. thirdshift: 00:49:57 checking the PR
  12. thirdshift: 00:50:01 merging origin/main into issue-663
  13. thirdshift: 00:50:03 pushing issue-663
  14. thirdshift: 00:50:05 waiting up to 60s for CI on c16e780
  15. thirdshift: 00:50:07 CI on c16e780: 6 of 8 checks still running
  16. 5 lines cut: CI still running
  17. thirdshift: 01:00:40 CI passed on c16e780
  18. thirdshift: 01:00:41 origin/main moved while CI ran; merging it again
  19. thirdshift: 01:00:42 merging origin/main into issue-663
  20. thirdshift: 01:00:43 pushing issue-663
  21. thirdshift: 01:00:45 waiting up to 60s for CI on 545e42f
  22. thirdshift: 01:00:57 CI on 545e42f: 6 of 6 checks still running
  23. 9 lines cut: CI still running
  24. thirdshift: 01:22:47 CI passed on 545e42f
  25. thirdshift: 01:22:48 checking the PR is open, ready and mergeable
  26. thirdshift: 01:22:49 merging the PR into main
  27. thirdshift: 01:22:49 checking the PR is open, ready and mergeable
  28. thirdshift: 01:22:53 deleting issue-663 on origin
  29. thirdshift: 01:22:54 cleaning up the worktree and local branch issue-663
  30. thirdshift: 01:22:55 removing in-progress from issue #663
  31. thirdshift: 01:22:56 PR https://github.com/JacobStephens2/thirdshift/pull/665 is merged

The lines are copied, timestamps and all, from the Pickup run's Command log, which keeps everything thirdshift printed. Each cut for length says how many lines it left out; there are 139 lines on stderr in all.

Results

What you get back

Ready for review

An open pull request from the Issue branch to the Base branch. It is mergeable, its CI passes, and it has been reviewed against your repository's documented coding standards and against the issue. Otherwise thirdshift doesn't call it ready.

Unaddressed findings

Every Standards finding and Spec finding the agent chose not to fix is listed as an Unaddressed finding in the pull request body, with the code, plan decision, ADR or focused run that refutes it. A decision left to the Day shift links a needs-triage issue.

Failed ticket runs keep their work

A Failed ticket run still pushes its work, so nothing is lost (if the push fails, it keeps the worktree instead), and its pull request goes back to draft. Repeat the same command to continue it.

Workflows

Seven workflows

Choose the work you need. Open a workflow for details and links to the manual.

Ticket runOne Issue URL becomes one reviewed pull request.

With run, open Start work on the Console's Inbox to choose a known repository labelled by its Fleet machine, an issue number or URL and shared options. Review the request and Harness, then confirm Start now. On Cron jobs, choose a machine and use Run now to confirm a Pass with its configured arguments. User config and Update also select a Fleet machine with admin there. Each machine's live scopes decide its controls, and the owning machine executes and records the action. The CLI offers start <owner/repo> <issue>, config and update with --machine <name>.

A Ticket run takes one Issue URL and delivers one pull request, ready for review. A Ticket run that Self-merges merges its own reviewed, green pull request when you ask.

Spec runDependent Tickets come together in one Spec PR.

A Spec run works through Tickets in dependency order, up to three at once by default. They merge into a Spec branch, then one Spec PR gets reviewed against the whole Spec.

Architect runFind architecture improvements and build a Strong plan.

An Architect run looks for architecture improvements and builds its top Strong plan. Without a Strong recommendation, it leaves an Architect idea for the Day shift. Use --plan-only to publish a plan and stop.

Pickup runTake a Ready issue and put the factory to work.

A Pickup run takes the lowest-numbered Ready issue by default, the highest-numbered with pickup.order = "highest-first" or highest-first, after it has settled and while the repository is below its Failure limit: fewer open issues labelled agent-failed than pickup.failure_limit, 3 by default. A pull request waiting for review never holds it back. It immediately re-runs failed Base branch push CI once: green on re-run files a Flaky-test Ticket, and red again files an ordinary bug Ticket after 30 minutes. That CI-red Ticket leaves job names and log lines out of its title, body and later comments, and waits until you write the task and apply ready-for-agent. New failing commits are added to an open CI-red Ticket; one in needs-info does not block a new report. A run the host ran out of disk space under gets ready-for-agent back instead, as a host problem, not the issue's, and so does a Paused Command that no route had Plan usage left for, unless an untrusted edit leaves needs-triage or it is a Security fix. Other failed work stays with the Day shift, labelled agent-failed in place of in-progress, with a generated comment giving its cause, where it stopped, what was preserved and the machine, until you hand it back by applying ready-for-agent again, take agent-failed off, or close the issue. A Spec run only waiting on gated, blocked or out-of-repository Tickets is no failure: its Spec gets ready-for-agent back and a comment naming each undone Ticket and what it waits on, and a later Pickup run continues it once a Ticket can start. A run that leaves its pull request ready for review takes in-progress off and puts nothing back.

Security runAudit privately; fix reproduced findings when allowed.

A Security run audits the Base branch and records findings privately. It is report-only by default. With security-fix, it can fix a reproduced finding through a Ticket run or Spec run. In a repository with Issues turned off, it fails before any session and says to turn them on or remove its Security schedule. By default, it closes a finding its fix merged once its proof-of-concept test passes against the merged Base branch; no-security-close or close = false under [security] leaves it open. An optional Security review checks each Ticket run's change, including Tickets and the Spec PR, and holds Self-merge if introduced findings remain unaddressed or the review is incomplete. Its Harness is checked before work; an unavailable review Harness falls back to the default Harness, with one fallback also allowed for a Harness error before its first turn. A plan-limited or unstartable security.harness moves to [security] routes, else [harness] routes, else the default Harness; a cybersecurity safeguard refusal never moves.

Triage runInvestigate a Report or triage the backlog.

An invalid recommendation gets one correction turn without repeating the investigation, in the same worktree and sandbox policy. Both Session traces and Model evidence are retained separately. All validation still precedes publication; another invalid recommendation fails with retained-analysis diagnostics. Harness and GitHub failures get no correction turn.

Every input mode accepts base <branch>, including piped Reports and --file; it defaults to the checked-out Base branch. For an existing security-finding issue, the Run notification names only its recorded title and link; private investigation, questionnaires and failure diagnostics stay in the issue or local output and logs.

For an existing issue, thirdshift downloads up to ten unique HTTPS images from its trusted body and comments on github.com or *.githubusercontent.com before the session starts. The issue file lists their local paths under .thirdshift-issue-images/, also readable with --read-machine. Each image is limited to 20 MiB and 30 seconds; failures warn and investigation continues.

thirdshift triage <Issue URL or number> [base <branch>] investigates an existing open issue in place, defaulting to the checked-out Base branch. Its author and title/body edits must be by Trusted accounts; the session receives only their comments. thirdshift reserves the issue on origin and holds an in-progress Claim, then posts one AI-attributed comment, preserves its category and applies the resulting triage state. Readiness without permission becomes ready-for-human; wontfix closes it. Failure ends the Claim with ready-for-human and agent-failed; Stop uses ready-for-human, or needs-triage with --requeue, without a failure label. --recommend-only validates and prints the recommendation without reservation or GitHub writes. An issue cannot be combined with --file.

For a Report or an existing issue, the session receives the repository's available category labels and must recommend one, even when an existing issue's current category will be preserved. A Security finding keeps its security-finding label and gains the recommended repository category when it has none; factory labels are excluded from the choices.

After filing completes, the final progress lines on stderr list every issue filed or commented on, one link per line. The Run notification includes the same readable list, plus the investigation, issue titles with category and state, comment target URLs and any questionnaires. It omits the full recommendation JSON and issue and comment bodies; stdout keeps the full result as one JSON object. If publication fails partway, links to completed writes still appear after the failure diagnostics and in the notification.

With no issue or --file, thirdshift triage [base <branch>] is a Pass when stdin is a terminal or empty at EOF, including cron. It checks the Command limit, runs the Sweep and checks pickup.failure_limit, then selects one eligible open needs-triage issue in pickup.order. It passes over conflicting triage states, Claims, failures, parent Specs with sub-issues and untrusted issues, reserves on origin and rechecks before triaging in place. A reserved or stale selection gives way to the next candidate. Skips exit zero without a Run notification; the Activity log deduplicates their reason and activity.quiet_skips suppresses terminal output.

Pipe a Report into thirdshift triage or pass --file report.txt. A Triage run investigates read-only in a throwaway worktree and searches the repository's open issues before filing. When an issue already covers the Report, it comments there with the Report and new evidence, leaving labels unchanged. New issues each quote the Report with one category and one state label; separate problems are cross-linked. It holds ready-for-agent as needs-triage unless --allow-ready-for-agent or the User config allows it; problems needing credentials or production access are ready-for-human, and a wontfix issue is closed once filed. Use --recommend-only for recommendations without GitHub writes, naming any issue it would comment on; it fails wherever filing would. Its investigation and filed or commented-on issue links go to stdout and the Run notification. For needs-info, an embedded questionnaire skill writes questions for whoever has the answer, included in the issue and notification for the Day shift to forward. Other outcomes, including ready-for-human, get none; their issue bodies describe any needed decision or operator action. Empty or whitespace-only questionnaires count as absent. thirdshift never contacts the reporter outside the repository. It is never skipped for the Command limit.

Add --read-machine, or name the repository in the User config's triage.read_machine, to read the host filesystem through a Bubblewrap sandbox, with only the worktree writable. Unix-domain sockets are refused, so a host service cannot write for the session. TCP stays available. It requires bwrap and working Linux user namespaces; startup failure fails the Triage run with a diagnostic. Without either, investigation stays within the worktree.

Scoring runGrade merged pull requests and compare your Scores.

A Scoring run, started with thirdshift score, samples merged factory pull requests across configured GitHub owners, leaving out Security fixes. Each gets a blind packet with its issue and repository at merge time, its diff, pull request and CI conclusions. thirdshift scores --json lists the private samples by week. An independent Model grades each packet on Correct, Scoped, Tested, Honest and Standards, with a pass or fail and a reason for each. Completed Scores are kept; the next Scoring run finishes pending packets after a Claude or Codex quota window reaches 85%, a Claude rejection, or a Claude warning with no readable utilization. It also proposes Bug origins for closed bugs, excluding Security fixes, using a sandboxed session and history ending at the fix. The first proposal run covers all closed bugs; later runs cover their window. Use thirdshift bug-origins [issue] --json to read them; --confirm, --correct <pull request> or --none settles one. Confirmed origins count against their retained Ticket run in show --json and create proposed code-review Eval tasks with pinned PR diffs and draft catch criteria. Rejected and unsettled origins count for nothing. Eval tasks stay out of Experiments until approved.

Scoring samples, Bug-origin proposals and settlements, and Run metrics share retained pull-request attribution. Matching ignores ASCII letter case and trailing slashes. Latest means chronological RFC 3339 time, including UTC offsets, then greatest lexical record path and Command name for ties; invalid times sort before valid ones. Saved local record-path/name pairs select that exact Command under the matching pull request. Missing or mismatched local identities count for nothing; only absent or cross-host attribution selects the latest local Command, so Continuations never multiply a count.

The first run marks 20 past pull requests for you, spread across Harnesses and Models; later runs mark two a week. thirdshift scores <pull request> --mine records your five Scores before revealing the model's; add --json to return the saved result as JSON. Ordinary text and JSON views also keep model Scores hidden until yours are saved. Each criterion shows its own calibration: at least 18 agreements among the last 20 pull requests you both scored.

The Console's Scores page lists samples by week and each criterion's calibration, and saves all five of your Scores before revealing the model's. Its Bug origins page shows proposals and settled decisions with Confirm, Correct and Reject actions. Both use the same operations as their CLI commands.

Schedules and passes

Every Pass skips during a GitHub Quota wait or below 500 REST requests or GraphQL points, before other GitHub work and without taking a Command-limit slot or sending a Run notification. This includes Review with --author, Fix without a pull request and issue-less Custom processes, whether started by cron or by hand. The Activity log records the reason only when it changes for that kind; status and the Console Inbox show the Quota wait beside the last-fired lines until reset. Budget Pass frequency per GitHub user across hosts and repositories: hosts authenticated as the same user share one quota. A Pass also skips, without sleeping, when this machine's saved Plan usage holds every route its sessions may take, in cooldown after a structured limit or at its max_utilization; status and the Inbox then show a banner naming the held routes and the earliest reset. When no route has Plan usage.

Start passes with thirdshift architect base main, thirdshift pickup base main, thirdshift triage base main or thirdshift secure base main. A Custom process started with no issue, and neither an Issue-branch nor a Spec-branch worktree, follows the same Command limit, running beside other Passes up to it, and does not wait on a Ready issue or an Architect idea. A file that declares either branch worktree is refused when no issue is given, before any session. Your operating system schedules them. [pass] command_limit, 1 by default, is how many Commands on one repository on the machine skip a Pass there; raise it to let Passes overlap: Pickup runs, one Architect run and one Security run side by side, never two Architect runs or two Security runs. A Ticket run you start on an Issue URL counts toward it, but is never refused. thirdshift status, thirdshift cronjobs and the Console show when each repository's Pickup, Architect and Security Pass last fired, including repeated skips. Architect runs every few minutes and Security runs on a schedule, with fixing allowed. Both yield to work the Day shift shaped, and pause when a decision needs you.

Console

With the run scope, POST /api/v1/runs starts Ticket, Spec, Architect, Pickup, Security, Review, Fix, Custom process, skill, Scoring, Triage and Experiment runs in a known Launch directory. Passes keep cron's skip gates, including the Command limit; triage takes Report text in the request. Discover repositories with thirdshift launch-directories --json or /api/v1/launch-directories; the list comes from cron and User config's launch_directories. Starts run detached, survive Console restarts and name the requester in the Activity log. Experiment starts put the CLI options in an experiment object, including candidate, baseline and the suite list; OpenAPI lists every option.

Release starts use the same path, also available as POST /api/v1/start, with command: "release". Omit version for a Pass; optionally pin bump to major, minor or patch, or supply an explicit version instead. They require admin scope and a JacobStephens2/thirdshift Launch directory. Administrators get a separate Start Release run control.

Each sign-in address has all five scopes unless narrowed from the shell with thirdshift console scopes --email <address> --scopes read. The page hides controls outside those scopes. Token requests can name a person in X-Thirdshift-Person; the owning machine checks its sign-in list and intersects the person's scopes with the token's. Stops and Dismissals name both person and holder. The sign-in list and address scopes stay CLI-only.

The Console serves its read views as JSON at /api/v1, using scoped bearer tokens or the page's sign-in and the same JSON as each CLI twin's --json. A token without the security scope does not receive Security findings or Security session traces. Issue and revoke tokens from the CLI; console whoami identifies the machine and caller. Discover its routes with thirdshift console openapi or /api/v1/openapi.json. Failed tokens and passwords are slowed per client address, then refused for a cool-down with a retry time. Console API.

Pair another machine with thirdshift console fleet add <name> <address>, supplying its token on standard input. console fleet list --json shows saved scopes, version and last contact; console fleet remove <name> removes the entry and token. The header links every Fleet entry, including link-only entries without a token. Fleet pairing.

A machine that cannot be reached inbound reports outward instead: the watching Console issues it a token with console token create <machine> --scopes report, which can only upload that machine's own Run metrics summary and Plan usage and is refused everywhere else. The machine saves it with thirdshift console report add <name> <address>, and pushes both after every Command. Reporting outward.

Click the serving machine's name in the Console header to return to Overview (/?section=overview) from another page or section, clearing any machine filter.

Every top-level Inbox row offers Copy, including Ready for review, in Overview and individual folders. Share the rendered facts and absolute links with an agent without changing Command details. Fleet rows name their owning machine and include a thirdshift show command with --machine. If clipboard access is unavailable, a dialog selects the context and keeps that snapshot through live updates.

Specs with recorded Tickets show 2 / 5 Tickets complete on their Inbox row, including on phones and when dispatched by a Pass. The count follows recorded Ticket completion; Spec review and Delivery keep their own state.

thirdshift status reads paired machines into the same Inbox groups, tagging each Command with its machine and showing the Fleet's active runs with a per-machine breakdown. status --machine <name> selects another machine. Unreachable, refused or older Consoles get their own diagnostic; the rest still prints.

thirdshift plan-usage and the Console's Plan usage page (g then p) show each subscription Harness's Plan windows, cooldowns and routes, across the Fleet once a machine is paired or has reported, with a login shared by several machines shown once at its freshest and an offline machine's last view kept. --machine <name> or --local narrows it, and --clear [<harness>], or the page's form with act, forgets this machine's cooldowns. Every page's header warns Plan usage · N routes limited while a route this machine's User config names is used up or at its ceiling. Plan usage.

The Console's Inbox combines those same Fleet groups, with machine tags, answer ages and active-run counts. It fetches every 15 seconds while a page subscription is open, keeping remote answers and errors only in memory. After 60 seconds without a good answer, the machine is unreachable and its last rows turn grey; refused tokens and older Consoles have their own status and Console link. Needs you counts and browser notifications include Fleet rows. Choose a Machine to keep its filter in the URL, or show the whole Fleet. Remote Command details, Waterfall, Command logs and Session traces open in the same Console, fetched live without storing remote content. Security run details need the owning token's security scope. Each remote row and details view also links to its owning Console; show and logs accept --machine <name> and return that machine's JSON.

Remote rows offer Stop with confirmation, Dismiss and Undo when the owning machine permits the signed-in person and token to act. The owning machine carries out the action and keeps its Activity log, naming the person and holder. Read-only people, read-only tokens and Other-account Commands have no controls. From the shell, use thirdshift stop <command> --machine <name> or thirdshift dismiss <command> --machine <name>, adding --undo to take a Dismissal back. CLI actions are attributed to the token's holder. Acting across the Fleet.

See the Console with sample Commands in the Focus light Theme. Open either screenshot for the full-size view. The Console header shows the running thirdshift version. Every Console tab title names its host; the Inbox also shows its Needs you count. Ready for review rows show the pull request's latest CI: green, red, pending, no checks or unknown. A separate Merge conflict pill appears beside CI when GitHub reports a conflict; the row stays Ready for review even with green CI. status shows the same indicators, and show --json includes locally cached GitHub facts and observation times without a network request.

thirdshift config [key [value]] [--json] shows or changes this machine's User config with defaults and comment-preserving writes. The Console's User config page is editable with admin and read-only with read; a save returns to the setting with its key, saved value and machine confirmed, including Fleet saves and browsers without JavaScript. Export endpoints stay redacted. Its API twins require admin and log each change's caller and old and new values. With admin, Update thirdshift shows current and latest versions and installs the release before the Console restarts. The API also imports Theme JSON and the machine's private Eval replay data with admin. Machine administration.

Ready for review rows with CI red or Merge conflict offer Start Fix run when the owning machine permits run and knows the repository's Launch directory. Confirm the pull request, repository and owning machine to start there with its User config and CLI defaults. Copy fix command remains on the row and in Command details: thirdshift fix <PR URL>. Starting that Fix run, or any later Command on the same pull request, takes up earlier waiting rows in Ready for review or Needs you, including pull requests without a linked issue.

Console Inbox: a failed Command in Needs you, two pull requests Ready for review, and the selected Command's details.
The Inbox groups Commands by what needs you. Select a row to inspect its cause, CLI commands and logs alongside the list.
Console Waterfall: a Command's stages and Session tool calls drawn on one time axis, with the slowest calls listed above.
Waterfall expands a Command into stages, Sessions and individual calls, so you can see where the time went.

The Console opens on its Fleet's Inbox: Commands grouped by what needs you, with their stages and logs. Overview shows Needs you, Ready for review, Landing and Working together, each with its heading and count, with Done and Resolved folded below them to open in place. Folders beside the one-line rows filter to a single section, including Done and Resolved, each of which says under its heading what it holds and, for Resolved, when its retention starts and which setting sets its length; a clicked row's Command details open alongside. It reads ready rows' pull requests and Needs you rows' issues and pull requests from GitHub in the background once a minute; changed answers update open pages automatically. thirdshift status uses the same kept answer. Failed reads keep the last facts; after five minutes, both show when GitHub last answered and why the latest read failed. With fewer than 500 GraphQL points or REST requests left, both wait for the quota to reset, leaving the rest to the factory. An ended Needs you row leaves when GitHub shows its issue closed or its pull request merged; a Triage row also leaves when needs-triage is removed. A Finding leaves with “findings triaged” once all its private records are triaged on GitHub. A draft advisory without severity, or an open security-finding issue labelled needs-triage, still waits; a finding closed by its merged fix does not. GitHub settlement does not move live Silent or step-2 Slow rows. A Slow run stays in Working or Landing until its stage reaches both twice the top of its Usual range and at least five minutes past it; only then does it enter Needs you, count toward notifications and use the urgent favicon. A signed-in account can Stop or Requeue a live Command, just as from the CLI. Dismiss is always visible on the row in Needs you or Ready for review, beside Copy where available; d dismisses the selected row and selects the next. An inline Dismissal shows a temporary notice with Undo; Command details also keeps Dismiss and Undo. Command details shows each CLI form: thirdshift dismiss <command> or thirdshift dismiss <command> --undo. A dismissed row returns for a new kind of problem or when it ends ready for review; each kind counts once for the whole row.

The Console and status show the serving OS account's Commands by default. thirdshift console other-accounts readable, or a comma-separated list of names, includes readable local accounts with an account tag, including in Needs you and its tab count. Other-account Commands are read-only: Stop, Requeue, Dismiss and Undo apply only to the serving account's own Commands. The machine owner grants read access with filesystem permissions or ACLs. Account visibility.

Ready for review subjects link directly to the recorded pull request and show its title, including Review runs without an issue. The batched GitHub refresh updates titles on open pages; unavailable titles keep a usable PR link with “(title unavailable)”. Without a PR, rows keep the issue subject and title, or the Command subject when neither exists. Following the subject link opens GitHub without opening Details.

In Needs you and Overview, Review and Triage row headers link directly to the recorded pull request, or to the issue when no PR is recorded, on desktop and phone and across the Fleet. Existing-issue Triage retains its explicit or Pass-selected issue even when it fails. Older records and Report-based Triage without a target keep the repository and Command label.

Every Inbox group starts open, except Done and Resolved in Overview, which start folded. Click a heading, or focus it and press Enter or Space, to fold or open its rows. Headings and counts stay visible, and counts and active runs still include folded rows. Each browser remembers its choices through live updates and reloads when storage is available. Keyboard row navigation skips folded rows, in every Theme and on phones.

Done rows show their Command kind, such as Ticket run or Triage run; Custom processes show their process name. Done keeps the kind and outcome visible on desktop and phone, with or without JavaScript, in every Theme and across the Fleet.

On a desktop, Inbox issue and pull request numbers stay visible when long repository or Process subjects shrink. Hover a subject for its full text.

Command details opens with the Command's issue subject linked to the issue and its full title, wrapping long titles above Stop and Dismiss. An unknown title says “(title unavailable)”; a Command without an issue shows its Command subject alone. The recorded issue title is also in thirdshift show <command> --json.

An ended, unsuccessful Command shows its full failure reason immediately below that heading, before the controls, with URLs as links. When its own cause is absent, it uses the first cause from failed dispatched work. Successful or live Commands, and those with no cause, show no reason. The cause also stays in the facts list.

Command details shows the last five lines of recent Command output above Full Command log, updating as output arrives. The small preview helps assess a Slow run without leaving its details.

A Security fix’s Command details links each advisory it addresses, with its title and severity, even if the fix fails or is interrupted. The parent Security run marks which advisories it dispatched a fix for. Older Command records show no advisory line.

Above its groups, the Inbox counts active runs across the Fleet, with a per-machine breakdown. Cron jobs' Fleet schedules view groups configured schedules by repository and machine. Repository headings, including Other for unknown entries, start folded closed on every load; expand them independently to read Command kinds, schedules and commands, even without JavaScript. Machine statuses, including unavailable or link-only machines, stay visible. The CLI offers the same inventory through thirdshift cronjobs --fleet [--json]. Below the notification control, every Console reader page shows whether host limits allow another session, refreshing every ten seconds while visible. The indicator links to the Resources page, also available with thirdshift resources, for host memory, CPU load, free disk space and the User config limits that can delay new sessions. It says when limits are off or measurements are unavailable; capacity is not reserved.

Experiments

A Custom runner compares an outside agent workflow on process Eval suites. Select either Arm with --baseline-runner <name-or-file.toml> or --candidate-runner <name-or-file.toml> and name --suite. Candidate runner selection omits the candidate commit; two Custom runners need no thirdshift checkout or build. Preparation freezes the manifest, scripts and mapped HOME skill trees by SHA-256, retaining Git provenance for dirty local edits, and pins declared Harness paths and versions. One Trial-wide sandbox encloses the runner and its children with fresh HOME, declared Harness logins and Trials-only provider keys, a provider-only proxy and PATH wrappers disabling Harness web search. Missing credentials void the Trial; declared provider families count in Grader panel voting. Code Graders score committed HEAD; stopping to ask or committing a git_exclude scratch path fails the Trial. Custom runner sessions stream live through record_command --role or import from output_dir/sessions.json into standard OTLP traces, priced from frozen Experiment prices and available in Trial Peek and Waterfall. Quota warnings pause the Experiment; web-search tool calls and missing session accounting void the Trial. thirdshift evals check-runner <name-or-file.toml> checks a manifest, its files, Harness logins, [providers] keys and priced roles; add --suite and --task for one sandboxed dry-run Trial that creates no Experiment. The Console API serves it at POST /api/v1/evals/check-runner. Custom runner commands.

While an Experiment of the same OS account is live on this machine, every Pass skips across repositories, including nightly Security and an issue-less Custom process. Its Activity log names the Experiment. Manually targeted Commands still run with a warning. Experiments wait for other live Commands before building Arms or starting Trials; status and the Console name the wait. --no-wait bypasses it and records the competing Command count beside the Verdict. Existing Runs finish, and other machines carry on.

Custom process and home-skill content identifies each Arm. Editing either starts a new Experiment with separate estimate history; unchanged inputs resume their frozen Experiment. Process grading shares one Bar timeout across snapshot preparation and all test selectors.

After each process Trial, a leak check searches its Session traces for the real fix's identifiers. Review pending hits in the Console or with thirdshift experiments <id> --leak <hit-id> confirm|dismiss --reason '…'. The Verdict waits for your decisions. Dismissals keep the Trial on an auditable false-positive list; confirmation makes it Void. Each decision names its reviewer.

Experiments compare a Candidate with a Baseline on private Eval suites. thirdshift experiment <candidate> shows its Trials’ worst-case session-minutes, with an estimate where this machine has history, and asks on a terminal unless given --yes, then builds both Arms and runs interleaved Trials with two workers, a fixed Bar and resume after interruption or a Paused Command outcome at a quota stop (85% for Claude and Codex, a Claude rejection, or a Claude warning with no readable utilization). Trials and Graders run in bwrap sandboxes. Code Graders score mechanical checks offline from report packets and a private grading repository, then fresh model Graders score written criteria from blind packets with provider-only access. Graders cannot read raw Trial logs, Arm mappings or the Experiment’s other files. Results show the Verdict, wrong findings, borderline marks, paired intervals, each Arm's minutes, tokens by Model, reported cost and Void causes. Trials and Graders join the Command's Trace. Void Trials retry fresh up to twice; an exhausted task drops out of both Arms. More than a tenth of judged tasks dropped in suites that are not advisory makes the overall Verdict inconclusive.

Experiments, including release Experiments, report approved Eval tasks missing Trial inputs before building either Arm. Before each Trial's session, the host prepares its repository's pinned Rust toolchain and listed components, sharing preparation across Trials with the same pin. An installation failure makes the Trial void with session_unavailable. Spec review Trials keep the production prompt and grade only the reports; their sandbox blocks gh calls and provides no PR service.

Process Trials run each Arm's Built-in or Custom process, stopping before its first publishing Step. Each Arm selects a name or .toml file with --baseline-process or --candidate-process, defaulting to ticket-run. Preparation freezes the Process and its home skills by SHA-256, records each Step's Harness, Model and Effort, and checks the frozen files before every Trial. Steps and sessions stay under the Experiment and appear in its Trial Peek and Trace. A delivered Trial passes only when the code Grader passes both fail-to-pass and pass-to-pass selectors on its final commit with the reference fix’s tests and changed shared fakes overlaid. Python selectors search the repository after the standard library, so a committed module cannot replace one. Checks run offline in bwrap under the Bar’s timeout; failed Scores name the failing selector. Stopped-to-ask and failed do not pass. Outcome counts appear beside the Verdict.

When an Eval task names how to run new tests, each pair of Trials gets base-tests and cross-tests: each Arm's new tests run offline on the unchanged base and against the other Arm's final commit, under the Bar's timeout. A cross-test failure is a disagreement to look into and changes no Score. The Console's Experiment page shows this Pair evidence.

A Grader panel named in the Bar with --panel-seat reads each pair of process Trials blind in both presentation orders, rating a rubric and calling each side ready to merge or not before a preference. A call that flips with the order is a tie. The panel votes one vote per family, or per Model, with seats from an Arm's family reported but not voting while another family sits. Every seat's calls and the panel's result appear beside the Verdict, or count in it when the Bar says so. The estimate before the Trials prices each seat from the frozen table, panel spend is reported apart from the Arms' cost, and --panel-spending-limit pauses grading when a run reaches it.

Each such pair can be read blind in the Console, or with thirdshift experiments <id> --pair <pair-id>: the Ticket, its numbered acceptance checklist, both changes side by side with code before tests, and their evidence, on sides drawn for each pair, with no Arm, Harness or Model and no model call shown. You seal a merge call per side, then give a preference (A, B, tie or both bad) and optionally a rubric. Records are append-only and name you; which Arm made each side, and the Grader panel's calls, appear only after your preference. People's calls and their agreement with the panel and with each other show beside the Verdict.

The Bar fixes who decides: the panel and the people are each off, beside the Verdict or counted in it, with --panel and --people. Named readers each get a queue of pairs, all of them or a sample drawn from the Bar's seed with a set overlap, and a shared pair is ready only if every reader calls it ready. When counted, a Trial passes only if its code Grader passes and whoever decides its pair calls it ready. With both counted, the panel stands in on unread pairs, but only with a voting panel of enough families, checked at start, and enough people–panel agreement on the sample, or the Verdict is inconclusive and says why.

thirdshift evals propose-process <repository> drafts process Eval tasks from merged Tickets with separate tests, reporting bug or feature kind and source size. Day-shift approval is required. evals prepare checks with network access that each selected test fails at the base and passes at the merge; changed inline Rust tests are refused by file. The process suite runs three Trials per Eval task and is selected by Factory skills and Built-in process changes.

The Bar fixes separate pass and fail levels, 70% and 95% by default. Each metric shows both intervals from the same draws: fail below zero at the fail level; otherwise pass when the interval at the pass level sits above the margin, marked worse, within the margin if it lies wholly below zero. Today's suites fall short of an 80% A/A pass rate at the 70% default: code-review needs about 20 Eval tasks, Spec review about 80. --pass-level and --fail-level set them before the first Trial. Saved Experiments keep their original Bar and Verdict.

An A/A Experiment uses one commit and matching Harness, Model and Effort flags in both Arms to measure ordinary Trial variation. Select its suites explicitly with --suite; both Arms run through to a Verdict. After completion, thirdshift experiments <id> --record-difficulty records each Eval task's Difficulty from both Arms' non-void Trials. thirdshift evals lists the readings and whether each is discriminating: between 0.15 and 0.95 inclusive, over at least 6 Trials. Fewer Trials or no reading means unmeasured.

The Bar fixes each suite's discriminating Eval tasks from recorded Difficulty before the first Trial. Only those tasks are judged; other approved tasks run and are graded as measurement. experiments <id> and --json show measurement Trials per task and counts of judged, measurement-only, void-dropped and judged tasks measured on another setup. Measurement changes no interval, required recheck or prediction. An empty judged list is inconclusive. A changed list or changed Difficulty for a retained task refuses resume after the first Trial, including readings that stay inside the band. Saved Experiments keep their original method.

The Console's Experiments pages group saved Experiments into Running, Needs you and Done. Each Experiment says what it tests and updates live with its Trial grid, Verdict intervals, Arm comparison and Bar, each folded to one line until opened. Open a Trial's Peek for its Scores, reasons and Session evidence; copy recheck commands to run in the CLI. Custom runner Arms show their name, digest, recorded Git HEAD and dirty state, and declared roles in the comparison and Peek. The API accepts baseline_runner and candidate_runner at POST /api/v1/start with the CLI's process-suite and per-Arm validation. Blind pairwise review reveals runner identity only after the preference is submitted. Session links share thirdshift experiments <id> --session <session-id>'s confined evidence reader, keeping healthy evidence readable even when unrelated Trial metadata or usage spans are corrupt. Approve proposed Eval tasks there or with thirdshift evals approve <suite> <task> --json. Approval starts no work and affects future Experiments; unapproved proposals never run.

A suite with fewer than 20 discriminating Eval tasks is an Advisory suite: its Verdict and intervals are shown, but cannot pass or block a release. --min-discriminating-tasks sets the minimum for one Experiment; the Bar fixes it before the first Trial and refuses a changed minimum on resume. Only suites that are not advisory decide the overall quality Verdict, Void dropout guard and required rechecks. When every suite is advisory, the quality Verdict is inconclusive. CLI text, JSON and the Console mark Advisory suites and show judged and measurement counts. The Experiment result lists each Advisory suite and its Verdict. With --with-experiment, a Release run needs a terminal override when the overall Verdict is fail or inconclusive, including when all suites are advisory. Saved Experiments without the minimum keep their original Bar and Verdict.

Optional --cost-ceiling and --time-ceiling fix Candidate/Baseline ratio limits in the Bar; both default off. A paired median over a set ceiling fails the Experiment. The Verdict also says when a passing Candidate is credibly cheaper or faster, or costs more or takes longer, in JSON, text and the Console.

Each Trial and each Grader has its own memory cap. A Trial its cap kills is void; repeated cap kills are reported for its Arm. The User config sets the caps, with defaults of 1 GiB for throttling, 2 GiB for killing and 1 GiB of swap.

The Verdict waits for your rechecks of borderline and decisive Scores. thirdshift experiments <id> --json lists those waiting and which flip changes the provisional Verdict, with its resulting Verdict. thirdshift recheck <id> <trial> pass --reason '…' records your decision beside the Grader's Score and keeps its history. To review a batch, use thirdshift recheck <id> --pending, then record one decision and reason with thirdshift recheck <id> --batch <fingerprint> pass|fail --reason '…'. A changed pending list refuses the batch.

Each Trial removes its Harness caches when its session ends. After grading and all rechecks finish, the Experiment removes every attempt's repository copy. Paused Experiments keep repositories for resume; Session evidence, reports, packets and Scores remain readable.

Schedule a Release Pass with thirdshift release from this repository, using cron or a systemd timer. It quietly skips when nothing shipped or release work waits on the Day shift. For an on-demand Command, use thirdshift release 0.4.0 to cut or resume that version, or pin the bump with --major, --minor or --patch. One fresh-home sandboxed Session chooses minor or patch and writes the summary when no bump is pinned. The Release run selects green shipped content, validates the bump PR, publishes its tag, waits for the release workflow and merges the PR. It leaves the Launch directory alone and never updates the installed binary. Releasing.

Experiments are off by default. Add --with-experiment on each invocation to run or resume the Experiment against the previous release. Pending rechecks and decisions wait; fail or inconclusive requires a terminal override. --review also requires a terminal and offers accept, edit or cancel before pushing. Unfinished exact-bump releases resume; unpublished failed tags can be recovered, while published tags never move. Live Release runs appear in Working, merged ones in Done, and failures in Needs you, including a published release whose bump PR could not merge. Once published, a Release run records its Release URL, links both the bump PR and Release v<version> on its Inbox row, and lists the Release URL after the PR URL in its Run notification. Run notifications follow the same outcomes. thirdshift stop releases the locks and live label.

While waiting for release PR checks, a Merge conflict or completed failing CI starts at most one targeted thirdshift fix <PR URL> --no-merge --no-base-fix. Missing workflows have a five-minute startup grace period, as does GitHub's mergeability report after checks pass; queued and running CI keep waiting. A repaired or externally updated head must still be an exact version bump. A changed content base refreshes the requested Experiment, summary and version diff. A failed Fix, another blockage or more than five head changes stops before tagging with recovery instructions. The Release run owns tagging, publication and merging.

Run metrics

Fleet metrics name each machine's unreadable OS accounts beside its status, so omitted Other-account Commands stay visible, including in cached and pushed summaries.

Completed Ticket runs, Review runs, Triage runs and Fix runs keep their Run metrics in their Command records: outcome, Repairs, CI rounds, Unaddressed findings counted separately as Standards, Spec and Security, stage times against Usual ranges, and minutes by stage and in total. The Unaddressed findings counts come from Delivery's final PR body and include the Security review; a Triage run, which has no Delivery, leaves them missing. Each Session stage keeps the review's Standards and Spec finding counts from its summary, with missing counts left missing. thirdshift show <Issue URL> --json includes each Ticket run's metrics, including Ticket runs and Base fixes. The Console's Command details show these same metrics and mark unavailable signals as Missing.

thirdshift metrics <command> [--json] shows one Ticket run and its children, or one Review run, Triage run or Fix run; thirdshift metrics [--json] shows trends by repository, Harness, Harness version, Model, Effort, Command kind and kind of session, with daily or weekly buckets, --window 7d|30d|12w|all presets and filters by date, repository, Command kind, Harness, Model, thirdshift version and OS account. Each Command record keeps the version that started it (older ones recover it from their Session traces), and the timeline marks where it changed. Where runs failed groups Failed Commands by the stage they stopped at and whether they were held, waiting, crashed or failed that stage, linking each group to History. Its outcome stacks count each work Command kind on its own as Succeeded (rate over Succeeded + Failed), Failed (died records included), Paused or Stopped, leave out pass-through Pickup runs and skipped Passes, include readable Other-account Commands tagged by account, and compare a bounded window with the one before it, showing n and observed and missing counts. It pairs yield with what became of each kind's pull requests in the kept GitHub answer, confirmed Bug origins by merge, calibrated weekly Scores pass rates and Needs you and Stop counts; computes duration, Repairs and CI rounds over Succeeded Commands only, beside first-pass clean rate, time and spend per succeeded delivery by Harness and Model, and the share wasted on failed, crashed and stopped work; and shows stages above their Usual range with per-Session friction and Security holds, all without a GitHub call. The Console's Metrics page (m) shows the same view as tables, static stacked bars and sparklines. thirdshift metrics --fleet [--json] merges every paired Fleet machine's outcome buckets, preceding-window changes and Where runs failed with this machine's, counting each Command once on the machine it ran on, and --machine <name> reads one of them; the Metrics page opens on that Fleet view once a machine is paired. Each machine's last summary is saved locally, so an unreachable or retired machine stays visible, marked cached with when it was last seen. A sleeping or NATted machine can instead push its own summary to an always-on Console with thirdshift metrics --push, and does so after every Command once console report add saves a destination; it shows there read-only, marked reported with how long ago it pushed. Session traces supply tokens by observed Model with the cache split, reported cost, tool errors, permission denials, killed work and repeated tool calls. Completed Ticket runs, Review runs, Triage runs and Fix runs sum these by session kind; past Ticket runs get them from converted traces when metrics are read. Missing values stay missing. Every signal stays separate.

Confirmed Bug origins count against the Ticket run that introduced each bug when metrics are read, even if confirmed after it ended. Metrics match this machine's Ticket runs against the Scoring data for both hosts, and weekly Ticket run trends count them in the Ticket run's start week. Rejected and unsettled origins count for nothing. Command details in show --json and the Console include these read-time counts and the available metrics of past Ticket runs, without rewriting their records.

Run metrics and Experiments share Session usage accounting: partial totals refine only reported fields, preserving known input, cache counts and cost. Input includes cache reads and writes; missing measurements stay missing. Reported Session cost wins, otherwise each Model's reported cost replaces its call costs. Saved completion metrics stay fixed.

Every Ticket run also checks its sessions' shell commands for force pushes, shared-branch history rewrites and recursive deletes outside the Worktree. Run metrics retain each matching command as an advisory flag; flags never block or fail a Ticket run.

Engineer the factory while the factory engineers the software.

Examples

Real pull requests

Real pull requests thirdshift made on its own repository. Judge the work yourself.

Does a second reviewer catch what thirdshift's own review lets through? 183 replayed reviews, Codex against a fresh Claude session: Fresh Eyes Beat a Second Family.

Before you run it

Requirements and platforms

Requirements

  • Your chosen Harness, installed and authenticated: claude (Claude Code, the default), codex (Codex CLI), agy (Antigravity CLI), grok (Grok Build), muse (Muse Code), opencode (OpenCode, with a configured Model provider) or kimi (Kimi Code CLI).
  • gh (GitHub CLI), logged in.
  • Node.js on PATH for Security runs, whose report validators use it.
  • git with a global user.name and user.email, and credentials that can push to the repository.

Platforms · Linux only

  • Test suite in CI: Ubuntu 24.04.3 and later, x86_64 and aarch64. On Apple Silicon macOS, run Ubuntu 24.04 aarch64 in a Linux VM such as Lima with vz and --mount-none. Keep repositories on the VM's Linux filesystem (e.g. ~/repos), not under /Users.
  • Release smoke check only: Rocky Linux 9.8 and later (x86_64) and WSL2 with Ubuntu 24.04 or later (x86_64). Keep WSL2 repositories on the Linux filesystem, not under /mnt/c. WSL1 is not supported.
  • Two statically linked Linux musl binaries. Native macOS (including Intel macOS) and native Windows have no binary.

Choose the Harness, Model and Effort with thirdshift setup or per command. Setup suggests Claude's documented Model aliases and accepts custom Model IDs. To use several subscriptions, list them in [harness] routes: each session Step then starts on the first route this machine's Plan usage says has allowance left, and moves to the next when a Plan window runs out. A command that names a Harness, Model or Effort stays on it, and a factory Command with no route left ends as a Paused Command rather than failing its issue. See Routing by Plan usage, Harness configuration and supported platforms.

About the name

Third shift

My dad, Mark Stephens, was a pressman at Tursack Printing, the print shop Robert Tursack Sr. founded in Philadelphia in 1959. My dad worked third shift at the Morgantown, Pennsylvania plant, keeping the big four-color presses running through the night. Sometimes I got to visit, and I always wondered whether I'd end up in printing myself. The lineage carries on. Bob Tursack went on to found Brilliant Graphics in Exton, where my mom, Melodee, did graphic design with him until he sold the company to Royercomm Prism in 2026. This is as close as I am to printing right now.

The printing press made copying words cheap. Agents are doing that for code. thirdshift is named for my dad's shift: the machines can run overnight, and I need something to keep them running.

- Jacob Stephens