Skip to content

prepare-providers-doc skill: batch classification to cut sub-agents#68653

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:optimize-prepare-providers-doc-subagents
Jun 17, 2026
Merged

prepare-providers-doc skill: batch classification to cut sub-agents#68653
potiuk merged 1 commit into
apache:mainfrom
potiuk:optimize-prepare-providers-doc-subagents

Conversation

@potiuk

@potiuk potiuk commented Jun 17, 2026

Copy link
Copy Markdown
Member

The prepare-providers-documentation skill (reframed in #68641 as an optional
aid) classified provider changes by spawning one Explore sub-agent per
PR
. On a normal release wave — dozens of providers, hundreds of commits —
that is hundreds of sub-agents, and it's the main reason the run is so long and
token-heavy.

This replaces the per-PR fan-out with a volume-aware strategy:

  • Few commits remain (≲15 after the cheap auto-classify heuristics) →
    classify inline
    , no sub-agents at all.
  • More than that → one sub-agent per provider, classifying that provider's
    entire remaining commit list in a single pass (chunking only providers with

    25 commits).

Multi-provider PRs are already classified independently per provider, so the
provider is the natural batch unit — and one provider-scoped agent amortizes
the breaking-change checklist across all of its commits instead of paying a
fresh agent spin-up per commit. Net effect: sub-agent count drops from
O(commits) to roughly O(providers), and often to zero for incremental updates.

No behavior change to the classification logic, the breaking-change checklist,
escalation rules, or the breeze commands — only how the work is fanned out.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

The skill classified provider changes by spawning one Explore sub-agent per
PR. On a normal release wave (dozens of providers, hundreds of commits) that
is hundreds of sub-agents — the main reason the run is so long and token-heavy.

Replace the per-PR fan-out with a volume-aware strategy: classify inline when
few commits remain (≲15), otherwise spawn one sub-agent per provider that
classifies that provider's whole remaining commit list in a single pass
(chunking only providers with >25 commits). Multi-provider PRs are already
classified independently per provider, so the provider is the natural batch
unit and the breaking-change checklist is amortized across its commits instead
of paid per commit. This takes the sub-agent count from O(commits) down to
roughly O(providers) — often zero for incremental updates.
@potiuk
potiuk merged commit 272904f into apache:main Jun 17, 2026
63 checks passed
@potiuk
potiuk deleted the optimize-prepare-providers-doc-subagents branch June 17, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants