Dave Ng
Projects / Workflow case study

Inside my agentic development setup.

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

From a conversation to work in the right session.

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

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.

2 · Conversation and relay

AI workflow liaison

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

One planning session

Works through the outcome with me, reviews the design, and records agreed changes in OpenSpec, where planned behavior is documented.

One or more implementation sessions

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.

The liaison works outside the engineering sessions. Each session has its own Chief of Staff. The sessions coordinate through the shared Git records and can continue without the liaison.

What this looks like in practice

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

One person steers. A software team takes shape around 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

Decide what is worth building.

Product defines the outcome. The Planner keeps the roadmap current. Business Strategy and Growth help with viability and positioning.

Design and build

Turn the decision into software.

Architecture defines how the parts fit. UX designs the user flow. Software Engineering writes the code.

Quality and operations

Check the result and run it.

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.

Show the full role roster and model assignments

Who does what

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.

Defaults to ReasoningNot pinned

Chief of Staff

Routes requests, resolves stalled handoffs, and maintains the status log and shared worktree register. Coordinates rather than implements.

Defaults to ReasoningNot pinned

Product Manager

Defines user outcomes, product behavior, and what is in or out of scope. Owns the OpenSpec proposal.

Defaults to ReasoningNot pinned

UX/UI Designer

Designs user flows, accessibility, mockups, and visual systems. The declared spec author owns the normative behavior.

Defaults to ReasoningNot pinned

Software Architect

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.

Defaults to ReasoningNot pinned

SDET Engineer

Owns test design, task breakdown, worktree setup and cleanup, and independent verification. Worktree ownership survives session changes. Does not write feature code.

Fast

Software Engineer

Implements in the assigned worktree, runs the specified tests, and handles the implementation PR within the authorization given.

Defaults to ReasoningNot pinned

DevOps Engineer

Handles deployments, runtime operations, observability, and post-deploy checks. Does not own feature merges.

Fast

Planner

Maintains roadmaps, dates, and commitments through the Chief of Staff. This is distinct from authoring an OpenSpec change plan.

Defaults to ReasoningNot pinned

Business Strategist

Handles commercial viability, business plans, and the investor narrative.

Defaults to ReasoningNot pinned

Growth Marketer

Handles positioning, messaging, sales material, and go-to-market planning.

Fast

Explore & Scout

Explore reads the local repo; Scout researches external docs and dependencies. Both are intended for read-only discovery.

Fast

General

Handles work that has no specialist owner, such as routine config, housekeeping, and standalone prose.

Choosing the work

Different requests need different workflows.

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.

  • Software changes

    “Fix the sign-in flow.” The team plans the change, builds it, or does both if I authorized both.

  • Investigation

    “Find out why sign-in failed.” A specialist reports findings. The request does not authorize a fix.

  • Writing

    “Write a sign-in guide.” The content owner writes for the reader. A draft does not authorize changes to the product.

  • Operations

    “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

One planning session. As many implementation sessions as the work allows.

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.

One planning loop, one shared queue, N implementation loops

1 Planning session

  1. Discuss the goal and constraints with me.
  2. Draft, review, and revise the plan.
  3. Commit the agreed plan and record its priority.

Repeat: Shape the next change.

Coordination branch

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.

N Implementation sessions

  • Session 1Change A · own checkout
  • Session 2Change B · own checkout
  • Session NAnother independent change, if available

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.

Change a plan without disrupting a build

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.

Show how a session handles a correction

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.

Share claims through Git

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.

Show the files and when sessions check them

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

Inside one implementation session

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.

From a queue item to a reviewed changeInput: one eligible OpenSpec change, authorized for implementation at a specific Git revision.
  1. Claim and prepare

    The Chief of Staff confirms the claim. Test Engineering sets up the isolated checkout and defines the tasks and evidence.

  2. Build and check

    Software Engineering builds in small steps. Architecture joins when a design or interface needs review. DevOps joins when an approved live check needs it.

  3. Verify and merge

    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.

  1. Agree on what should happen.

    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.

  2. Hand over the exact plan and prepare the work.

    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.

    Three checks that prevent the wrong work

    Interface fidelity
    Test the interface the real client uses. A browser return to an HTTPS website does not prove that a desktop client receives its local HTTP callback. The architect reviews when the plan defines or changes an interface.
    Decomposition fidelity
    Keep the order needed to prove the result. To prove a setting survives an upgrade, save it before the upgrade and check the same setting after it. Resetting the database in between would invalidate the test.
    Test fixtures
    Do not turn a test assumption into a product rule. If a test-only schema or prototype implies a new rule, the architect checks it against the agreed behavior.

    Test Engineering prepares the checks. Architecture reviews when an interface, task order, or setup puts the proof at risk. Routine work does not need another review.

  3. Build in small steps and check as you go.

    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.

    When one pull request is not enough

    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.

  4. Prove the combined result and ask for approval.

    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

When a test gets stuck, find out what actually ran.

Suppose the team is checking sign-in. The next step depends on where the test stopped.

The test database never starts.

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.

Sign-in runs and returns the wrong result.

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.

Break an unclear failure into smaller questions

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.

Recover an approved staging test

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.

Show approval and rollback details

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

Real work shows what to fix. Matched runs test the fix.

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.

Review live work

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.

Test a config change

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.

Read the review method, scorecard, and reusable instruction

Keeping the team steerable

Keep common rules short. Load the procedure when needed.

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.

Browse the skills glossary

For readers who want the details

Technical reference

Read the shared rules, browse the role instructions, or look up a skill in the glossary.

Source and scope

Configuration snapshot

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.