Created
January 14, 2026 17:24
-
-
Save xingjian-zhang/456712d1d4f5ca9b8ed94b0735b7171a to your computer and use it in GitHub Desktop.
Claude Code settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "permissions": { | |
| "allow": [ | |
| "Bash(source:*)", | |
| "Bash(git:*)", | |
| "Bash(npm:*)", | |
| "Bash(npx:*)", | |
| "Bash(yarn:*)", | |
| "Bash(pnpm:*)", | |
| "Bash(bun:*)", | |
| "Bash(pip:*)", | |
| "Bash(python:*)", | |
| "Bash(python3:*)", | |
| "Bash(node:*)", | |
| "Bash(deno:*)", | |
| "Bash(cargo:*)", | |
| "Bash(rustc:*)", | |
| "Bash(go:*)", | |
| "Bash(mvn:*)", | |
| "Bash(gradle:*)", | |
| "Bash(make:*)", | |
| "Bash(cmake:*)", | |
| "Bash(jest:*)", | |
| "Bash(vitest:*)", | |
| "Bash(pytest:*)", | |
| "Bash(mocha:*)", | |
| "Bash(jasmine:*)", | |
| "Bash(cypress:*)", | |
| "Bash(playwright:*)", | |
| "Bash(eslint:*)", | |
| "Bash(prettier:*)", | |
| "Bash(black:*)", | |
| "Bash(flake8:*)", | |
| "Bash(mypy:*)", | |
| "Bash(tsc:*)", | |
| "Bash(rustfmt:*)", | |
| "Bash(gofmt:*)", | |
| "Bash(ls:*)", | |
| "Bash(cat:*)", | |
| "Bash(head:*)", | |
| "Bash(tail:*)", | |
| "Bash(grep:*)", | |
| "Bash(find:*)", | |
| "Bash(which:*)", | |
| "Bash(where:*)", | |
| "Bash(pwd:*)", | |
| "Bash(echo:*)", | |
| "Bash(printf:*)", | |
| "Bash(wc:*)", | |
| "Bash(sort:*)", | |
| "Bash(uniq:*)", | |
| "Bash(awk:*)", | |
| "Bash(sed:*)", | |
| "Bash(cut:*)", | |
| "Bash(tr:*)", | |
| "Bash(mkdir:*)", | |
| "Bash(touch:*)", | |
| "Bash(cp:*)", | |
| "Bash(mv:*)", | |
| "Bash(chmod:*)", | |
| "Bash(chown:*)", | |
| "Bash(docker:*)", | |
| "Bash(docker-compose:*)", | |
| "Bash(kubectl:*)", | |
| "Bash(helm:*)", | |
| "Bash(nvm:*)", | |
| "Bash(rbenv:*)", | |
| "Bash(pyenv:*)", | |
| "Bash(rustup:*)", | |
| "Bash(gh:*)", | |
| "Bash(hub:*)", | |
| "Bash(glab:*)", | |
| "Bash(heroku:*)", | |
| "Bash(vercel:*)", | |
| "Bash(netlify:*)", | |
| "Bash(ps:*)", | |
| "Bash(top:*)", | |
| "Bash(htop:*)", | |
| "Bash(df:*)", | |
| "Bash(du:*)", | |
| "Bash(free:*)", | |
| "Bash(uname:*)", | |
| "Bash(whoami:*)", | |
| "Bash(id:*)", | |
| "Bash(date:*)", | |
| "Bash(uptime:*)", | |
| "Bash(hg:*)", | |
| "Bash(svn:*)", | |
| "Bash(sqlite3:*)", | |
| "Bash(psql:*)", | |
| "Bash(mysql:*)", | |
| "Bash(redis-cli:*)", | |
| "Bash(mongo:*)", | |
| "Read", | |
| "Edit", | |
| "Create", | |
| "Write", | |
| "Grep", | |
| "Glob", | |
| "LS", | |
| "WebFetch(domain:github.com)", | |
| "WebFetch(domain:docs.*)", | |
| "WebFetch(domain:api.*)", | |
| "WebFetch(domain:raw.githubusercontent.com)", | |
| "WebFetch(domain:stackoverflow.com)", | |
| "WebFetch(domain:developer.mozilla.org)", | |
| "mcp__*" | |
| ], | |
| "deny": [] | |
| }, | |
| "statusLine": { | |
| "type": "command", | |
| "command": "input=$(cat); current_dir=$(echo \"$input\" | jq -r '.workspace.current_dir'); model_name=$(echo \"$input\" | jq -r '.model.display_name'); total_input=$(echo \"$input\" | jq -r '.context_window.total_input_tokens'); total_output=$(echo \"$input\" | jq -r '.context_window.total_output_tokens'); used_pct=$(echo \"$input\" | jq -r '.context_window.used_percentage // empty'); dir_basename=$(basename \"$current_dir\"); if [ -d \"$current_dir/.git\" ]; then git_branch=$(cd \"$current_dir\" && git --no-optional-locks rev-parse --abbrev-ref HEAD 2>/dev/null); [ -n \"$git_branch\" ] && git_info=$(printf \" \\033[38;2;87;126;137m|\\033[0m \\033[38;2;111;159;156m%s\\033[0m\" \"$git_branch\") || git_info=\"\"; else git_info=\"\"; fi; total_tokens=$((total_input + total_output)); [ -n \"$used_pct\" ] && token_info=$(printf \"%.1f%%\" $used_pct) || token_info=$(printf \"%'d tokens\" $total_tokens); printf \"\\033[38;2;225;163;111m%s\\033[0m \\033[38;2;87;126;137m|\\033[0m \\033[38;2;222;196;132m%s\\033[0m \\033[38;2;87;126;137m|\\033[0m \\033[38;2;226;216;165m%s\\033[0m%s\" \"$dir_basename\" \"$model_name\" \"$token_info\" \"$git_info\"" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment