Skip to content

@maestria/opencode

A main loop and one reviewer.

Install one plugin to add the main loop, reviewer, shared workflow rules, and workflow modes to OpenCode V2. On OpenCode V1, pin @maestria/[email protected].

npx maestria install opencode

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

One plugin, the whole harness.

Main loop plus reviewer

The main loop investigates, designs, implements, and delivers; the reviewer checks meaningful changes.

Rules in every request

Global workflow directives and your project .maestria/ files reach every agent-loop and compaction request.

Review with @reviewer

Request independent review with @reviewer; the main loop does recon, design, and implementation itself.

Per-turn workflow modes

Use the modes defined by ModeKeyword in packages/shared/pi/src/state-core.ts, or the slash commands; the mode stays with that prompt through continuations.

Per-agent model control

Agents register without model overrides; assign models per agent from your own config.

Native tool permissions

Each agent ships ordered permission rules that OpenCode enforces, so read-only reviewers stay read-only.