AW-000 · General arrangement · how I build with agents
Code got cheap.Discipline didn't.
Agents collapsed the cost of writing software. The processes engineering teams refined over decades still apply, and with agents writing the code, uniform and disciplined input matters more than it used to. This is how I work, and the framework I install first in every project.
Drawn by Eric Albee October 2026
Callouts
Kickoff: context, policies, and one round of questions.
Only aw-execute writes, in worktrees the orchestrator cut.
The review verdict gates execution and integration.
Ship: push and open the PR, with attribution, unasked.
Back to me: the PR, the run summary, MANUAL_TASKS.md.
Merge, by whoever merge_authority names.
Projectagentic-workflow
DrawingGeneral arrangement
Dwg no.AW-000
DrawnE. Albee
Checkedaw-review
ScaleNTS
Rev0.3.0
Revisions
Rev
Date
Description
0.1.0
2026-07-07
Baseline snapshot
0.2.0
2026-07-08
Refinement release
0.3.0
2026-08-04
Composability + shipping
0.4.0
pending
In review: update check
A-100
How I work
Operator practice
I designed how I work with agents from two sources: years of managing engineers, and close review of my own agent runs. Most of the rules in my framework trace back to something that went wrong in a real run.
I manage agents the way I managed engineers
I've worked mostly remote since 2020, with teams spread across continents. That taught me to communicate clearly and to make sure everyone is on the same page before anything gets built. Agents need the same thing. I do the thinking up front, write down everything I know, and give the agent one chance to ask questions. Then it runs on its own.
I err on the side of over-explaining, because clarity at the start is cheaper than rework at the end. The one real difference from people is that agents don't need diplomacy, so I can be blunt, terse and exact.
Know the codebase. Don't just add to it.
At Quantum we brought Claude Code into the workflow early, while everyone was still working out how to use it. I owned the customer portal: the same data as the core product, exposed through a narrower and more restricted slice, fitted into a large and fast-moving codebase. The hardest part was the data itself, which had grown organically in Postgres. Writing code was rarely the bottleneck. Understanding the existing system well enough to fit into it was.
My takeaway: keep a clear mental model of the codebase, and don't let agents be merely additive. Every piece bolted on without an understanding of the whole adds entropy, and you are the one who owns it.
Everyone is responsible for what their agents produce.
Build the pipeline first
When ibble pivoted into user-generated content, the principal engineer I hired was obsessive about finishing the delivery pipeline before anything else. I gave him room to run with it. It paid off when we scaled: the guardrails were already in place, so we could hire more flexibly and get new people contributing quickly. For a startup, that speed is critical.
Agents are new contributors who arrive constantly. That's why agentic-workflow is the first thing I add to any project.
Govern how agents work, more than every line they write
At the volume agents produce, reviewing every line of every PR is close to untenable. The place that needs real care is the layer that governs how agents operate, and keeping that layer the same across repos.
Documentation written for agents to use: commands, conventions, and where things live.
As much standardization as the team will tolerate, and a shared understanding of it.
One development flow across every repo. That was the original premise of agentic-workflow.
Clear pointers to design docs and API documentation across projects and services.
The foot-guns written down. Agents should know where the bodies are buried, slow down there, and call those changes out in their PR descriptions.
Quality and release are solved problems. Use the solutions.
CI/CD, quality gates, observability and monitoring, upper and lower environments, PR review: the industry has understood these for more than a decade, and agents don't change them. How strictly I apply them depends on the stakes. My current projects are lower stakes, so I bias toward speed. The baseline stays fixed.
Every change gets a branch and a PR, passes checks, gets reviewed, and is merged by hand. It costs some speed, and it's how I keep a mental map of what is shipping at any moment.
Branching models depend on the team and the project, so I hold that opinion loosely. My framework defaults to a single main branch with fix-forward.
Agents work in git worktrees, inside Linux VMs on OrbStack, so they can run with full permissions without putting my machine at risk.
For agents that ship as products, I lean on proven tooling. LangSmith handles tracing and evaluations, and LangSmith Deployment runs agents built with any framework, with revisions and a control-plane API. Agent releases get the same preview environments and eval-gated promotion to production as any other service.
Use the right tool, even when it isn't mine
For a proof of concept, a full vendor platform like Replit often wins. It ships something working immediately, and I can trust the plumbing. When I need granular control or the build gets complex, as with CruiseMigration, I use Claude Code and my own framework.
First Foods
An app we used throughout our travels in Europe. I took a photo, wrote the base requirements and let Replit run with it, using the same prompting method I use everywhere else.
A logistics hackathon
Letting Claude build a full React Native app was far more engineering than the problem needed. Replit already had the harnesses and integrations built in, voice included.
The kickoff I give every agent
Every substantial task starts with a context dump: the goal, the constraints, what I already know, and where to look. It ends with the same instruction every time, which sets the terms of the run.
kickoffcloses every task prompt
Review the project and my notes before you start, and load your
context with what this task actually requires.Then ask any clarifying questions up front. It will be your only
opportunity to do so.Once you begin, I expect you to work fully autonomously.
Read first. The questions come from the material, so they're specific. The agent never asks something the README already answers.
One round of questions. Every question arrives in one batch, the way a good kickoff meeting works with a distributed team.
Then autonomous. No check-ins. Ambiguity becomes a logged decision instead of a pause, and blockers come back together at the end.
This page was built from that prompt: one round of questions, then no check-ins.
A-200
The framework
Skill · 6 agents guardrails · installer
agentic-workflow is a portable, autonomous, multi-agent coding workflow for Claude Code: one orchestrating skill, six typed sub-agents, a guardrails contract and a versioned installer. Hand it a question, a one-line bugfix, a punch list or a multi-week feature. It classifies the work, picks an execution path, drives the agents, reviews its own output and opens a PR.
It sits next to my greenfield stack: Next.js apps with Railway hosting the infrastructure, grown from someone else's minimal starter that also seeded this framework.
Two ways multi-agent coding fails
Most workflows defend against one of these. This one defends against both.
Failure 1
The wrong approach, confidently executed
The orchestrator parallelizes before it understands the task. It runs a command that didn't need running, explores with the wrong decomposition, or builds the wrong thing.
Defense A strategy gate that classifies every request before any agent spawns.
Failure 2
The right work, broken integration
Each agent's code is correct on its own and still doesn't compose: unit drift, mock cross-talk, import-boundary leaks, two agents editing one shared file with different assumptions.
Defense An integration protocol: scaffold first, isolated worktrees, warnings read before the build.
The design in seven ideas
Strategy gate first. Every request is classified by nature and size before any agent spawns. A one-line fix never becomes a full wave, and a big feature never gets crammed into one serial agent.
Two paths. Light runs shared-context agents for bugfixes, small changes and questions. Heavy runs isolated git-worktree slices plus an integration phase for features with parallel writers.
Typed, least-privilege agents. Six roles, each with only the tools it needs and a strict report contract.
Adversarial review gate. A real PASS, NEEDS_WORK or BLOCK verdict loop, with bounded iterations, before code is executed or integrated.
Autonomous by default. It never pauses for approval. It logs assumptions, surfaces blockers at the end, and refuses only destructive or irreversible outward actions.
Stack-agnostic. It learns each project's real lint, typecheck, test and build commands from AGENTS.md, CLAUDE.md and package scripts.
Effort-aware. Agent count and review depth scale with the active reasoning-effort level.
Two paths, one front door
Size is the pivotal call, and it's often made after planning. The plan's slice map decides: two or more independent, file-owning slices means parallel writers, which means physical isolation and an integration phase. Anything else stays light, even a large single stream of edits.
Both paths share the front door and the finish. The heavy path adds a pre-flight, a scaffold commit, per-slice worktrees, an integration phase and a cleanup ledger, and its review gate moves from the plan to the integrated diff.
A third shape sits above both: a program, a chain of separately reviewable features where each builds on the last. Each feature gets its own run and its own PR, stacked on its parent and merged bottom-up.
The strategy gate
Every request is classified on two axes before anything spawns. Nature is the cognitive approach: EXPLORATION, EXECUTION, HYBRID, or REFRAME when the request as stated is mis-scoped. Size is the orchestration weight: LIGHT, HEAVY, or PROGRAM for a chain of features. The deciding question for size: would I want two or more agents writing different files at the same time?
A third axis covers capability. Model tiering is off by default, so every agent inherits the run's model. When an operator opts in, the deciding question is how the work fails. Work that fails loudly can take a cheaper model, because the checks catch it. Work that fails quietly, such as security, data modeling or anything user-facing, can't. Effort always applies, and it scales with ambiguity rather than size.
Interactive · strategy gatepick a request or flip a check
The routes, pipelines and effort table follow the skill's own rules. Flip “slice map” on the saved-searches request to watch the same work move between paths.
A heavy run, phase by phase
The heavy path deals with integration risk before any agent writes a line, then audits every agent's warnings before merging anything. Step through the package's own worked example. The git graph lights up what each phase adds.
Interactive · run walkthroughuse the phase tabs, or the arrow keys
Six typed agents, least privilege
Each role gets only the tools it needs, and only one of them can write. Each returns a fixed report shape, so the orchestrator routes on known fields instead of re-reading prose. Sub-agents can't see each other or the conversation, so every prompt has to stand on its own.
Agent
Tools
Writes
Returns
The orchestrator routes on
aw-explore
Glob, Grep, Read
no
Key files, patterns, connections
The one-line answer
aw-research
WebSearch, WebFetch, Read
no
Findings, options compared, cited sources
The bottom line
aw-analyze
Read
no
Patterns, dependencies, risks, a recommendation
The strategy block, in strategy mode
aw-plan
Read, Glob, Grep
no
A file-level plan, tests, risks, manual actions
The slice map: light or heavy
aw-review
Read, Grep, Glob
no
Critical, important and minor findings
The verdict
aw-execute
Read, Write, Edit, Glob, Grep, Bash
yes
Files changed, verification, surprises and concerns
The status signal and the concerns
Every agent marks repo-level discoveries, such as a harness gotcha or a build quirk, as DURABLE LESSON: in its report. Promoting them into shared, git-tracked context is the orchestrator's job, in the same run.
The review gate
A fresh-context reviewer is told to assume the plan or diff is wrong and find out how. It must end with one verdict, and the orchestrator routes on that verdict.
Three verdicts, three routes. Only NEEDS_WORK loops, and the loop is bounded by effort.
PASS needs two sub-verdicts. Spec-compliance asks whether it does what was asked. Code-quality asks whether it's built right. A reviewer who can't affirm both returns NEEDS_WORK and names the failing one.
No evidence, no Critical. A Critical finding must quote the offending line. One that can't be located is downgraded to Important.
The loop always ends. It stops on a dual PASS, at the iteration cap (proceed and log the residuals), or when the same Critical comes back twice with nothing new.
The autonomous contract
Eight rules apply to every step of every run. They exist because the workflow is built to run unattended, inside a harness or overnight.
Never gate for approval. Decide and act.
On ambiguity, choose and log. Pick the most reasonable reading and record it in the decision log.
Make residuals durable, then exit. A blocker gets the safest assumption, and the run keeps going on everything else. Human-only actions go to MANUAL_TASKS.md, never buried in prose.
Respect the safety floor. No force-pushing shared branches, production deploys, deleting what it didn't create, rotating secrets or mass external sends. It skips and flags these instead of pausing to ask.
Always leave a trail. The decision log is written as the run goes, so it survives context compaction. A resumed run reads it before dispatching anything.
Shared context lives in git. If another agent could hit the same fact, it goes into AGENTS.md or CLAUDE.md in the same run, never only into one tool's private memory.
Operator decisions are law. A run may report that a decision looks wrong. It may not quietly reverse it, like re-enabling a deliberately disabled feature at 2am.
One writer per working tree. Parallel writers get separate worktrees. If the tree looks wrong, check for a concurrent writer before re-applying anything.
A-300
In a real repo
Posture · provenance footprint
Every project declares its posture
Three decisions are made once, at install. They're recorded in a git-tracked manifest and echoed into the guardrails every agent reads, which lets the same workflow run a cautious client repo and a fast personal project.
permissions
no starter default
tier 1 · inspect + verify
tier 2 · autonomous
Opt-in only. The installer never changes a machine's security posture unprompted, and the starters contain no machine-specific paths.
ci_policy
required
advisory
none
Detected at install. The in-run gate is always local green, and CI is the post-merge safety net. A red build gets a fix-forward PR, never a revert.
merge_authority
human default
auto-on-green
auto
Merging is the only gated step. Under human, agents open the PR and stop. The two automatic settings differ only on whether they wait for the PR's own CI.
Manual tasks, loud and in one place
Anything only a human can do, such as a secret, provisioning, DNS, billing or an approval, goes into MANUAL_TASKS.md at the repo root the moment a run finds it. Each entry carries the context I need to act on it, and it's mirrored in the PR body and the run summary. Entries are append-only: they flip from OPEN to DONE and are never deleted.
MANUAL_TASKS.md example entry
## [OPEN] 2026-10-14 · SMTP_API_KEY for the saved-search digest
- Why: a production secret; agents never provision credentials
- Steps: add SMTP_API_KEY to the digest service's variables in Railway
- Blocked until done: the digest job ships disabled behind DIGEST_ENABLED
- Added by: .agentic-workflow/runs/saved-searches.md
Provenance: every PR explains itself
Months later, any agent-opened PR answers four questions from its own body: which session produced it, under what permission posture, with which workflow version, and where its decision log is. Nothing is invented. A value the run can't capture is written as unknown.
PR footerA human-readable line, plus the same facts as JSON inside an HTML comment that tooling can parse.
Commit trailersAw-Session and Aw-Permission-Scope on the integration commit. They live in the commit message, so they survive a squash merge.
Run logOne file per run in .agentic-workflow/runs/: the strategy chosen, every assumption, every skipped blocker, the artifacts created and the verification numbers.
Session captureA SessionStart hook records the session id and permission mode. A driving harness appends its own run id to a log file, and the harness value wins.
Precedence is fixed. Harness log, then hook capture, then what can be derived, then unknown. An unknown is acceptable. An invented UUID is not.
Permission scope is new. None of the agentic systems I surveyed record the permission posture a change was made under. It's the axis that matters most when a skip-permissions run and an allow-list run both open PRs.
The workflow audits itself too. Changes to the workflow made inside a project land in .agentic-workflow/CHANGELOG.md with an Upstreamed: no flag, and install.sh status lists every lesson that hasn't made it back to the canonical package. A lesson that stays in one repo is treated as a bug.
What an install leaves in a repo
Everything lands as visible, git-tracked files. There's no plugin cache and no machine-local state, which is exactly the kind of state one of my projects lost entirely in a macOS-to-Linux migration.
your-project/
├── AGENTS.md managed guardrails block, read by every agent
├── CLAUDE.md @AGENTS.md import + tool inventory
├── MANUAL_TASKS.md human-only actions, created on first need
├── scripts/check.sh the single check entrypoint
├── .github/workflows/check.yml offered CI starter, mirrors check.sh
├── .claude/
│ ├── skills/orchestrate/ the entry skill + six references
│ ├── skills/ci-watch/ single-shot CI observer
│ ├── agents/aw-*.md the six typed agents
│ ├── hooks/session-start.sh attribution capture
│ └── settings.json opt-in permission starter
└── .agentic-workflow/
├── config.json manifest: version, policies, commands, checksums
├── CHANGELOG.md workflow lessons + upstreamed flag
├── runs/<slug>.md one decision log per run
├── session.json captured session (gitignored)
└── harness-session.log harness run ids (gitignored)
The guardrails block
Skills apply only when invoked. AGENTS.md applies always, to every agent and tool in the repo, Claude or not. So the discipline lives in both places, in a marker-delimited block the installer refreshes without touching anything around it.
Shared context lives here, never in private memory.
One main branch, with fix-forward on failures.
A complete, coherent change is the reviewed unit, and shipping a PR is the completion floor.
Every agent PR carries its lineage.
The project's CI policy, stated once.
Manual tasks are surfaced loudly, in one place.
Merged means deleted.
Workflow changes are logged until they're upstreamed.
Versioned like a dependency
One canonical copy feeds every install through install.sh install, update and status. The manifest records a checksum for each managed file, so drift is detected in both directions. I scored a Claude Code plugin, a git submodule and a hardened installer. The installer won on portability, transparency and harness compatibility, because in-repo files load the same way under an allow-list, a headless harness and skip-permissions.
status exit
Means
Do this
0
Clean and current
Nothing
1
Stale: behind the canonical package
install.sh update
2
Locally patched
Upstream the fix first
3
Stale and patched
Upstream, then update
4
Broken or not installed
Reinstall
The local-patch direction matters most. A critical worktree fix once sat stranded in one project's copy while three other copies and the canonical package stayed wrong, and a plain re-install would have erased it. Now update refuses to overwrite a patched file, and status flags it as a fix waiting to be upstreamed.
A-400
Evidence
Field runs · history landscape
What the field runs proved
The package was refined against three real deployments, each under a different permission regime: a long-running project on an allow-list, one driven by an external harness, and one run almost entirely with --dangerously-skip-permissions. Each number below changed a rule.
100%
of heavy runs in one project got worktrees cut from the wrong base
fixed v0.2.0 The orchestrator cuts worktrees from the scaffold sha, and every slice runs a STEP 0 gate.
Every
heavy run had a Critical that passing tests missed, and the review gate caught it
hardened v0.2.0 Dual sub-verdicts and quoted evidence made the gate stricter.
5 → 15–25 → 0
permission prompts per session, roughly, as chained shell commands crept in and were then banned
fixed v0.2.0 One helper script per repeated check, and no cd chaining.
0 of 200+
agent PRs across three repos recorded which session produced them
fixed v0.2.0 The three-layer attribution footer.
~70%
of four agents' diffs lost to a second orchestrator writing into the same checkout
fixed v0.3.0 One writer per working tree.
4 copies
of the package in use, none versioned, one carrying a fix the others lacked
fixed v0.2.0 A versioned installer with two-way drift detection.
Built with its own method
I refined the framework the way it asks me to work: heavy context up front, one round of questions, then autonomous runs that each ended in a reviewed PR with a decision log.
Two workflows become one
A wave protocol that was good at integrating parallel code merged with an orchestrate skill that was good at thinking before acting. That snapshot became v0.1.0.
A plan for the plan
I wrote a scoping document with eight workstreams and two decision frameworks, then a handoff prompt for an agent with read-only access to the three repos where the skill had run.
A read-only audit
The agent treated the three deployments as a natural experiment. It measured drift between copies, mapped each regime's permission surface, reconstructed behavior from run logs, and traced the worktree incident to its root cause.
Four questions, answered the same day
Merge authority gained an auto setting. Harness attribution moved to an append-only log file. The permission starter became opt-in, with no machine paths. One donor project would migrate onto the package. A survey of about fifteen comparable systems followed.
v0.2.0 in five stacked PRs
Packaging, then the worktree cure and cleanup ledger, then guardrails and attribution, then manual tasks and CI policy, then stacked runs and diagrams. Each phase was its own reviewed PR with its own run log.
v0.3.0, and the gate reviews itself
The shipping floor, merge authority and composability rules. Its own review gate returned NEEDS_WORK on the PR, with 3 Critical, 4 Important and 5 Minor findings, all fixed before merge. A release script followed.
v0.4.0
A daily update check through a GitHub App, so installed repos hear about new versions. It fixes deletion propagation first, because automating updates removes the human who would have noticed an orphaned file.
Where it sits
Before v0.2.0 shipped, I had the popular agentic workflows surveyed and compared on the axes that matter here. Every pillar of this design has outside validation. The combination is still uncommon.
System
Parallel writers
Review
Autonomy
superpowers
No. Implementation is deliberately serial.
Two-verdict review per task
Human gates at worktree creation and completion
compound-engineering
Yes, in harness-managed worktrees
Reviewer personas, severity, quoted evidence
Interactive by default; /lfg runs unattended
spec-kit, BMAD
Left to the host agent or add-on modules
Consistency and adversarial passes
Human-gated phases by design
agentic-workflow
Yes, worktrees cut by the orchestrator from a scaffold commit
PASS, NEEDS_WORK or BLOCK, with dual sub-verdicts
Fully autonomous, with a safety floor and per-project merge authority
Borrowed, with credit: dual sub-verdicts and a compaction-surviving ledger from superpowers; “make residuals durable, then exit” and abort-and-rerun for conflicting slices from compound-engineering; AGENTS.md as the canonical cross-tool home.
Rejected on evidence: compound-engineering's rule that worktree isolation is the harness's job. Harness-cut worktrees started from the wrong base on every heavy run I measured, so the orchestrator cuts them itself.
A-500
Next
Open items
What I'd change next
Isolate the environment as well as the files. Worktrees keep parallel agents out of each other's code, but they still share the database, the ports and the caches. I want a self-hosted database so everything runs locally, and the ability to run several instances of the app at once, one per worktree.
Design out contention between agents. Agents are still fragile when they collide. Two of them overlapping on shared infrastructure will thrash, and you burn context instead of getting a quality result. The framework should prevent that overlap rather than trust agents to cope with it.
Stack flavors. Optional profiles, such as Next.js on Railway, that preload a stack's conventions, deploy steps and gotchas instead of re-deriving them on every first run.
Close the permission loop. Audit each run for repeated permission prompts and propose safe allow-list additions automatically.
Make lessons flow back. Planning runs that read earlier post-mortems before they start, and PR creation as its own policy-checked step.
Agents write most of my code now. I still answer for all of it. This framework is how I do that at agent speed.
Eric Albee
Source · agentic-workflow v0.3.0 · main @ 85066ca · private repository, walkthrough on request · example runs, shas and session ids are illustrative