This repository is a hands-on lab for building reliable AI coding-agent workflows. It is a collection of focused exercises and small fixtures rather than one large application. Each exercise isolates an operating pattern that transfers to real engineering work: repository orientation, durable instructions, scoped planning, approval and safety judgment, delegated investigation, diff review, and evidence-backed validation.
The lab is intentionally separate from support-operations-workbench. Use this
repository to study and rehearse agent behavior such as instruction writing,
context gathering, safety judgment, configuration reasoning, and session
steering. Use the companion application for realistic feature and bug-fix
scenarios in a full-stack codebase.
flowchart LR
A["Exercise brief<br/>goal, constraints, done criteria"] --> B["Orient<br/>instructions, fixture, current behavior"]
B --> C["Plan<br/>scope, safety, validation"]
C --> D["Execute<br/>small edit or review"]
D --> E["Validate<br/>tests and acceptance criteria"]
E --> F["Review<br/>diff, risks, stray changes"]
F --> G["Debrief<br/>evidence, steering, next improvement"]
G -. "repeat with a sharper workflow" .-> A
The artifact is not only the resulting code. Each run should leave a reviewable
chain from task definition through validation and reflection. See
docs/example-debriefs.md for two short,
illustrative examples of what that evidence can look like.
For each exercise:
- Open the exercise
brief.md. - Start a new Codex thread from this repo.
- Give your coding agent the task from the brief.
- Ask the agent to inspect the fixture before editing.
- Ask for a short plan when the task is ambiguous.
- Let the agent implement only after the plan is clear.
- Review the diff, run the listed checks, and write a short debrief.
| Exercise | Skill | Status |
|---|---|---|
01-agents-instructions |
Root and nested AGENTS.md guidance |
Ready |
02-context-gathering |
Repo orientation before edits | Ready |
03-security-approvals |
Risk review, secrets, and command safety | Ready |
04-config-profiles |
User config, project config, profiles, and safety boundaries | Ready |
05-slash-command-flow |
Session steering with slash commands | Ready |
06-diff-commit-hygiene |
Diff review, staging discipline, and commit-ready summaries | Ready |
07-delegation-worktrees |
Subagent/worktree delegation and evidence merging | Ready |
See docs/codex-skill-map.md when choosing which skill to practice next.
This repo has no global build. Validate individual fixtures from inside their
directories when they include a package.json:
npm testCurrent JavaScript fixtures:
exercises/01-agents-instructions/fixture/legacy-widgetexercises/02-context-gathering/fixture/ticket-searchexercises/06-diff-commit-hygiene/fixture/changelog-helper
Some exercises are review-only or documentation-oriented and do not have a test harness. For those, validate by checking the brief's "Done When" section, reading the final diff, and confirming any changed TOML or Markdown still parses or renders sensibly.
For repo structure checks:
rg --files
git status --short