Skip to content

Back to the catalog

reflect

Session-local metacognition harness for long-running Claude Code work. When suggestions get reverted 3+ times within 10 tool calls, reflect

Open site Project Open in the app JSON README (API)

Session-local metacognition harness for long-running Claude Code work. When suggestions get reverted 3+ times within 10 tool calls, reflect invokes Opus 4.7 to reason about why the rejections clustered. The model reads back the last 20 tool calls, the rolled-back diff, and active rules, then writes structured guidance — pattern, signal, adjustment, confidence — to .reflect/session-guidance.md. The next turn auto-loads it via path-scoped rule injection and adjusts. Key features: • 3-tier weighted signal taxonomy: git revert/restore (Tier 1, +100), user-file deletes (Tier 2, +70), utterance negation regex (Tier 3, +50). Cumulative threshold 240 + 5-turn cooldown — fires only when reverts genuinely cluster. • Single-shot Opus 4.7 with adaptive thinking (effort: high) and 3-layer prompt cache (L1 1h, L2 5m, L3 ephemeral). Measured: cold ~$0.05, warm ~$0.01, 95.9% L1 cache hit. • Two cross-platform hooks: PostToolUse (Tier 1+2) and UserPromptSubmit (Tier 3). Pure-bash arithmetic — no jq/bc

README

Loading documentation…

Details
Type
Plugins
Topic
Code versions (Git)
Publisher
chanjoongx
Source
marketplace
Category
Tools
Last update
2026-04-29T10:02:25Z
Project status
Active
Language
TypeScript
License
MIT
Added
2026-08-30 01:48:58
Updated
2026-08-30 01:48:58
Source id
chanjoongx/reflect/reflect

More

Looking for something else?QuestionsContact