OmniscioGuidesClaude Code glossaryAgent
What is an agent in Claude Code?
Anthropic's definition of agentic coding draws the line: the AI can read files, run commands and make changes autonomously while you watch, redirect or step away, as opposed to a chat assistant that only responds with text you apply yourself.
What an agent is
Claude Code is the harness and Claude is the model inside it: the harness supplies file access, shell execution, permission gating, memory loading, and the loop that chains actions together. So "agent" in Claude Code means Claude with all of that around it, not Claude in a plain chat box.
Each tool is one action Claude can take, and every result feeds the next decision. That is why "fix the bug" can become dozens of steps rather than one guess.
How it works: the agentic loop
A task usually works through three phases that blend together: gather context, take action, verify results. A question about your codebase may need only the first; a bug fix cycles through all three repeatedly. You can interrupt at any point to redirect.
Most extension points plug into a specific phase of that loop: hooks fire at fixed points around an action, skills load instructions into it, and MCP servers widen what "take action" can reach.
Agent, subagent and agent team
Three different scales wear the same word, and the difference matters when you are choosing one.
| Term | What it is |
|---|---|
| Agent | Claude with the harness's tools, working the loop inside one session you are watching or steering. |
| Subagent | A worker inside one session: its own context window, its own system prompt, tools and permissions, and a summary back to the parent. |
| Agent team | Several independent sessions coordinated by a lead, with a shared task list and peer-to-peer messaging. Each teammate has its own context window you can talk to. The feature is experimental and disabled by default. |
The difference that matters in practice: a subagent reports only to the conversation that spawned it, while an agent team's teammates are separate sessions you can interact with directly.
Running several of any of them at once multiplies token usage. If they edit the same files they need isolating: sessions and subagents can each take a git worktree of their own, while agent-team teammates are not isolated in worktrees, so partition the work so each teammate owns a different set of files.
A small example
The prompt that shows the difference between an agent and an assistant is one sentence:
Fix the failing testsAn assistant answers with suggestions. Claude Code runs the suite, reads what failed, finds the code, changes it and runs the suite again, which is the agentic loop doing its job.
Related terms
- Subagent: a worker inside one session.
- Agent team: several sessions, one lead, experimental.
- Tool: what lets an agent act at all.
- Worktree: isolation for sessions and subagents editing files at once.
- Back to the glossary.
The full guide is how to run Claude Code agents in parallel: subagents, agent view, or a worktree per session. For the wider picture, see what AI coding agent orchestration is.
Watch every agent from one window
The features page lists what Omniscio does with several Claude Code sessions at once, which is where a fleet of agents is easiest to follow.