Skip to content

Document review cost, duration and plan limits - #412

Open
atrearyan wants to merge 12 commits into
google:mainfrom
atrearyan:docs/review-cost-faq
Open

atrearyan wants to merge 12 commits into
google:mainfrom
atrearyan:docs/review-cost-faq

Conversation

@atrearyan

@atrearyan atrearyan commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Key Changes

Closes #385.

New users could not find what a review uses or how long it takes. This adds that answer to the FAQ and links it from the getting started guide.

  • docs/faq.md: new entry, "What does a review cost, and how long does it take?", placed after the developer velocity entry it links to. It covers the full review, /egm-review, and numbers its stages 5 to 9 as egm-review does.
    • Reviewers and stages: the loop detail is tied to the Interactive review with all review rubrics preset, not to all other presets. The Consolidated report with all review rubrics preset runs each stage once, 10 reviewer subagents for a design with an implementation plan (skills/egm-review/SKILL.md:218-219, :287-302), and 7 for a design without one (:203-207). The other presets run Stages 7 and 9 through egm-review-loop (:373, :400), which starts the stage's 3 reviewers again each round, asks before each new round, finishes after two clean rounds in a row, and stops to ask at 5 rounds or on churn (skills/egm-review-loop/SKILL.md:169-187). Churn was added after @n3wth's review. Stages 5, 6, and 8 can run once more after the design changes; a re-run of Stage 7 or 9 runs its whole loop again (skills/egm-review/SKILL.md:260-275, :396, :426). So the entry gives no fixed count for an interactive review.
    • Extra subagents: a synthesizer per stage or round when a run nests reviewers (not every host can; the entry links the Delegation table in docs/harnesses.md), optional A and B copies of each reviewer (agents/synthesizer.md:40), and one retry for a failed reviewer in egm-review-loop and the synthesizer (skills/egm-review-loop/SKILL.md:140-144, agents/synthesizer.md:41). The counts are stated as minimums.
    • Design and context size: the design, and in every stage except Stage 6 the GoldfishContext files, including linked files and approved outside links or saved pages (skills/egm-review/SKILL.md:101-119), plus code searches (agents/zoom_out.md:45).
    • The main session's own work (egm-resolve after each round, and the reports a synthesizer does not write, skills/egm-review-loop/SKILL.md:118-122) and the wait at each interactive checkpoint.
    • Two measured runs, each labeled as one run:
      • Antigravity CLI 1.4.5, 2026-10-22, from the PR #103 run report: 1,398.7 seconds and 309,915 tokens for brainstorm, draft, and review together, and 17 minutes 56 seconds for review stages 5 to 9 (20:11:13 to 20:29:09 in the report's stage table). Direct dispatch, uninterrupted mode. It notes that Stage 5 has since added egm-inventive-catalyst (feat(agents): add the TRIZ inventive catalyst reviewer #299).
      • Claude Code 2.1.325, 2026-11-15, from @siriani's comment on this PR: a 169-line design with no implementation plan, Opus 5.5 main session, reviewers set to Sonnet by hand, 6 reviewers at EGM 0dfb5bf (before Stage 5 added egm-inventive-catalyst), 20,196 to 38,044 tokens per reviewer and 176,520 in total, 27 to 44 seconds per reviewer, and 84,505 tokens for a Stage 7 re-run. This run names the models and the design size, which the first one does not.
    • What the records do not contain, stated without estimates: the Antigravity run's model name and design size, whether its token count includes the reviewers' sessions, the Claude Code run's main-session tokens and total duration, any measurement of an interactive review or egm-review-loop, and a cost in money.
    • Plan limits: the Claude Cowork row in TESTING.md records a run of brainstorm, draft, and review that reached its usage limit during review Stage 8. The entry then says the remaining stages can run later, one at a time, with the Step input (skills/egm-review/SKILL.md:76-78).
    • Smaller changes: the last paragraph points to /egm-lite (feat(skills): implement EGM Lite rapid engineering protocol (Stage 2) #438) or the normal workflow, with no Lite cost figures, as @n3wth asked, and links the existing velocity entry.
  • docs/getting_started.md: the /egm-review step now says a review of all five stages runs at least 10 reviewer subagents and links to the entry.
  • tests/unit/test_review_cost_docs.py: test_review_cost_counts_match_egm_review counts the reviewers each stage starts in the uninterrupted flow of skills/egm-review/SKILL.md and checks the numbers the docs state: 10, 7 without an implementation plan, 3 per loop round, and "at least 10". When a stage gains or loses a reviewer, as feat(agents): add the TRIZ inventive catalyst reviewer #299 did for Stage 5, the docs now fail the tests instead of going stale. If the Uninterrupted Full Flow is rewritten, as open PR Trim egm-bootstrap and egm-review and share common execution rules #369 does, the test fails with a message naming the docs to recheck.

Completion criteria: the Claude Code example names its host, models, design size, and date, so criterion 2 is met by that run. The Antigravity run still records its model only as "the CLI default"; @n3wth, if your locally kept streams show the model ID and the size of design_draft.md, I'll add both.

The branch is merged with main at 7d1b721, which brings in skills/egm-lite for the new link. #394 removed the committed distributions/claude folder, so this PR touches only docs/faq.md and docs/getting_started.md.

Out of scope: skills/ and agents/ (unchanged), comparisons with other tools (#61 owns the baseline comparison), new measurements, the existing "fresh, zero-context session" wording in docs/getting_started.md (only the reviewers run in fresh contexts), docs/designs/multi_harness_support.md:41, which still says runtime and token costs have not been measured, and docs/site/workflow.md:16 and docs/site/skills/egm-review.md:30, site pages added after this PR opened, which mention review tokens and could link to this entry, and the Codex live-suite timings in TESTING.md, which cover the whole workflow and record no tokens.

Suggested label: docs

Contribution Type

Track: Bug Fix / Minor Patch

Verification

Unit tests: passed. pytest tests/unit on Python 3.14.0 (via uv run --no-project --with pytest==9.0.3 --with pyyaml==6.0.3, the test group pins in pyproject.toml): 389 passed, 2 skipped (the Copilot and Cursor native probes, which need EGM_COPILOT_OFFLINE and EGM_CURSOR_BUNDLE). pytest tests/unit/test_link_integrity.py passes.

Links: the link test does not check fragments in links to other files, so I checked them by hand. extract_headers in tests/unit/test_link_integrity.py gives q-what-does-a-review-cost-and-how-long-does-it-take, q-does-this-workflow-degrade-developer-velocity, and, in docs/harnesses.md, delegation, matching all three links. The link test resolves ../skills/egm-lite/SKILL.md. Its text is plain ("EGM Lite") on purpose: the link test strips inline code before matching links, so a link whose text is only `/egm-lite` is never checked. I confirmed that a broken Lite path now fails the link test. The TESTING.md#harness-test-record link uses the same absolute URL as docs/harnesses.md, since TESTING.md is not packaged.

Fact check: a fresh-context egm-codebase-details reviewer checked every claim in the entry against the repository and the Antigravity run report. Its findings are applied: the preset and loop counts, the re-run of a whole loop, the extra subagents, the context and session factors, the scope of the token count, and the wording of the unrecorded measurements and the usage-limit example.

Other checks: passed: git diff --check. I checked that the Claude Code run's per-reviewer token counts add up to 176,520 and the Stage 7 re-run's to 84,505, and that skills/egm-review/SKILL.md at 0dfb5bf runs only egm-zoom-out in Stage 5. Test can fail: passed. The new test fails when the FAQ says 11 instead of 10 or 6 instead of 7, when the getting started guide says 9, when Stage 5 gains a reviewer, when Stage 7 loses one, and when Step 6 no longer names egm-comprehension. Not run: a new review measurement.

Human Accountability Affirmation

Add a FAQ entry on what sets the cost of a review, with the one
recorded measured run, the measurements that do not exist, the
subscription usage limit, and when to skip the review. Link it from
the getting started guide and regenerate distributions/claude.
Only the consolidated preset runs each stage once with 10 reviewers.
The interactive presets run Stages 7 and 9 through egm-review-loop,
which starts the reviewers again each round, and each stage can run
once more after the design changes. Say so, list interactive reviews
as unmeasured, and regenerate distributions/claude.

@egm-triage-bot egm-triage-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated first-pass review found zero blocking or major issues. Routing to @google/egm-maintainers for maintainer review.

@egm-triage-bot egm-triage-bot added the triage: passed Automated Stage-1 PR triage found zero blocking or major issues label Nov 11, 2026
@egm-triage-bot
egm-triage-bot requested review from a team and n3wth and removed request for a team November 11, 2026 00:58
Add the extra subagents (synthesizer, A and B copies, retries), the
context and session work, the design without an implementation plan,
and a re-run of Stage 7 or 9 running its whole loop. State the counts
as minimums, say what the run report does not record, and note that
the token count covers brainstorm and draft too. Regenerate
distributions/claude.

@egm-triage-bot egm-triage-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated first-pass review found zero blocking or major issues. Routing to @google/egm-maintainers for maintainer review.

@siriani

siriani commented Nov 15, 2026

Copy link
Copy Markdown

A second data point with per-reviewer token counts, in case it is useful for this entry.

Run of 2026-11-15, Claude Code 2.1.325 on macOS, EGM at 0dfb5bf. Main session Opus 5.5. Reviewers were dispatched directly from the main session, one pass per stage, uninterrupted mode. Reviewers ran with an explicit model: sonnet override, not inherit. The target was a 169-line design with no implementation plan, so Stages 5 to 8 ran with 6 reviewers. GoldfishContext held README.md and docs/harnesses.md.

Tokens are the subagent_tokens value that Claude Code reports when each subagent finishes:

Stage Reviewer Tokens Duration
5 zoom-out 31,463 27.4 s
6 comprehension 20,196 34.2 s
7 design 31,286 38.3 s
7 structural 30,443 29.1 s
7 style 25,088 27.2 s
8 zoom-out 38,044 43.8 s
total 176,520

A Stage 7 re-audit on the revised design (176 lines) used 31,727, 28,948 and 23,830 tokens.

Not measured: main-session tokens (orchestration and report writing), and money. The Stage 7 reviewers ran in parallel, so the wall-clock time is shorter than the sum of the durations.

# Conflicts:
#	distributions/claude/docs/faq.md
#	distributions/claude/docs/getting_started.md
@atrearyan

Copy link
Copy Markdown
Contributor Author

A second data point with per-reviewer token counts, in case it is useful for this entry.

Run of 2026-11-15, Claude Code 2.1.325 on macOS, EGM at 0dfb5bf. Main session Opus 5.5. Reviewers were dispatched directly from the main session, one pass per stage, uninterrupted mode. Reviewers ran with an explicit model: sonnet override, not inherit. The target was a 169-line design with no implementation plan, so Stages 5 to 8 ran with 6 reviewers. GoldfishContext held README.md and docs/harnesses.md.

Tokens are the subagent_tokens value that Claude Code reports when each subagent finishes:

Stage Reviewer Tokens Duration
5 zoom-out 31,463 27.4 s
6 comprehension 20,196 34.2 s
7 design 31,286 38.3 s
7 structural 30,443 29.1 s
7 style 25,088 27.2 s
8 zoom-out 38,044 43.8 s
total 176,520
A Stage 7 re-audit on the revised design (176 lines) used 31,727, 28,948 and 23,830 tokens.

Not measured: main-session tokens (orchestration and report writing), and money. The Stage 7 reviewers ran in parallel, so the wall-clock time is shorter than the sum of the durations.

@siriani, I've added it to the entry as a second measured run, labeled as one run and linked to your comment. It names the models and the design size, which the first example does not record. The entry also says the reviewers were set to Sonnet by hand, that EGM 0dfb5bf did not yet run egm-inventive-catalyst in Stage 5 (hence 6 reviewers), and that main-session tokens, total duration, and money were not measured.

Add the 2026-11-15 Claude Code run reported on this PR as a second
measured example. It names the models and the design size and gives
per-reviewer token counts. Update the list of what the run reports
do not record.

@egm-triage-bot egm-triage-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated first-pass review found zero blocking or major issues. Routing to @google/egm-maintainers for maintainer review.

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2a3fbad.

I checked the reviewer counts and loop rules against the skills. No blocking finding. One small addition: please mention that churn also stops the loop and asks the user, alongside two clean rounds and the five-round cap. CI passes.

The loop also stops and asks the user on churn, alongside two clean
rounds and the 5-round cap, as the review on google#412 asked.
@atrearyan

Copy link
Copy Markdown
Contributor Author

Hi @n3wth , thanks. Added in ab0c485: the loop sentence now says it also stops and asks you on churn, when a new finding sits where a fix was applied and undoing that fix would resolve it (skills/egm-review-loop/SKILL.md:176-181), alongside two clean rounds and the 5-round cap.

One question: #438 just added egm-lite for small changes. Should the entry's last paragraph ("for a small, well-understood change, skip the review") point to it, or should it stay out of this entry?

@n3wth

n3wth commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

@atrearyan, Thanks for adding the churn case. I’d keep the cost and duration details tied to the full review preset and add a short link to Lite for smaller changes.

Scope the entry to /egm-review and point small changes to /egm-lite,
as the review asked. Also fix host-specific details: not every host can
nest a synthesizer, the retry rule is in egm-review-loop and the
synthesizer only, Stage 6 reads no GoldfishContext, a synthesizer can
write the reports, and the reported Stage 7 re-audit was separate.
Number the stages 5 to 9.
@atrearyan

Copy link
Copy Markdown
Contributor Author

@n3wth, done in cc28de4. The entry now opens by saying it covers the full review, /egm-review, and the last paragraph points small changes to /egm-lite or the normal workflow, with no Lite cost figures. I merged main for #438 so the link resolves.

While there I fixed four host details that a fresh review of the entry found: not every host can nest a synthesizer (the entry now links the Delegation table), the retry rule applies only in egm-review-loop and the synthesizer, Stage 6 reads no GoldfishContext, and a synthesizer can write the reports itself. If you meant more by tying the details to the full review, for example dropping the interactive-loop detail, I can trim that too.

Tie the loop detail to the Interactive review preset instead of "the
other presets", say how to run the remaining stages after a usage
limit, describe the Stage 7 re-audit by its reviewers, and drop a
repeated sentence.
The link test strips inline code before matching links, so a link
whose text is only `code` is never checked. "[EGM Lite](...)" with the
command after it keeps the link under test.
The FAQ and the getting started guide state reviewer counts taken from
the uninterrupted flow in skills/egm-review/SKILL.md. Count the
reviewers per stage there and check the 10, the 7 without an
implementation plan, the 3 per loop round, and "at least 10", so the
docs fail the tests when a stage gains or loses a reviewer.
If the Uninterrupted Full Flow is rewritten, for example by google#369, the
test now fails with a message that names the docs to recheck instead
of an IndexError.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage: passed Automated Stage-1 PR triage found zero blocking or major issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document review costs, duration, and usage limits

4 participants