MaestroEmpreendedor Livre
πŸ‡§πŸ‡· PortuguΓͺs empreendedorlivre.com
Free and open Β· v2.0

The expensive model plans. The cheap one executes.

Maestro breaks your project into blocks, decides how risky each one is, and sends each block to the right model β€” in Claude Code, in Codex, or in any CLI via Adapter SDK. Persistent memory, typed handoffs and universal harness-agnostic protocol.

Download Maestro Claude Code Β· Codex Β· any CLI via Adapter SDK
version 2.0.0 Open source, MIT license. Continuous updates with change log.
Where each type of work goes β€” Claude Code, Codex or any adapter You define it once. Maestro respects it in every block.
Haiku 4.5complexity 1–2

Mechanical work, no decisions: repetitive code, migrations from a ready schema, test data, conversions, bulk renaming, documentation.

1Γ— the cost
Sonnet 4.6complexity 3–4

The bulk of construction: business rules, documented integrations, new features, edge cases already mapped and review of what was delivered.

2Γ— the cost
Opus 4.6complexity 4–5

Where mistakes get expensive: architecture, contracts between system parts, data modeling and any decision hard to undo later.

5Γ— the cost

Running everything on the most powerful model costs several times more

And doesn't deliver better. Most of a project's work is routine β€” it doesn't need the most expensive reasoning model. Maestro classifies each block and uses the cheapest one that can handle it.

Everything on the most powerful model100%
Distributed by complexityabout 1/4
Opus 15% Sonnet 60% Haiku 25%

That's a healthy division of labor. Maestro measures yours and warns when the expensive model exceeds a quarter of the cost β€” which almost always means a specification got ambiguous and someone bumped models by reflex, instead of fixing the text.

Ratio based on API pricing from September 2026. Real savings depend on your project's task mix.

How it works

The expensive part happens once. The cheap part repeats until the project is done.

Plan with the strong model

It writes the specifications, breaks the project into blocks and defines for each one: the complexity, the model, the files it can touch and how to know it's done.

You read and approve

The plan becomes a file you correct before any line is written. It's the only time an error is still free.

Execute with the right model

The manager picks the next released block, sends it to the model the plan defined, calls a reviewer who can't edit anything and only then marks it complete.

True multi-agent

Version 2.0 adds five layers that make Maestro work with multiple agents, models and harnesses β€” with no coupling to any of them.

memory 🧠

Persistent Memory

Working, Episodic, Semantic (FTS5 + entities + links) and Procedural Memory. Markdown as source of truth, SQLite as a zero-reconstructible index.

routing ⚑

Intelligent Routing

ProviderRegistry usage-aware and capacity-aware. CEV telemetry (Cost-Efficiency-Velocity) per provider, without platform lock-in.

handoff 🀝

Typed Handoffs

HandoffManager with exactly-once semantics, workstreams with exclusive lease and cross-agent resume. Claude passes to Codex without losing context or double-delivering.

protocol πŸ“¦

Universal Protocol

Universal Context Packet (UCP) and Event Protocol (UEP) β€” harness-agnostic contracts with trust boundaries and built-in PII and credentials scanner.

adapters πŸ”Œ

Adapter SDK

Manifest, conformance suite and GenericCLI. Any command-line tool becomes an adapter with a JSON. Claude Code and Codex already included and certified.

The patterns it enforces

Delegating work to a cheaper model only works with method. These are the patterns that agent engineering has consolidated β€” and they come built-in, no configuration needed.

# Common acceptance criterion β€” model interprets as it pleases
"The system should handle errors appropriately"

# Same criterion in EARS β€” becomes a direct test
IF the database is unavailable
THEN THE SYSTEM MUST respond 503 and log the error.

A criterion written this way becomes nearly a one-to-one test case. That's what makes the spec a contract instead of advice.

specification

Criteria in EARS notation

Pattern from the aerospace industry. Each criterion has explicit subject, number instead of adjective and a single observable behavior. If you can't write the test assertion, the criterion is still vague.

verification

Test before code

Since each criterion is already a test, the executor writes tests first, sees them fail and implements until they pass. Green test is the only objective signal of done β€” without it, done is the model's opinion.

context

One task per session

Each block runs isolated, getting only its specification and the files it can touch. A full window degrades predictably: the model loses exactly what's in the middle.

continuity

Checkpoint each block

Long session is compacted and detail is lost. One commit per completed block, plus the progress file, rebuild the state without depending on conversation memory.

cost

Budget per task

Each block has a round limit. Exceeding it isn't a sign of weak model β€” it's a sign of ambiguous spec. The system stops and returns instead of making the same error more expensive.

constraint

No generic advice

A 2026 study of 138 real repositories showed that model-generated instruction files hurt agent performance. Here, "use clean code" is banned: style is linter work, not context.

planning

Risky work becomes two blocks

A task with uncertain design is split: the strong model designs and writes the spec; the medium one implements. Sending the entire task to the strong model is what inflates cost without improving anything.

review

Who writes doesn't approve

The reviewer runs in a separate session with no permission to edit files. They check criterion by criterion, with evidence, and even look for tests that pass without exercising anything.

memory

Memory between sessions

