-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
54 lines (54 loc) · 1.63 KB
/
Copy pathsettings.json
File metadata and controls
54 lines (54 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"_comment": "Drop-in .claude/settings.json for armor + Claude Code. See examples/claude_code/README.md for setup walkthrough. The ${ARMOR_SOCKET} variable lets users override the daemon socket without editing this file; defaults to /var/run/armor.sock if unset.",
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "armor check input --hook-mode --socket ${ARMOR_SOCKET:-/var/run/armor.sock} --session-id ${CLAUDE_SESSION_ID:-default}"
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "armor check tool --hook-mode --socket ${ARMOR_SOCKET:-/var/run/armor.sock} --session-id ${CLAUDE_SESSION_ID:-default}"
}
]
}
],
"PostToolUse": [
{
"matcher": "Read|WebFetch|Grep|Glob|mcp__.*__read.*",
"hooks": [
{
"type": "command",
"command": "armor check fetched --hook-mode --socket ${ARMOR_SOCKET:-/var/run/armor.sock} --session-id ${CLAUDE_SESSION_ID:-default}"
}
]
},
{
"hooks": [
{
"type": "command",
"command": "armor check output --hook-mode --socket ${ARMOR_SOCKET:-/var/run/armor.sock} --session-id ${CLAUDE_SESSION_ID:-default}"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "armor session close --socket ${ARMOR_SOCKET:-/var/run/armor.sock} --session-id ${CLAUDE_SESSION_ID:-default}"
}
]
}
]
}
}