{ "$schema": "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/schema/settings-schema.json", "hooks": { "BeforeTool": [ { "matcher": "run_shell_command|read_file|read_many_files|grep_search|search_file_content|web_fetch|activate_skill|mcp__plugin_context-mode", "hooks": [ { "type": "command", "command": "context-mode hook gemini-cli beforetool" } ] } ], "AfterTool": [ { "matcher": "", "hooks": [ { "type": "command", "command": "context-mode hook gemini-cli aftertool" } ] } ], "PreCompress": [ { "matcher": "", "hooks": [ { "type": "command", "command": "context-mode hook gemini-cli precompress" } ] } ], "SessionStart": [ { "matcher": "", "hooks": [ { "type": "command", "command": "context-mode hook gemini-cli sessionstart" } ] } ] } }