Skip to content

Restore .agents hook path compatibility for Claude prompt hooks#158

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/restore-agents-hook-bridge-2026-04-20-08-45
Apr 20, 2026
Merged

Restore .agents hook path compatibility for Claude prompt hooks#158
NagyVikt merged 1 commit into
mainfrom
agent/codex/restore-agents-hook-bridge-2026-04-20-08-45

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

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
@NagyVikt NagyVikt merged commit 2b9fc6a into main Apr 20, 2026
@NagyVikt NagyVikt deleted the agent/codex/restore-agents-hook-bridge-2026-04-20-08-45 branch April 20, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant