Agent support · Hooks & Lifecycle

Control file access

Dedicated hooks for file read and write operations — enforce access policies, trigger linting, or audit file changes

Baseline Widely available Fully supported by every tracked agent since Mar 2026, when Codex added it. Based on web.dev's Baseline
Tool-Specific Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
Not released
Claude Code Current · Oct 2026
Codex Current · Oct 2026
GitHub Copilot Current · Oct 2026
Cursor Current · Oct 2026
OpenCode Current · Oct 2026
1.0.38 - 2.1.311
0.117.0 - 0.164.0
0.0.396 - 1.0.103
2.4 - 3.27
0.3.114 - 1.19.4
0.2.31 - 1.0.37
0.2.0 - 0.116.0
0.0.374 - 0.0.395
1.7 - 2.0
0.1.148 - 0.3.102
—
—
—
0.45 - 1.3
0.1.30 - 0.1.146

Supported by all 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code PreToolUse with Read|Edit|Write matcher
  • codex PreToolUse on apply_patch
  • copilot preToolUse (file tools)
  • cursor beforeReadFile, afterFileEdit, beforeTabFileRead, afterTabFileEdit
  • opencode tool.execute.before (read/edit), file.edited

Sub-capabilities

  • Pre-read: restrict which files the agent can access
  • Post-write: trigger linting, formatting, or validation after edits
  • Cursor: separate events for agent chat and Tab completions