SkillPedia Skills Encyclopedia
中文 EN

技能 2026-04-09 18:52 UTC

claudeclaw

由提交人 promptadvisers 提交,主要更新类型为:新增功能与能力扩展。提交说明:feat: add configurable AGENT_MAX_TURNS to prevent runaway tool-use loops。带来了新的能力与可配置项,扩展了使用场景。

promptadvisers 545a6d1 earlyaidopters/claudeclaw

Commit提交信息原文

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>