agent-orchestration-workflows
Orchestrate sub-agents (delegate/swarm) to beat agentic laziness, self-bias, and goal drift on big/parallel/adversarial tasks.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- agent-orchestration-workflows
- description
- Orchestrate sub-agents (delegate/swarm) to beat agentic laziness, self-bias, and goal drift on big/parallel/adversarial tasks.
03 SKILL.md 正文
Agent Orchestration Workflows
Extracted from Anthropic's "A harness for every task: dynamic workflows in Claude Code"
(Thariq Shihipar & Sid Bidasaria) and mapped to Vanta's delegate + swarm tools.
Why orchestrate (the failure modes you are fighting)
A single context window degrades on long / massively-parallel / highly-structured-adversarial tasks. Three named failure modes — watch for them in yourself:
- Agentic laziness — stopping before a multi-part task is done (addressing 20 of 50 items, then declaring done).
- Self-preferential bias — preferring your own results/findings when asked to verify or judge them.
- Goal drift — losing fidelity to the original objective over many turns, especially after context compaction (edge-case requirements and "don't do X" constraints get summarized away).
The fix: give separate sub-agents their own clean context window and one focused, isolated goal, then combine. In Vanta: delegate (one scoped subtask, choose provider/model) and swarm (parallel fan-out + synthesize).
When to use — and when NOT to
Use when the task is large, parallelizable, or needs independent verification. Do NOT reach for it on ordinary work — it costs significantly more tokens. Most coding tasks do not need a panel of 5 reviewers. Match the structure to the task; state a token budget up front when you can.
The patterns (compose these)
- Classify-and-act — a classifier sub-agent decides the task type, then routes to the right behavior. (Or classify at the end to shape output.)
- Fan-out-and-synthesize — split into many small steps, run a sub-agent per step (clean context each, no cross-contamination), then a synthesize barrier merges the structured outputs into one result.
- Adversarial verification — for each produced result, spawn a separate sub-agent to try to refute it against a rubric. Defeats self-preferential bias (the maker never grades its own work).
- Generate-and-filter — generate many candidates, then filter by a rubric / dedupe, return only the highest-quality survivors.
- Tournament — N agents each attempt the same task differently; judge pairwise (comparative judgment beats absolute scoring) until one winner remains. Good for taste/design/naming.
- Loop-until-done — for unknown-size work, keep spawning until a stop condition holds (no new findings, no more errors in logs) rather than a fixed number of passes. Beats agentic laziness.
For sorting/ranking many items by a qualitative measure: don't sort 1000 rows in one prompt — run a tournament / pairwise-comparison pipeline or bucket-rank in parallel; the deterministic loop holds the bracket so only the running order stays in context.
Vanta-specific application
- Build from
delegate(scoped subtask, can pick provider/model — route cheap classify work to local Ollama, hard judging to a stronger model) andswarm(parallel + synthesize). - Pair with
/goal(a hard completion requirement — kills agentic laziness) and a repeat trigger for recurring work (triage, research, verification). - Quarantine pattern: agents that read untrusted public content must not take high-privilege actions — those go to a separate acting agent. (Vanta's kernel
assess()is the backstop, but separate the roles too.) - This is the seed of the roadmap
WORKFLOWSitem: Vanta writing its own JS orchestration harness on the fly. Until that ships, apply these patterns manually viadelegate/swarm. - Self-improvement tie-in: "mine recent sessions for corrections you keep making → distil into rules/skills" is exactly Vanta's background-review loop (B3/B4) — orchestration is how you do it at scale.
Checklist before orchestrating
- Is this big / parallel / adversarial enough to justify the extra tokens? If no → just do it.
- Which pattern fits (fan-out, tournament, loop-until-done, adversarial-verify)?
- What is the stop condition / completion requirement? State it.
- Do any sub-agents read untrusted content? Quarantine their privileges.
- Set a token budget.
04 同仓库更多 Skills
write-changelog
Turn a range of commits into a user-facing changelog
debug-flaky-test
Reproduce and isolate a flaky test before fixing it
triage-incident
First 10 minutes of an incident — stabilize, then diagnose
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
vanta-port-adapter
暂无简介
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.