SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-04-09 18:52 UTC

claudeclaw

Committed by promptadvisers. Update Category: New Features & Capability Expansion. Commit details: feat: add configurable AGENT_MAX_TURNS to prevent runaway tool-use loops. This update introduces new capabilities and expands supported use cases.

promptadvisers 545a6d1 earlyaidopters/claudeclaw

CommitRaw commit message

feat: add configurable AGENT_MAX_TURNS to prevent runaway tool-use loops

When external services fail (e.g. expired auth tokens), agents could
enter 40+ sequential tool-call spirals retrying the same failing
approach until the timeout. This adds a maxTurns cap (default 30)
passed to the Claude Agent SDK query(), forcing the agent to respond
instead of looping. Set AGENT_MAX_TURNS=0 in .env to disable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>