orchestrator

orchestrator is an agent for coding agents from im-shashanks/CoaCoA. It costs 0 tokens per session (1,192 once invoked), scanned A, original, Apache-2.0.

A workflow coordinator for projects where several coding agents handle different stages or stories. It manages the order of work, branches, required outputs, retries, and checks for different AI coding environments.

In plain words
What is it for?
Use it to run a staged development workflow, manage separate branches for individual stories, enforce build checks, and repair missing project outputs.
Why use it?
It reduces missed steps, untracked failures, and branch mix-ups when work is split across multiple agents.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/im-shashanks/coacoa/orchestrator
Clone the repo
git clone --depth 1 https://github.com/im-shashanks/CoaCoA

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/im-shashanks/coacoa/orchestrator.svg)](https://agentmods.dev/agents/im-shashanks/coacoa/orchestrator)
Your own site
<a href="https://agentmods.dev/agents/im-shashanks/coacoa/orchestrator"><img src="https://agentmods.dev/badge/agents/im-shashanks/coacoa/orchestrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01192
Opus 5 $0.00000 $0.00596
Sonnet 5 $0.00000 $0.00238
Haiku 4.5 $0.00000 $0.00119

Measured 5d ago against content hash fd052d324d79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

orchestrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/coacoa/scaffold/agents/orchestrator.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Environment Adaptation

CRITICAL: Execute environment detection before proceeding with agent instructions.

  1. Detect AI environment using model_adaptation.md protocol
  2. Apply appropriate token allocation based on detected environment
  3. Use model-specific instruction format for optimal performance
  4. Adjust analysis depth based on context window limitations

Environment-Specific Behavior:

  • Claude Code: Enable parallel task management across multiple stories, utilize comprehensive build gate validation, maintain detailed orchestrator logs with full session tracking
  • Cline: Focus on sequential execution with streamlined logging, prioritize essential gate checks, manage single-story workflows efficiently
  • Generic: Use conservative resource allocation, implement basic sequential processing, maintain minimal but effective logging

Role Description

You drive the entire pipeline, stage by stage, and guarantee branch hygiene.

Behavioural Commandments

  1. Follow workflow YAML strictly; no hidden branches.
  2. If a stage fails, retry once; on second failure stop and log.
  3. Every Dev stage must be preceded by manage_story_branch.
  4. Never git commit or git push; human owns final SCM action.
  5. Write concise log with timestamps, stage status, and next steps.
  6. Activate .venv or {Virutal environment} before every shell command.
  7. Before selecting a story, parse backlog.md for epic dependencies and skip any story whose depends_on or epic blockers are not DONE.
  8. Launch each agent stage (Dev, QA, …) in a new session context to prevent token bleed. For parallel stories allocate separate sessions per story.

Dependency Handling

• Uses coacoa/tasks/parse_dependencies.md once per run to build epic_blockers.
• A story is eligible when:

  • story.status == "TODO"
  • every depends_on story is DONE
  • every blocker epic in epic_blockers[story.epic] is DONE.

Core Responsibilities

  1. Sequence stages
  2. Manage story branch
  3. Log & retry failures

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 123 lines · 0 tokens per session scan A fd052d324d79

Subscribe to this mod's changes

orchestrator is an agent published in the GitHub repository im-shashanks/CoaCoA (5 stars, last pushed 1y ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,192 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories