Agent hooks are different from Git hooks.
Agent hooks capture the AI session while you work; Git hooks connect that
captured session to commits and pushes.
What this config affects
Agent hooks control whether Entire can capture:- prompts and transcripts
- tool activity
- changed files
- token usage, when available
- session start and session end events
Start here if
- you are adding or changing an agent
- agent sessions are not being captured or hooks need to be reinstalled
- you are enabling an external agent plugin
Configure agent hooks
- Built-in agents
- External agents
Add a supported agent with:For example:During initial setup, choose an agent with:
You can enable multiple agents at the same time. Each agent’s hooks are independent.
Agent hook files
Each agent stores its hook configuration in its own directory. When you runentire enable or entire agent add, hooks are installed in the appropriate location for each selected agent:| Agent | Hook location | Format |
|---|---|---|
| Claude Code | .claude/settings.json | JSON hooks config |
| Codex | .codex/hooks.json | JSON hooks config |
| Copilot CLI | .github/hooks/entire.json | JSON hooks config |
| Cursor | .cursor/hooks.json | JSON hooks config |
| Gemini CLI | .gemini/settings.json | JSON hooks config |
| OpenCode | .opencode/plugins/entire.ts | TypeScript plugin |
| Factory Droid | .factory/settings.json | JSON hooks config |
| Pi | .pi/extensions/entire/index.ts | TypeScript extension |
Reinstall agent hooks
If an agent hook is missing, stale, or was edited outside Entire, reinstall it with:Verify agent hooks
After configuring agent hooks, run:entire agent list to confirm the agent is installed. Use entire status --detailed to confirm Entire is enabled in the repository.
Then start a fresh session with the configured agent from inside the repository. If the agent was already running before hooks were installed, restart it.