Claw-Written Plugin Adds Qwen 3.8 27B Thinking Level Support to OpenClaw
Running Qwen 3.8 27B on llama.cpp with OpenClaw 2026.6.9 but missing native thinking-level control? One OpenClaw user hit the same wall and let their AI agent write a plugin to fix it — fully generated, untested by human eyes.
Why You Need This Plugin
Qwen 3.8 controls thinking levels via the chat template rather than a dedicated parameter. OpenClaw's llama.cpp backend at version 2026.6.9 doesn't map this out of the box, so thinking levels get ignored or misapplied. The plugin bridges that gap.
What It Does
- Per-API-call thinking levels — correctly injects the
enable_thinkingvalue into the chat template for each request. - Separate level for heartbeats — set a different thinking level for background heartbeat calls (the author uses
xhigh). - Instruct mode (thinking off) — disables thinking and applies sampling parameters recommended by unsloth for optimal output.
- Optional timeout guard — force compaction to instruct mode to avoid timeouts during long reasoning chains.
How to Get It
The plugin is published on GitLab:
git clone https://gitlab.com/moltwithhat/llamacpp-qwen-thinking
Author's note: “I didn't even look at the code” — the entire thing was written by the AI agent itself. It's a proof-of-concept that agents can produce useful, shareable tools without human review.
Who It's For
Anyone running Qwen 3.8 (or similar models) on llama.cpp through OpenClaw who wants fine-grained control over thinking levels per request. If you rely on heartbeats or need instruct mode as a fallback, this saves you the plumbing work.
📖 Read the full source: r/openclaw
👀 See Also

Claude Code v2.1.217: Subagent Depth Cap, Emoji Autocomplete, and Critical Fixes
Claude Code v2.1.217 caps concurrent subagents at 20, adds emoji autocomplete, fixes memory leak in MCP tool outputs, and resolves Windows auto-update issues.

Oh-My-Mermaid: Claude Code Skill for Auto-Generating Architecture Diagrams
Oh-My-Mermaid is a Claude Code skill that analyzes codebases and automatically generates Mermaid architecture diagrams and documentation. It's installed via npm and used with the /omm-scan command in Claude Code.

AgentMind: A Claude Code Plugin That Learns and Applies Your Coding Preferences
AgentMind is a Claude Code plugin that observes your coding patterns, learns preferences like tool choices and style rules, and automatically injects that context into future sessions. It uses a six-step core loop and confidence scoring to determine when to apply learned preferences.

Fino: Open-Source MCP Server for Personal Finance Analysis with Claude
Fino is a free, open-source MCP server that connects Claude to bank accounts through Plaid, stores transaction data locally in SQLite, and provides Claude with tools for financial analysis.