Index
commands
¶
Functions:¶
compile_scores
¶
compile_scores(config=Argument(None, help='Path to the compiler config YAML file.'), preset=Option(None, '--preset', help="Built-in compiler preset to use, such as 'generic-fleet'."), workspace=Option(None, '--workspace', help='Workspace for a built-in preset. Defaults to .marianne/workspaces/<preset> under the current directory.'), output=Option(None, '--output', '-o', help='Output directory for generated score files. Defaults to <workspace>/scores when workspace is configured, otherwise scores/ next to the config file.'), agents_dir=Option(None, '--agents-dir', help='Directory for agent identity stores. Defaults to ~/.marianne/agents/.'), fleet=Option(False, '--fleet', help='Force fleet config generation even for a single agent.'), seed_only=Option(False, '--seed-only', help='Create agent identity stores without generating scores.'), dry_run=Option(False, '--dry-run', help='Show compilation summary without writing files.'), pause_before_chain=Option(False, '--pause-before-chain', help='Emit generated on_success hooks that pause before starting the next self-chain cycle.'), job_prefix=Option(None, '--job-prefix', help='Prefix generated score filenames and conductor job IDs, while leaving agent identity names unchanged.'))
Compile semantic agent definitions into Marianne scores.
Reads a YAML config that defines agents as people (voice, focus, techniques, instruments) and produces complete Marianne score YAML for each agent, plus identity directories and fleet configs.
Source code in src/marianne/cli/commands/compile.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
next_actions
¶
next_actions(mine=Option(None, '--mine', help='Only jobs whose id starts with this prefix'), since=Option(_DEFAULT_SINCE_HOURS, '--since', min=0, help='Ignore finished jobs that ended more than this many hours ago (default 24; 0 = no limit)'), idle_after=Option(None, '--idle-after', min=1, help="Seconds without activity before a running job is UNSTICK (default: the score's stale_detection timeout, else its sheet timeout)"), tasks=Option(None, '--tasks', help='Also list TASK*.md files in this directory that no job is bound to (by the task hash in the job id `mzt agents run` makes) as CAST rows'), json_output=Option(False, '--json', '-j', help='Output a JSON array (no ANSI)'))
List what needs attention across jobs: one action per job, most urgent first.
Actions: ESCALATE (a human must decide: failed, cancelled, paused at a
fermata), UNSTICK (a running sheet has gone quiet), JUDGE (completed, not
yet judged), CAST (with --tasks: a TASK*.md file has no job yet; the row
carries task), WAIT (still running), DONE (completed and judged). An
empty queue is one DONE row with a null job_id. Judged state is the marker
that mzt verdict --accept writes in the job's workspace.
Examples:
mzt next --json mzt next --mine legion- --json mzt next --tasks . --json
Source code in src/marianne/cli/commands/conduct.py
verdict
¶
verdict(job_id=Argument(..., help="The score's run id (job id) to read the verdict of"), pattern=Option(DEFAULT_VERDICT_PATTERN, '--pattern', help="Regex for a verdict line; group 'word' (or group 1) is the verdict word. Default matches 'VERDICT: <word>' lines."), workspace=Option(None, '--workspace', '-w', help='Read this workspace directly instead of asking the conductor for it'), accept=Option(False, '--accept', '--judged', help='Record this job as judged so `mzt next` stops saying JUDGE (accepted, or sent back for rework). Written to .mzt-judged.json in the workspace.'), json_output=Option(False, '--json', '-j', help='Output one JSON object (no ANSI)'))
Read a score's review verdict as PASS, REWORK, BLOCKED or unknown.
Finds the newest review/inspect artifact in the score's workspace that has
a 'VERDICT:' line and maps its word: PASS/APPROVE/ACCEPT -> PASS,
REWORK/REJECT -> REWORK, HOLD/BLOCK -> BLOCKED. Anything else, or no
such line, is unknown. The JSON also carries findings (the report's
FINDINGS bullets, else REQUIRED FIXES/FAILURES, else the bullets after a
non-PASS VERDICT line), accept ({ran, passed} over the sheets'
validation results), result_path (the task's REPORT file in the
workspace) and round (2 when the task file has a FINDINGS: line, else
1; null when the job has no mzt agents run task file).
Examples:
mzt verdict my-job --json mzt verdict my-job --accept --json
Source code in src/marianne/cli/commands/conduct.py
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 | |
wait
¶
wait(job_id=Argument(..., help="The score's run id (job id) to wait for"), max_seconds=Option(_WAIT_DEFAULT_MAX, '--max', '-m', min=0, help='Give up after this many seconds and report wait_expired (default 1800)'), json_output=Option(False, '--json', '-j', help='Output one JSON object (no ANSI)'))
Block until a score is finished or needs a human decision.
Returns one of four states: done, needs_you, conductor_down, wait_expired. Exit codes: 0 done, 2 needs_you, 3 conductor_down, 4 wait_expired (1 is an error such as an unknown score). Rate limits, retries and fallbacks happen inside the conductor and do not end the wait.
Examples:
mzt wait my-job --json mzt wait my-job --max 600 --json
Source code in src/marianne/cli/commands/conduct.py
errors
¶
errors(job_id=Argument(..., help="The score's run id (job id) to show errors for"), sheet=Option(None, '--sheet', '-b', help='Filter errors by specific sheet number'), error_type=Option(None, '--type', '-t', help='Filter by error type: transient, rate_limit, or permanent'), error_code=Option(None, '--code', '-c', help='Filter by error code (e.g., E001, E101)'), verbose=Option(False, '--verbose', '-V', help='Show full stdout/stderr tails for each error'), workspace=Option(None, '--workspace', '-w', help='Workspace directory to search for score state (debug override)', hidden=True), json_output=Option(False, '--json', '-j', help='Output errors as JSON'))
List all errors for a score with detailed information.
Displays errors grouped by sheet, with color-coding by error type: - Red: Permanent errors (non-retriable, fatal) - Yellow: Transient errors (retriable with backoff) - Blue: Rate limit errors (retriable after wait)
Examples:
mzt errors my-job # Show all errors mzt errors my-job --sheet 3 # Errors for sheet 3 only mzt errors my-job --type transient # Only transient errors mzt errors my-job --code E001 # Only timeout errors mzt errors my-job --verbose # Show stdout/stderr details
Source code in src/marianne/cli/commands/diagnose.py
history
¶
history(job_id=Argument(..., help="The score's run id (job id) to show execution history for"), sheet=Option(None, '--sheet', '-b', help='Filter by specific sheet number'), limit=Option(50, '--limit', '-n', help='Maximum number of records to show'), workspace=Option(None, '--workspace', '-w', help='Workspace directory to search for score state (debug override)', hidden=True), json_output=Option(False, '--json', '-j', help='Output history as JSON'))
Show execution history for a score.
One row per attempt, newest first: sheet, attempt, instrument and model, outcome, exit code, duration, timestamp, and the redacted cause of a failure. Read from the score's checkpoint (the last 50 attempts per sheet), so it survives completion and conductor restarts.
Examples:
mzt history my-job # Show all history mzt history my-job --sheet 3 # History for sheet 3 only mzt history my-job --limit 100 # Show more records mzt history my-job --json # Machine-readable output
Source code in src/marianne/cli/commands/diagnose.py
logs
¶
logs(job_id=Argument(None, help="The score's run id (job id) to filter logs for (optional, shows all if not specified)"), workspace=Option(None, '--workspace', '-w', help='Workspace directory to find logs (debug override)', hidden=True), log_file=Option(None, '--file', '-f', help='Specific log file path (overrides workspace default)'), follow=Option(False, '--follow', '-F', help='Follow the log file for new entries (like tail -f)'), lines=Option(50, '--lines', '-n', help='Number of lines to show (0 for all)'), level=Option(None, '--level', '-l', help='Filter by minimum log level (DEBUG, INFO, WARNING, ERROR)'), json_output=Option(False, '--json', '-j', help='Output raw JSON log entries'))
Show or tail log files for a score.
Displays log entries from Marianne log files. Supports both current log files and compressed rotated logs (.gz).
Examples:
mzt logs # Show recent logs mzt logs my-job # Filter by job ID mzt logs --follow # Follow log file (like tail -f) mzt logs --lines 100 # Show last 100 lines mzt logs --level ERROR # Show only ERROR and above mzt logs --json # Output raw JSON entries
Note
Daemon-managed logs live under the conductor logging root by default. Use --file only for explicit offline/debug log files.
Source code in src/marianne/cli/commands/diagnose.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 | |
init
¶
init(score_name=Argument(None, help="Score name (e.g. 'my-project'). Same as --name."), path=Option('.', '--path', '-p', help='Directory to initialize (default: current directory)'), name=Option('my-score', '--name', '-n', help='Name for the starter score'), force=Option(False, '--force', '-f', help='Overwrite existing files'), json_output=Option(False, '--json', '-j', help='Output result as JSON'))
Scaffold a new Marianne project with a starter score.
Creates a starter score YAML and .marianne/ project directory. Edit the score with your task, then run it with the conductor.
Examples:
mzt init mzt init my-project mzt init --path ./my-project mzt init --name data-pipeline mzt init --force mzt init --json
Source code in src/marianne/cli/commands/init_cmd.py
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | |
modify
¶
modify(job_id=Argument(..., help="The score's run id (job id) to modify"), config=Option(..., '--config', '-c', help='New configuration file', exists=True, readable=True), resume_flag=Option(False, '--resume', '-r', help='Immediately resume with new config after pausing'), wait=Option(False, '--wait', help='Wait for score to pause before resuming (when --resume)'), timeout=Option(60, '--timeout', '-t', help='Timeout in seconds for pause acknowledgment'), json_output=Option(False, '--json', '-j', help='Output result as JSON'))
Apply a new configuration to a score and optionally resume execution.
This is a convenience command that combines pause + config update. If the score is running, it will be paused first. Use --resume to immediately resume with the new configuration.
Examples:
mzt modify my-job --config updated.yaml mzt modify my-job -c new-config.yaml --resume mzt modify my-job -c updated.yaml -r --wait
Source code in src/marianne/cli/commands/pause.py
clear_rate_limits
¶
clear_rate_limits(instrument=Option(None, '--instrument', '-i', help='Clear rate limit for a specific instrument only (e.g. claude-cli)'), json_output=Option(False, '--json', '-j', help='Output result as JSON'))
Clear stale rate limits on instruments.
When a backend rate limit expires but the conductor still has it cached, sheets may stay blocked unnecessarily. This command clears the cached limit so dispatch resumes immediately.
Clears both the rate limit coordinator (used by the scheduler) and the baton's per-instrument state (used by the dispatch loop).
Examples:
mzt clear-rate-limits # Clear all mzt clear-rate-limits -i claude-cli # Clear one instrument mzt clear-rate-limits --json # JSON output
Source code in src/marianne/cli/commands/rate_limits.py
clear
¶
clear(job=Option(None, '--score', '-j', help='Specific score ID(s) to clear. Can be repeated.'), status_filter=Option(None, '--status', '-s', help='Status(es) to clear: failed, completed, cancelled. Can be repeated. Defaults to all terminal statuses.'), older_than=Option(None, '--older-than', help='Only clear scores older than this many seconds.'), yes=Option(False, '--yes', '-y', help='Skip confirmation prompt.'))
Clear completed, failed, and cancelled scores from the conductor registry.
Removes completed, failed, and/or cancelled scores from the conductor's tracking. Running and queued scores are never cleared.
Examples:
mzt clear # Clear all terminal scores mzt clear --score conductor-fix # Clear a specific score mzt clear --status failed # Clear only failed scores mzt clear --status failed -s cancelled # Clear failed + cancelled mzt clear --older-than 3600 # Terminal scores older than 1h mzt clear -y # Skip confirmation
Source code in src/marianne/cli/commands/status.py
list_jobs
¶
list_jobs(all_jobs=Option(False, '--all', '-a', help='Show all scores including completed, failed, and cancelled'), status_filter=Option(None, '--status', '-s', help='Filter by score status (queued, running, completed, failed, paused)'), limit=Option(20, '--limit', '-l', help='Maximum number of terminal (completed/failed/cancelled) scores to display; live scores (queued, running, paused) are always all shown'), json_output=Option(False, '--json', help='Output as JSON array for machine parsing'), workspace=Option(None, '--workspace', '-w', help='Reserved for future per-workspace filtering.', hidden=True))
List scores from the conductor.
By default shows only active scores (queued, running, paused). Use --all to include completed, failed, and cancelled scores.