MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_upsert_gemini_session_hooks

Function cbm_upsert_gemini_session_hooks

src/cli/cli.c:2280–2287  ·  view source on GitHub ↗

Gemini CLI / Antigravity SessionStart reminder. settings.json uses the same * hooks. [].hooks[] JSON shape as Claude, so it reuses upsert_hooks_json. * The SessionStart matcher is advisory in Gemini (it does not filter lifecycle * sources), so a single "startup" entry fires on startup/resume/clear. The * command's stdout is injected as session context. (Gemini/Antigravity parity * with

Source from the content-addressed store, hash-verified

2278 * command's stdout is injected as session context. (Gemini/Antigravity parity
2279 * with the Claude/Codex SessionStart reminder.) */
2280int cbm_upsert_gemini_session_hooks(const char *settings_path) {
2281 return upsert_hooks_json((hooks_upsert_args_t){
2282 .settings_path = settings_path,
2283 .hook_event = "SessionStart",
2284 .matcher_str = "startup",
2285 .command_str = CMM_SESSION_REMINDER_CMD,
2286 });
2287}
2288
2289int cbm_remove_gemini_session_hooks(const char *settings_path) {
2290 return remove_hooks_json((hooks_remove_args_t){

Callers 3

install_gemini_configFunction · 0.85
test_cli.cFile · 0.85

Calls 1

upsert_hooks_jsonFunction · 0.85

Tested by

no test coverage detected