Subagents and web search in Claude Code

Published: (February 17, 2026 at 04:12 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Subagents

Subagents can run tasks in parallel, each in its own context. Typical use cases include:

  • File search
  • Code exploration
  • Research

Parallel Tasks

You can let the model automatically spawn subagents (e.g., minimax-m2.5, glm-5, kimi-k2.5) or explicitly request them:

spawn subagents to explore the auth flow, payment integration, and notification system
create subagents to map the database queries, trace the API routes, and catalog error handling patterns

Triggering Subagents

  • Automatic – Certain models will naturally trigger subagents when they detect a need.
  • Manual – Force subagent creation by instructing the model to “use/spawn/create subagents”.

Web Search Integration

When a model requires up‑to‑date information, Ollama performs the web search and returns the results directly—no extra configuration needed. Subagents can therefore research topics in parallel and provide actionable outcomes.

Example Prompts

research the postgres 18 release notes, audit our queries for deprecated patterns, and create migration tasks
create 3 research agents to investigate how our top 3 competitors price their API tiers, compare against our current pricing, and draft recommendations

Supported Models

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

Quick Start

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

Happy coding!

0 views
Back to Blog

Related posts

Read more »