Skip to content

orchChain coding agents into resumable workflows

Write a plain TypeScript function. orch spawns Claude Code and Codex, passes typed data between steps, watches them in tmux, and resumes from exactly where you crashed.

In one file

ts
import { workflow, step, commit, claude } from 'orch'

const WORK = step.define('work', {
  agent: claude(),
  validate: gitDiffCreated(),
})

export default workflow('hello', async (run) => {
  await run(WORK, { prompt: 'Add a CHANGELOG.md with an Unreleased section' })
  await commit('docs: add changelog')
})
bash
orch run hello

New here? Start with What is orch?, then Getting started.