# agentic-maestro

> Delegate coding work to cheaper sub-agents without losing quality: precise briefs, independent review, one launcher for Claude Code, Codex and OpenCode.

agentic-maestro is a free AI agent skill on Agensi by Akramovic, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Akramovic](https://www.agensi.io/creators/akramovic)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agentic-maestro
- Tags: ai-agents, automation, code-review, claude-code, codex-exec, multi-agent, opencode, orchestration

## About this skill

Your strongest model shouldn't write every line. agentic-maestro turns it into a conductor: it plans, writes exact rulings, arbitrates review findings and merges, while cheaper sub-agents execute precise briefs and an independent reviewer checks every result.

What you get:

- **When to spawn at all.** A rule for when delegation pays and when the orchestrator should just do it inline.
- **Briefs instead of context.** Templates for build, fix and integration briefs: exact rulings, a "done means" list, one pattern to copy, only the conventions that apply, and a fixed report block you can scan in seconds.
- **Fail-closed tooling.** `brief.mjs` refuses a brief with a missing value or a convention keyword that matches nothing; `scope-check.sh` flags files changed outside the brief's map, even ones hidden by renames or git index flags.
- **One launcher for every agent.** `spawn.mjs` runs Claude Code, Codex or OpenCode (v1 and v2) headless in write or read-only mode, resumes exact sessions, and records session id, exit code, tokens and cost per run.
- **A pipeline that converges.** Independent review from a different model family, arbitration of every finding, a fresh executor per fix round, a structural ruling after three rounds on the same component, and a checklist that learns from recurring findings.
- **Parallel lanes on one machine.** File ownership per lane, a lock for heavy checks, stacked branches and small merge batches.

Measured on one large TypeScript monorepo (field notes, not a benchmark): 65–70% fewer tokens re-read by executors, about half the build time per feature, and fix rounds down from ~74 min to 10–25 min. Lean headless mode cut a one-line Claude Code run from $0.15 to $0.06.

Works with Claude Code, Codex, OpenCode and any Agent Skills host. Requires Node.js 18+ and bash.
Source and docs: https://github.com/Akramovic1/agentic-maestro

## Requires

- Node.js 18+
- Bash
- Git
- Claude Code or Codex CLI or OpenCode
- Config MCP

## Known limitations

Needs git and Node.js 18+; give each writing executor its own git worktree. Semantic merge conflicts between lanes are reported to the orchestrator, never auto-resolved. The code map lists exports only for JS/TS workspaces (other languages get a file-level map). The measured gains are field notes from one TypeScript monorepo, not a benchmark.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agentic-maestro skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does it keep sub-agents from changing things they shouldn't?

Each executor gets a brief with the exact files it may touch, works in its own git worktree, and reports anything the brief does not decide instead of guessing. Before any review, scope-check.sh lists every changed path outside that file map (including renames and files hidden by git index flags), so out-of-scope edits are caught and reverted or ruled on before they cost a review or reach main.

### Which AI agents and environments are compatible with this skill?

The skill is fully compatible with Claude Code, Codex, and OpenCode. It requires a Node.js 18+ environment and a bash-compatible shell to execute the orchestration scripts and manage the parallel lanes.

### What exactly is included?

The SKILL.md playbook (when to spawn, writing briefs, running build -> review -> fix -> merge), three references (spawning on each harness, a pre-review checklist and how to grow it, operations for parallel lanes), brief templates for build, fix and integration rounds plus a Claude Code sub-agent definition, and helper scripts: brief.mjs (assembles and validates briefs), spawn.mjs (runs claude, codex or opencode headless and records each run), scope-check.sh, codemap.mjs, excerpt.sh, conv.sh and gate.sh. It is free and MIT-licensed.

### Does the skill automatically resolve merge conflicts between different sub-agent lanes?

While the skill handles the parallelization and isolation of tasks, it does not automatically resolve semantic merge conflicts. If two sub-agents modify overlapping logic, the orchestrator will flag the conflict for manual intervention to ensure architectural integrity.

### How does the independent review work?

After the executor's work is committed, a reviewer from a different model family reviews that exact commit with the original requirements, the brief's rulings, read access to the repository and explicit permission to challenge a ruling. It returns P1/P2/P3 findings with file:line and a verdict. The orchestrator agrees with each finding (with an exact fix ruling) or rejects it with a reason; a fresh executor applies the fixes, and the re-review resumes the reviewer's own session. Merges need passing gates on the exact commit and no open P1/P2 findings.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
