38 lines
957 B
JSON
38 lines
957 B
JSON
{
|
|
"context": {
|
|
"fileName": [
|
|
"GEMINI.md"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"BeforeTool": [
|
|
{
|
|
"matcher": "write_file|replace|delete_file|run_shell_command",
|
|
"hooks": [
|
|
{
|
|
"name": "protect-raw-sources",
|
|
"type": "command",
|
|
"command": "node \"$GEMINI_PROJECT_DIR/.gemini/hooks/protect-raw-sources.cjs\"",
|
|
"timeout": 5000,
|
|
"description": "Prevent the agent from mutating raw/ sources."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"AfterTool": [
|
|
{
|
|
"matcher": "write_file|replace|delete_file",
|
|
"hooks": [
|
|
{
|
|
"name": "wiki-write-reminder",
|
|
"type": "command",
|
|
"command": "node \"$GEMINI_PROJECT_DIR/.gemini/hooks/wiki-write-reminder.cjs\"",
|
|
"timeout": 5000,
|
|
"description": "Remind the agent to keep wiki/index.md and wiki/log.md in sync."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|