HOW-TO GUIDE

How to run Claude Code on a local Ollama model in a throwaway worktree

Based on a guide by Gabriel Anhaia on DEV Community · Nov 28, 2026

You'll end with: Claude Code driving qwen3-coder:30b on your own machine through Ollama, tested in a git worktree for tool calls, context, and speed.

Why it's worth having: The agent loop runs with no Anthropic key and no per-token bill, on a model that sits on your own disk.

At a glance

WHO IT'S FOR
IT and OT engineers and developers at plants that keep code and data on their own hardware.
LEVEL
Advanced
COST
Free. Ollama and the model are free downloads; the 30b model is a 19GB download.
YOU NEED
Claude Code · Ollama v0.14.0 or later · qwen3-coder:30b · Git

The method, in short

  1. 1Pull qwen3-coder:30b, a 19GB model with a 256K window, and start Ollama with OLLAMA_CONTEXT_LENGTH=64000.
  2. 2In a wrapper script, set ANTHROPIC_BASE_URL to localhost:11434, map every model alias to the local model, and cap context at 64000.
  3. 3Run a small task with a test in a throwaway git worktree, check /status and /context, and keep permission prompts on.
  4. 4Watch whether the model calls Claude Code's read and edit tools, or only describes the edit in prose.

The post has the wrapper script, the Ollama context settings, and a curl test for tool calls.

More from The Feed

TOOL

NVIDIA SkillSpector scans agent skills for injection before install

Engineers who install Claude Code, Codex, or MCP skills can scan each one for prompt injection, data exfiltration, and supply-chain risk before it runs.

WHAT IT DOES
An open-source scanner with 71 vulnerability patterns across 17 categories that checks agent skills and MCP servers before you install them.
WHO IT'S FOR
IT and OT engineers, security teams, and AI operations staff who vet third-party skills.
HOW TO START

Needs Python 3.12 or 3.13; an LLM provider is optional, and --no-llm runs the static checks only.

python -m pip install --upgrade skillspector

Then run skillspector scan on a skill folder, or add its MCP server so your agent gates skill installs on the result.

COST
Free under the Apache-2.0 license; LLM analysis uses your own provider account.
WHY IT MATTERS
In the 31,132-skill research subset in NVIDIA's README, 26.1% of skills contain vulnerabilities and 5.2% show likely malicious intent.
Source: GitHub
TOOL

GitHub MCP Server 2.3.0 lets agents dismiss or reopen security alerts

Software teams at industrial firms can have Claude, Copilot, or another MCP client dismiss or reopen Dependabot, code scanning, and secret scanning alerts.

WHAT IT DOES
GitHub's official MCP server, which gives AI agents tools for repos, issues, pull requests, Actions, and security alerts.
WHO IT'S FOR
Software engineers, IT teams, and security staff who triage GitHub alerts.
HOW TO START

Needs an MCP host such as VS Code 1.101 or later, and GitHub sign-in through OAuth or a personal access token.

https://api.githubcopilot.com/mcp/

Then ask the agent to review open alerts and dismiss each false positive with a reason and a comment.

COST
Free under the MIT license; the hosted server signs in with your GitHub account.
WHY IT MATTERS
Version 2.3.0 adds update_dependabot_alert, update_code_scanning_alert, and update_secret_scanning_alert, so triage no longer stops at reading alerts.
Credit: GitHub
Source: GitHub
MANUFACTURING

SpaceX files for a concrete plant at its Terafab chip site in Texas

SpaceX applied to the TCEQ for an air permit for a concrete batch plant at Gibbons Creek in Grimes County, where it plans its Terafab chip campus.

THE FILING
TCEQ received the application Nov 25, naming Space Exploration Technologies Corp. and a site near Anderson, Texas.
THE FEES
SpaceX paid a $3,000 expedited review surcharge on top of the $900 application fee.
THE CAMPUS
Texas put the first phase at more than $16.8B and 3,000 jobs, with logic chips, memory, and advanced packaging on one site.
WHY IT MATTERS
An on-site batch plant is one of the first construction steps at the former Gibbons Creek power plant site, and it shortens the haul for fresh concrete.
Source: TeslaNorth