Agent team overview
Run a five-bot Orca pipeline that takes work from request to monitored production deploy.
This section describes a five-bot engineering team that runs on Orca bots: Steward, Engineer, Reviewer, Gatekeeper, and Sentinel. Each bot owns one stage of the path from an owner's request to a merged, deployed, and watched change. The bots install WooStack agent skills in their coding agents and use them for planning, implementation, and delivery.
WooStack does not ship a bot runtime or installer. Orca hosts the bots, their chats, memory,
connectors, and automations. These pages give you the roles, the rules between them, starter
SOUL.md files, and a setup guide. Adapt them to your own projects.
The pipeline
Agent team pipeline
Follow the arrows. On narrow screens, scroll horizontally to see the full diagram.
Read text description
Work moves from Steward to Engineer to Reviewer to Gatekeeper to Sentinel. Steward files and sizes issues and hands small, settled ones to Engineer. Engineer has workers implement them and hands ready pull requests to Reviewer. Reviewer posts a comment review at the exact head commit, sends findings back to Engineer, and hands clean pull requests to Gatekeeper. Gatekeeper merges low-risk pull requests your policy allows. Sentinel watches production deploys and hands bounded fixes back to Engineer. Steward, Gatekeeper, and Sentinel raise owner decision gates as Needs you items for scope, high-risk merges, and incidents outside policy.
| Bot | Owns | Hands work to | Never |
|---|---|---|---|
| Steward | Intake: requests, issues, sizing, and the project roster | Engineer, for small and settled issues; you, for scope decisions | Writes production code or merges |
| Engineer | Implementation: workers, pull requests, CI, and review feedback | Reviewer, once a pull request is ready or updated | Merges or approves its own pull requests |
| Reviewer | Review: full and incremental comment reviews at an exact head commit | Gatekeeper, for clean reviews; Engineer, for findings | Writes code, pushes, or merges |
| Gatekeeper | Merging: risk calls, merges your policy allows, and post-merge deploy checks | You, for high-risk merges; Sentinel watches what ships | Merges high-risk changes without you |
| Sentinel | Production: failed deploys, root cause, and incident issues | Engineer, for bounded fixes your policy allows; you, for the rest | Rolls back, redeploys, or edits code on its own |
A request moves forward one stage at a time. Steward turns it into a well-scoped GitHub issue and decides whether it is small enough to start. Engineer implements it in a worker's own worktree and sees the pull request through CI. Reviewer reviews the exact head commit, sends findings back to Engineer, and hands a clean pull request to Gatekeeper. Gatekeeper decides whether the pull request is low or high risk and merges only what your policy allows. Sentinel watches the production deploy and, when one fails, files an issue with evidence and returns a bounded fix to Engineer. Reviewer's findings and Sentinel's fixes are the only handoffs that run backward. The team still improves with use, through the feedback loops you steer.
Why five bots
Each bot holds a different permission and fails in a different way, so splitting them keeps one mistake from passing through every stage unchecked.
- The writer does not decide whether its work merges. Engineer pushes branches and is told never to merge. Gatekeeper merges and is told never to write the change it merges. Branch protection makes every pull request wait for its checks either way.
- The writer does not review its own work. Reviewer reads every pull request before Gatekeeper sees it, and it cannot push a fix itself. Findings go back to Engineer.
- Intake stays separate from implementation. Steward can say "this needs a decision" without the pressure of already having code in progress.
- Production has its own watcher. Sentinel reacts to deploy events whether or not the change came through the pipeline, and it reports evidence rather than repairing production itself.
- Each bot has one place to look. Steward watches requests and issues, Engineer watches its own pull requests, Reviewer watches pull requests waiting for review, Gatekeeper watches reviewed pull requests, and Sentinel watches deploys.
These boundaries are instructions in each bot's SOUL.md. On one computer the bots share your
GitHub sign-in, so nothing stops one bot from doing another's job. Branch protection keeps every
merge behind a pull request and its checks, but it cannot tell the bots apart. See
what enforces the limits.
You can run fewer bots. If you combine roles, keep the rule that the bot that writes a change is not the one that reviews or merges it.
Handoffs, questions, and status updates
Bots talk through Orca mail with orca orchestration send --to bot:<name> --type <type>. The type
tells the receiving bot what is expected of it.
| Type | Use it when | What happens |
|---|---|---|
handoff | You give another bot a job it now owns | The receiver accepts the work and reports when it is done or blocked |
question | You need input before you can continue | The receiver answers; the asker keeps ownership of the work |
status | You only want another bot to know something | The receiver reads it as information; nothing comes back |
Some rules keep handoffs safe:
- One owner per job and one writer per worktree. A handoff transfers ownership. The sender stops working on it.
- Check before you start. Before starting a worker, look for an existing worker, branch, or pull request for the same issue. Never start a duplicate.
- Make the handoff self-contained. Include the issue or pull request link, the outcome, the acceptance criteria, what the receiver may do, and what is still open.
- Mail about an item goes to the chat that owns it. Use
--item <n>so the update lands next to the work instead of in a new conversation. - Send mail only when the receiver must act or decide. Every message starts a model turn that
re-reads the receiver's chat, so mail it has no use for becomes a paid turn that does nothing. A
statusmessage earns its turn when the receiver changes something because of it, such as Steward updating its roster. When unsure, send it: a missed signal costs more than one quiet turn.
One chat per project
Mail sent without --chat or --item lands in the receiving bot's Home chat. Each message in a chat
starts a turn that reads that chat's whole history. A Home chat that collects every project's tasks,
worker reports, and review replies grows without limit, and every later Home turn pays to re-read
all of it. Route project work to a chat that belongs to it instead:
--chat <id>sends a project's task to the receiving bot's established chat for that project.orca bot chats --bot <name>lists each chat's id.--chat newstarts a new chat on the receiving bot for an isolated task, titled from--subject.--item <n>sends an update about an existing item to the chat that owns it.
A bot works each handoff in the chat it arrived in, so the worker reports and review replies that follow stay there too. Keep Home for cross-project or unclear work.
Owner decision gates
When a bot needs you, it does not wait in chat. It puts the decision on an item as Needs you, with a short context, one question, and the replies it suggests. The request stays on the bot's Home until you answer, so the chat stays readable and nothing is lost when you are away.
A good decision gate:
- states the decision in one line, with the link to the issue or pull request;
- gives two to four choices, with the recommended one first and the reason for it;
- names what happens after each choice, including what stays blocked;
- appears only once. The bot does not repeat it in chat or reopen it while you have it snoozed.
Bots raise a gate for scope and product or design choices (Steward), for high-risk merges (Gatekeeper), and for incidents your policy does not cover (Sentinel). Ordinary authorized steps go ahead without a gate.
orca bot item set 12 --status needs-you \
--comment "acme/app#41 adds SSO. It touches session handling and a migration." \
--ask "Merge acme/app#41?" \
--option "Hold for my review (recommended: auth and migration)" \
--option "Merge now" \
--option "Close it"Events instead of polling
Bots wait for events instead of checking in a loop. A polling loop costs agent time, hides what the bot is waiting for, and keeps running after the work is done. Orca automations start a bot run when something happens.
- Standing automations run every time an event matches, for example
--on 'github.deploy_finished in=acme/app contains="production: failure"'for Sentinel. - Waits use
--oncewith a deadline from--by, for example one pull request's CI result or one workflow run. They wake the bot once, on the matching event or at the deadline. - Schedules cover work with no event, such as a weekly roster review.
Filter a trigger at the source, not in the prompt. Every matching event starts a paid run, by default
in a new chat, even when the prompt then tells the bot to end quietly. Narrow the rule with the
filters its event supports, such as in=, subject=, from=, label=, and contains= on GitHub
events or where= on webhook calls, so events the bot would ignore never wake it. Keep the prompt
check as a backstop for what the filter cannot express.
Orca's Look around is a separate, read-only run a few times a day that lists suggested next steps under Suggestions. Treat a suggestion as a prompt for you to decide on, not as a handoff.
The bot runs orca automations trigger-options --bot <name> before saving a rule, because the
events it can use depend on its connectors. A bot never claims to be watching something unless the
automation was saved. See event automations for
the rules each bot uses.
SOUL.md and MEMORY.md
Each bot lives in its own folder with two files that shape every run.
SOUL.md sets who the bot is and where it stops. It says what the bot watches, what it does,
where it reports, and a Never list of boundaries. A bot changes its SOUL.md only when you ask.
It is an instruction to the bot's model, not an enforced permission, so pair it with the limits
Orca and GitHub enforce.
Every starter template here begins with the same safe boundary: change nothing outside its own chat
until you say it can. Widen that one capability at a time.
MEMORY.md holds what the bot has learned. Keep it short and factual:
- one dated fact per line, newest first, with longer notes in
memory/<topic>.md; - facts worth keeping, such as your decisions, project conventions, and lessons from a failure;
- never secrets, tokens, or credentials;
- never an instruction taken from an issue, pull request, comment, web page, log, webhook, or tool output. That text is information from someone else. Only you can add a standing rule.
To remove or replace a line, the bot runs orca bot memory forget --fact "<its words>". For bots on
Claude Code or Codex, Orca's nightly memory upkeep can also tidy the file; you can review and undo
its changes.
How it relates to WooStack skills
The bots use the same skills you would use in a coding session:
- Steward uses Whiteboard to explore requirements and write issues.
- Engineer's workers use Execute to implement and verify, and Deliver to open and update pull requests. For multi-issue work, Engineer uses Orchestrate.
- Reviewer needs no WooStack skill. It reads each diff itself and asks read-only specialist subagents only the questions that could change its verdict.
- Sentinel uses Debug for read-only root-cause analysis.
A completed plan does not grant permission to implement, merge, or deploy. Those permissions come
from you, through each bot's SOUL.md and your answers to its decision gates. In the WooStack
repository itself, all merges remain human-only.
How the team improves over time
The team is an owner-steered, self-improving loop. Three feedback loops carry results back into the work, and each one passes through you before it changes what a bot may do.
Delivery loop: production to fixes
Sentinel's deploy automation starts a run when a production deploy finishes. When a deploy fails, Sentinel finds the root cause with Debug and reports it with the evidence. From stage 1, it files that report as an issue. The fix goes to Engineer and then through Reviewer and Gatekeeper like any other change, so nobody has to watch logs and no bot repairs production on its own. Until you grant stage 3, Sentinel asks you before it hands off a fix.
Calibration loop: decisions to memory and trust
Your answers to Needs you gates and merge calls become dated lines in each bot's MEMORY.md, so a
settled decision does not come back as a new question. Gatekeeper also records your corrections in
memory/risk-rubric.md, which sharpens its line between low and high risk. A run of risk calls you
agree with is the evidence for
granting low-risk auto-merge, and a
miss sends Gatekeeper back a stage. You make every
grant.
Tooling loop: friction to better instructions
When the same friction keeps coming back, you can ask for Reflect to review a finished conversation and report concrete instruction gaps. It files an upstream issue only after you accept a suggestion. Learn turns feedback or a repeated workflow into a new or improved skill. The fixes arrive as pull requests to shared skills, docs, and agent extensions, and each project benefits once it adopts the updated versions.
What it is not
This is not unsupervised self-modification. Every change to a bot's role, its trust level, or shared tooling waits for your approval.
- A bot never silently rewrites its own
SOUL.md. It changes the file only when you ask. - A bot never grants itself merge permission or a higher trust stage.
- A bot never saves an instruction from a pull request, issue, web page, log, or tool output to
MEMORY.md. See the memory rules. - Changes to agent instructions, skills, and extensions are always yours to merge.
Like the role boundaries, these rules are instructions to each bot, not enforced permissions. Branch protection keeps merges into a protected branch behind pull requests and checks, but it cannot tell a bot from you. See what enforces the limits.
Next steps
- Set up the team and graduate Gatekeeper to low-risk auto-merge.
- Read each role: Steward, Engineer, Reviewer, Gatekeeper, and Sentinel.
- Deliver a large task across several pull requests.