intent hooks install installs lifecycle hooks that surface available Intent skills and enforce loading matching guidance before edits in supported agents.
npx @tanstack/intent@latest hooks install [--scope project|user] [--agents copilot,claude,codex|all]npx @tanstack/intent@latest hooks install [--scope project|user] [--agents copilot,claude,codex|all]| Agent | Project scope | User scope | Hooks installed |
|---|---|---|---|
| Claude Code | .claude/settings.json | ~/.claude/settings.json | SessionStart skill catalog plus PreToolUse edit gate |
| Codex | .codex/hooks.json | ~/.codex/hooks.json | SessionStart skill catalog plus PreToolUse edit gate; Codex hook interception is not a complete security boundary |
| GitHub Copilot CLI | Guidance via .github/copilot-instructions.md; blocking hooks are not project-scoped | $COPILOT_HOME/hooks/hooks.json or ~/.copilot/hooks/hooks.json | SessionStart skill catalog plus PreToolUse edit gate in user scope |
| Cursor | Guidance only | Guidance only | Use AGENTS.md or Cursor rules; no blocking hook is installed |
| Generic AGENTS.md agents | Guidance only | Guidance only | Use the intent-skills guidance block; no blocking hook is installed |
.github/copilot-instructions.md is a supported project guidance target for intent install. GitHub Copilot CLI hook enforcement uses the user-scoped Copilot hooks directory because that is the supported hook location.
Codex requires users to review and trust non-managed hooks before they run. If Codex reports hooks awaiting review, open its hook browser and trust the generated Intent hook.