How to Run Zoo Code with Ollama: Local AI Coding Agent
What happened to Roo Code?
Roo Code, the open-source agent that turned VS Code into a team of specialized modes, shut down on May 15, 2026, when its team moved to a cloud product. The repository was archived at version 3.54.0 and the Marketplace listing unpublished.
It was not. Former Roo Code contributors picked up the codebase the next day and republished the same 3.54.0 release as Zoo Code. By late November 2026 it had reached version 3.98.x, with more than 100,000 Marketplace installs and about 2,200 GitHub stars. Modes, checkpoints, and settings carried over; migrating takes two steps, export settings in Roo Code, then Import Settings in Zoo Code. (The export can contain API keys, so do not share it or commit it.)
This guide wires Zoo Code to Ollama, so the whole setup runs on your own hardware, with no cloud API key and no per-token bill. Plan for about 30 minutes, most of it spent downloading the model.
Zoo Code at work in VS Code: an edit with a checkpoint and auto-approved commands. Source: thecode.media
Why Zoo Code instead of a single-chat assistant
Most AI coding tools give you one assistant that does everything. Zoo Code splits the job into roles, called modes, each with its own rules:
- Code — the everyday default: writing, editing, and refactoring.
- Architect — plans first, edits nothing: design, specs, and migrations to review before a line lands.
- Ask — answers questions and explains code without touching your files.
- Debug — traces bugs, adds logging, and isolates root causes.
- Orchestrator — splits a large job into subtasks for the other modes.
- Custom modes — roles you define in a
.roomodesfile, with their own prompts, tools, and file access.
Every edit is shown as a diff you approve, and each step leaves a checkpoint you can roll back to. A Destructive Command Guard also intercepts dangerous shell commands during long autonomous runs.
Prerequisites
- Visual Studio Code 1.84 or newer.
- Ollama installed. Linux, macOS, and Windows are all supported.
- At least 16 GB of RAM for the 32-billion-parameter model used below. With 8 GB, pick a smaller model such as
qwen2.5-coder:7binstead. A GPU helps; CPU works, more slowly.
Step 1: Install Ollama and pull a coding model
Install Ollama (Linux: the official script below; macOS and Windows: the installer from ollama.com) and confirm the server answers:
curl -fsSL https://ollama.com/install.sh | sh
curl http://localhost:11434/api/tags
Then pull the model this guide uses: qwen2.5-coder:32b, the tool-capable coding model named in the Zoo Code and Roo Code documentation:
ollama pull qwen2.5-coder:32b
The download is roughly 19 GB, so this step eats most of the time.
Step 2: Bake in a bigger context window
Coding agents burn context fast: task, files, diffs, terminal output. Zoo Code's documentation notes there is no manual context-size setting for the Ollama provider; the size is pinned in the Ollama model itself. Create a variant with a 32,768-token window using a Modelfile:
cat > Modelfile <<'EOF'
FROM qwen2.5-coder:32b
PARAMETER num_ctx 32768
EOF
ollama create qwen-32k -f Modelfile
Rough guide: 16,384 tokens for about 8 GB of VRAM, 32,768 for 16 GB, 65,536 for 24 GB or more. Confirm the model is ready and supports tool calling:
ollama show qwen-32k
Look for tools under Capabilities: without it, the model will not appear in the picker.
Step 3: Install Zoo Code
From the command line:
code --install-extension ZooCodeOrganization.zoo-code
Or use the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on macOS), search for "Zoo Code", and install the one published by ZooCodeOrganization. Skip the old RooVeterinaryInc.roo-cline package: frozen at 3.54.0, it receives no fixes.
Step 4: Point Zoo Code at Ollama
In the Zoo Code panel, click the gear icon for Provider Settings and set:
- API Provider: Ollama
- Ollama Base URL:
http://localhost:11434 - Model ID:
qwen-32k
Leave the base URL alone unless Ollama runs on another machine; then use that machine's address and port. LM Studio users can pick that provider instead (default http://localhost:1234). Save, and Zoo Code talks to your local model in every mode.
Step 5: Run your first task
Start small before handing it a large refactor. Open a project folder, switch to Code mode, and give it a concrete job:
Add a --dry-run flag to the backup script in scripts/backup.sh.
It should print what would be copied without copying anything,
and exit 0. Add a test that covers the flag.
Zoo Code running a shell command from its task panel. Source: Zoo Code docs (docs.zoocode.dev)
Zoo Code reads the file, proposes the edit as a diff, and asks you to approve it. Approve, let it run the test, and check the checkpoint. Then try Architect mode on something bigger: ask it to plan a migration of your auth module to sessions, with no code yet. That plan-first habit is what separates Zoo Code from a plain chat box: you review the reasoning while it is still cheap to change.
Step 6: Tune approvals and safety
Three settings decide how much rope the agent gets:
- Auto-approve: start with it off. Allow it only for reads; keep edits and terminal writes behind a click.
- Destructive Command Guard: leave it on. It blocks dangerous shell commands during autonomous runs.
.rooignore: list paths the agent should never touch, such as.env, credentials, and build output. It works like.gitignoreand keeps those files out of the codebase index.
Troubleshooting
The model does not appear in the picker. Run ollama show qwen-32k: without tools under Capabilities, Zoo Code hides the model. Pull a tool-capable model such as qwen2.5-coder:32b.
"API request failed" right away. Check Ollama is running: curl http://localhost:11434/api/tags. If Ollama runs on another machine, point the base URL there, not at localhost.
Tasks fail with context errors. The window is too small: recreate the model with a larger num_ctx, or let Architect mode split the work first.
Closing
Zoo Code is what happens when a community refuses to let a good tool die: the same mode-based agent Roo Code users relied on, still maintained, still Apache 2.0, now pointed at a model on your own disk. The setup is three settings and one Modelfile; the harder part is working in modes. Plan in Architect before building in Code, and treat checkpoints as part of the workflow. If you already run Ollama, you can have it working before lunch. If not, start with our guide to running an open model locally with Ollama. For a different flavor, our OpenCode and Aider with Ollama guides cover two solid alternatives.


Comments
Post a Comment