38 lines
1.6 KiB
JSON
38 lines
1.6 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(grep -n \"_is_context_too_large_error\" core/framework/agent_loop/agent_loop.py core/framework/agent_loop/internals/*.py)",
|
|
"Read(//^class/ {cls=$3} /def test_/**)",
|
|
"Read(//^ @pytest.mark.asyncio/{getline n; print NR\": \"n} /^ def test_/**)",
|
|
"Bash(python3)",
|
|
"Bash(grep -nE 'Tool\\\\\\(\\\\s*$|name=\"[a-z_]+\",' core/framework/tools/queen_lifecycle_tools.py)",
|
|
"Bash(awk -F'\"' '{print $2}')",
|
|
"Bash(grep -n \"create_colony\\\\|colony-spawn\\\\|colony_spawn\" /home/timothy/aden/hive/core/framework/agents/queen/nodes/__init__.py /home/timothy/aden/hive/core/framework/tools/*.py)",
|
|
"Bash(git stash:*)",
|
|
"Bash(python3 -c \"import sys,json; d=json.loads\\(sys.stdin.read\\(\\)\\); print\\('keys:', list\\(d.keys\\(\\)\\)[:10]\\)\")",
|
|
"Bash(python3 -c ':*)",
|
|
"Bash(uv run:*)",
|
|
"Read(//tmp/**)",
|
|
"Bash(grep -n \"useColony\\\\|const { queens, queenProfiles\" /home/timothy/aden/hive/core/frontend/src/pages/queen-dm.tsx)",
|
|
"Bash(awk 'NR==385,/\\\\}, \\\\[/' /home/timothy/aden/hive/core/frontend/src/pages/queen-dm.tsx)"
|
|
],
|
|
"additionalDirectories": [
|
|
"/home/timothy/.hive/skills/writing-hive-skills",
|
|
"/tmp"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write|NotebookEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "ruff check --fix \"$CLAUDE_FILE_PATH\" 2>/dev/null; ruff format \"$CLAUDE_FILE_PATH\" 2>/dev/null; true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|