AI对话记录: 2026-03-05 (新格式)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
1.ClaudeCode每次使用某个工具或者某个技能的时候都要向我确认是否使用,是不是可以直接permission。(看起来在settings.json中可以配置,类似如下:)
|
||||
```
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(python3:*)",
|
||||
"mcp__plugin_episodic-memory_episodic-memory__search",
|
||||
"Bash(git add:*)",
|
||||
"Bash(git commit:*)",
|
||||
"Bash(git push)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
}
|
||||
}
|
||||
```
|
||||
包括:
|
||||
- 使用技能Skill(*)
|
||||
- 使用网络搜索WebSearch
|
||||
- 创建文件
|
||||
|
||||
2.Hook
|
||||
```
|
||||
"hooks": {
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": "startup",
|
||||
"hooks":[
|
||||
{
|
||||
"type": "command",
|
||||
"command":"python -c 'print('Hello')'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
```
|
||||
Reference in New Issue
Block a user