norma is a robust, autonomous agent workflow orchestrator written in Go. While built with Go's performance and reliability, it is designed to orchestrate development tasks for any project, regardless of the language or stack.
norma bridges the gap between high-level task management and low-level code execution with two orchestration modes:
- a strict Plan -> Do -> Check -> Act (PDCA) cycle for one task at a time
- an assignee-routed swarm harness for multi-role execution over a Beads epic
Built for transparency and reliability, norma ensures every agent action is logged, every change is isolated in a Git worktree, and durable implementation history lives on a task-scoped branch.
- Fixed PDCA Workflow: A strict execution loop for one task:
Plan,Do,Check,Act. - Swarm Harness: Route ready Beads tasks to configured role agents by
assignee, with Beads state as the control surface. - Isolated Git Workspaces: Every run operates in a dedicated Git worktree on a task-scoped branch (
norma/task/<id>). No more messy working trees or accidental commits. - AUTHORITATIVE Backlog (Beads): Deeply integrated with Beads. Task status and workflow phase labels stay in Beads; implementation progress stays in Git.
- Branch-First Recovery: Interrupted runs are retried from the task branch (
norma/task/<id>) instead of using persisted role state in Beads notes. - Pure-Go & CGO-Free: Authoritative run state is managed via SQLite using the
modernc.org/sqlitedriver. Portable, fast, and easy to build. - Pluggable Agent Ecosystem: Seamlessly mix and match agents using
generic_acpbinaries and standard ACP aliases (codex_acp,opencode_acp,gemini_acp,copilot_acp,claude_code_acp). - Inspectable Run Artifacts: Persists step inputs, outputs, logs, and event streams under
.norma/runs/for local debugging.
- PLAN: Refine the goal into concrete
do_stepsand acceptance criteria checks. - DO: Execute the plan. Agents modify code within the isolated workspace.
- CHECK: Evaluate the workspace against acceptance criteria and produce a verdict:
passorfail. - ACT: Choose the next action from that verdict.
passmust usedecision=close, which lets Norma merge and commit changes using Conventional Commits.failusesdecision=continueto retry ordecision=replanto create replacement work.
- Select ready Beads leaf tasks under one epic.
- Route each task by
assigneeto a configured role agent. - Let role agents coordinate through
norma.tasks.*MCP tools. - Infer completion or handoff from Beads state after each session.
Norma speaks a normalized JSON contract and utilizes the Agent Control Protocol (ACP) for tool-calling and code execution:
| Agent | Type | Description |
|---|---|---|
| Generic | generic_acp |
Run any local binary or script that implements the Agent Control Protocol. |
| Gemini | gemini_acp |
Native support for the Gemini CLI with tool-calling and code-reading capabilities. |
| OpenCode | opencode_acp |
Deep integration with OpenCode for high-performance coding tasks. |
| Codex | codex_acp |
Optimized bridge for OpenAI Codex-style CLI tools via Norma's Codex ACP bridge. |
| Copilot | copilot_acp |
Runs Copilot CLI in ACP mode via copilot --acp. |
| Claude Code | claude_code_acp |
Runs Claude Code ACP via npx -y @zed-industries/claude-code-acp@latest. |
- Go 1.25+
- bd (Beads CLI) installed in your PATH.
- Git
go install github.com/normahq/norma/cmd/norma@latestRun norma init to automatically initialize .beads and create a default .norma/config.yaml:
norma init| Flag | Type | Default | Description |
|---|---|---|---|
--config-dir |
string | "" |
Extra config root directory (highest priority) |
--debug |
bool | false |
Enable debug logging |
--trace |
bool | false |
Enable trace logging (overrides --debug) |
--profile |
string | "" |
Config profile name |
The default configuration uses the gemini_acp agent. You can customize runtime core in .norma/config.yaml (or app-specific .norma/<app>.yaml):
norma:
agents:
gemini_acp_agent:
type: gemini_acp
gemini_acp:
model: gemini-3-flash-preview
opencode_acp_agent:
type: opencode_acp
opencode_acp:
model: opencode/big-pickle
copilot_acp:
type: copilot_acp
copilot_acp:
model: gpt-5-codex
claude_code_acp_agent:
type: claude_code_acp
claude_code_acp:
model: claude-sonnet-4-20250514
cli:
pdca:
plan: gemini_acp_agent
do: gemini_acp_agent
check: gemini_acp_agent
act: gemini_acp_agent
budgets:
max_iterations: 5
retention:
keep_last: 50
keep_days: 30
planner:
provider: gemini_acp_agent
swarm:
primary_role: coordinator
default_provider: gemini_acp_agent
roles:
coordinator:
assignee: norma-coordinator
instruction: Decide routing, resolve bounced tasks, supervise swarm progress.
planner:
assignee: norma-planner
instruction: Break down work and assign tasks to roles.
implementer:
assignee: norma-implementer
instruction: Implement assigned tasks.
profiles:
default:
cli:
pdca:
plan: gemini_acp_agent
do: gemini_acp_agent
check: gemini_acp_agent
act: gemini_acp_agent
planner:
provider: gemini_acp_agent
swarm:
default_provider: gemini_acp_agent
opencode:
cli:
pdca:
plan: opencode_acp_agent
do: opencode_acp_agent
check: opencode_acp_agent
act: opencode_acp_agent
planner:
provider: opencode_acp_agent
swarm:
default_provider: opencode_acp_agent
copilot:
cli:
pdca:
plan: copilot_acp
do: copilot_acp
check: copilot_acp
act: copilot_acp
planner:
provider: copilot_acp
swarm:
default_provider: copilot_acp- Planner and Interactive Planning
- PDCA Workflow and Norma Loop
- NormaLoop Orchestration
- Swarm Harness
- Goalkeeper Playground
- Taskmaster Playground
# Add a task to Beads
bd create --type task \
--title "implement user logout" \
--description $'Objective: implement user logout\nArtifact: auth/logout handler and tests\nVerify:\n- go test ./...'
# Orchestrate the fix
norma loop norma-a3f2ddUse norma plan tui to break a high-level epic into Beads epic/feature/task hierarchy.
norma plan tui # interactive TUI
norma plan repl # line-based REPLUse norma swarm <epic-id> when work is already broken into Beads tasks and routed by assignee.
norma swarm norma-phmpSwarm notes:
- initial assignment is human-owned
- unassigned ready tasks are skipped and reported
- agents may create and reassign tasks through
norma.tasks.* - Beads task state is the source of truth for completion and handoff
Codex ACP bridge is now distributed as a standalone package.
npx -y @normahq/codex-acp-bridge@latestNotes:
codex_acpagent type resolves tonpx -y @normahq/codex-acp-bridge@latest.- Per-session Codex defaults are set via ACP
session/new._meta.codex. - Bridge docs live in the standalone repository: https://github.com/normahq/codex-acp-bridge
Inspect any stdio ACP server command without changing Norma config.
# Human-readable summary
norma tool acp-dump -- opencode acp
# JSON output for scripts
norma tool acp-dump --json -- gemini --experimental-acpStandalone binary is also available as acp-dump.
Inspect any stdio MCP server command and dump capabilities plus MCP tool schemas.
# Human-readable summary
norma tool mcp-dump -- codex mcp-server
# JSON output for scripts
norma tool mcp-dump --json -- codex mcp-serverStandalone binary is also available as mcp-dump.
Run an interactive terminal REPL against any stdio ACP server command.
norma tool acp-repl -- opencode acp
norma tool acp-repl --model opencode/big-pickle --mode coding -- opencode acp
norma tool acp-repl -- gemini --experimental-acpStandalone binary is also available as acp-repl.
Norma uses Omnidist profiles for build/stage/verify/publish flows across all command binaries.
Profiles configured in .omnidist/omnidist.yaml:
normaacp-dumpmcp-dumpacp-repl
npm distributions use the @normahq scope:
@normahq/norma@normahq/acp-dump@normahq/mcp-dump@normahq/acp-repl
Quickstart per profile:
omnidist --profile norma quickstart
omnidist --profile acp-dump quickstart
omnidist --profile mcp-dump quickstart
omnidist --profile acp-repl quickstartRun build pipeline for a profile:
omnidist --profile <profile> build
omnidist --profile <profile> stage
omnidist --profile <profile> verify
omnidist --profile <profile> npm publishGitHub release workflows are split per profile and run on v* tag pushes:
omnidist-release-acp-dump.ymlomnidist-release-mcp-dump.ymlomnidist-release-acp-repl.yml
Publishing uses npm only.
Norma ensures Zero Data Loss:
- authoritative run state: Stored in
.norma/norma.db(SQLite). - authoritative task state: Stored in Beads status and workflow phase labels.
- durable implementation history: Stored in the task branch (
norma/task/<id>). - Artifacts: Every step's
input.json,output.json, andlogs/are saved to disk under.norma/runs/<run_id>/. - Agent output visibility: Agent
stdout/stderris always captured in step logs and is mirrored to terminal only when running with--debug.
We welcome contributions! Whether it's adding new agent wrappers, improving the scheduler, or refining the PDCA logic, please feel free to open an issue or submit a PR.
Note: norma follows the Conventional Commits specification.
MIT License. See LICENSE for details.
