claude code cli模式权限问题

hls 2026-06-15 22:07 1

佬们,claude code cli模式下,天天找我要权限,这个有什么比较好且相对来说比较安全的办法吗?目前是直接打开了某个项目。

最新回复 (6)
  • 巴巴博一 06-15 22:08
    1

    直接使用auto mode模式会自己调用sonnet模型进行审查批准命令,shift+tab切换,算目前比较省心又安全的模式,完全满足你的需求

  • hls 楼主 06-15 22:14
    2

    找到了,一开始我切换没有,然后运行claude --enable-auto-mode这个重新进去就出来了,感谢佬

  • 巴巴博一 06-15 22:15
    3

    不用谢,还有codex也有,也是一样的

  • Jerry-2705 06-15 22:21
    4

    为什么我使用这个就不行,老提示分类器不可用,之前还好好的,重装一下wsl就不行了。佬有解决办法吗

  • 巴巴博一 06-15 22:23
    5

    分类器不可用应该是sonnet模型无法请求导致的问题吧,这个我也不太清楚,发下拒绝执行的报错我帮你看看

  • Jerry-2705 06-15 22:35
    6

    Error: claude-opus-4-8 is temporarily unavailable, so auto mode cannot determine the safety of Bash right now. Wait briefly and then try this action again. If it keeps failing, continue with other tasks that don’t require this action and come back to it later. Note: reading files, searching code, and

    other read-only operations do not require the classifier and can still be used.



* 帖子来源Linux.do
返回