Skip to content

maestria

Give your coding agent a method.

maestria shapes how your agent works: it maps unfamiliar code before it edits, plans when the trade-offs are real, verifies what it claims, and hands every meaningful change to an independent reviewer. One method for OpenCode, Pi, Claude Code, Codex, Cursor, and more.

Get startedHow it works
npx maestria install

Works with npm, pnpm, yarn, bun, or deno.

Make every step intentional.

Pick a task. The main loop loads a method skill only when it adds information or reduces risk. Dimmed rows are steps that task skips.

PromptfeinAdd rate limiting to the upload API

  1. recon: Upload path mapped
  2. architecture-plan: Per-key token bucket
  3. Implement: Middleware + tests
  4. docs-update: API limits documented
  5. Verify: Checks pass
  6. Reviewer: Approved
  7. create-pull-request: PR opened

The fein keyword asks for the full method: map the code, settle the design, build and document it, then a review by someone who did not write it.

An agent that plans, builds, and grades its own work will approve its own mistakes. maestria separates the maker from the checker, holds every task to the same floors, and keeps each route as short as the task allows.

The smallest safe route

Small edits run directly. Method skills and review join only when they add information or reduce risk.

A second pair of eyes

The implementer never approves its own work. A reviewer who did not write it checks every meaningful change.

One method, native tools

The same method and rules on every host, built on each tool's own agents, skills, and plugins.

One main loop, four things that shape it.

Your agent does the work itself. maestria gives it modes to steer it, skills to load when a task needs them, floors it never drops, and a reviewer that checks its work. See how it works

  • Three modes

    Type one before a task to set how much method it gets. Without one, the main loop picks.

    fein
    Full method with required review
    sonar
    Research only, changes no files
    blitz
    Skips optional ceremony
  • Method skills

    Loaded in the main loop only when they add information or reduce risk.

    recon
    Map unfamiliar code first
    diagnose
    Find the cause before the fix
    architecture-plan
    Weigh options, phase the work
    implement
    Change code the way the project does
    docs-update
    Keep docs true to the change
    create-pull-request
    Write a reviewable PR
    review-loop
    Brief the reviewer, bound the repairs
    handoff
    Brief delegates, track sessions
  • Always-on floors

    Rules every task follows. No mode or project rule can waive them.

    Verify claims
    Against code, docs, and runtime
    Match effort to stakes
    Smallest route that proves acceptance
    Stop for authorization
    Auth, data loss, production
    Bounded repair
    At most three repair passes
  • Independent reviewer

    One independent check for every meaningful change. The maker never approves its own work.

    Blind brief
    Goal and evidence, never the maker's verdict
    Triaged findings
    Fix, dismiss, or escalate
    No silent approval
    An empty or blocked review is not a pass

Install where you already work.

Run npx maestria install to detect your agents and pick from a list, or name a host directly.

npx maestria install opencode

Installs @maestria/opencode, a native plugin.

OpenCode setup guide