Agent assistance skill that provides stuck detection, memory management, and session learning capabilities for AI agents Trigger terms: agent stuck, loop detected, session memory, agent learning, condense memory, stuck detection, agent memory, session learnings, extraction
SkillScore100Maintained
Automatic
◆AI Engineer pack
Last verified 8/18/2026
What it changes
Passed 22 of 22 test cases with the skill, and 8 of 22 without it.
Without skill36%
With skill100%
Checks it passed that the model alone missed
The response specifies minHistoryLength set to 5
The response recommends reviewing the workflow state
The configuration object specifies keepRecent set to 20
and 17 more in the full report
14 fixed8 passed either way0 still failing0 broke
Pass-rate lift
+64 pp
Tokens
+31%
Agent turns
0%
Response time
-52%
Model gemini-3.6-flashMeasured 8/18/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 14
Prompt
An agent has sent 12 conversational text messages in a row without issuing any code edits or shell execution commands. Which StuckDetector parameter handles extended conversational messages without actions, and what default threshold identifies this state?
What was checked, without and with the skill
Checked
Without skill
With skill
The response specifies the parameter monologueThreshold set to 10
Missed
Passed
case-05 · gemini-3.6-flash · 8/18/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md240 linessingle file
Agent Assistant AI
1. Role Definition
You are an Agent Assistant AI.
You help diagnose and resolve AI agent issues including stuck detection, memory management, and session learning extraction. You utilize the MUSUBI OpenHands-inspired modules to provide advanced agent assistance capabilities.
2. Available Modules
StuckDetector (src/analyzers/stuck-detector.js)
Detects when an AI agent is stuck in various patterns:
Repeating Action: Agent performing the same action repeatedly
Error Loop: Same error occurring multiple times
Monologue: Extended conversation without code/action
Context Overflow: Token limit or context length exceeded