Factories > Measure & improve
Measure and improve a factory
Measure coding agent effectiveness and inform ROI decisions in Warp Factories with quality checks, cost, autonomy, and PR cycle time.
Use Warp Factories to assess coding agent effectiveness by comparing output quality, cost, and cycle time across configurations. Record results for the current configuration, test a proposed change on the same tasks, and compare the results before deciding what to keep. To assess return on investment (ROI), also consider the time people spend reviewing and correcting the output.
For example, suppose a verification run fails because its startup instructions omit a required build command. Revising those instructions changes how the factory verifies work, rather than changing the application. Compare the existing and revised instructions on the same tasks to check whether the revision resolves the startup failure without preventing the worker from completing the requested task. See improving a skill from observed failures.
Read metrics on the Dashboard page
Section titled “Read metrics on the Dashboard page”Use the Dashboard page to identify changes in activity, cost, and cycle time that need investigation. Review the underlying runs before attributing a change to a particular configuration.
| Metric | What it shows |
|---|---|
| Total runs | All agent runs, with breakdowns by agent type, status, source, model, and more. |
| PRs opened | Pull requests created from factory work, counted once, in the period they were first observed. |
| PRs merged | Pull requests opened in the selected period that later merged. Because opened and merged counts come from different data sources, the reported merged count can occasionally exceed the opened count for that period. |
| Autonomy | The share of the factory’s merged PRs that needed no human code push before merging. Opening the PR counts as a push, so a human-authored PR that a factory run later revised doesn’t count as autonomous. |
| PR cycle time | The median time the factory’s merged PRs took from run kickoff through PR, first review, and merge, with a median for each stage. |
| Cost per PR | The median cost of pull requests opened in the selected period. Each run’s cost includes its child runs and is divided evenly across its PRs. View breakdowns by cost component or PR size (S/M/L/XL, split at 100/500/1,000 changed lines). |
| Most expensive PRs | The highest-cost pull requests. |
| Scorer cards | Results from your Scorers. |
| Self-improvement PRs | The three newest Self-improvement pull requests, regardless of the selected date range. |
Cost per PR is a comparison metric, not a billing figure. Historical estimates and incomplete coverage of external inference can affect it. Inspect a run’s usage details when investigating a cost.
Total runs includes evaluation, benchmark, and Self-improvement runs, so a higher run count with a flat PR count could mean harder tasks, retries, or measurement activity.
Evaluate runs with Scorers
Section titled “Evaluate runs with Scorers”A Scorer uses an LLM judge to classify completed runs against criteria you write — for example, “did the agent run the tests before opening a PR?” See Configuring Scorers for its fields and how automatic and on-demand scoring work.
Compare configurations with benchmarks
Section titled “Compare configurations with benchmarks”A benchmark compares configurations for an agent or Factory Blueprints stage on the same fixed tasks. Test model, harness, runner, or definition-branch changes before applying them to production. See benchmarking factory configurations for the workflow.
Propose fixes with Self-improvement
Section titled “Propose fixes with Self-improvement”When enabled for a Scorer, Self-improvement investigates recurring failures and proposes changes to application code or the factory’s own definition in pull requests. Review and test those proposals before applying them. See Configuring and reviewing Self-improvement for setup and review instructions.
Run a practical improvement loop
Section titled “Run a practical improvement loop”Test one configuration change at a time:
flowchart LR Define[Create and check a Scorer] --> Baseline[Record a baseline] Baseline --> Inspect[Investigate failures] Inspect --> Benchmark[Prepare and benchmark a change] Benchmark --> Adopt[Review and apply] Adopt --> Monitor[Keep monitoring] Monitor --> Inspect Inspect -.->|Recurring failures| Improve["Optional: Self-improvement<br/>configuration proposals"] Improve -.-> Benchmark
- Create and check a Scorer. Choose a worker and an observable requirement. Create a Scorer and score a few completed runs on demand. Compare its classifications and reasoning with your own review.
- Record a baseline. Collect results from representative tasks. Record the current configuration, Scorer settings, task sample, date range, and costs.
- Investigate failures. Read the Scorer’s reasoning and the underlying runs to identify the cause. Correct and recheck misleading Scorer criteria before comparing configurations.
- Prepare and benchmark a change. Address one confirmed cause, keeping unrelated settings unchanged. Before applying the change to the shared workflow, benchmark both configurations on the same tasks with the same evaluation criteria. Repeat trials and compare quality, completion, and cost.
- Review and apply. Review the proposed change and benchmark results. Apply the change only if the evidence supports it.
- Keep monitoring. Compare subsequent work on similar tasks with the baseline. Revise the Scorer, or set its sample rate to 0, when its criteria no longer match your requirements.
Self-improvement can propose changes for recurring failures. Benchmark factory-configuration proposals before applying them. Review and test application-code fixes through your normal code-review process.
Related pages
Section titled “Related pages”- Configuring Scorers - What a Scorer is, its fields, and how it runs
- Configuring and reviewing Self-improvement - Turn on Self-improvement and review its pull requests
- Benchmarking agent configurations - Compare candidate configurations on the same tasks
- Factory definition as code - Record an adopted change so your team can review the factory configuration