Delegate the current task to the local model (via the LiteLLM proxy on port 4000, default alias fast-general) using the stepped execution protocol below.
The target alias is configurable via the OLLAMA_AGENT_MODEL env var on the MCP server — see ~/Code/claude-code-config/models.yaml for the full roster and aliases. The skill name retains "qwen" for historical continuity; the tool names (qwen_start/qwen_continue) are unchanged.
Do not attempt to answer the task yourself. Do not reason about it. Drive the loop immediately and return the final result verbatim.
Tool Names
The Ollama-agent MCP server is registered under different namespaces depending on context:
- Cowork (plugin context):
mcp__plugin_shane-config_ollama-agent__qwen_start/mcp__plugin_shane-config_ollama-agent__qwen_continue - Claude Code (standalone):
mcp__ollama-agent__qwen_start/mcp__ollama-agent__qwen_continue
Check which tools are available in your current session and use whichever namespace is present. If neither is available, use the fallback below.
Stepped Execution Protocol
- Call
qwen_start(with the correct namespace prefix for your context) withtask,skill, andcontextparameters. - Parse the JSON response:
status: "done"→ returnresultto the user. Stop.status: "running"→ note thesession_idandstep, then callqwen_continuewith thatsession_id.status: "error"→ surface theresultas an error. Stop.
- Repeat step 2 until status is
doneorerror.
Each qwen_continue call is a separate tool call — you will see each step as it completes.
Vault Access
The local model does not have access to MCP tools. For any task that requires reading or writing the Obsidian vault, the task description must include these instructions so the model knows how to interact with the vault:
Vault access (bash only — no MCP tools):
- Search: `obsidian search query='TERM' limit=10`
- Read: `obsidian read file='Note Name'` (no .md extension)
- Write: `obsidian append file='Note Name' content='TEXT'`
- Backlinks: `obsidian backlinks file='Note Name'`
- Daily note (read): `obsidian daily:read`
- Daily note (write): `obsidian daily:append content='TEXT'`
This applies to all vault skills: /bloom, /ghost, /challenge, /emerge, /contradict, /drift, /trace, /connect, /compound, /stranger, /map, /level-up, /learned, /weekly-learnings, /backlinks. Each of those skills' task descriptions already includes this preamble.