Skip to content

chore: disable worker-docs PR hooks#146

Merged
arjunrajlab merged 1 commit into
masterfrom
claude/disable-worker-docs-hooks
Jun 23, 2026
Merged

chore: disable worker-docs PR hooks#146
arjunrajlab merged 1 commit into
masterfrom
claude/disable-worker-docs-hooks

Conversation

@arjunrajlab

Copy link
Copy Markdown
Collaborator

Why

The two worker-docs Claude Code hooks repeatedly caused friction on PRs:

  • update-worker-docs.sh (PostToolUse) re-ran generate_worker_docs.py and committed the result on every gh pr create/edit. Because the committed REGISTRY.md drifts from the generator's current output, this swept unrelated one-line description changes (for workers the PR never touched) into otherwise-focused diffs.
  • validate-worker-docs.sh (PreToolUse) blocked any PR that modified a worker without also updating REGISTRY.md — forcing that same noisy regeneration into logic-only PRs just to pass the check.

(Concretely: the polygon-geometry fix in #145 is a pure logic change, yet these hooks wanted ~21 lines of unrelated REGISTRY.md description churn committed alongside it.)

What

  • Unregister both hooks from .claude/settings.json (now { "hooks": {} }).
  • Keep both scripts in .claude/hooks/ with a DISABLED note at the top of each, so they can be re-registered later.
  • Update CLAUDE.md to mark both hook sections DISABLED and explain why.

Worker docs / REGISTRY.md become a manual step: run python generate_worker_docs.py when a worker's interface or labels actually change.

Not changed

generate_worker_docs.py itself is untouched — only the automatic invocation/validation is removed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MgYphJWw3jgQoLx5MXz95h

Unregister both worker-docs Claude Code hooks from .claude/settings.json:

- PostToolUse update-worker-docs.sh auto-ran generate_worker_docs.py and
  committed the result on every `gh pr create`/`edit`, sweeping unrelated
  worker-description drift (stale summaries for workers the PR never touched)
  into otherwise-focused diffs.
- PreToolUse validate-worker-docs.sh blocked any PR that changed a worker
  without also updating REGISTRY.md, forcing that same noisy regeneration into
  logic-only PRs just to pass the check.

The hook scripts are kept in .claude/hooks/ (with a DISABLED note at the top of
each) so they can be re-registered later; CLAUDE.md is updated to mark both
hooks disabled and explain why. Worker docs/REGISTRY.md are now a manual
`python generate_worker_docs.py` step, run when a worker's interface or labels
actually change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MgYphJWw3jgQoLx5MXz95h
@arjunrajlab arjunrajlab merged commit 88e0997 into master Jun 23, 2026
1 check passed
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