PulseAugur
中
实时 04:37:11
English(EN) Bash(git push *) in a Claude Code subagent's disallowedTools took away all of Bash in 10 of 10 launches, not just git push

Claude Code子代理工具拒绝配置错误导致Bash工具被移除

一位测试Claude Code子代理功能的发现,`disallowedTools: Bash(git push *)`设置并未按预期工作。该设置不仅阻止了`git push`命令,反而完全移除了Bash工具,导致`git status`等其他Bash命令失败。文档建议在设置中使用`Bash deny rule`进行更精细化的控制,这被发现能更有效地阻止特定命令,同时允许其他命令。 AI

影响 突显了Anthropic的Claude Code工具配置中的一个关键错误,可能影响用户对代理功能的控制。

排序理由 用户报告的特定工具功能中的错误/配置错误。

在 dev.to — Claude Code tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Claude Code子代理工具拒绝配置错误导致Bash工具被移除

本文如何被排名

Signal score
27 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
用户报告的特定工具功能中的错误/配置错误。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Rulestack ·

    Claude Code子代理的disallowedTools中的Bash(git push *)在10次启动中的10次都移除了所有Bash功能,而不仅仅是git push

    <blockquote> <p>On Claude Code 2.1.289, a subagent whose <code>disallowedTools</code> said <code>Bash(git push *)</code> started without the Bash tool in 10 of 10 launches, so <code>git status</code> and <code>echo</code> failed along with the push, just as the docs warn. The doc…