| doc-type | reference | ||||
|---|---|---|---|---|---|
| title | ace-sim Usage Reference | ||||
| purpose | Complete CLI reference for simulation runs and command behavior | ||||
| ace-docs |
|
ace-sim runs provider simulations through configurable steps and presets.
ace-sim— entrypointace-sim run— run a simulation preset with one or more source filesace-sim --help— print command list and examples
Shows command examples and the run subcommand.
ace-sim run [OPTIONS]Execute a preset-driven simulation with source files, provider list, and optional final synthesis.
| Option | Type | Default / Source | Description |
|---|---|---|---|
--preset |
string | config sim.default_preset or validate-idea |
Preset name from `.ace/sim/presets/*.yml |
--source |
array | preset source |
One or more source files (repeatable, supports globs) |
--steps |
string | preset steps | Comma-separated step names (override preset step list) |
--provider |
array | preset providers | Provider:model values (--provider may repeat) |
--repeat |
integer | sim default repeat (or 1) |
Run each provider this many times |
--synthesis-workflow |
string | preset / config | Workflow/file ref for final synthesis |
--synthesis-provider |
string | preset / config provider | Provider for final suggestions generation |
--dry-run |
flag | preset / false | Prepare and preview without mutating providers |
--writeback |
flag | preset / false | Write final revised source back to source when set |
--quiet, -q |
flag | false | Suppress non-essential status output |
--verbose, -v |
flag | false | Print extended diagnostics |
--help, -h |
flag | false | Show command help |
-
Presets are resolved by name.
-
Preset loading precedence for files is:
- gem defaults (
.ace-defaults/sim/presets) - user presets (
~/.ace/sim/presets) - project presets (
.ace/sim/presets)
- gem defaults (
-
File extensions:
.ymland.yaml.
If a preset is missing but known, fallback behavior is an empty preset with default steps and the system-level defaults for provider/repeat behavior.
Each requested step is resolved in this order:
.ace/sim/steps/<step>.md~/.ace/sim/steps/<step>.md.ace-defaults/sim/steps/<step>.md
Run fails with Missing step config if a required step file is not found.
- If
--synthesis-provideris passed, that provider is used for final synthesis. - If not passed, synthesis defaults use: preset
synthesis_provider, then global configsim.synthesis_provider. --synthesis-providerrequires--synthesis-workflowto be set.--dry-runis a non-mutating preview and cannot be combined with--writeback.synthesis.ymlalways records the final-stage outcome. External provider failures are recorded asfinal_stage.status: failed; callers should treat this as run evidence, not synthesize placeholder artifacts.
Run output lives under .ace-local/sim/simulations/<run-id>/.
Run root:
session.yml— simulation session metadatasynthesis.yml— final synthesis status and summariesinput.md— bundled source content used for provider executioninput.bundle.md— source bundle manifest generated before execution
Per chain (<provider>-<iteration>):
NN-step/input.md— effective input for that stepNN-step/user.bundle.md— step bundle for LLM promptNN-step/user.prompt.md— resolved prompt fileNN-step/output.md— provider output for that step
Final directory:
final/input.md— combined chain outputsfinal/user.bundle.md— final synthesis bundlefinal/user.prompt.md— final synthesis promptfinal/output.sequence.md— raw LLM output sequencefinal/suggestions.report.md— parsed suggestions blockfinal/source.original.md— original source snapshotfinal/source.revised.md— revised source output (if synthesis enabled)
- Steps run sequentially within each chain — each step's output becomes the next step's input, so later steps build on earlier reasoning.
draft,plan,workare common defaults; custom step order is supported via--steps.- After all chains complete, the synthesis stage gathers feedback from every stage to propose improvements and produce a revised source artifact.
- Synthesis is optional; enable via preset or explicit
--synthesis-workflow. --dry-rundoes not perform provider calls and should be verified via recorded run metadata/artifacts instead of provider output files.
ace-sim uses the fast / feat / e2e testing model:
ace-test ace-sim- default deterministic fast suiteace-test ace-sim feat- deterministic feature-contract suite (when present)ace-test ace-sim all- aggregate deterministic suitesace-test-e2e ace-sim- scenario workflow suite undertest/e2e
Unknown preset:- verify preset exists under one of
.ace-defaults/sim/presets,~/.ace/sim/presets, or.ace/sim/presets
- verify preset exists under one of
Missing step config:- verify step bundles exist in step search path above
--source is required:- provide source files directly or via preset defaults
synthesis_provider requires synthesis_workflow:- include both flags together when overriding synthesis provider