Skip to content

CLI

The package installs a mage command (released; same commands on the development line). In MAESTRO you normally use maestro generate instead, which calls MAGE with MAESTRO’s settings: see Generate, run and replay.

Terminal window
mage generate "Analyze a financial report" -o chain.json --no-memory # 0.2.0: v3
mage generate "Analyze a financial report" --strategy legacy --mode fast -o chain.json --no-memory
OptionDefaultNotes
--strategy, -sunset: the config default, v30.2.0 candidate only. v3, legacy (the fast/deep pipeline) or semantic; any other value exits with an error.
--mode, -mdeepfast or deep. Applies to legacy only; on 0.2.0 pass --strategy legacy.
--modelgpt-4o
--api-keyenv MAGE_API_KEY
--base-urlunsetAny OpenAI-compatible endpoint.
--temperature, -t0.2
--output, -ounsetWrite the chain JSON here; otherwise it is printed.
--no-memoryoffWithout it, MAGE tries to save the chain to GigaEvo Memory.
--skillsoffSkill discovery from the built-in skill registry (a legacy deep stage).
--skills-weboffLet skill discovery fall back to web search.
--benchmark-profileunsetAuthoring preset: bfcl, seal_tools, rotbench, toolalpaca, custom. Selects legacy unless --strategy is given.

The CLI builds MAGEConfig from these options only. It does not read MAGEConfig.from_env(), so MAGE_GENERATION_STRATEGY has no effect, the stage switches stay at their defaults, and the task is a plain string (no typed request). On 0.2.0 the strategy therefore comes from --strategy or the package default v3; on 0.1.3 and the revisions MAESTRO pins it is always legacy. The CLI passes no tool catalogue, so a v3 chain from mage generate uses no tools (v3 treats capabilities as a closed world).

Terminal window
mage edit "rename to 'Invoice QA'" --chain chain.json -o edited.json # local file, no Memory
mage edit "add a validation step" --id chain-abc123 --save # saved chain, new version
mage edit "also extract tables from the PDF summariser" # find the chain in Memory

Options: --id, --chain, --channel (latest), --save, --output, --model, --api-key, --base-url, --temperature. A failed edit leaves the original unchanged.

Terminal window
mage validate chain.json

Three layers: validate_carl_json (always), strict CARL types (--strict, on), ReasoningChain.from_json (--check-carl, on). --check-capabilities also looks up every agent_skill URI in Memory and warns on misses. Exit code 0 on success, 1 on failure.

Synthesizes a small benchmark for the task, generates a population of chains and mutates them for a few generations. Options include --population (5), --generations (4), --benchmark-tasks (8), --threshold (0.95), --plateau (2), --seed, --model, --execution-model, --memory/--no-memory, --web, --output, --benchmark-output.

This is MAGE’s own, older evolution loop. It always uses the legacy strategy, also on 0.2.0. MAESTRO evolves chains on the GigaEvo evolution platform instead: see Evolution.

Prints the installed version: mmar-mage 0.1.3 for the release, mmar-mage 0.2.0 on the development line.

mage version, mage validate and mage --help were run on feat/v3-ideal-loop (acf7091). On prep/mage-0.2.0 (5a38672), mage generate --help lists --strategy, and an unknown strategy exits with code 1 before any model call. generate, edit and evolve make paid model calls and were not run for this page.