Skip to content

Fix Claude hook bootstrap execution and align docs with token-optimizer#27

Merged
aayushostwal merged 1 commit into
mainfrom
fix/claude-bootstrap-hook-readme-token-optimizer
May 14, 2026
Merged

Fix Claude hook bootstrap execution and align docs with token-optimizer#27
aayushostwal merged 1 commit into
mainfrom
fix/claude-bootstrap-hook-readme-token-optimizer

Conversation

@aayushostwal

Copy link
Copy Markdown
Owner

Summary

  • fix Claude/Codex model-router hook entrypoints to run as executable hook commands
  • add shared scripts/run-model-router-hook.js that parses hook stdin payloads and invokes the router
  • ensure hook files are executable and add regression checks
  • update README to remove stale agents links and replace token-saving with token-optimizer
  • extend bootstrap/model-router tests for new bootstrap instruction and real hook-command execution

Root cause

The session-start/user-prompt-submit/pre-tool-use model-router hook files were non-executable module stubs, so Claude hook command execution did not run bootstrap logic and ~/.claude/CLAUDE.md was not updated.

Validation

  • npm test

@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nexus Ready Ready Preview, Comment May 14, 2026 5:22am

@aayushostwal
aayushostwal merged commit 673e87c into main May 14, 2026
3 checks passed
@aayushostwal
aayushostwal deleted the fix/claude-bootstrap-hook-readme-token-optimizer branch May 14, 2026 06:15
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