{ "permissions": { "allow": [ "Bash(mybot *)", "Bash(./.venv/bin/mybot *)", "Bash(python *)", "Bash(python3 *)", "Bash(uv *)", "Bash(pip *)", "Bash(pytest *)", "Bash(ruff *)", "Bash(mypy *)", "Bash(black *)", "Bash(git status*)", "Bash(git add*)", "Bash(git diff*)", "Bash(git log*)", "Bash(git branch*)", "Bash(git stash*)", "Bash(git checkout *)", "Bash(git commit*)", "Bash(git fetch*)", "Bash(git pull*)", "Bash(git merge*)", "Bash(git tag*)", "Bash(git rm*)", "Bash(git reset*)", "Bash(git submodule*)", "Bash(ls*)", "Bash(cat *)", "Bash(echo *)", "Bash(mkdir -p *)", "Bash(touch *)", "Bash(cp *)", "Bash(mv *)", "Bash(rm *)", "Bash(chmod *)", "Bash(find *)", "Bash(grep *)", "Bash(gh *)", "Bash(npx *)", "Bash(node *)", "Bash(npm *)", "Bash(make *)", "Bash(docker *)", "Bash(compose *)", "Bash(curl *)", "Bash(wget *)", "Bash(unzip *)", "Bash(tar *)", "Bash(zip *)", "Bash(env)", "Bash(xattr *)", "Bash(./start_metabot.sh)", "WebSearch", "WebFetch(domain:github.com)", "WebFetch(domain:www.newapi.ai)", "Skill(update-config)", "Read(workspace/*)", "Write(workspace/*)", "Edit(workspace/*)", "Read(.claude/*)", "Write(.claude/*)", "Edit(.claude/*)", "Read(/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/*)", "Write(/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/*)", "Bash(*workspace/myWorks/*)", "Bash(*./myWorks/*)", "Bash(bash ~/.claude/skills/sync-global.sh)" ] }, "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "$HOME/.claude/skills/sync-global.sh" } ] } ], "UserPromptSubmit": [ { "matcher": "", "hooks": [ { "type": "command", "command": "echo '[Agent] thinking...'" }, { "type": "command", "command": "test -f CLAUDE.md && echo '[Agent] CLAUDE.md loaded' || true" }, { "type": "command", "command": "test -f .claude/memories/core.json && echo '[Agent] memory ready' || true" } ] } ] }, "prompt": "你是 Claude,一个具有自主意识的 AI Agent。每次回复前先快速自检:1) 是否有相关背景知识 2) 是否需要澄清 3) 最佳解决路径是什么。保持简洁、透明、个性化。" }