A team is a folder with a nuramesh.yaml that says who is on the team, what each role may do, what it may spend and
what it costs. The configuration is data: nuramesh validate checks it without running anything, and a mistake
fails with the path of the bad key.
Prerequisites
Section titled “Prerequisites”- NuraMesh installed with the
localextra, which reads YAML (Install). - A folder for the team. Keep it in Git: the configuration is the record of who may do what.
- Start from a template, or from the small team below.
- Change the roles, agents, policies, budgets and prices: The parts.
- Run
nuramesh validateafter every change.
Start from a template
Section titled “Start from a template”nuramesh init <folder> --template <name> writes a complete team you can read and change. Two to start with:
| Template | What the team does | Walkthrough |
|---|---|---|
dev-team |
fixes a failing test, runs the suite and asks a human before the staging deploy; one independent reviewer | Dev team |
code-review |
summarizes a change; a code reviewer and a security reviewer, on different models, must both pass it | Code review |
Both run on the fake model: no keys, no cost, no network. Each walkthrough shows a reference run.
The parts
Section titled “The parts”| Key | What it holds |
|---|---|
version |
the configuration format version, 1 |
org |
the organization: roles and agents |
policies |
what each role may do: allow, ask or deny, per kind of action |
budgets |
spending limits by scope (organization, agent and so on) |
prices |
the price of each model, with an effective date and a source |
breakers, price_overrides, content, canon, evals, calibration, presets, models |
optional parts, listed in the configuration reference |
An unknown key is an error, not a warning.
Roles and agents
Section titled “Roles and agents”A role is a kind of job: chief_of_staff (exactly one agent has this role, the root), worker (the default) or
verifier. An agent has a role and says who it reports_to. A verifier agent lists the agents whose work it
checks. A verifier may not sit in the reporting chain of an agent it checks: it cannot be the author, anyone above the author or anyone who answers to the author (peers and other branches are fine), and the validator says so.
Policies
Section titled “Policies”Default deny: a role may do only what its policy allows. Each rule names an action (delegate, call_model,
use_tool, run_command, write_file, spend, external_message or merge), a decision (allow, ask or
deny) and a target pattern. Anything no rule allows asks a human. See Autonomy policies.
Budgets and prices
Section titled “Budgets and prices”A budget is a hard stop, not a warning: see Budgets. Money is written as a quoted decimal
("5.00"). A model with no price entry is blocked and the block is recorded; a price is never guessed. See
Price overrides.
A small team
Section titled “A small team”This team has a Chief of Staff, a writer and a reviewer on different fake models. It is checked by the tests that run the docs, so it stays valid.
version: 1org: id: my-team name: My team roles: - {id: chief-of-staff, name: Chief of Staff, kind: chief_of_staff} - {id: writer, name: Writer, default_model: fake/worker-1} - {id: reviewer, name: Reviewer, kind: verifier, default_model: fake/reviewer-1} agents: - {id: chief-of-staff, name: Chief of Staff, role: chief-of-staff} - {id: writer, name: Writer, role: writer, reports_to: chief-of-staff} - {id: reviewer, name: Reviewer, role: reviewer, reports_to: chief-of-staff, checks: [writer]}policies: policies: - role: chief-of-staff rules: - {action: delegate, decision: allow, target: "*"} - role: writer rules: - {action: call_model, decision: allow, target: "fake/*"} - {action: spend, decision: allow} - role: reviewer rules: - {action: call_model, decision: allow, target: "fake/*"} - {action: spend, decision: allow}budgets: - {id: writer-monthly, scope: agent, scope_id: writer, limit: {amount: "5.00", currency: USD}}prices: prices: - {provider: fake, model: worker-1, input_per_million: "3", output_per_million: "15", effective_from: "2026-01-01T00:00:00Z", source: "example price list (fake model)"} - {provider: fake, model: reviewer-1, input_per_million: "3", output_per_million: "15", effective_from: "2026-01-01T00:00:00Z", source: "example price list (fake model)"}Save it as nuramesh.yaml in a folder and check it:
nuramesh validate my-team/nuramesh.yamlmy-team/nuramesh.yaml: validA run also needs the workers’ code (team.py in the templates) and a task to run; the templates include both. The
file above is only the organization.
Troubleshooting: when validation fails
Section titled “Troubleshooting: when validation fails”validate prints every problem with its path and exits 2:
Configuration is invalid:- $.bogus: unknown key (allowed: version, org, policies, budgets, breakers, prices, price_overrides, content, canon, evals, calibration, presets, models)Fix the path it names and run it again. Nothing is written to the ledger by validate.
Check it worked
Section titled “Check it worked”nuramesh validate my-team/nuramesh.yamlIt prints my-team/nuramesh.yaml: valid and exits 0. A template team can then run on the fake model:
nuramesh try my-team --fake --approve-as human:you.
Next steps
Section titled “Next steps”- Start from a template and Add a custom role.
- Set a hard budget and Require a human approval.
- Configuration reference: every key, type and default.
Was this page helpful?