feat(reliability): hardened MCP instructions + default no-model nudge (0.14.1)#28
Merged
Merged
Conversation
… (0.14.1) Make "every session records to the journal" reliable without spawning any model: - Rewrote MCP_INSTRUCTIONS into a non-negotiable "you are the recorder" ritual (open/resume a task → log decisions/rejections/findings at the moment → self-check before finishing → close with outcome). Delivered by task-journal-mcp every session over the MCP connection — works regardless of hooks, the strongest always-on lever. - New `task-journal nudge`: read-only hook that prints a UserPromptSubmit additionalContext reminder. No model, never spawns `claude -p`, zero cost. - install-hooks default now wires `nudge` on UserPromptSubmit (alongside the SessionStart resume) — both model-free. The per-message classifier stays opt-in via --auto-capture (which appends ingest-hook to the message events). - uninstall also strips the nudge hook; tests updated for the new default. fmt/clippy/test green.
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
Make "every session records to the journal" reliable — without spawning any model. The agent is the recorder; the levers are prompt-level + cheap text hooks, never
claude -p.Changes (all no-model, zero cost)
MCP_INSTRUCTIONS— a non-negotiable "you are the recorder" ritual delivered bytask-journal-mcpevery session over the MCP connection (open/resume a task → log decision/rejection/finding at the moment → self-check before finishing → close with outcome). Works regardless of hooks — the strongest always-on lever.task-journal nudge— a tiny read-only command that prints a UserPromptSubmitadditionalContextreminder. No model, never spawnsclaude -p.install-hooksdefault now wiresnudgeon UserPromptSubmit (alongside the SessionStart resume). Both model-free. The per-message classifier stays opt-in via--auto-capture(appendsingest-hookto message events).--uninstallstrips the nudge too; tests cover the new default vs--auto-capture.Verification
cargo fmt --all --checkclean;cargo clippy --workspace --all-targetsclean;cargo test --workspacegreen.task-journal nudgeemits valid UserPromptSubmit additionalContext JSON.Default install remains model-free: SessionStart resume + UserPromptSubmit nudge. No
claude -pout of the box.🤖 Generated with Claude Code