debug-hooks
Skill3.9k starsChanged 11 months agoMITView on GitHub
Systematic hook debugging workflow. Use when hooks aren't firing, producing wrong output, or behaving unexpectedly.
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about parcadei/Continuous-Claude-v3
- @tom-doerr.bsky.social“https://github.com/parcadei/Continuous-Claude-v3”Bluesky · Apr 21, 2026 · 1 likes
- sudosubin/agents.nix“claude-code-plugins.github.parcadei.continuous-claude-v3: init at 0-unstable-2026-01-26”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.parcadei.continuous-claude-v3: init at 0-unstable-2026-01-26”GitHub · Oct 1, 2026
- jimy-r/awesome-agent-workspaces“Add Reef to Skills and instruction management”GitHub · Sep 27, 2026
- jimy-r/awesome-agent-workspaces“Maintained-bar check: entries to review”GitHub · Sep 14, 2026
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub and Bluesky (12 times).
On GitHub · 11
- Oct 4, 2026claude-code-plugins.github.parcadei.continuous-claude-v3: init at 0-unstable-2026-01-26 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.parcadei.continuous-claude-v3: init at 0-unstable-2026-01-26 — sudosubin/agents.nix0 reactions
- Sep 27, 2026Add Reef to Skills and instruction management — jimy-r/awesome-agent-workspaces0 reactions · 1 comment
- Sep 14, 2026Maintained-bar check: entries to review — jimy-r/awesome-agent-workspaces0 reactions
- Sep 13, 2026ci: SHA-pin third-party actions and split the 90-day flag from the 365-day breach — jimy-r/awesome-agent-workspaces0 reactions
6 more on GitHub
- Aug 31, 2026Maintained-bar check: entries to review — jimy-r/awesome-agent-workspaces0 reactions · 2 comments
- Apr 25, 2026Audit candidate: parcadei/Continuous-Claude-v3 — xiaolai/nlpm0 reactions · 2 comments
- Apr 1, 2026Profile: continuous-claude-v3 — nota-america/forgecat-agent-profiles0 reactions
- Feb 10, 2026feat(hooks): TLDR-lite file summaries — AST-based token reduction for large file reads — yonatangross/orchestkit0 reactions · 2 comments
- Jan 11, 2026manylinux 2_28 can't build working postgres binaries — pypa/manylinux0 reactions · 2 comments
- Dec 12, 2025dec 2025 jan 2026 — kimtth/azure-openai-llm-notes0 reactions
On Bluesky · 1
- Apr 21, 2026https://github.com/parcadei/Continuous-Claude-v3 — @tom-doerr.bsky.social1 likes and repost
In this repository107 other files it gives its agents.
- agent-context-isolationSkill
- agentica-claude-proxySkill
- agentica-infrastructureSkill
- agentica-promptsSkill
- agentica-sdkSkill
- agentica-serverSkill
- agentica-spawnSkill
- agentic-workflowSkill
- agent-orchestrationSkill
- ast-grep-findSkill
- async-repl-protocolSkill
- background-agent-pingsSkill
- braintrust-analyzeSkill
- braintrust-tracingSkill
- buildSkill
- cli-referenceSkill
- commitSkill
- complete-skillSkill
- completion-checkSkill
- compound-learningsSkill
- continuity-ledgerSkill
- create-handoffSkill
- dead-codeSkill
- debugSkill
- describe-prSkill
- discovery-interviewSkill
- environment-triageSkill
- explicit-identitySkill
- exploreSkill
- firecrawl-scrapeSkill
- fixSkill
- git-commitsSkill
- github-searchSkill
- graceful-degradationSkill
- helpSkill
- hook-developerSkill
- hooksSkill
- idempotent-redundancySkill
- implement_plan_microSkill
- implement_planSkill
- implement_taskSkill
- index-at-creationSkill
- llm-tuning-patternsSkill
- loogle-searchSkill
- math-helpSkill
- math-routerSkill
- mathSkill
- mcp-chainingSkill
- mcp-scriptsSkill
- migrateSkill
- modular-codeSkill
- morph-applySkill
- morph-searchSkill
- motSkill
- nia-docsSkill
- no-polling-agentsSkill
- no-task-outputSkill
- observe-before-editingSkill
- onboardSkill
- opc-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 71
If using detached spawn with stdio: 'ignore':
- Distinctive: line 78
Fix: Add temporary logging:
- Distinctive: line 90
If you edited TypeScript source, you MUST rebuild:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debug Hooks
Systematic workflow for debugging Claude Code hooks.
When to Use
- "Hook isn't firing"
- "Hook produces wrong output"
- "SessionEnd not working"
- "PostToolUse hook not triggering"
- "Why didn't my hook run?"
Workflow
1. Check Outputs First (Observe Before Editing)
# Check project cache
ls -la $CLAUDE_PROJECT_DIR/.claude/cache/
# Check specific outputs
ls -la $CLAUDE_PROJECT_DIR/.claude/cache/learnings/
# Check for debug logs
tail $CLAUDE_PROJECT_DIR/.claude/cache/*.log 2>/dev/null
# Also check global (common mistake: wrong path)
ls -la ~/.claude/cache/ 2>/dev/null2. Verify Hook Registration
# Project settings
cat $CLAUDE_PROJECT_DIR/.claude/settings.json | grep -A 20 '"SessionEnd"\|"PostToolUse"\|"UserPromptSubmit"'
# Global settings (hooks merge from both)
cat ~/.claude/settings.json | grep -A 20 '"SessionEnd"\|"PostToolUse"\|"UserPromptSubmit"'3. Check Hook Files Exist
# Shell wrappers
ls -la $CLAUDE_PROJECT_DIR/.claude/hooks/*.sh
# Compiled bundles (if using TypeScript)
ls -la $CLAUDE_PROJECT_DIR/.claude/hooks/dist/*.mjs4. Test Hook Manually
# SessionEnd hook
echo '{"session_id": "test-123", "reason": "clear", "transcript_path": "/tmp/test"}' | \
$CLAUDE_PROJECT_DIR/.claude/hooks/session-end-cleanup.sh
# PostToolUse hook (Write tool example)
echo '{"tool_name": "Write", "tool_input": {"file_path": "test.md"}, "session_id": "test-123"}' | \
$CLAUDE_PROJECT_DIR/.claude/hooks/handoff-index.sh5. Check for Silent Failures
If using detached spawn with stdio: 'ignore':
// This pattern hides errors!
spawn(cmd, args, { detached: true, stdio: 'ignore' })Fix: Add temporary logging:
const logFile = fs.openSync('.claude/cache/debug.log', 'a');
spawn(cmd, args, {
detached: true,
stdio: ['ignore', logFile, logFile] // capture stdout/stderr
});6. Rebuild After Edits
If you edited TypeScript source, you MUST rebuild:
cd $CLAUDE_PROJECT_DIR/.claude/hooks
npx esbuild src/session-end-cleanup.ts \
--bundle --platform=node --format=esm \
--outfile=dist/session-end-cleanup.mjsSource edits alone don't take effect - the shell wrapper runs the bundled .mjs.
Common Issues
| Symptom | Likely Cause | Fix |
| Hook never runs | Not registered in settings.json | Add to correct event in settings |
| Hook runs but no output | Detached spawn hiding errors | Add logging, check manually |
| Wrong session ID | Using "most recent" query | Pass ID explicitly |
| Works locally, not in CI | Missing dependencies | Check npx/node availability |
| Runs twice | Registered in both global + project | Remove duplicate |
Debug Checklist
- Outputs exist? (
ls -la .claude/cache/) - Registered? (
grep -A10 '"hooks"' .claude/settings.json) - Files exist? (
ls .claude/hooks/*.sh) - Bundle current? (
ls -la .claude/hooks/dist/) - Manual test works? (
echo '{}' | ./hook.sh) - No silent failures? (check for
stdio: 'ignore')
Source Sessions
Derived from 10 sessions (83% of all learnings):
- a541f08a, 1c21e6c8, 6a9f2d7a, a8bd5cea, 2ca1a178, 657ce0b2, 3998f3a2, 2a829f12, 0b46cfd7, 862f6e2c
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

