# Agent Tool

> The tool that starts a subagent and gets back its answer.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Agent, Task tool, Agent(Explore)

## Think of it like

It is like sending a friend to look for something. They come back and tell you what they found.

## Definition

The Agent tool starts a subagent: a helper with its own fresh context window. The helper works on its task alone. When it is done, it sends back one final answer, and the main session never sees the steps in between. Subagents run in the background by default. Starting one does not ask for permission, but each tool the helper uses is checked against your rules. A rule like Agent(Explore) names one kind of helper.

## Example

Jack asks how login works in a big project. Claude sends a helper to read twenty files, and only the short answer comes back into the chat.

## Example code

```json
{"permissions": {"deny": ["Agent(Explore)"]}}
```

Stop Claude from starting the Explore helper.

## Why it matters

Big searches stay out of the main chat, so its context stays clean for the real work.

## Common mistake

Thinking the main session sees each step the helper took. It only gets the last answer.

## Three principles

- **A fresh helper.** Its own context.
- **One answer back.** Not the steps.
- **Rules still apply.** To every tool it uses.

## Related terms

- [Subagent](https://learn.benibix.com/term/ai/subagent)
- [Built-in Subagents](https://learn.benibix.com/term/ai/built-in-subagents)
- [SendMessage Tool](https://learn.benibix.com/term/ai/send-message-tool)
- [Agent Teams](https://learn.benibix.com/term/ai/agent-teams)

## Taught in

- [Claude Code Subagents](https://learn.benibix.com/learn/ai-claude-code/claude-code-subagents): Claude Code, 15/16

![The main session starts subagents with the Agent tool, messages other sessions, and stops background work.](https://learn.benibix.com/diagrams/ct-agent-tools.svg)

---

Source: https://learn.benibix.com/term/ai/agent-tool
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
