Skip to content

feat(impeccable-skills-reviewer): reduce token bloat, fix retry rate, add skill-selection sub-agent#43004

Closed
pelikhan with Copilot wants to merge 3 commits into
mainfrom
copilot/agentic-token-optimizer-reduce-bloat-fix-retry-rat
Closed

feat(impeccable-skills-reviewer): reduce token bloat, fix retry rate, add skill-selection sub-agent#43004
pelikhan with Copilot wants to merge 3 commits into
mainfrom
copilot/agentic-token-optimizer-reduce-bloat-fix-retry-rat

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The Impeccable Skills Reviewer had a ~65% retry rate, 44K–50K output tokens on large PRs, and a max-continuations: 6 ceiling that combined to push runs over the 15-minute timeout.

Changes

Retry rate & timeout

  • timeout-minutes: 15 → 20 to reduce timeout-induced retries
  • max-continuations: 6 → 3 — sufficient for the read → classify → review → submit flow
  • Added Log retry attempt pre-agent-step: emits a diagnostic when run_attempt > 1

Output token constraints (## Review Constraints)

- Keep each inline comment under 120 words. Put extended reasoning in a `<details>` block.
- If the PR diff exceeds 1000 lines, limit inline comments to 5 maximum.

Skills discovery pre-fetch

New Build skills manifest pre-agent-step concatenates all installed SKILL.md files into /tmp/gh-aw/agent/skills-manifest.txt (paths deduplicated via sort -u) before the agent starts — eliminates the runtime find tool call.

select-skills sub-agent

New inline sub-agent (model: claude-haiku-4.5) replaces the inline skill-discovery step in ## Process. It reads the pre-fetched PR data and skills manifest and returns a JSON array of the 1–3 most relevant SKILL.md paths. Classification runs on a cheap model; the primary sonnet agent goes straight to reviewing.

Copilot AI and others added 2 commits July 2, 2026 16:06
…etry logging, skill sub-agent

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…nd fallback, clarify diff context

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize Impeccable Skills Reviewer by reducing output bloat and fixing retry rate feat(impeccable-skills-reviewer): reduce token bloat, fix retry rate, add skill-selection sub-agent Jul 2, 2026
Copilot AI requested a review from pelikhan July 2, 2026 16:09
@pelikhan pelikhan closed this Jul 2, 2026
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.

[agentic-token-optimizer] [optimizer] Impeccable Skills Reviewer: reduce output bloat, fix retry rate, add skill-selection sub-agent

2 participants