1 · Direction
Dave Ng
I set the outcome, priorities, and limits. I decide when to change scope or approve a step that needs my decision. I can also work directly in any session.
I steer the work in conversation. An AI workflow liaison helps me give instructions and check progress. The engineering sessions plan, build, and verify changes.
The whole setup
I can start with a rough idea or ask why a change has stalled. The workflow liaison helps me turn that conversation into a clear instruction. The planning and implementation sessions then do the work.
1 · Direction
I set the outcome, priorities, and limits. I decide when to change scope or approve a step that needs my decision. I can also work directly in any session.
2 · Conversation and relay
My ChatGPT assistant fills this role. It checks the sessions and repository, clarifies what I mean, and relays my instruction to the session I choose. It reports progress and flags decisions that still need my input.
3 · Engineering sessions
Works through the outcome with me, reviews the design, and records agreed changes in OpenSpec, where planned behavior is documented.
Each claims an eligible change, builds and tests it in its own checkout, and takes it through review. The Chief of Staff in each session brings in specialists as needed.
Shared record: The repository records ready plans, priorities, and claims. Sessions use the coordination branch to avoid overlapping work. It is not a chat channel and does not start a session.
If an implementation session stops, I ask the liaison what is blocking it. It checks the session and separates a missing piece of code from a test that can happen later. If I defer that test, the liaison relays the decision. The session records the test as not run and continues the work still in scope. I do not have to reconstruct the session history or paste the same explanation into each chat.
Technology note: This setup is built on OpenCode, the engineering harness. It runs the planning and implementation sessions and gives their agents access to models and tools. ChatGPT hosts the separate workflow liaison. Git records plans, priorities, and claims.
The team behind the work
I use OpenCode to cover the work a small software company would divide among specialists. I set the direction and decide when scope or risk changes. The Chief of Staff routes the request, brings in the right roles, and keeps the work moving. It does not call every role for every request.
Direction
Product defines the outcome. The Planner keeps the roadmap current. Business Strategy and Growth help with viability and positioning.
Design and build
Architecture defines how the parts fit. UX designs the user flow. Software Engineering writes the code.
Quality and operations
Test Engineering defines the evidence and checks the final result independently. DevOps handles approved deployments and checks the running system.
How models fit: I usually use reasoning models for open decisions and fast models for focused discovery or implementation against a clear spec. The role still owns the work, whichever model it uses.
Each specialist owns a defined piece of work. The Chief of Staff coordinates and delegates one level deep. The Software Engineer and Planner are dispatched roles. Other specialists, including Product, UX, Architecture, SDET and DevOps, can also be selected directly without changing permissions, ownership, or approval requirements.
Fast means the role has an explicit fast-model assignment. Defaults to Reasoning describes my usual setup for these roles. Not pinned means the model can still change with the session.
Routes requests, resolves stalled handoffs, and maintains the status log and shared worktree register. Coordinates rather than implements.
Defines user outcomes, product behavior, and what is in or out of scope. Owns the OpenSpec proposal.
Designs user flows, accessibility, mockups, and visual systems. The declared spec author owns the normative behavior.
Owns design and cross-component contracts. Compares consequential choices with the simplest viable option and explains what added complexity buys. Reviews interface boundaries and risky task decomposition.
Owns test design, task breakdown, worktree setup and cleanup, and independent verification. Worktree ownership survives session changes. Does not write feature code.
Implements in the assigned worktree, runs the specified tests, and handles the implementation PR within the authorization given.
Handles deployments, runtime operations, observability, and post-deploy checks. Does not own feature merges.
Maintains roadmaps, dates, and commitments through the Chief of Staff. This is distinct from authoring an OpenSpec change plan.
Handles commercial viability, business plans, and the investor narrative.
Handles positioning, messaging, sales material, and go-to-market planning.
Explore reads the local repo; Scout researches external docs and dependencies. Both are intended for read-only discovery.
Handles work that has no specialist owner, such as routine config, housekeeping, and standalone prose.
Choosing the work
I usually start with the Chief of Staff, the agent that coordinates the team. It identifies what I asked for, what I authorized, and who owns the result.
“Fix the sign-in flow.” The team plans the change, builds it, or does both if I authorized both.
“Find out why sign-in failed.” A specialist reports findings. The request does not authorize a fix.
“Write a sign-in guide.” The content owner writes for the reader. A draft does not authorize changes to the product.
“Deploy this build to staging.” DevOps carries out the approved action and checks the result. A code fix is separate work.
Only the software-change route enters the full engineering workflow. The other routes have their own completion checks.
Update the roadmap. The Chief of Staff sends this request to the project planner. The planner reuses the project's roadmap or starts one at docs/planning/roadmap.md. It explains what comes next and why, and links to the relevant OpenSpec changes. Updating it does not reorder the implementation queue or authorize work.
Keeping work moving
I work with one planning session to decide what comes next. I can run one or more implementation sessions alongside it. I add sessions only when there is enough independent, authorized work. For a change done in sequence, one session can still do both jobs.
Each OpenSpec change should deliver the smallest useful outcome with its own pass condition. If two outcomes can be checked and merged separately, they get separate changes. Incomplete work can merge unexposed only when there is a clear reason to split it.
Repeat: Shape the next change.
One record lists ready plans, priorities, and holds. Another shows who claimed each change and the exact revision they are building.
Ready is not authorized. A Git push does not start a session.
Each repeats: Claim the next eligible change, build it, verify it, and take it through review.
Sessions coordinate through the shared Git records, not by messaging each other. I can steer a named session directly or ask the workflow liaison to relay my instruction.
What keeps the lanes separate: Each session takes its own claim and checkout. A plan revision does not silently switch an active session to a new target. See how one implementation session works.
A new plan revision does not change what an active session is building. If a correction cannot wait, I tell the active session directly. It pauses the affected work and can continue unrelated work that is already authorized.
The spec owner can correct the active change in the implementation session. If the change affects agreed behavior, the team resolves the decision, records the committed correction, and resumes against that exact version. If the correction changes an already delivered requirement, it goes in the active change’s proposed update when in scope. Otherwise it gets a separate change. The team does not edit the published baseline directly or wait for a reply from another session.
Planning records what is ready and in what order. Implementation records who claimed each change. If two sessions claim the same work at once, the first valid push wins. The other session checks again and can take a different change without waiting for a reply.
Projects can opt in to a separate coordination branch. It contains no plans or code. Planning owns planning.md for priority, ready revisions, dependencies, and authorization references. Implementation sessions use implementation.md for claims, blockers, and acknowledgments. Each session updates only its own entries. The parallel claim process uses this branch; a simpler setup without it uses an explicit handoff. A routine queue update needs no reply. Planning records a separate notice when a decision affects work in progress, changes the queue order, or adds or clears a hold. The notice says whether any action is needed.
Each implementation session checks the latest records and takes the highest-priority ready change it is authorized to build that does not conflict with work already claimed. It checks dependencies, overlapping requirements, and shared resources such as staging. It records and confirms the claim on the remote branch before setting up its own checkout.
Planning and every implementation session fetch and read both files. Planning checks when it resumes and before it revises or reorders ready work. Implementation checks before pickup, between slices, and before final review. A recorded pause is not confirmed until the affected session acknowledges it. The branch is a shared record, not a live inbox.
New branches use separate plan/ and implement/ names. The test engineer checks for collisions and owns setup and cleanup. Planning does not need an advance reservation or test setup. When coordination is enabled, Implementation verifies its claim before the test engineer sets up the checkout. A claim identifies the work. A reservation protects the checkout. Neither grants approval.
Following one change
An implementation session is a coordinated team, not one agent doing every job. The Chief of Staff keeps the session on the approved outcome. It brings in specialists as needed and sends work back to the right owner when evidence shows a problem.
The Chief of Staff confirms the claim. Test Engineering sets up the isolated checkout and defines the tasks and evidence.
Software Engineering builds in small steps. Architecture joins when a design or interface needs review. DevOps joins when an approved live check needs it.
Test Engineering checks the combined result independently. The spec owner checks fidelity. The team merges the exact reviewed revision only under the applicable approval.
Then repeat: Release the claim and pick up the next eligible change if standing authorization covers it. No separate “next” prompt is needed.
I use OpenSpec to record the behavior we agree to build. The baseline describes behavior that has already landed. A change proposes an update to it. The steps below show where planning ends and how the reviews fit inside implementation.
Product defines the outcome. Architecture and design help where needed. The spec owner walks through how a real user or client will use the change and checks whether the requirements can work together. Planning stops at the agreed spec; it does not write implementation tasks or tests.
I authorize implementation of the agreed Git revision. A planning pull request is optional. Merging it records acceptance of the plan; it does not authorize implementation. The test engineer prepares the separate checkout, breaks down the tasks, and decides what evidence each step needs.
The software engineer builds and tests each useful step. A step can be a checkpoint or span one or more commits. Agents review the steps on the same branch. By default, I get one implementation pull request for the complete change, not a separate request for each step.
Dependent changes can use separate pull requests that merge in order. An approved batch can use one pull request, but each change keeps its own criteria, evidence, and archive. Internal build steps do not need their own pull requests.
A test engineer who did not implement the code checks the complete change. The spec owner checks that the proposed update matches what was built. The engineer archives the change in the same pull request after the Chief of Staff authorizes archival. I review the exact ready commit and its evidence before merge, unless existing approval already covers it.
An example from verification
Suppose the team is checking sign-in. The next step depends on where the test stopped.
Sign-in never ran. Fix or replace the test setup, then run the smallest check that can prove the behavior. Do not report sign-in as broken or working.
Confirm that the test used the agreed client and configuration. If the result still contradicts the spec, send the evidence to the engineer who owns the fix.
In both cases, keep the evidence that still applies. Do not rerun the same failed check unchanged. Continue unrelated work that is already authorized.
If the first local check does not explain a stall, the team starts with the last step that worked and the first step that failed or lacks evidence. It separates the likely causes, checks local evidence first, and searches official docs and upstream issue reports for questions that could change the next step.
In one sign-in test, the browser received a response, but the test timed out before it could confirm a click. We checked the browser, the test tool, and the local test setup separately. That surfaced a known Playwright bug that matched part of the symptom. It gave us a smaller next check: try the fixed tool version with the app and test setup unchanged. The match alone did not prove the cause.
The team compares the findings and runs one focused check if the evidence supports it. It keeps unrelated work moving. It does not add a handoff for each question or treat research as proof that the test passed. Read the troubleshooting rule in the configuration.
DevOps keeps ownership of the test. If Engineering fixes the build within the existing approval, DevOps can resume without asking again. A change outside that approval needs a new decision.
One DevOps owner checks the real client, coordinates the test, and receives the replacement build if Engineering needs to fix something. The team names the target, build, and approved effects, including changes that persist. It asks again only when the existing approval does not cover the new build, scope, or risk. Required independent verification stays with the test engineer.
A temporary deployment needs a restoration plan. For ongoing staging, do not assume the build must be restored at the end of a test. The handoff states what rollback would restore. Rolling back the app does not itself undo database writes or migrations.
The feedback loop
A separate reviewer examines a small sample of completed work and stalls. The reviewer checks what the session delivered, what evidence supports it, and where a human had to step in. The working sessions do not stop to grade themselves.
Compare the trace with a merged change, an accepted plan, or an independent test result. Record verified outcomes, unnecessary stops, elapsed time, and tokens when available. Leave unknown values unscored.
Give the old and new configurations the same cases, model, and limits. Verify when the agent should proceed and when it must still stop. Score the verified outcomes. A faster run cannot make up for a missed approval or an unauthorized write.
Keep these results separate in a versioned history. A live review shows what happened on real work. A matched comparison helps isolate the effect of a config change. Use the next comparable live run to see whether that benefit carries over.
Keeping the team steerable
Every agent needs the rules about scope, ownership, safety, and how to talk to people. Role instructions tell specialists what they own and when to ask for help. A skill is a procedure an agent loads when the task needs it. This keeps long instructions out of unrelated work.
Agents use Simplified Technical English for English replies and documents. Chat follows the short shared rules. For durable documents, agents load the full writing procedure. Configuration rules guide decisions. OpenCode’s runtime settings control which tools an agent can actually use.
For readers who want the details
Read the shared rules, browse the role instructions, or look up a skill in the glossary.
Source and scope
This case study describes my OpenCode configuration at f94167c. These are rules I configured, not features built into OpenCode or a claim that every live session follows them. The troubleshooting example also covers a later update.