agentpace 0.11.2__tar.gz → 0.11.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentpace-0.11.2 → agentpace-0.11.3}/CHANGELOG.md +37 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/CITATION.cff +1 -1
- {agentpace-0.11.2 → agentpace-0.11.3}/PKG-INFO +1 -1
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/index.html +1 -1
- agentpace-0.11.3/skills/agentpace/assets/portable-prompt.md +48 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/__init__.py +1 -1
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/claims.py +33 -14
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_claims.py +107 -6
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_skills.py +1 -1
- agentpace-0.11.2/skills/agentpace/assets/portable-prompt.md +0 -31
- {agentpace-0.11.2 → agentpace-0.11.3}/.gitattributes +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/ISSUE_TEMPLATE/ingest-found-nothing.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/ISSUE_TEMPLATE/remove-my-rows.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/dependabot.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/pull_request_template.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/workflows/ci.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/workflows/publish.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.github/workflows/validate-data.yml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/.gitignore +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/CODE_OF_CONDUCT.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/CONTRIBUTING.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/LICENSE +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/README.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/SECURITY.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/data/LICENSE +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/data/README.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/data/runs/4546788e7930eccd-2026-W40-2026-W45.jsonl +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/data/runs/4546788e7930eccd-2026-W44-2026-W45.jsonl +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/.nojekyll +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/DESIGN.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/assets/backtest-coverage.svg +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/assets/hero.webp +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/assets/run-ranges.svg +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/assets/social-preview.png +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/backtest.json +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/backtest.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/cli.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/releasing.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/robots.txt +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/sitemap.xml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/docs/verify-adapter.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/examples/plan.json +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/examples/quote-plan.json +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/pyproject.toml +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/schema/run.schema.json +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/schema/turn.schema.json +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/skills/agentpace/SKILL.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/skills/agentpace/references/method.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/skills/pace-estimate/SKILL.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/skills/pace-log/SKILL.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/skills/pace-share/SKILL.md +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/__main__.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/__init__.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/base.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/claude_code.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/cline.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/codex.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/gemini_cli.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/adapters/opencode.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/backtest.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/cache.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/charts.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/classify.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/cli.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/estimate.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/forecasts.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/ingest.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/paths.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/pseudonym.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/py.typed +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/render.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/report.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/schema.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/share.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/site.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/turns.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/src/agentpace/validate.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/__init__.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/fixtures/__init__.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/fixtures/cline_tasks.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/fixtures/gemini_cli.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/fixtures/opencode.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/synthetic.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_backtest.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_classify.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_cli.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_cline.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_codex.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_docs.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_estimate.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_forecasts.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_frozen_method.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_gemini_cli.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_ingest.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_labels.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_opencode.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_outcomes.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_review_capacity.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_schema.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_share_validate.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_site.py +0 -0
- {agentpace-0.11.2 → agentpace-0.11.3}/tests/test_turns.py +0 -0
|
@@ -4,6 +4,43 @@ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) an
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.11.3 - 2026-11-09
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- The portable prompt's table is now by task kind, recorded risk and model (claim `cell_table`, replacing `kind_table`), with a pooled `all models` row per kind and risk and an `all kinds` row, and no range for rows under 30 runs, the estimator's own pooling threshold. The old table pooled every model, so its feature row was mostly Sonnet runs.
|
|
12
|
+
- The retired rows were: docs 21 runs 45 s / 3 min / 6 min; feature 1,353 runs 56 s / 3 min / 24 min; review 1,560 runs 2 min / 6 min / 12 min; other 445 runs 8 min / 24 min / 43 min.
|
|
13
|
+
- The new rows, as generated:
|
|
14
|
+
|
|
15
|
+
| Task kind | Recorded risk | Model | Runs | P50 | P80 | P90 |
|
|
16
|
+
|---|---|---|---:|---:|---:|---:|
|
|
17
|
+
| docs | normal | all models | 21 | too few runs | | |
|
|
18
|
+
| docs | normal | claude-sonnet-5-5 | 21 | too few runs | | |
|
|
19
|
+
| feature | normal | all models | 1,353 | 56 s | 3 min | 24 min |
|
|
20
|
+
| feature | normal | claude-sonnet-5-5 | 1,148 | 50 s | 2 min | 2 min |
|
|
21
|
+
| feature | normal | claude-opus-5-5 | 205 | 33 min | 66 min | 87 min |
|
|
22
|
+
| other | low | all models | 48 | 4 min | 13 min | 20 min |
|
|
23
|
+
| other | low | claude-sonnet-5-5 | 29 | too few runs | | |
|
|
24
|
+
| other | low | claude-opus-5-5 | 12 | too few runs | | |
|
|
25
|
+
| other | normal | all models | 397 | 9 min | 26 min | 44 min |
|
|
26
|
+
| other | normal | gpt-6.1-sol | 157 | 9 min | 18 min | 26 min |
|
|
27
|
+
| other | normal | claude-opus-5-5 | 95 | 24 min | 63 min | 83 min |
|
|
28
|
+
| other | normal | claude-sonnet-5-5 | 78 | 5 min | 15 min | 21 min |
|
|
29
|
+
| other | normal | claude-fable-5-1 | 46 | 11 min | 32 min | 41 min |
|
|
30
|
+
| other | normal | gpt-6-astra | 16 | too few runs | | |
|
|
31
|
+
| review | low | all models | 1,560 | 2 min | 6 min | 12 min |
|
|
32
|
+
| review | low | claude-opus-5-5 | 1,255 | 2 min | 5 min | 8 min |
|
|
33
|
+
| review | low | claude-fable-5-1 | 198 | 7 min | 15 min | 22 min |
|
|
34
|
+
| review | low | claude-sonnet-5-5 | 107 | 3 min | 12 min | 19 min |
|
|
35
|
+
| all kinds | all | all models | 3,383 | 2 min | 8 min | 20 min |
|
|
36
|
+
|
|
37
|
+
- The prompt now asks for the model and states the fallback order (the model's row, then the kind's `all models` row, then `all kinds`) instead of "the broadest fitting row". It says that recorded risk is the agent's role, not a rating of the work.
|
|
38
|
+
- The table counts completed runs with a positive duration, the estimator's own filter. No row is affected today.
|
|
39
|
+
- The site says recorded risk is the agent's role.
|
|
40
|
+
- The test that keeps data values inside claim markers now covers the portable prompt too, including each number in its table.
|
|
41
|
+
|
|
42
|
+
No run changed, and no number in the README, the backtest or the site moved. The portable prompt's table is regenerated from the same rows.
|
|
43
|
+
|
|
7
44
|
## 0.11.2 - 2026-11-09
|
|
8
45
|
|
|
9
46
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentpace
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.3
|
|
4
4
|
Summary: Stop estimating agent work in human weeks. agentpace measures how long coding agents actually take: P50/P80/P90 ranges from real Claude Code and Codex runs, the human part stated apart, never derived. Open CC0 dataset, zero-dependency Python CLI, agent skill.
|
|
5
5
|
Project-URL: Homepage, https://mohamedzhioua.github.io/agentpace/
|
|
6
6
|
Project-URL: Repository, https://github.com/mohamedzhioua/agentpace
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
|
|
229
229
|
<section aria-labelledby="board-title">
|
|
230
230
|
<h2 id="board-title">Times by model, kind and risk</h2>
|
|
231
|
-
<p class="section-note">Completed runs only. Grey rows have fewer than 10 runs, so treat them as anecdotes.</p>
|
|
231
|
+
<p class="section-note">Completed runs only. Grey rows have fewer than 10 runs, so treat them as anecdotes. Risk is the agent's role as recorded (review and research agents low, migration agents high, all else normal), not a rating of the work.</p>
|
|
232
232
|
<div class="filters">
|
|
233
233
|
<label>Model <select id="filter-model"></select></label>
|
|
234
234
|
<label>Kind <select id="filter-kind"></select></label>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Portable prompt
|
|
2
|
+
|
|
3
|
+
Paste everything below this line into any assistant that cannot run the agentpace CLI. It gives a rule of thumb, not the CLI's range: there is no simulation and no learned throughput.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You estimate how long software work will take when coding agents do the implementation. Use this whenever someone asks how long a feature, fix, plan or roadmap will take, even if they do not mention agents. Use the measured durations below, not human-team timelines. Always answer with a range: P50, P80 and P90. Never give a single number.
|
|
8
|
+
|
|
9
|
+
Measured durations of completed agent runs (Claude Code subagents and Codex turns), from one person's real history, by task kind, recorded risk and model:
|
|
10
|
+
|
|
11
|
+
<!-- claim:cell_table -->
|
|
12
|
+
| Task kind | Recorded risk | Model | Runs | P50 | P80 | P90 |
|
|
13
|
+
|---|---|---|---:|---:|---:|---:|
|
|
14
|
+
| docs | normal | all models | 21 | too few runs | | |
|
|
15
|
+
| docs | normal | claude-sonnet-5-5 | 21 | too few runs | | |
|
|
16
|
+
| feature | normal | all models | 1,353 | 56 s | 3 min | 24 min |
|
|
17
|
+
| feature | normal | claude-sonnet-5-5 | 1,148 | 50 s | 2 min | 2 min |
|
|
18
|
+
| feature | normal | claude-opus-5-5 | 205 | 33 min | 66 min | 87 min |
|
|
19
|
+
| other | low | all models | 48 | 4 min | 13 min | 20 min |
|
|
20
|
+
| other | low | claude-sonnet-5-5 | 29 | too few runs | | |
|
|
21
|
+
| other | low | claude-opus-5-5 | 12 | too few runs | | |
|
|
22
|
+
| other | normal | all models | 397 | 9 min | 26 min | 44 min |
|
|
23
|
+
| other | normal | gpt-6.1-sol | 157 | 9 min | 18 min | 26 min |
|
|
24
|
+
| other | normal | claude-opus-5-5 | 95 | 24 min | 63 min | 83 min |
|
|
25
|
+
| other | normal | claude-sonnet-5-5 | 78 | 5 min | 15 min | 21 min |
|
|
26
|
+
| other | normal | claude-fable-5-1 | 46 | 11 min | 32 min | 41 min |
|
|
27
|
+
| other | normal | gpt-6-astra | 16 | too few runs | | |
|
|
28
|
+
| review | low | all models | 1,560 | 2 min | 6 min | 12 min |
|
|
29
|
+
| review | low | claude-opus-5-5 | 1,255 | 2 min | 5 min | 8 min |
|
|
30
|
+
| review | low | claude-fable-5-1 | 198 | 7 min | 15 min | 22 min |
|
|
31
|
+
| review | low | claude-sonnet-5-5 | 107 | 3 min | 12 min | 19 min |
|
|
32
|
+
| all kinds | all | all models | 3,383 | 2 min | 8 min | 20 min |
|
|
33
|
+
<!-- /claim -->
|
|
34
|
+
|
|
35
|
+
Recorded risk is the agent's role in the run, not a rating of the work: read-only review and research agents are `low`, migration agents `high`, everything else `normal`. A row with fewer than 30 runs shows no range: 30 is the estimator's own pooling threshold, and this prompt cannot widen an interval the way the agentpace CLI does. Slower rows for stronger models reflect what those models were given, not their speed.
|
|
36
|
+
|
|
37
|
+
To estimate:
|
|
38
|
+
|
|
39
|
+
1. Break the work into separate agent tasks. Give each one the kind the data records for it (`feature` is implementation work of any kind, `review` a read-only review, `docs`, `tests`, and `other` for anything else; research is `other` at recorded risk `low`) and the model that will run it. Ask for the model if it is not known.
|
|
40
|
+
2. Take the row for that kind, risk and model. If there is none, or it shows no range, use the `all models` row for that kind and risk and say that it pools models. If that row is missing or shows no range too, use the `all kinds` row and say so. Never present another row's numbers as the task's own.
|
|
41
|
+
3. For a single task, report its row as it is.
|
|
42
|
+
4. For a plan, work out the P50 total as the larger of two numbers: the P50 values added up along the longest chain of tasks that depend on each other, and the P50 values of all tasks added up and divided by the number of agents running at once.
|
|
43
|
+
5. Multiply that P50 total by <!-- claim:plan_width80 -->2.0x<!-- /claim --> for the P80 and by <!-- claim:plan_width -->2.7x<!-- /claim --> for the P90. Those are the typical ratios between the CLI's plan ranges in its published whole-session test. Say this is a rule of thumb, and that the agentpace CLI gives the real range.
|
|
44
|
+
6. Say which chain is the critical path.
|
|
45
|
+
7. State the human part on its own line: "Human part (review, testing, decisions, waiting between agent turns): not measured. No allowance for it is added to the total above." Do not derive it from the agent time, and do not invent a number for it. If the user gives their own figure, repeat it and label it as theirs.
|
|
46
|
+
8. If someone already quoted a timeline in days, weeks or months, show it beside your range, label it unverified, and do not divide it by any constant. Never say what the difference between the quote and your range is, and never call it the human part.
|
|
47
|
+
|
|
48
|
+
If the user asks for one number, give the P80 and call it the P80.
|
|
@@ -22,19 +22,38 @@ _MARKER = re.compile(r"<!-- claim:([a-z0-9_]+) -->(.*?)<!-- /claim -->", re.DOTA
|
|
|
22
22
|
_MIN_TABLE_ROWS = 10
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
def
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
def _cell_table(rows: Sequence[Row]) -> str:
|
|
26
|
+
"""Durations by task kind, recorded risk and model, in the order the CLI backs off.
|
|
27
|
+
|
|
28
|
+
Each `(task_kind, risk)` group lists its pooled row first, then its models; the `all kinds`
|
|
29
|
+
row is last. A row needs `_MIN_TABLE_ROWS` runs to be listed and `est.POOL_MIN` to show a range.
|
|
30
|
+
"""
|
|
31
|
+
usable = [row for row in rows if row["outcome"] == "completed" and row["duration_s"] > 0]
|
|
32
|
+
|
|
33
|
+
def line(kind: str, risk: str, model: str, chosen: Sequence[Row]) -> str | None:
|
|
34
|
+
if len(chosen) < _MIN_TABLE_ROWS:
|
|
35
|
+
return None
|
|
36
|
+
if len(chosen) < est.POOL_MIN:
|
|
37
|
+
cells = "too few runs | |"
|
|
38
|
+
else:
|
|
39
|
+
values = sorted(row["duration_s"] for row in chosen)
|
|
40
|
+
cells = " | ".join(render.duration(est.quantile(values, q)) for q in est.QUANTILES)
|
|
41
|
+
return f"| {kind} | {risk} | {model} | {len(chosen):,} | {cells} |"
|
|
42
|
+
|
|
43
|
+
entries: list[str | None] = []
|
|
44
|
+
for kind, risk in sorted({(row["task_kind"], row["risk"]) for row in usable}):
|
|
45
|
+
group = [row for row in usable if row["task_kind"] == kind and row["risk"] == risk]
|
|
46
|
+
entries.append(line(kind, risk, "all models", group))
|
|
47
|
+
counts: dict[str, int] = {}
|
|
48
|
+
for row in group:
|
|
49
|
+
counts[row["model"]] = counts.get(row["model"], 0) + 1
|
|
50
|
+
for model in sorted(counts, key=lambda name: (-counts[name], name)):
|
|
51
|
+
entries.append(line(kind, risk, model, [r for r in group if r["model"] == model]))
|
|
52
|
+
entries.append(line("all kinds", "all", "all models", usable))
|
|
53
|
+
lines = [
|
|
54
|
+
"| Task kind | Recorded risk | Model | Runs | P50 | P80 | P90 |",
|
|
55
|
+
"|---|---|---|---:|---:|---:|---:|",
|
|
56
|
+
*(entry for entry in entries if entry is not None),
|
|
38
57
|
]
|
|
39
58
|
return "\n" + "\n".join(lines) + "\n"
|
|
40
59
|
|
|
@@ -160,7 +179,7 @@ def values(
|
|
|
160
179
|
"contributor_split": contributor,
|
|
161
180
|
"loss_count": str(len(report["losses"])),
|
|
162
181
|
"not_completed_by_harness": _not_completed_by_harness(rows),
|
|
163
|
-
"
|
|
182
|
+
"cell_table": _cell_table(rows),
|
|
164
183
|
"example_output": _example_output(rows, plan_path),
|
|
165
184
|
"quote_example_output": _example_output(rows, quote_plan_path, QUOTE_EXAMPLE),
|
|
166
185
|
}
|
|
@@ -7,7 +7,9 @@ import unittest
|
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
|
|
9
9
|
from agentpace import claims, cli, paths, schema
|
|
10
|
+
from agentpace import estimate as est
|
|
10
11
|
from agentpace.adapters import EXPERIMENTAL
|
|
12
|
+
from tests import synthetic
|
|
11
13
|
|
|
12
14
|
REPO = Path(__file__).resolve().parent.parent
|
|
13
15
|
|
|
@@ -76,13 +78,112 @@ class Published(unittest.TestCase):
|
|
|
76
78
|
# `project_top_harness` is a harness name such as "codex", which the README also uses
|
|
77
79
|
# as an ordinary word, for example `--source codex`. It is not a number from the data.
|
|
78
80
|
words = {"project_top_harness"}
|
|
79
|
-
|
|
81
|
+
for document in ("README.md", "skills/agentpace/assets/portable-prompt.md"):
|
|
82
|
+
text = (REPO / document).read_text(encoding="utf-8")
|
|
83
|
+
unmarked = claims._MARKER.sub("", text)
|
|
84
|
+
for name, value in self.known.items():
|
|
85
|
+
if name in words or len(value) < 3:
|
|
86
|
+
continue
|
|
87
|
+
with self.subTest(document=document, claim=name):
|
|
88
|
+
self.assertNotIn(value, unmarked)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _table_cells(table: str) -> dict[tuple[str, str, str], list[str]]:
|
|
92
|
+
"""The body rows of a generated cell table, keyed by kind, risk and model."""
|
|
93
|
+
cells = {}
|
|
94
|
+
for line in table.strip().splitlines()[2:]:
|
|
95
|
+
kind, risk, model, *rest = (part.strip() for part in line.strip("|").split("|"))
|
|
96
|
+
cells[(kind, risk, model)] = rest
|
|
97
|
+
return cells
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class CellTable(unittest.TestCase):
|
|
101
|
+
"""The portable prompt's table mirrors the CLI's back-off and shows no range below 30 runs."""
|
|
102
|
+
|
|
103
|
+
def rows(self, count, **fields):
|
|
104
|
+
return [synthetic.row(**{"duration_s": 60 + i, **fields}) for i in range(count)]
|
|
105
|
+
|
|
106
|
+
def test_two_models_in_one_kind_get_different_quantiles(self):
|
|
107
|
+
rows = self.rows(40, model="claude-opus-5-5", duration_s=3000)
|
|
108
|
+
rows += self.rows(40, model="claude-sonnet-5-5")
|
|
109
|
+
cells = _table_cells(claims._cell_table(rows))
|
|
110
|
+
opus = cells[("feature", "normal", "claude-opus-5-5")]
|
|
111
|
+
sonnet = cells[("feature", "normal", "claude-sonnet-5-5")]
|
|
112
|
+
self.assertEqual(opus[0], "40")
|
|
113
|
+
self.assertEqual(sonnet[0], "40")
|
|
114
|
+
self.assertNotEqual(opus[1:], sonnet[1:])
|
|
115
|
+
self.assertEqual(cells[("feature", "normal", "all models")][0], "80")
|
|
116
|
+
|
|
117
|
+
def test_a_completed_row_with_no_duration_is_left_out(self):
|
|
118
|
+
rows = [*self.rows(30), synthetic.row(duration_s=0)]
|
|
119
|
+
cells = _table_cells(claims._cell_table(rows))
|
|
120
|
+
self.assertEqual(cells[("feature", "normal", "claude-opus-5-5")][0], "30")
|
|
121
|
+
self.assertEqual(cells[("all kinds", "all", "all models")][0], "30")
|
|
122
|
+
|
|
123
|
+
def test_a_cell_of_ten_to_twenty_nine_runs_shows_no_range(self):
|
|
124
|
+
for count in (10, 29):
|
|
125
|
+
with self.subTest(count=count):
|
|
126
|
+
table = claims._cell_table(self.rows(count))
|
|
127
|
+
cells = _table_cells(table)
|
|
128
|
+
self.assertEqual(
|
|
129
|
+
cells[("feature", "normal", "claude-opus-5-5")],
|
|
130
|
+
[str(count), "too few runs", "", ""],
|
|
131
|
+
)
|
|
132
|
+
self.assertIn(f"| {count} | too few runs | | |", table)
|
|
133
|
+
cells = _table_cells(claims._cell_table(self.rows(30)))
|
|
134
|
+
self.assertNotIn("too few runs", cells[("feature", "normal", "claude-opus-5-5")])
|
|
135
|
+
|
|
136
|
+
def test_a_cell_under_ten_runs_is_absent(self):
|
|
137
|
+
rows = self.rows(30) + self.rows(9, model="gpt-x")
|
|
138
|
+
cells = _table_cells(claims._cell_table(rows))
|
|
139
|
+
self.assertNotIn(("feature", "normal", "gpt-x"), cells)
|
|
140
|
+
self.assertEqual(cells[("feature", "normal", "all models")][0], "39")
|
|
141
|
+
|
|
142
|
+
def test_all_kinds_counts_every_usable_row(self):
|
|
143
|
+
rows = synthetic.dataset(seed=7, sessions=60)
|
|
144
|
+
rows += [synthetic.row(outcome="failed"), synthetic.row(duration_s=0)]
|
|
145
|
+
usable = [r for r in rows if r["outcome"] == "completed" and r["duration_s"] > 0]
|
|
146
|
+
cells = _table_cells(claims._cell_table(rows))
|
|
147
|
+
self.assertEqual(cells[("all kinds", "all", "all models")][0], f"{len(usable):,}")
|
|
148
|
+
|
|
149
|
+
def test_pooled_rows_lead_each_group_and_models_follow_by_runs(self):
|
|
150
|
+
rows = self.rows(12, model="b-model") + self.rows(12, model="a-model")
|
|
151
|
+
rows += self.rows(20, model="c-model") + self.rows(40, task_kind="docs")
|
|
152
|
+
keys = list(_table_cells(claims._cell_table(rows)))
|
|
153
|
+
self.assertEqual(
|
|
154
|
+
keys,
|
|
155
|
+
[
|
|
156
|
+
("docs", "normal", "all models"),
|
|
157
|
+
("docs", "normal", "claude-opus-5-5"),
|
|
158
|
+
("feature", "normal", "all models"),
|
|
159
|
+
("feature", "normal", "c-model"),
|
|
160
|
+
("feature", "normal", "a-model"),
|
|
161
|
+
("feature", "normal", "b-model"),
|
|
162
|
+
("all kinds", "all", "all models"),
|
|
163
|
+
],
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
def test_the_prompt_states_no_table_value_outside_the_table(self):
|
|
167
|
+
text = (REPO / "skills" / "agentpace" / "assets" / "portable-prompt.md").read_text(
|
|
168
|
+
encoding="utf-8"
|
|
169
|
+
)
|
|
170
|
+
table = next(
|
|
171
|
+
match.group(2)
|
|
172
|
+
for match in claims._MARKER.finditer(text)
|
|
173
|
+
if match.group(1) == "cell_table"
|
|
174
|
+
)
|
|
80
175
|
unmarked = claims._MARKER.sub("", text)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
176
|
+
durations = set(re.findall(r"\d[\d,]*(?:\.\d)? (?:s|min|h|days)", table))
|
|
177
|
+
# The prose names the pooling threshold ("fewer than 30 runs") and the quantile labels
|
|
178
|
+
# (P50, P80, P90). A cell whose run count equals one of those is not a number leaking
|
|
179
|
+
# from the table, so a regenerated table that lands on it must not fail here.
|
|
180
|
+
labels = {str(est.POOL_MIN), *(f"{q * 100:.0f}" for q in est.QUANTILES)}
|
|
181
|
+
counts = {match.strip("| ") for match in re.findall(r"\| [\d,]+ \|", table)} - labels
|
|
182
|
+
self.assertTrue(durations)
|
|
183
|
+
self.assertTrue(counts)
|
|
184
|
+
for token in durations | counts:
|
|
185
|
+
with self.subTest(token=token):
|
|
186
|
+
self.assertNotRegex(unmarked, rf"(?<![\d,.]){re.escape(token)}(?![\d,])")
|
|
86
187
|
|
|
87
188
|
|
|
88
189
|
class QuoteExample(unittest.TestCase):
|
|
@@ -208,7 +208,7 @@ class Skills(unittest.TestCase):
|
|
|
208
208
|
|
|
209
209
|
def test_portable_prompt_exists_and_carries_numbers(self):
|
|
210
210
|
text = (SKILLS / "agentpace" / "assets" / "portable-prompt.md").read_text(encoding="utf-8")
|
|
211
|
-
self.assertIn("<!-- claim:
|
|
211
|
+
self.assertIn("<!-- claim:cell_table -->", text)
|
|
212
212
|
self.assertIn("P90", text)
|
|
213
213
|
|
|
214
214
|
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Portable prompt
|
|
2
|
-
|
|
3
|
-
Paste everything below this line into any assistant that cannot run the agentpace CLI. It gives a rule of thumb, not the CLI's range: there is no simulation and no learned throughput.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You estimate how long software work will take when coding agents do the implementation. Use this whenever someone asks how long a feature, fix, plan or roadmap will take, even if they do not mention agents. Use the measured durations below, not human-team timelines. Always answer with a range: P50, P80 and P90. Never give a single number.
|
|
8
|
-
|
|
9
|
-
Measured durations of completed agent runs (Claude Code subagents and Codex turns), from one person's real history:
|
|
10
|
-
|
|
11
|
-
<!-- claim:kind_table -->
|
|
12
|
-
| Task kind | Runs | P50 | P80 | P90 |
|
|
13
|
-
|---|---:|---:|---:|---:|
|
|
14
|
-
| docs | 21 | 45 s | 3 min | 6 min |
|
|
15
|
-
| feature | 1,353 | 56 s | 3 min | 24 min |
|
|
16
|
-
| review | 1,560 | 2 min | 6 min | 12 min |
|
|
17
|
-
| other | 445 | 8 min | 24 min | 43 min |
|
|
18
|
-
<!-- /claim -->
|
|
19
|
-
|
|
20
|
-
To estimate:
|
|
21
|
-
|
|
22
|
-
1. Break the work into separate agent tasks, and give each one a kind from the table. Use `other` for research.
|
|
23
|
-
2. For a task with no close match, use the broadest fitting row and say that you did.
|
|
24
|
-
3. For a single task, report its row as it is.
|
|
25
|
-
4. For a plan, work out the P50 total as the larger of two numbers: the P50 values added up along the longest chain of tasks that depend on each other, and the P50 values of all tasks added up and divided by the number of agents running at once.
|
|
26
|
-
5. Multiply that P50 total by <!-- claim:plan_width80 -->2.0x<!-- /claim --> for the P80 and by <!-- claim:plan_width -->2.7x<!-- /claim --> for the P90. Those are the typical ratios between the CLI's plan ranges in its published whole-session test. Say this is a rule of thumb, and that the agentpace CLI gives the real range.
|
|
27
|
-
6. Say which chain is the critical path.
|
|
28
|
-
7. State the human part on its own line: "Human part (review, testing, decisions, waiting between agent turns): not measured. No allowance for it is added to the total above." Do not derive it from the agent time, and do not invent a number for it. If the user gives their own figure, repeat it and label it as theirs.
|
|
29
|
-
8. If someone already quoted a timeline in days, weeks or months, show it beside your range, label it unverified, and do not divide it by any constant. Never say what the difference between the quote and your range is, and never call it the human part.
|
|
30
|
-
|
|
31
|
-
If the user asks for one number, give the P80 and call it the P80.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|