Skip to content

fix(skills): stop /sweep subagents inventing fake background notifiers - #2231

Merged
carlos-alm merged 2 commits into
mainfrom
fix/sweep-skill-fake-monitor-ratelimit
Aug 3, 2026
Merged

carlos-alm merged 2 commits into
mainfrom
fix/sweep-skill-fake-monitor-ratelimit

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

  • Today's /sweep run had both PR subagents stall repeatedly by claiming a background poller/monitor/scheduled job "would notify them" — the exact stall pattern a prior fix (7cadceb) targeted, but recurring with a new excuse each time (2-3 times per subagent before the correction stuck).
  • One subagent also hit a genuine shared GitHub API rate-limit exhaustion (0/5000) from over-tight polling, with no guidance in the skill on how to detect or bridge that wait.

Changes

  • Explicitly bans the "something will notify me" / "remains armed" / "I'll pick this back up when re-prompted" framing, both in the "how to wait" contract given to every subagent and in the Rules section copied verbatim into every subagent prompt.
  • Notes in the orchestrator's stall-recovery guidance that a stall can recur 2-3 times on the same subagent with a different invented excuse each time, so a second/third resume isn't a sign something else is wrong.
  • Adds a new "Mind the GitHub API rate limit" section: gh api rate_limit is free to check, poll no tighter than 60-120s and batch checks rather than looping per-item, and if API rate limit exceeded occurs, bridge it with bounded sleep-then-recheck cycles against the reset epoch rather than ending the turn.

Test plan

  • Reviewed the diff against the current (up-to-date, $REPO-parameterized) SKILL.md on origin/main to confirm no stale context was reintroduced.
  • No code paths changed — this is a skill instruction file only.

…s, add rate-limit handling

Today's sweep run had subagents stall repeatedly by claiming a background
poller/monitor/scheduled job "would notify them," even after being
resumed with an explicit correction — the exact failure mode a prior fix
(7cadceb) targeted, but with a new excuse each time. One subagent also
hit a genuine GitHub API rate-limit exhaustion (shared across all
subagents in the sweep) from over-tight polling and had no guidance on
how to bridge it without ending its turn.

Adds explicit language banning the "something will notify me" framing
in both the "how to wait" contract and the Rules section, a note in the
orchestrator's stall-recovery guidance that this can recur 2-3 times
before it sticks, and a new "Mind the GitHub API rate limit" section
covering free rate_limit checks, polling cadence, and bounded
sleep-then-recheck recovery when the quota is exhausted.
@greptile-apps

greptile-apps Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR strengthens the /sweep skill’s instructions for handling stalled subagents and shared GitHub API rate-limit exhaustion.

  • Explicitly prohibits claims that background monitors or jobs will resume a subagent.
  • Documents repeated stall recovery and bounded rate-limit wait cycles.
  • Adds equivalent safeguards to the rules copied into every subagent prompt.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
.claude/skills/sweep/SKILL.md Adds consistent operational guidance for active polling, recurring stalls, and GitHub API rate-limit recovery without changing executable code.

Reviews (2): Last reviewed commit: "fix: resolve merge conflicts with main" | Re-trigger Greptile

@carlos-alm
carlos-alm merged commit 0b20bdc into main Aug 3, 2026
23 checks passed
@carlos-alm
carlos-alm deleted the fix/sweep-skill-fake-monitor-ratelimit branch August 3, 2026 03:53
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant