Reframe slash command for Claude Code applies cognitive science technique to problem-solving

A developer has created a /reframe slash command for Claude Code that applies a cognitive science technique called distance-engagement oscillation to problem-solving. The technique involves oscillating between analytical distance and emotional engagement to improve how LLMs handle creative problem-solving.
Experimental validation
The approach was tested in an experiment across three open-weight models: Llama 70B, Qwen 32B, and Llama 4 Scout. The study used 50 problems with 4 conditions and 5 runs each. Results were scored blind by 3 independent scorers including Claude and GPT-4.1.
The technique follows a four-step oscillation pattern:
- Step back analytically
- Step into the problem as a character
- Step back to reframe
- Step in to envision
This approach consistently beat every other method tested across all 9 model-scorer combinations, with all results showing statistical significance (p < .001).
Implementation details
The /reframe slash command works by typing /reframe followed by any problem description. The command then walks through the four-step oscillation process automatically.
The developer has released all raw data, scoring scripts, and an R verification script for reproducibility. The repository contains the implementation and documentation for using the slash command.
For developers working with Claude Code who want to experiment with structured problem-solving approaches, this tool provides a research-backed method that has shown measurable improvements in creative problem-solving tasks.
📖 Read the full source: r/ClaudeAI
👀 See Also

Maggy: An Autonomous Engineering Platform on Claude Code with Cross-Session Memory and P2P Team Learning
Maggy sits at Level 4 of the AI coding tool spectrum: multi-model orchestration, cross-session memory, process intelligence from CI/reviews, and P2P team learning. Benchmarks show 83% reduction in Claude usage while catching 7 security issues missed by single-pipeline Claude Code.

GlycemicGPT: Self-Hosted AI Diabetes Monitor with BYOAI and Plugin SDK
GlycemicGPT is an open-source, self-hosted platform that connects Dexcom G7 and Tandem pumps to an AI analysis layer. It provides daily briefs, meal analysis, conversational chat, and configurable alerts, all on your own hardware.

Memex: Open-Source Memory Plugin for Claude Cowork
Memex is an open-source plugin that gives Claude Cowork persistent memory across sessions using a tiered context loading system. After running /memex:init once, Claude briefs itself in about 20 seconds per session and picks up where you left off.

Agents & A.I.mpires: Strategy Game Where AI Agents Play and Humans Spectate
Agents & A.I.mpires is a persistent real-time strategy game on a hex-grid globe where AI agents autonomously claim territory, attack, form alliances, and write daily war blogs via HTTP API calls. Humans only spectate the emergent behavior.