Skip to content
Docs
Request access

Run a team

You run a team folder with one command. The run delegates the team’s tasks, checks every result against its gates, stops at budgets and policies, and writes each step to the ledger. At the end you read the result from the ledger, not from the agents.

Running a team from the command line Four commands in order: init creates the team folder, validate checks the configuration, try runs the team, report reads the result from the ledger. initcreate theteam folder validatecheck theconfiguration tryrun the plan,gates and budgets reportread the resultfrom the ledger initcreate theteam folder validatecheck theconfiguration tryrun the plan,gates and budgets reportread the resultfrom the ledger
Four commands take a team from a folder to a verified result.
Diagram as text
  1. nuramesh init creates the team folder from a template.
  2. nuramesh validate checks the configuration file.
  3. nuramesh try runs the plan. Gates, policies and budgets apply.
  4. nuramesh report reads the result from the ledger.
  • NuraMesh installed (Install).
  • A team folder that passes nuramesh validate. To get one: Start from a template. The commands below use a dev-team folder named my-team.
  1. Check the configuration.

    Terminal window
    nuramesh validate my-team/nuramesh.yaml
  2. Run the team on the fake model. Give the run an id so you can name it later.

    Terminal window
    nuramesh try my-team --fake --approve-as human:you --allow-unsandboxed --run-id run-1
    Option What it does
    --fake uses the scripted fake model: no keys, no cost
    --approve-as human:you answers the team’s human gates from a script; the ledger records that the approval was scripted
    --interactive --human human:you asks you at the terminal instead: y, n or skip, then a reason
    --allow-unsandboxed local tries only: test commands run without a container, and the run records it
    --run-id run-1 the run’s id; use a new one for every run
  3. Read the result. The run prints its report when it ends; you can print it again at any time.

    Terminal window
    nuramesh report run-1 --team my-team
  4. See what is unfinished or waits for a person.

    Terminal window
    nuramesh status --team my-team
    nuramesh status run-1 --team my-team

The report lists every task with its status, its attempts and one line per gate, then the budgets and the ledger check:

Run run-1
Tasks: 3 done
[done] run-1-fix-add (dana, attempts 1): Fix the failing add() test in calc.py
gate has-fix (rule): passed by gate:rule
gate tests (test_command): passed by gate:test_command
gate review (verifier): passed by agent:rhea
[done] run-1-test-suite (theo, attempts 1): Run the whole test suite on the fix
gate green (rule): passed by gate:rule
[done] run-1-deploy (omar, attempts 1): Deploy the fix to staging
gate approve-deploy (human): passed by human:you
Budgets:
dana-monthly (agent dana): spent 0.001335 of 5.00, reserved 0.000000

The last line starts with Ledger: run:run-1 and ends with (verified). nuramesh try exits with code 0 when every task is done and with 1 when a task is not. nuramesh status --team my-team then shows unfinished runs: 0.

A run without --fake calls the models your roles name. It must state what data it sends and the spending cap you accept, with --data and --confirm-cap. Connect a model first: Connect a model. The run budget is the hard stop: Set a hard budget.

You see Do this
A task is verifying with note: waiting for a human and the exit code is 1 Nobody answered a human gate. Run again with a new run id and --approve-as human:you or --interactive --human human:you
A task is needs_human with note: budget hard stop A budget could not pay for the next call. See Set a hard budget
A task is needs_human with note: policy refused The agent’s role has no rule that allows the action. See Autonomy policies
Tasks are cancelled A task they depend on did not reach done. Fix that task and run again
A test gate refuses to run No container runtime was found. See Run in a sandbox

Was this page helpful?