Working Memory for active context, Episodic Memory for decision history and Semantic Memory for entity search. The SQLite index is zero-reconstructible β€” there's never corrupt state you can't recover.

multi-agent

Handoff without double delivery

Exactly-once semantics guarantee that a handoff between Claude and Codex is never executed twice. Workstream lease prevents two agents from editing the same context at the same time.

scale

Independent phases in the same project

With --phase <name>, each project phase has its own plan in plan/<name>/. Old plans keep working without migration β€” just don't pass the argument.

speed

Two blocks at once β€” only when safe

--parallel dispatches a batch when no block depends on another and the files each can touch are provably disjoint. On any ambiguity, it serializes. Commits always one at a time.

Thirteen commands

No manual configuration. Setup talks to you, reads what already exists in the repository and builds the plan by itself.

/maestro:setup

Detects what already exists, asks up to six questions and generates the plan. With --phase <name> creates a parallel plan without touching the existing one

/maestro:status

Shows the board and distribution by model. --block <ID> displays all details and block metric history. Runs on your machine, consumes nothing

/maestro:next

Executes the next released block and calls the reviewer. --dry-run shows without dispatching; --parallel dispatches up to two blocks at once when there's no file conflict

/maestro:plan

Writes the specification for a new block with the strong model

/maestro:replan

Adjusts the plan when reality changes

/maestro:costs

Shows planned distribution by model and reminds you to check /context and /usage, Claude Code's native cost commands

/maestro:resume

Recovers blocks interrupted by crash or session compaction β€” analyzes git and offers to resume, reset or discard

/maestro:review <ID>

Audit review of any completed block, independent of execution flow

/maestro:unblock <ID>

Clears the lock on a block without editing JSON manually. Requires explicit confirmation before saving

/maestro:edit <ID>

Point change in a block's specification, or full regeneration with the strong model. Validates the plan at the end

/maestro:rollback <ID>

Undoes an approved block using git revert β€” never git reset. Checks clean tree before touching anything

/maestro:export

Generates plan/REPORT.md with complete state, specifications and metrics. Ready to share with the team

/maestro:migrate

New in 2.0. Migrates legacy structure (v1.x) to the new layer architecture with automatic backup, conversion report and rollback on failure

What it prevents

Delivering work to a cheap model only works with rails. These are checked before any block is dispatched.

Critical task doesn't fall to cheap model

Blocks where a mistake is irreversible stay locked to the strong model β€” both to execute and to review.

Who writes doesn't approve

The reviewer runs in a separate session with no permission to edit files. They approve or reject, with evidence for each criterion.

Block without information doesn't dispatch

If a decision from you is missing, a credential or data, the block stays marked as locked β€” instead of the model filling the gap on its own.

Failed twice? Fix the text, not the model

When the same block fails again, the cause is almost always an ambiguous spec. Bumping the model would only make the same error more expensive.

PII and credentials never enter the context

The Universal Context Packet has a built-in scanner that blocks personal email, phone, CPF, API keys and other secrets before any data leaves the machine.

Handoff delivered exactly once

Exactly-once semantics guarantee that a transfer between agents is never consumed twice β€” even under true concurrency of multiple processes.

Download Maestro

Leave your email and the installation commands appear here instantly. No cost, no card. Works in Claude Code, Codex and any CLI with a JSON adapter.

Your data stays with us and is not sold.

Done. Run in the terminal, inside your project:

# 1. add the repository
/plugin marketplace add YOUR-USER/maestro

# 2. install
/plugin install maestro@maestro

# 3. configure (it talks to you)
/maestro:setup

View on GitHub β€” open source, no server in between.

Questions

What do I need to use it?

Claude Code on any paid plan, and a project you already work on. Maestro is not a separate service: it runs inside Claude Code, on your account. Works in the terminal, VS Code, JetBrains and the desktop app.

Does it work with models other than Claude?

Yes. Version 2.0 includes the Adapter SDK: any tool with a valid adapter.manifest.json file passes the conformance suite and can execute blocks. Codex is already included and certified. A generic adapter for any CLI also comes out of the box β€” no plugin needed.

How do I automate it in CI/CD?

Use headless mode: python integrations/relay/headless_cli.py --headless --dry-run <ID> β€” returns code 0 or 1, never asks for interactive input. An example workflow for GitHub Actions is in .github/workflows/maestro-ci.yml in the repository.

Does it work for projects that aren't programming?

Yes, as long as work can be broken into blocks with an objective way to say it's done. Research, serial content production and data migration work well. What doesn't fit is work where "done" is a matter of taste.

Does it use my Claude quota?

Yes, because whoever executes is Claude Code with your account. The question is how much: using the right model for each task makes the same build consume well less of your limit.

Does my code leave my machine?

It doesn't pass through any server of ours. Maestro is a set of text files that runs inside your Claude Code. Plus, version 2.0 adds a PII and credentials scanner in the Universal Context Packet β€” no sensitive data leaves without being detected first.

Can I change the rules?

You can. Everything is text files in your repository: the agents, the commands and the plan. Edit freely, including which models go into each complexity level.

Is it really free, or does it become paid later?

It's free and open. If you want to give back, use it and tell us what worked and what broke β€” that's what makes the next version better.