Commit 2b9fc6a
Restore .agents hook path compatibility for Claude prompt hooks (#158)
Claude/Codex settings invoke hook scripts via .agents/hooks, but this repo only tracked hook files under .codex and .claude. Adding a repo-root compatibility symlink preserves existing hook settings while making the configured path resolvable again.
Constraint: Existing hook settings already target .agents/hooks and should remain stable across clients
Rejected: Repoint all hook commands to .codex/hooks | would require touching generated settings surfaces for both Claude and Codex
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep .agents path contract intact unless hook settings are migrated in one atomic change
Tested: python3 .agents/hooks/skill_activation.py </dev/null; python3 .agents/hooks/skill_guard.py </dev/null; openspec validate agent-codex-restore-agents-hook-bridge-2026-04-20-08-45 --type change --strict; openspec validate --specs
Not-tested: end-to-end interactive Claude hook execution in UI
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>1 parent 2b76911 commit 2b9fc6a
5 files changed
Lines changed: 54 additions & 0 deletions
File tree
- openspec/changes/agent-codex-restore-agents-hook-bridge-2026-04-20-08-45
- specs/restore-agents-hook-bridge
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments