oah helps you build an AI development workflow that fits you and keeps changing as AI improves. It is a working reference and a guide you can adapt.
A useful result needs more than generated code: the scope must be clear, the changes checked, and decisions kept for the next session. oah connects those steps so one request can carry through the work with a record of what happened.
002 / Why it keeps changing
Older rules and skills can hold a newer model back or make its results worse. Defaults should be easy to understand and change; a rule that gets in your way is a design problem to fix.
Keep the parts that help, remove what no longer helps, and revise the workflow as your tools improve. You can start with the full setup or take only the impact map, wiki, leases, evidence gates or review loop that your project needs.
003 / Why Claude builds and Codex reviews
This split comes from the author's own experience, not a measured comparison: Claude fills in details a beginner might miss in a first version; Codex checks and corrects within a fixed scope.
The current commands run Claude Code and Codex CLI. The ideas can also be adapted to another tool or harness, with one AI or several. Give each stage to the AI that suits your work.
004 / From one request to a checked change
Describe the result you want in plain language. The AI records the goal and scope, checks what the change touches, reserves its paths and chooses the tools for the task. Claude builds; Codex reviews, corrects and reviews again.
Gates record the checks and their results. The project wiki keeps the decisions and reasons beside the code. In v0.3.0, optional TypeSafe Jev can judge difficulty for model selection; rules remain the fallback when it is unavailable or uncertain.
005 / The decisions stay with you
You ask, answer when the AI needs a decision, and confirm before the change lands. If the same problem repeats or the work reaches a design choice, the loop stops to ask you.
Ask “Is the review done?” or “Did all the gates pass?” and inspect the evidence. The final confirmation belongs to you; writing code, checking it and approving its landing are separate steps.
006 / Free, open source, yours to adapt
oah is free, open-source software under the MIT license. Read the source, change it and bring the useful pieces into your own workflow. Your AI services and any optional services use their own accounts and billing.
The current v0.3.0 release supports macOS and native Windows, and expects familiarity with git and pull requests. Install it, run oah init in your project, then try the small hello-oah example. The installation and documentation sections explain each step.
A lease reserves the paths one task may change, so two AI sessions never edit the same files by accident. An overlapping lease is refused with OAH_LEASE_CONFLICT, naming the holder. When the task finishes, oah compares the files really changed with the scope, because a lease cannot stop an editor from writing elsewhere.
When you need it
Two AI sessions on one repository will happily edit the same file, and nobody notices until the changes collide.
How it works
oah start --task T --agent A --scope PATH… takes a lease; oah start --packet PACKET.md takes the scope from the packet and binds its intent in the same step.
A scope that overlaps another lease is refused with OAH_LEASE_CONFLICT, which names the holder. The scope repo means the whole repository.
oah status lists every lease as active or STALE and only reads; oah renew extends a lease and can replace its scope; oah release --reason drops it without finishing.
oah finish compares the files really changed since the lease started with the scope and refuses with OAH_SCOPE_EXCEEDED when they go outside it.
Workers that oah call launches run with OAH_WORKER=1 and use your lease; they never start, renew, release or finish one (OAH_WORKER_LEASE_REFUSED).
Example
Check the start and take the lease in the worked example.
A git repository. Lease state lives in oah/ inside the repository's git folder, shared by every worktree and never shown in git status.
Limits and recovery
A lease cannot stop an editor from writing elsewhere; oah finish checks what happened instead.
A lease lasts 4 hours by default (--ttl-hours, up to 168). An expired lease shows as STALE, cannot be renewed (OAH_LEASE_EXPIRED) and is pruned by the next oah start; you can still finish or release it.
To widen the scope, run oah renew --task <task> --agent <agent> --scope <path> … repeating every path, or pass --allow-out-of-scope, which is recorded.
Using the right task with another agent's name gives OAH_LEASE_NOT_YOURS.