Skip to content

fix(agent-core): tier anti-repeat reminders at streak counts 3, 5, and 8#15

Merged
sailist merged 2 commits into
MoonshotAI:mainfrom
sailist:haozhe/anti-repeat
May 25, 2026
Merged

fix(agent-core): tier anti-repeat reminders at streak counts 3, 5, and 8#15
sailist merged 2 commits into
MoonshotAI:mainfrom
sailist:haozhe/anti-repeat

Conversation

@sailist
Copy link
Copy Markdown
Collaborator

@sailist sailist commented May 25, 2026

Summary

Replace the single threshold of 7 with tiered reminders triggered at streak counts 3, 5, and 8. The first reminder is a generic nudge, while the second and third include the tool name, repeat count, and arguments for stronger guidance.


1. Tiered anti-repeat reminders

Problem: The previous anti-repeat mechanism used a single threshold (7 consecutive identical tool calls) to remind the agent, which provided too little feedback early and too much all at once.

What was done:

  • Introduced three reminder tiers at streak counts 3, 5, and 8.
  • The first tier (count 3) sends a generic nudge.
  • The second tier (count 5) and third tier (count 8) include the tool name, repeat count, and arguments to give the agent stronger, more actionable guidance.
  • Updated the corresponding test suite to cover all three tiers and verify message content.
  • Added a changeset documenting the fix.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Replace the single threshold of 7 with tiered reminders triggered at streak counts 3, 5, and 8.\nThe first reminder is a generic nudge, while the second and third include\nthe tool name, repeat count, and arguments for stronger guidance.
@sailist sailist force-pushed the haozhe/anti-repeat branch from 8a25903 to ce15ce7 Compare May 25, 2026 07:41
@sailist sailist merged commit ee7486c into MoonshotAI:main May 25, 2026
4 checks passed
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