When Claude Is Offline: Running a Local Coding Agent
TLDR OpenCode and Pi work as coding agents on a local Ollama model. They can edit files, run commands, and keep everything on your laptop. I always use them in a tmux environment. qwen2.5-coder:7b is fast but only replies in plain text, so neither agent can use tool calls with it. On my machine, only qwen3-coder:30b creates usable tool_calls, which lets the agents actually do things. OpenCode uses MCP to communicate, but Pi does not. Both agents, along with Claude Code, can use the same SKILL.md file in ~/.agents/skills/. ...