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.
mage generate "<task>"
Section titled “mage generate "<task>"”mage generate "Analyze a financial report" -o chain.json --no-memory # 0.2.0: v3mage generate "Analyze a financial report" --strategy legacy --mode fast -o chain.json --no-memory| Option | Default | Notes |
|---|---|---|
--strategy, -s | unset: the config default, v3 | 0.2.0 candidate only. v3, legacy (the fast/deep pipeline) or semantic; any other value exits with an error. |
--mode, -m | deep | fast or deep. Applies to legacy only; on 0.2.0 pass --strategy legacy. |
--model | gpt-4o | |
--api-key | env MAGE_API_KEY | |
--base-url | unset | Any OpenAI-compatible endpoint. |
--temperature, -t | 0.2 | |
--output, -o | unset | Write the chain JSON here; otherwise it is printed. |
--no-memory | off | Without it, MAGE tries to save the chain to GigaEvo Memory. |
--skills | off | Skill discovery from the built-in skill registry (a legacy deep stage). |
--skills-web | off | Let skill discovery fall back to web search. |
--benchmark-profile | unset | Authoring 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).
mage edit "<instruction>"
Section titled “mage edit "<instruction>"”mage edit "rename to 'Invoice QA'" --chain chain.json -o edited.json # local file, no Memorymage edit "add a validation step" --id chain-abc123 --save # saved chain, new versionmage edit "also extract tables from the PDF summariser" # find the chain in MemoryOptions: --id, --chain, --channel (latest), --save, --output,
--model, --api-key, --base-url, --temperature. A failed edit leaves
the original unchanged.
mage validate <chain.json>
Section titled “mage validate <chain.json>”mage validate chain.jsonThree 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.
mage evolve "<task>"
Section titled “mage evolve "<task>"”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.
mage version
Section titled “mage version”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.