Skip to content

Apply research-backed prompt framing to context injection - #12

Merged
avisual merged 1 commit into
mainfrom
claude/research-prompts-rewards-nFadz
Feb 22, 2026
Merged

avisual merged 1 commit into
mainfrom
claude/research-prompts-rewards-nFadz

Conversation

@avisual

@avisual avisual commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Based on EmotionPrompt and BCSP research, reword how memories are
presented to the LLM to improve attention and adherence:

  • MCP server instructions: establish role and behavioral guidance
    instead of a flat description
  • Hook output headers: "prior learnings — apply these to avoid
    repeating past mistakes" instead of passive "recalled memories"
  • Antipattern framing: confidence-based language (KNOWN MISTAKE for
    high-severity, warning for others) with consequence framing
  • Atom formatting: high-confidence atoms get assertive framing,
    low-confidence atoms get "unverified" hedging
  • MCP prompt templates: add stakes/rationale sentence before
    procedural steps (why > what)

All 1061 tests pass with no regressions.

https://claude.ai/code/session_01J8rNURgnxHZkwshKBEU5Nb

Based on EmotionPrompt and BCSP research, reword how memories are
presented to the LLM to improve attention and adherence:

- MCP server instructions: establish role and behavioral guidance
  instead of a flat description
- Hook output headers: "prior learnings — apply these to avoid
  repeating past mistakes" instead of passive "recalled memories"
- Antipattern framing: confidence-based language (KNOWN MISTAKE for
  high-severity, warning for others) with consequence framing
- Atom formatting: high-confidence atoms get assertive framing,
  low-confidence atoms get "unverified" hedging
- MCP prompt templates: add stakes/rationale sentence before
  procedural steps (why > what)

All 1061 tests pass with no regressions.

https://claude.ai/code/session_01J8rNURgnxHZkwshKBEU5Nb
@avisual
avisual merged commit 6a1fb90 into main Feb 22, 2026
1 of 2 checks passed
@avisual
avisual deleted the claude/research-prompts-rewards-nFadz branch March 4, 2026 15:50
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.

2 participants