feat(hooks)!: self-tagging-first — realtime auto-capture OFF by default (0.14.0)#27
Merged
Merged
Conversation
…lt (0.14.0) The per-chunk `claude -p` auto-capture design was the root cause of the recursion fork bomb (0.13.1), the `git pull origin HEAD` storm (Claude Code syncs git plugin-marketplaces on every `claude -p` startup), the runaway pending backlog, and burned Agent SDK credit: each classification booted a full Claude Code agent (160k-context: CLAUDE.md + every plugin + hooks + MCP) just to label one line. The working agent already has the context. It records reasoning directly via the MCP tools — free, accurate, language-agnostic. That is now THE path. - `install-hooks` default wires only the cheap, read-only SessionStart resume hook. No per-message classifier, no `claude -p`, nothing charged. - The per-message + PreCompact ingest hooks move behind `--auto-capture`. The classifier backends and the recursion guard stay in the codebase, unchanged, for users who explicitly opt in. - `dream` offline backfill unchanged (manual, batched). - README + CHANGELOG updated; tests cover both the default (SessionStart-only) and `--auto-capture` (all events) install paths. BREAKING: fresh installs no longer auto-classify. Re-run `install-hooks --auto-capture` to restore the old behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The per-chunk
claude -pauto-capture design booted a full Claude Code agent (CLAUDE.md + every plugin + hooks + MCP + plugin-marketplacegit pull) just to label one line. Root cause of: the recursion fork bomb (fixed 0.13.1), thegit pull origin HEADstorm, a runaway pending backlog, and burned Agent SDK credit.The working agent already has the context and judgment — it records reasoning directly via the MCP tools (free, accurate, language-agnostic). That is now the path (the bundled skill drives it).
Changes
install-hooksdefault now wires only the cheap, read-only SessionStart resume hook. No per-message classifier, noclaude -pspawned, nothing charged.install-hooks --auto-capture(honors--backend). The classifier backends (heuristic/agent-sdk/api/hybrid) and the recursion guard stay in the codebase, unchanged.dreamoffline backfill unchanged (manual, batched LLM pass).Tests
install_hooks_writes_to_settings_json→ asserts the default wires SessionStart and not the per-message classifier hooks.install_hooks_auto_capture_wires_all_events→--auto-capturewires all events.install_hooks_wires_precompact_event→ now under--auto-capture.cargo fmt --all --checkclean;cargo clippy --workspace --all-targetsclean;cargo test --workspacegreen.Breaking
Fresh installs no longer auto-classify. Re-run
install-hooks --auto-captureto restore the old behavior.🤖 Generated with Claude Code