Skip to content

Code and CI only

Lint, typecheck, and tests locally, then a pull request and a CI repair loop. No review agents and no people inside the run: for low-risk, well-tested codebases.

Template code-and-ci
Works on A git repository, cloned into an isolated Docker sandbox
Where a person acts Nobody inside the run. The pull request it opens is merged by a person, outside it.
Waits on systems CI result, up to 4h

Drawn from the template spec at build time. Bookkeeping nodes that only record status are left out; amber nodes are where a person acts.

flowchart TD
  n_validate["Validate"]
  n_implement["Implement"]
  n_runLint["Run lint"]
  n_runTypecheck["Run typecheck"]
  n_runTests["Run tests"]
  n_openPR["Open PR"]
  n_waitForCI[/"Wait for CI<br/><small>waits up to 4h: CI result</small>"/]
  n_checkCI{"Check CI?"}
  n_terminateCITimedOut(["Timed out<br/><small>ci timed out</small>"])
  n_done(["Done"])
  n_checkCILimit{"Check CI limit?"}
  n_lessonCIFailed["Lesson CI failed"]
  n_fetchLogs["Fetch logs"]
  n_terminateCIFailed(["Failed<br/><small>ci failed</small>"])
  n_ciFix["CI fix"]
  n_repushAfterFix["Repush after fix"]
  n_validate --> n_implement
  n_implement --> n_runLint
  n_runLint --> n_runTypecheck
  n_runTypecheck --> n_runTests
  n_runTests --> n_openPR
  n_openPR --> n_waitForCI
  n_waitForCI -->|"received"| n_checkCI
  n_waitForCI -->|"timed out"| n_terminateCITimedOut
  n_checkCI -->|"yes"| n_done
  n_checkCI -->|"no"| n_checkCILimit
  n_checkCILimit -->|"yes"| n_lessonCIFailed
  n_checkCILimit -->|"no"| n_fetchLogs
  n_lessonCIFailed --> n_terminateCIFailed
  n_fetchLogs --> n_ciFix
  n_ciFix --> n_repushAfterFix
  n_repushAfterFix --> n_waitForCI
  class n_waitForCI wait

Ships as a built-in template and reuses the engineering steps the flagship flow runs. This particular arrangement of them is not separately exercised end to end against a real repository. See product overview §8.

Every built-in template is seeded into the workflow library and can be cloned, edited on the visual canvas, and versioned — see architecture for the node types. The spec lives in packages/shared/src/workflow/templates/codeAndCi.ts.

© 2026 Jorge Barnaby

Source-available under FSL-1.1-MIT

Source on GitHub

Built with Astro and Starlight