Back to directory
Docs & WritingGhilteras/opencode-reasoning-pruner
@ghilteras/opencode-reasoning-pruner
Prunes historical reasoning parts from the message history sent to the LLM (keeping the last turn's), saving context window and tokens on reasoning models. Model-agnostic; uses the idiomatic experimental.chat.messages.transform hook.
Suggested install command
npx skills add Ghilteras/opencode-reasoning-pruner/@ghilteras/opencode-reasoning-prunerAlways inspect the linked repository and skill instructions before running commands. Skills are instructions; permissions and execution still matter.
Compatibility
Agent support matrix
3 supported
| Agent | Status |
|---|---|
| Claude Code | Supported |
| OpenCode | Supported |
| Cursor | Not listed |
| MCP | Not listed |
| GitHub Copilot | Not listed |
| Windsurf |