Qwen-3.6: Fixing tool use for OpenCode on llama.cpp
Sep 12, 2026
engineering
issue-log
llm
tool-use
llama.cpp
opencode
qwen
qwen-3.6

Problem
Qwen-3.6 on llama.cpp displays raw tool-call XML instead of parsing it cleanly in OpenCode, showing <tool_call> or <function> tags inside or right after its reasoning (<think>) blocks, and the chat template fails intercept and parse them. Using the “Expand thinking” functionality in OpenCode was critical for discovering the XML blocks that were emitted but not executed as tool-calls.
Solution
Replaced unsloth/Qwen3.6 with peculiar-ragdoll/Nail-Qwen3.6 that resolves the tool use issue in OpenCode.