Skip to content

fix: insight mode claim extraction instructions in CLAUDE.md (v3)#103

Open
terpjwu1 wants to merge 2 commits into
masterfrom
fix/insight-mode-claude-md-instructions
Open

fix: insight mode claim extraction instructions in CLAUDE.md (v3)#103
terpjwu1 wants to merge 2 commits into
masterfrom
fix/insight-mode-claude-md-instructions

Conversation

@terpjwu1
Copy link
Copy Markdown
Collaborator

Summary

  • Bumps CLAUDE.md prompt injection from v2 → v3 with explicit insight mode instructions for passing claims, edges, and cwd on every buddy_observe call
  • Installer upgrade logic strips old v2 blocks and replaces with v3 (both install.sh and install.ps1)
  • Doctor sentinel updated to recognize both v2 and v3 as current

Problem

Insight mode was "inert" — on but collecting zero claims — because the CLAUDE.md injection only told hosts to pass a summary. The extraction instruction was buried in the observer prompt response which hosts don't reliably act on across turns.

Test plan

  • npm test — 727 tests pass
  • Doctor sentinel test updated for v3
  • Manual: re-run installer on a machine with v2 instructions, verify upgrade to v3
  • Manual: verify fresh install gets v3 instructions

🤖 Generated with Claude Code

terpjwu1 and others added 2 commits April 27, 2026 11:36
…ction (v3)

The v2 prompt injection only told hosts to pass a summary on buddy_observe.
Insight mode requires claims/edges/cwd but the extraction instruction was
only returned in the observer prompt response — which hosts don't reliably
act on across turns. This caused "inert insight mode" where the feature was
on but no claims were collected.

v3 adds explicit instructions for passing claims/edges/cwd when insight mode
is on. The installer upgrade logic strips old v2 blocks and replaces them.
Doctor sentinel updated to recognize both v2 and v3 as current.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- install.sh: add safety guard to verify closing marker exists before
  sed range delete; falls back to single-line removal if malformed
- install.ps1: tighten regex closing pattern from [^>]* to v\d+\s*

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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