Skip to content

KyleBrierley/agent-workflow-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Workflow Lab

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.

Exercise-Run-Review Loop

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
Loading

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.

How to Use the Lab

For each exercise:

  1. Open the exercise brief.md.
  2. Start a new Codex thread from this repo.
  3. Give your coding agent the task from the brief.
  4. Ask the agent to inspect the fixture before editing.
  5. Ask for a short plan when the task is ambiguous.
  6. Let the agent implement only after the plan is clear.
  7. Review the diff, run the listed checks, and write a short debrief.

Exercises

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.

Validation

This repo has no global build. Validate individual fixtures from inside their directories when they include a package.json:

npm test

Current JavaScript fixtures:

  • exercises/01-agents-instructions/fixture/legacy-widget
  • exercises/02-context-gathering/fixture/ticket-search
  • exercises/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

About

Reusable lab for AI coding-agent instructions, safety boundaries, delegation, validation, and Git workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages