Claude Hook Experiment
Description
Reproducible Claude Code hook experiments for validating settings-based hook behavior
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
claude-hook-experiment
Reproducible Claude Code hook experiments.
Snapshot
Included snapshot:
- Claude Code
2.1.72 - OS
Darwin 25.3.0
Observed in the included runs:
- settings-based
PreToolUse,Stop, andSubagentStopworked in the tested cases - plain stdout from
PostToolUsedid not appear as model-visible lint feedback hookSpecificOutput.additionalContextwas observed in-pand in the checked true TTY interactive case- the tested
plugin_dirsettings-hook cases worked - frontmatter
Stopwas not observed on the tested plugin-backed subagent path
Raw snapshots are stored in `results/`.
Layout
config/settings.local.json: shared settings-based hook fixturescripts/: experiment runnersresults/: saved JSONL snapshots from 2026-03-11cases/: minimal truth-case fixtureslogs/: selected TTY logs
Requirements
- Claude Code CLI (
claude) jqbash
Quick Start
For a manual smoke test:
./scripts/quick_test.sh
This prints a 3-case manual check and creates a small fixture under the system temp directory.
Re-run the automated matrix
Baseline matrix:
./scripts/run_auto_tests.sh
Default outputs:
${TMPDIR:-/tmp}/claude-hook-experiment/auto_cases/${TMPDIR:-/tmp}/claude-hook-experiment/auto_results.generated.jsonl
Focused matrix:
CLAUDE_MODEL=sonnet ./scripts/run_focus_tests.sh
Default outputs:
${TMPDIR:-/tmp}/claude-hook-experiment/focus_cases/${TMPDIR:-/tmp}/claude-hook-experiment/focus_results.generated.jsonl
Compare against the saved snapshots:
diff -u results/auto_results.jsonl "${TMPDIR:-/tmp}/claude-hook-experiment/auto_results.generated.jsonl"
diff -u results/focus_results.jsonl "${TMPDIR:-/tmp}/claude-hook-experiment/focus_results.generated.jsonl"
Manual truth cases
These fixtures were used to check stdout vs `additionalContext`, and local vs plugin-backed frontmatter `Stop`.
cases/tty_truth_post_stdout_sonnet
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11