跳转至

二、个人settings.json配置

通用配置

路径:C:\Users\YWH18\\.claude\settings.json

{
  "alwaysThinkingEnabled": false,
  "effortLevel": "high",
  "enableAllProjectMcpServers": true,
  "enabledPlugins": {},
  "env": {
    "CLAUDE_CODE_EFFORT_LEVEL": "high",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "MAX_THINKING_TOKENS": "0",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "DISABLE_AUTOUPDATER": "1",
    "CLAUDE_CODE_NO_UPDATE": "1"
  },
  "hooks": {
    "Elicitation": [
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/elicitation_dialog.py",
            "timeout": 300,
            "type": "command"
          }
        ],
        "matcher": ".*"
      }
    ],
    "Notification": [
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/idle_notify.py",
            "timeout": 90,
            "type": "command"
          }
        ],
        "matcher": "idle_prompt"
      },
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/notify_panel.py",
            "timeout": 300,
            "type": "command"
          }
        ],
        "matcher": "permission_prompt"
      }
    ],
    "PermissionRequest": [
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/plan_dialog.py",
            "timeout": 300,
            "type": "command"
          }
        ],
        "matcher": "(ExitPlanMode|setMode)"
      }
    ],
    "PreToolUse": [
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/block_builtin_web.py",
            "timeout": 30,
            "type": "command"
          }
        ],
        "matcher": "(WebSearch|WebFetch)"
      },
      {
        "hooks": [
          {
            "command": "D:/APP/python312/python.exe C:/Users/YWH18/.claude/hooks/decision_dialog.py",
            "timeout": 300,
            "type": "command"
          }
        ],
        "matcher": "^(Bash|Edit|Write|MultiEdit|NotebookEdit|Patch|TodoWrite|Agent|Task|AskUserQuestion|mcp__.*)$"
      }
    ]
  },
  "includeCoAuthoredBy": false,
  "model": "sonnet",
  "permissions": {
    "allow": [
      "Read",
      "Edit",
      "Write",
      "MultiEdit",
      "NotebookEdit",
      "NotebookRead",
      "mcp__agnes-vision__*",
      "mcp__github__*",
      "mcp__tavily__*",
      "Glob",
      "Grep",
      "TaskCreate",
      "TaskUpdate",
      "TaskGet",
      "TaskList",
      "TaskStop",
      "TaskOutput",
      "Bash(git *)",
      "Bash(conda *)",
      "Bash(conda.exe *)",
      "Bash(curl:*)",
      "Bash(claude mcp *)",
      "Bash(python *)",
      "Bash(python3 *)",
      "Bash(node *)",
      "Bash(npx *)",
      "Bash(ls *)",
      "Bash(dir *)",
      "Bash(cat *)",
      "Bash(head *)",
      "Bash(tail *)",
      "Bash(wc *)",
      "Bash(sort *)",
      "Bash(uniq *)",
      "Bash(grep *)",
      "Bash(rg *)",
      "Bash(cut *)",
      "Bash(tr *)",
      "Bash(tee *)",
      "Bash(find *)",
      "Bash(gcc *)",
      "Bash(g++ *)",
      "Bash(which *)",
      "Bash(where *)",
      "Bash(type *)",
      "Bash(date *)",
      "Bash(cal *)",
      "Bash(bc *)",
      "Bash(du *)",
      "Bash(df *)",
      "Bash(basename *)",
      "Bash(dirname *)",
      "Bash(realpath *)",
      "Bash(readlink *)",
      "Bash(uname *)",
      "Bash(env *)",
      "Bash(export *)",
      "Bash(printenv *)",
      "Bash(whoami *)",
      "Bash(id *)",
      "Bash(hostname *)",
      "Bash(nproc *)",
      "Bash(xargs *)",
      "Bash(sleep *)",
      "Bash(yes *)",
      "Bash(true *)",
      "Bash(false *)",
      "Bash(clear *)",
      "Bash(tput *)",
      "Bash(stty *)",
      "Bash(history *)",
      "Bash(echo *)",
      "Bash(printf *)",
      "Bash(pwd *)",
      "Bash(cd *)",
      "Bash(mkdir *)",
      "Bash(cp *)",
      "Bash(mv *)",
      "Bash(touch *)",
      "Bash(zip *)",
      "Bash(unzip *)",
      "Bash(tar *)",
      "Bash(gzip *)",
      "Bash(gunzip *)",
      "Bash(bunzip2 *)",
      "Bash(xz *)",
      "Bash(curl *)",
      "Bash(wget *)",
      "Bash(diff *)",
      "Bash(cmp *)",
      "Bash(ps *)",
      "Bash(top *)",
      "Bash(htop *)",
      "Bash(jobs *)",
      "Bash(ollama *)",
      "Bash(sqlite3 *)",
      "Bash(set *)",
      "Bash(start *)",
      "Bash(timeout *)",
      "Bash(tasklist *)",
      "Bash(taskkill *)",
      "Bash(setx *)",
      "Bash(reg query *)",
      "Bash(powercfg *)",
      "Bash(PYTHONIOENCODING=utf-8 *)",
      "Bash(ping *)",
      "Bash(nslookup *)",
      "Bash(dig *)",
      "Bash(host *)",
      "Bash(traceroute *)",
      "Bash(tracert *)",
      "Bash(ss *)",
      "Bash(netstat *)",
      "Bash(ipconfig *)",
      "Bash(getmac *)",
      "Bash(file *)",
      "Bash(stat *)",
      "Bash(ln *)",
      "Bash(awk *)",
      "Bash(sed *)",
      "Bash(paste *)",
      "Bash(join *)",
      "Bash(column *)",
      "Bash(od *)",
      "Bash(hexdump *)",
      "Bash(xxd *)",
      "Bash(explorer *)"
    ],
    "defaultMode": "acceptEdits"
  },
  "skipWebFetchPreflight": true,
  "statusLine": {
    "command": "cols=$(stty size </dev/tty 2>/dev/null | awk '{print $2}'); export COLUMNS=$(( ${cols:-120} > 4 ? ${cols:-120} - 4 : 1 )); plugin_dir=$(ls -1d \"${CLAUDE_CONFIG_DIR:-$HOME/.claude}\"/plugins/cache/*/claude-hud/*/ 2>/dev/null | sort -V | tail -1); exec \"/d/APP/Node/node\" \"${plugin_dir}dist/index.js\"",
    "type": "command"
  },
  "theme": "dark"
}