Skip to content

trackbed:code:optimize

(experimental) Run repeatable, metric-driven optimization experiments when a measurable outcome needs variants instead of guess-and-check.

/trackbed:code:optimize [spec.yaml | optimization goal] [--auto]

(experimental) Run metric-driven optimization experiments. Use when search relevance, clustering quality, prompt quality, build latency, ranking behavior, bundle size, or another measurable outcome needs repeatable variants instead of sequential guess-and-check. Requires a measurement command or judge rubric, persists baselines and experiment logs under .context/code-optimize/, and can use serial or worktree-isolated experiments. Not for ordinary one-shot performance fixes, implementation without a harness, or speculative optimization with no metric.