Ollama adds Subagents and Web Search to Claude Code

Ollama has integrated subagents and web search capabilities into Claude Code, enabling models to execute parallel tasks and retrieve current information without the need for MCP servers or API keys. This update allows developers to maintain cleaner context windows during complex coding sessions by offloading side tasks to independent agents.

Parallel Task Execution with Subagents

Ollama now allows Claude Code to spawn subagents that operate in their own separate contexts. This architecture prevents side tasks from filling the primary conversation context with noise, which helps maintain productivity during long coding sessions.

Certain models, such as minimax-m2.5, glm-5, and kimi-k2.5, will trigger subagents automatically when appropriate. Users can also manually force the creation of subagents using prompts such as "use", "spawn", or "create subagents".

Example subagent workflows include:

  • System Exploration: Spawning subagents to explore authentication flows, payment integrations, and notification systems simultaneously.
  • Security and Performance: Auditing security issues, identifying performance bottlenecks, and checking accessibility in parallel.
  • Architecture Mapping: Mapping database queries, tracing API routes, and cataloging error handling patterns.

Integrated Web Search

Ollama has built web search functionality directly into the Anthropic compatibility layer. This integration means that when a model requires current information, Ollama handles the search and returns the results directly to the model without requiring additional configuration from the user.

Subagents can leverage this web search capability to perform research in parallel and return actionable results to the main agent.

Example research workflows include:

  • Dependency Updates: Researching Postgres 18 release notes to audit queries for deprecated patterns and create migration tasks.
  • Competitive Analysis: Using multiple research agents to analyze competitor API pricing tiers and compare them against internal pricing to draft recommendations.
  • C.I./C.D. Improvements: Studying open-source project release processes to review and improve internal CI/CD pipelines.

Model Support and Deployment

To get started with these features, users can launch the environment using the following command:

ollama launch claude --model minimax-m2.5:cloud

These features work with any model hosted on Ollama's cloud. The recommended cloud models for these capabilities are:

  • minimax-m2.5:cloud
  • glm-5:cloud
  • kimi-k2.5:cloud

Sources

Related

  • Dispatch
  • Dispatch
  • Dispatch
  • Project
  • Dispatch