Skip to content

feat(reliability): hardened MCP instructions + default no-model nudge (0.14.1)#28

Merged
Shahinyanm merged 1 commit into
mainfrom
feat/reliable-self-tagging
Jun 12, 2026
Merged

feat(reliability): hardened MCP instructions + default no-model nudge (0.14.1)#28
Shahinyanm merged 1 commit into
mainfrom
feat/reliable-self-tagging

Conversation

@Shahinyanm

Copy link
Copy Markdown
Member

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)

  • Hardened MCP_INSTRUCTIONS — a non-negotiable "you are the recorder" ritual delivered by task-journal-mcp every 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 UserPromptSubmit additionalContext reminder. No model, never spawns claude -p.
  • 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 (appends ingest-hook to message events).
  • --uninstall strips the nudge too; tests cover the new default vs --auto-capture.

Verification

  • cargo fmt --all --check clean; cargo clippy --workspace --all-targets clean; cargo test --workspace green.
  • task-journal nudge emits valid UserPromptSubmit additionalContext JSON.

Default install remains model-free: SessionStart resume + UserPromptSubmit nudge. No claude -p out of the box.

🤖 Generated with Claude Code

… (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.
@Shahinyanm Shahinyanm merged commit 7172935 into main Jun 12, 2026
7 checks 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