mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-08-10 16:32:28 +00:00
Claude Code discovers CLAUDE.md but not AGENTS.md, so the contributor instructions were loading for nobody. The import shim is what our own docs already recommend to users in docs/edge/en/guides/coding-tools/agents-md.mdx. The PreToolUse guard enforces only rules already written in CONTRIBUTING.md and AGENTS.md, so it adds no policy of its own. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH
25 lines
491 B
JSON
25 lines
491 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write|MultiEdit|NotebookEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\""
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|