DSE Loop: Autonomous Design Space Exploration
🔁 Do not wrap this skill in /loop / CronCreate. It already loops
internally until its objective is met or it times out. Unlike the
verdict-bearing review/audit skills, its stop gate is an objective
machine-checkable metric (Type-A), so its self-termination is safe
same-model — the reason not to wrap it is scheduler duplication, not the
verdict fence. See
shared-references/external-cadence.md.
Autonomously explore a design space: run → analyze → pick next parameters → repeat, until the objective is met or timeout is reached. Designed for computer architecture and EDA problems.
Context: $ARGUMENTS
Safety Rules — READ FIRST
NEVER do any of the following:
sudo anything
rm -rf, rm -r, or any recursive deletion
rm any file you did not create in this session
- Overwrite existing source files without reading them first
git push, git reset --hard, or any destructive git operation
- Kill processes you did not start
If a step requires any of the above, STOP and report to the user.
Constants (override via $ARGUMENTS)
| Constant |
Default |
Description |
TIMEOUT |
2h |
Total wall-clock budget. Stop exploring after this. |
MAX_ITERATIONS |
50 |
Hard cap on number of design points evaluated. |
PATIENCE |
10 |
Stop early if no improvement for this many consecutive iterations. |
OBJECTIVE |
minimize |
minimize or maximize the target metric. |
Override inline: /dse-loop "task desc — timeout: 4h, max_iterations: 100, patience: 15"
Typical Use Cases
| Problem |
Program |
Parameters |
Objective |
| Microarch DSE |
gem5 simulation |
cache size, assoc, pipeline width, ROB size, branch predictor |
maximize IPC or minimize area×delay |
| Synthesis tuning |
yosys/DC script |
optimization passes, target freq, effort level |
minimize area at timing closure |
| RTL parameterization |
verilator sim |
data width, FIFO depth, pipeline stages, buffer sizes |
meet throughput target at min area |
| Compiler flags |
gcc/llvm build + benchmark |
-O levels, unroll factor, vectorization, scheduling |
minimize runtime or code size |
| Placement/routing |
openroad/innovus |
utilization, aspect ratio, layer config |
minimize wirelength / timing |
| Formal verification |
abc/sby |
bound depth, engine, timeout per property |
maximize coverage in time budget |
| Memory subsystem |
cacti / ramulator |
bank count, row buffer policy, scheduling |
optimize bandwidth/energy |
Workflow
Phase 0: Parse Task & Setup
Parse $ARGUMENTS to extract:
- Program: what to run (command, script, or Makefile target)
- Parameter space: which knobs to tune and their ranges/options (may be incomplete — see step 2)
- Objective metric: what to optimize (and how to extract it from output)
- Constraints: hard limits that must not be violated (e.g., timing must close)
- Timeout: wall-clock budget
- Success criteria: when is the result "good enough" to stop early?
Infer missing parameter ranges — If the user provides parameter names but NOT ranges/options, you MUST infer them before exploring:
a. Read the source code — search for the parameter names in the codebase:
- Look for argparse/click definitions, config files, Makefile variables, module parameters,
#define, parameter (SystemVerilog), localparam, etc.
- Extract defaults, types, and any comments hinting at valid values
b. Apply domain knowledge to set reasonable ranges:
| Parameter type |
Inference strategy |
| Cache/memory sizes |
Powers of 2, typically 1KB–16MB |
| Associativity |
Powers of 2: 1, 2, 4, 8, 16 |
| Pipeline width / issue width |
Small integers: 1, 2, 4, 8 |
| Buffer/queue/FIFO depth |
Powers of 2: 4, 8, 16, 32, 64 |
| Clock period / frequency |
Based on technology node; try ±50% from default |
| Bound depth (BMC/formal) |
Geometric: 5, 10, 20, 50, 100 |
| Timeout values |
Geometric: 10s, 30s, 60s, 120s, 300s |
| Boolean/enum flags |
Enumerate all options found in source |
| Continuous (learning rate, threshold) |
Log-scale sweep: 5 points spanning 2 orders of magnitude around default |
| Integer counts (threads, cores) |
Linear: from 1 to hardware max |
c. Start conservative — begin with 3-5 values per parameter. Expand range later if the best result is at a boundary.
d. Log inferred ranges — write the inferred parameter space to dse_results/inferred_params.md so the user can review:
# Inferred Parameter Space
| Parameter | Source | Default | Inferred Range | Reasoning |
|-----------|--------|---------|---------------|-----------|
| CACHE_SIZE | config.py:42 | 32768 | [8192, 16384, 32768, 65536, 131072] | powers of 2, ±2x from default |
| ASSOC | config.py:43 | 4 | [1, 2, 4, 8] | standard associativities |
| BMC_DEPTH | run_bmc.py:15 | 10 | [5, 10, 20, 50] | geometric, common BMC depths |
e. Boundary expansion — during the search, if the best result is at the min or max of a range, automatically extend that range by one step in that direction (but log the extension).
Read the project to understand:
- How to run the program
- Where results are produced (stdout, log files, reports)
- How to parse the objective metric from output
- Current/baseline configuration (if any)
Create working directory: dse_results/ in project root
dse_results/dse_log.csv — one row per design point
dse_results/DSE_REPORT.md — final report
dse_results/DSE_STATE.json — state for recovery
dse_results/inferred_params.md — inferred parameter space (if ranges were not provided)
dse_results/configs/ — config files for each run
dse_results/outputs/ — raw output for each run
Write a parameter extraction script (dse_results/parse_result.py or similar) that takes a run's output and returns the objective metric as a number. Test it on a baseline run first.
Run baseline (iteration 0): run the program with default/current parameters. Record the baseline metric. This is the point to beat.
Phase 1: Initial Exploration
Goal: Quickly survey the space to understand which parameters matter most.
Strategy: Latin Hypercube Sampling or structured sweep of key parameters.
- Pick 5-10 diverse design points that span the parameter ranges
- Run them (in parallel if independent, via background processes or sequential)
- Record all results in
dse_log.csv:iteration,param1,param2,...,metric,constraint_met,timestamp,notes
0,default,default,...,baseline_val,yes,2026-03-13T10:00:00,baseline
1,val1a,val2a,...,result1,yes,2026-03-13T10:05:00,initial sweep
...
- Analyze: which parameters have the most impact on the objective?
- Narrow the search to the most sensitive parameters
Phase 2: Directed Search
Goal: Converge toward the optimum by making informed choices.
Strategy: Adaptive — pick the approach that fits the problem:
- Few parameters (≤3): Fine-grained grid search around the best region from Phase 1
- Many parameters (>3): Coordinate descent — optimize one parameter at a time, holding others at current best
- Binary/categorical params: Enumerate promising combinations
- Continuous params: Binary search or golden section between best neighbors
- Multi-objective: Track Pareto frontier, explore along the front
For each iteration:
Select next design point based on results so far:
- Look at the trend: which direction improves the metric?
- Avoid re-running configurations already evaluated
- Balance exploration (untested regions) vs exploitation (near current best)
Modify parameters: edit config file, command-line args, or source constants
Run the program: execute and capture output
Parse results: extract the objective metric and check constraints
Log to dse_log.csv: append the new row
Check stopping conditions:
- Timeout reached? → stop
- Max iterations reached? → stop
- Patience exhausted (no improvement in N iterations)? → stop
- Success criteria met (metric is "good enough")? → stop
- Constraint violation pattern detected? → adjust search bounds
Update DSE_STATE.json:
{
"iteration": 15,
"status": "in_progress",
"best_metric": 1.23,
"best_params": {"cache_size": 32768, "assoc": 4, "pipeline_width": 2},
"total_iterations": 15,
"start_time": "2026-03-13T10:00:00",
"timeout": "2h",
"patience_counter": 3
}
Decide next step → back to step 1
Phase 3: Refinement (if time allows)
If the search converged and there's still time budget:
- Local perturbation: try ±1 step on each parameter from the best point
- Sensitivity analysis: which parameters can be relaxed without hurting the metric?
- Constraint boundary: if a constraint is nearly binding, explore near-feasible points
Phase 4: Report
Write dse_results/DSE_REPORT.md:
# Design Space Exploration Report
**Task**: [description]
**Date**: [start] → [end]
**Total iterations**: N
**Wall-clock time**: X hours Y minutes
## Objective
- **Metric**: [what was optimized]
- **Direction**: minimize / maximize
- **Baseline**: [value]
- **Best found**: [value] ([improvement]% better than baseline)
## Best Configuration
| Parameter | Baseline | Best |
|-----------|----------|------|
| param1 | default | best_val |
| param2 | default | best_val |
| ... | ... | ... |
## Search Trajectory
| Iteration | param1 | param2 | ... | Metric | Notes |
|-----------|--------|--------|-----|--------|-------|
| 0 (baseline) | ... | ... | ... | ... | baseline |
| 1 | ... | ... | ... | ... | initial sweep |
| ... | ... | ... | ... | ... | ... |
| N (best) | ... | ... | ... | ... | ★ best |
## Parameter Sensitivity
- **param1**: [high/medium/low impact] — [brief explanation]
- **param2**: [high/medium/low impact] — [brief explanation]
## Pareto Frontier (if multi-objective)
[Table or description of non-dominated points]
## Stopping Reason
[timeout / max_iterations / patience / success_criteria_met]
## Recommendations
- [actionable insights from the exploration]
- [which parameters matter most]
- [suggested follow-up explorations]
Also generate a summary plot if matplotlib is available:
- Convergence curve (metric vs iteration)
- Parameter sensitivity bar chart
- Pareto frontier scatter (if multi-objective)
State Recovery
If the context window compacts mid-run, the loop recovers from DSE_STATE.json + dse_log.csv:
- Read
DSE_STATE.json for current iteration, best params, patience counter
- Read
dse_log.csv for full history
- Resume from next iteration
Key Rules
- Work AUTONOMOUSLY — do not ask the user for permission at each iteration
- Every run must be logged — even failed runs, constraint violations, errors. The log is the ground truth.
- Never re-run an identical configuration — check
dse_log.csv before each run
- Respect the timeout — check elapsed time before starting a new iteration. If the next run is likely to exceed the timeout, stop and report.
- Parse metrics programmatically — write a parsing script, don't eyeball logs
- Keep raw outputs — save each run's full output in
dse_results/outputs/iter_N/
- Constraint violations are not improvements — a design point that violates constraints is never "best", regardless of the metric
- If a run crashes, log the error, skip that point, and continue with the next
- If the same crash repeats 3 times with different configs, the harness code itself is
the suspect — discard and reimplement the run/parse script cleanly from the spec
(a peer move to another patch; delete only the script, never
dse_log.csv /
dse_results/; see shared-references/external-cadence.md § Let a broken attempt
restart, not just patch). Before resuming the sweep, re-validate metric
comparability: re-parse one COMPLETED iteration's raw output from
dse_results/outputs/iter_N/ with the new parser and confirm it reproduces that row of
dse_log.csv; on mismatch, either fix the parser or re-parse and flag all affected
rows — never mix two parsing semantics in one log. If a clean reimplement crashes the
same way, stop and report — the spec or the environment is then in question, which is
what needs the human
Example Invocations
# Minimal — just name the parameters, let the agent figure out ranges
/dse-loop "Run gem5 mcf benchmark. Tune: L1D_SIZE, L2_SIZE, ROB_ENTRIES. Objective: maximize IPC. Timeout: 3h"
# Partial — some ranges given, some not
/dse-loop "Run make synth. Tune: CLOCK_PERIOD [5ns, 4ns, 3ns, 2ns], FLATTEN, ABC_SCRIPT. Objective: minimize area at timing closure. Timeout: 1h"
# Fully specified — explicit ranges for everything
/dse-loop "Simulate processor with FIFO_DEPTH [4,8,16,32], ISSUE_WIDTH [1,2,4], PREFETCH [on,off]. Run: make sim. Objective: max throughput/area. Timeout: 2h"
# Real-world: PDAG-SFA formal verification tuning
/dse-loop "Run python run_bmc.py. Tune: BMC_DEPTH, ENGINE, TIMEOUT_PER_PROP. Objective: maximize properties proved. Timeout: 2h"
1---2name: dse-loop3description: Autonomous design space exploration loop for computer architecture and EDA. Runs a program, analyzes results, tunes parameters, and iterates until objective is met or timeout. Use when user says "DSE", "design space exploration", "sweep parameters", "optimize", "find best config", or wants iterative parameter tuning.4---5
6# DSE Loop: Autonomous Design Space Exploration
7
8> 🔁 **Do not wrap this skill in `/loop` / `CronCreate`.** It already loops
9> internally until its objective is met or it times out. Unlike the
10> verdict-bearing review/audit skills, its stop gate is an **objective
11> machine-checkable metric** (Type-A), so its self-termination is safe
12> same-model — the reason not to wrap it is **scheduler duplication**, not the
13> verdict fence. See
14> [`shared-references/external-cadence.md`](../shared-references/external-cadence.md).
15
16Autonomously explore a design space: run → analyze → pick next parameters → repeat, until the objective is met or timeout is reached. Designed for computer architecture and EDA problems.
17
18## Context: $ARGUMENTS
19
20## Safety Rules — READ FIRST
21
22**NEVER do any of the following:**
23- `sudo` anything
24- `rm -rf`, `rm -r`, or any recursive deletion
25- `rm` any file you did not create in this session
26- Overwrite existing source files without reading them first
27- `git push`, `git reset --hard`, or any destructive git operation
28- Kill processes you did not start
29
30**If a step requires any of the above, STOP and report to the user.**
31
32## Constants (override via $ARGUMENTS)
33
34| Constant | Default | Description |
35|----------|---------|-------------|
36| `TIMEOUT` | 2h | Total wall-clock budget. Stop exploring after this. |
37| `MAX_ITERATIONS` | 50 | Hard cap on number of design points evaluated. |
38| `PATIENCE` | 10 | Stop early if no improvement for this many consecutive iterations. |
39| `OBJECTIVE` | minimize | `minimize` or `maximize` the target metric. |
40
41Override inline: `/dse-loop "task desc — timeout: 4h, max_iterations: 100, patience: 15"`
42
43## Typical Use Cases
44
45| Problem | Program | Parameters | Objective |
46|---------|---------|-----------|-----------|
47| Microarch DSE | gem5 simulation | cache size, assoc, pipeline width, ROB size, branch predictor | maximize IPC or minimize area×delay |
48| Synthesis tuning | yosys/DC script | optimization passes, target freq, effort level | minimize area at timing closure |
49| RTL parameterization | verilator sim | data width, FIFO depth, pipeline stages, buffer sizes | meet throughput target at min area |
50| Compiler flags | gcc/llvm build + benchmark | -O levels, unroll factor, vectorization, scheduling | minimize runtime or code size |
51| Placement/routing | openroad/innovus | utilization, aspect ratio, layer config | minimize wirelength / timing |
52| Formal verification | abc/sby | bound depth, engine, timeout per property | maximize coverage in time budget |
53| Memory subsystem | cacti / ramulator | bank count, row buffer policy, scheduling | optimize bandwidth/energy |
54
55## Workflow
56
57### Phase 0: Parse Task & Setup
58
591. **Parse $ARGUMENTS** to extract:
60 - **Program**: what to run (command, script, or Makefile target)
61 - **Parameter space**: which knobs to tune and their ranges/options (may be incomplete — see step 2)
62 - **Objective metric**: what to optimize (and how to extract it from output)
63 - **Constraints**: hard limits that must not be violated (e.g., timing must close)
64 - **Timeout**: wall-clock budget
65 - **Success criteria**: when is the result "good enough" to stop early?
66
672. **Infer missing parameter ranges** — If the user provides parameter names but NOT ranges/options, you MUST infer them before exploring:
68
69 a. **Read the source code** — search for the parameter names in the codebase:
70 - Look for argparse/click definitions, config files, Makefile variables, module parameters, `#define`, `parameter` (SystemVerilog), `localparam`, etc.
71 - Extract defaults, types, and any comments hinting at valid values
72
73 b. **Apply domain knowledge** to set reasonable ranges:
74 | Parameter type | Inference strategy |
75 |---------------|-------------------|
76 | Cache/memory sizes | Powers of 2, typically 1KB–16MB |
77 | Associativity | Powers of 2: 1, 2, 4, 8, 16 |
78 | Pipeline width / issue width | Small integers: 1, 2, 4, 8 |
79 | Buffer/queue/FIFO depth | Powers of 2: 4, 8, 16, 32, 64 |
80 | Clock period / frequency | Based on technology node; try ±50% from default |
81 | Bound depth (BMC/formal) | Geometric: 5, 10, 20, 50, 100 |
82 | Timeout values | Geometric: 10s, 30s, 60s, 120s, 300s |
83 | Boolean/enum flags | Enumerate all options found in source |
84 | Continuous (learning rate, threshold) | Log-scale sweep: 5 points spanning 2 orders of magnitude around default |
85 | Integer counts (threads, cores) | Linear: from 1 to hardware max |
86
87 c. **Start conservative** — begin with 3-5 values per parameter. Expand range later if the best result is at a boundary.
88
89 d. **Log inferred ranges** — write the inferred parameter space to `dse_results/inferred_params.md` so the user can review:
90 ```markdown
91 # Inferred Parameter Space
92
93 | Parameter | Source | Default | Inferred Range | Reasoning |
94 |-----------|--------|---------|---------------|-----------|
95 | CACHE_SIZE | config.py:42 | 32768 | [8192, 16384, 32768, 65536, 131072] | powers of 2, ±2x from default |
96 | ASSOC | config.py:43 | 4 | [1, 2, 4, 8] | standard associativities |
97 | BMC_DEPTH | run_bmc.py:15 | 10 | [5, 10, 20, 50] | geometric, common BMC depths |
98 ```
99
100 e. **Boundary expansion** — during the search, if the best result is at the min or max of a range, automatically extend that range by one step in that direction (but log the extension).
101
1023. **Read the project** to understand:
103 - How to run the program
104 - Where results are produced (stdout, log files, reports)
105 - How to parse the objective metric from output
106 - Current/baseline configuration (if any)
107
1084. **Create working directory**: `dse_results/` in project root
109 - `dse_results/dse_log.csv` — one row per design point
110 - `dse_results/DSE_REPORT.md` — final report
111 - `dse_results/DSE_STATE.json` — state for recovery
112 - `dse_results/inferred_params.md` — inferred parameter space (if ranges were not provided)
113 - `dse_results/configs/` — config files for each run
114 - `dse_results/outputs/` — raw output for each run
115
1165. **Write a parameter extraction script** (`dse_results/parse_result.py` or similar) that takes a run's output and returns the objective metric as a number. Test it on a baseline run first.
117
1186. **Run baseline** (iteration 0): run the program with default/current parameters. Record the baseline metric. This is the point to beat.
119
120### Phase 1: Initial Exploration
121
122**Goal**: Quickly survey the space to understand which parameters matter most.
123
124**Strategy**: Latin Hypercube Sampling or structured sweep of key parameters.
125
1261. Pick 5-10 diverse design points that span the parameter ranges
1272. Run them (in parallel if independent, via background processes or sequential)
1283. Record all results in `dse_log.csv`:
129 ```
130 iteration,param1,param2,...,metric,constraint_met,timestamp,notes
131 0,default,default,...,baseline_val,yes,2026-03-13T10:00:00,baseline
132 1,val1a,val2a,...,result1,yes,2026-03-13T10:05:00,initial sweep
133 ...
134 ```
1354. Analyze: which parameters have the most impact on the objective?
1365. Narrow the search to the most sensitive parameters
137
138### Phase 2: Directed Search
139
140**Goal**: Converge toward the optimum by making informed choices.
141
142**Strategy**: Adaptive — pick the approach that fits the problem:
143
144- **Few parameters (≤3)**: Fine-grained grid search around the best region from Phase 1
145- **Many parameters (>3)**: Coordinate descent — optimize one parameter at a time, holding others at current best
146- **Binary/categorical params**: Enumerate promising combinations
147- **Continuous params**: Binary search or golden section between best neighbors
148- **Multi-objective**: Track Pareto frontier, explore along the front
149
150For each iteration:
151
1521. **Select next design point** based on results so far:
153 - Look at the trend: which direction improves the metric?
154 - Avoid re-running configurations already evaluated
155 - Balance exploration (untested regions) vs exploitation (near current best)
156
1572. **Modify parameters**: edit config file, command-line args, or source constants
158
1593. **Run the program**: execute and capture output
160
1614. **Parse results**: extract the objective metric and check constraints
162
1635. **Log to `dse_log.csv`**: append the new row
164
1656. **Check stopping conditions**:
166 - Timeout reached? → stop
167 - Max iterations reached? → stop
168 - Patience exhausted (no improvement in N iterations)? → stop
169 - Success criteria met (metric is "good enough")? → stop
170 - Constraint violation pattern detected? → adjust search bounds
171
1727. **Update `DSE_STATE.json`**:
173 ```json
174 {
175 "iteration": 15,
176 "status": "in_progress",
177 "best_metric": 1.23,
178 "best_params": {"cache_size": 32768, "assoc": 4, "pipeline_width": 2},
179 "total_iterations": 15,
180 "start_time": "2026-03-13T10:00:00",
181 "timeout": "2h",
182 "patience_counter": 3
183 }
184 ```
185
1868. **Decide next step** → back to step 1
187
188### Phase 3: Refinement (if time allows)
189
190If the search converged and there's still time budget:
191
1921. **Local perturbation**: try ±1 step on each parameter from the best point
1932. **Sensitivity analysis**: which parameters can be relaxed without hurting the metric?
1943. **Constraint boundary**: if a constraint is nearly binding, explore near-feasible points
195
196### Phase 4: Report
197
198Write `dse_results/DSE_REPORT.md`:
199
200```markdown
201# Design Space Exploration Report
202
203**Task**: [description]
204**Date**: [start] → [end]
205**Total iterations**: N
206**Wall-clock time**: X hours Y minutes
207
208## Objective
209- **Metric**: [what was optimized]
210- **Direction**: minimize / maximize
211- **Baseline**: [value]
212- **Best found**: [value] ([improvement]% better than baseline)
213
214## Best Configuration
215| Parameter | Baseline | Best |
216|-----------|----------|------|
217| param1 | default | best_val |
218| param2 | default | best_val |
219| ... | ... | ... |
220
221## Search Trajectory
222| Iteration | param1 | param2 | ... | Metric | Notes |
223|-----------|--------|--------|-----|--------|-------|
224| 0 (baseline) | ... | ... | ... | ... | baseline |
225| 1 | ... | ... | ... | ... | initial sweep |
226| ... | ... | ... | ... | ... | ... |
227| N (best) | ... | ... | ... | ... | ★ best |
228
229## Parameter Sensitivity
230- **param1**: [high/medium/low impact] — [brief explanation]
231- **param2**: [high/medium/low impact] — [brief explanation]
232
233## Pareto Frontier (if multi-objective)
234[Table or description of non-dominated points]
235
236## Stopping Reason
237[timeout / max_iterations / patience / success_criteria_met]
238
239## Recommendations
240- [actionable insights from the exploration]
241- [which parameters matter most]
242- [suggested follow-up explorations]
243```
244
245Also generate a summary plot if matplotlib is available:
246- Convergence curve (metric vs iteration)
247- Parameter sensitivity bar chart
248- Pareto frontier scatter (if multi-objective)
249
250## State Recovery
251
252If the context window compacts mid-run, the loop recovers from `DSE_STATE.json` + `dse_log.csv`:
253
2541. Read `DSE_STATE.json` for current iteration, best params, patience counter
2552. Read `dse_log.csv` for full history
2563. Resume from next iteration
257
258## Key Rules
259
260- Work AUTONOMOUSLY — do not ask the user for permission at each iteration
261- **Every run must be logged** — even failed runs, constraint violations, errors. The log is the ground truth.
262- **Never re-run an identical configuration** — check `dse_log.csv` before each run
263- **Respect the timeout** — check elapsed time before starting a new iteration. If the next run is likely to exceed the timeout, stop and report.
264- **Parse metrics programmatically** — write a parsing script, don't eyeball logs
265- **Keep raw outputs** — save each run's full output in `dse_results/outputs/iter_N/`
266- **Constraint violations are not improvements** — a design point that violates constraints is never "best", regardless of the metric
267- If a run crashes, log the error, skip that point, and continue with the next
268- If the same crash repeats 3 times with different configs, the harness code itself is
269 the suspect — **discard and reimplement the run/parse script cleanly from the spec**
270 (a peer move to another patch; delete only the script, never `dse_log.csv` /
271 `dse_results/`; see `shared-references/external-cadence.md` § *Let a broken attempt
272 restart, not just patch*). **Before resuming the sweep, re-validate metric
273 comparability**: re-parse one COMPLETED iteration's raw output from
274 `dse_results/outputs/iter_N/` with the new parser and confirm it reproduces that row of
275 `dse_log.csv`; on mismatch, either fix the parser or re-parse and flag all affected
276 rows — never mix two parsing semantics in one log. If a clean reimplement crashes the
277 same way, stop and report — the spec or the environment is then in question, which is
278 what needs the human
279
280## Example Invocations
281
282```
283# Minimal — just name the parameters, let the agent figure out ranges
284/dse-loop "Run gem5 mcf benchmark. Tune: L1D_SIZE, L2_SIZE, ROB_ENTRIES. Objective: maximize IPC. Timeout: 3h"
285
286# Partial — some ranges given, some not
287/dse-loop "Run make synth. Tune: CLOCK_PERIOD [5ns, 4ns, 3ns, 2ns], FLATTEN, ABC_SCRIPT. Objective: minimize area at timing closure. Timeout: 1h"
288
289# Fully specified — explicit ranges for everything
290/dse-loop "Simulate processor with FIFO_DEPTH [4,8,16,32], ISSUE_WIDTH [1,2,4], PREFETCH [on,off]. Run: make sim. Objective: max throughput/area. Timeout: 2h"
291
292# Real-world: PDAG-SFA formal verification tuning
293/dse-loop "Run python run_bmc.py. Tune: BMC_DEPTH, ENGINE, TIMEOUT_PER_PROP. Objective: maximize properties proved. Timeout: 2h"
294```