# Agentic AI vs Generative AI: The Loop Difference

> Canonical: https://skillalmanac.com/learn/agentic-ai-vs-generative-ai | Updated: 2026-11-21 | Index status: not offered to search engines

Agentic and generative AI can run on the same model. The difference is whether the model keeps choosing tool calls until a task ends. Compare them here.

## Facts

- 2026-11-21: Anthropic separates workflows, where code sets the steps, from agents, where the LLM decides its own next steps and tool use (https://www.anthropic.com/engineering/building-effective-agents)
- 2026-11-21: Anthropic notes agentic systems often trade higher latency and cost for task performance, and that errors can compound across turns (https://www.anthropic.com/engineering/building-effective-agents)
- 2026-11-21: With tool use, Claude returns a tool_use block; the application runs the call and sends back a tool_result (https://platform.claude.com/docs/en/build-with-claude/tool-use/overview)
- 2026-11-21: A Claude Code subagent runs in its own context window with its own tools, and only its final summary returns to the main conversation (https://code.claude.com/docs/en/sub-agents)
- 2026-11-21: A Claude Code subagent is a Markdown file with YAML frontmatter, where only name and description are required (https://code.claude.com/docs/en/sub-agents)
- 2026-11-22: The maxTurns field caps subagent turns; at the limit Claude Code returns output marked as partial, and the subagent can be resumed (https://code.claude.com/docs/en/sub-agents)

Generative AI describes a model that produces an output from a prompt in one call. Agentic AI describes the same kind of model running in a loop, where it picks tool calls, reads the results, and continues until the task is done or a stop condition is reached.

## How the two differ

| Feature | Generative AI (single call) | Agentic AI (loop) |
| --- | --- | --- |
| Unit of work | One request, one output | Repeated steps until the task ends |
| Who picks the next step | Nobody; the response ends the turn | The model, inside boundaries the developer sets |
| Tools | Optional | The model requests tool calls; the application runs them |
| Stop condition | The output is complete | Task finished, an iteration cap, or a human checkpoint |
| Main cost risk | Output quality | Latency, spend, and errors that build on each other |

Anthropic's guide splits the loop further: a workflow follows a code path, while an agent lets the model choose its own path. That choice is what the rest of this guide means by a loop.

Worked example: you ask for a summary of a bug report that depends on a log file. A single generative call can only summarize what is in the prompt. In an agentic run, the model requests a file-read tool, the application executes it and returns the log as a tool result, the model may request a search for related issues, and then it writes the summary. Each tool round trip is one pass through the loop.

## Decision rule

- Choose a single generative call when the input fits in one prompt and the output is the deliverable.
- Choose an agentic loop when the number of steps cannot be known in advance and the model needs tools to gather information.
- Start with the simpler option. Anthropic recommends adding complexity only when it measurably improves results.

## Where the loop shows up in Claude Code

A subagent is one way to contain a loop. Claude Code runs it in a separate context window, so intermediate search output stays out of the main conversation. Its definition file sets the tool allowlist, the model, and a `maxTurns` cap. When the cap is reached, Claude Code returns the subagent's output marked as partial, and you can resume it. Because the subagent starts fresh and cannot see your chat history, the delegation message is its entire brief. Write the goal, the files, and the expected report format into that message.

## Pitfalls

1. **Loops that never stop.** The run keeps calling tools and produces no answer. Notice it from repeated identical tool calls in the transcript. Set a `maxTurns` cap so the subagent returns partial output.
2. **Thin delegation briefs.** The subagent re-discovers context you already had and returns a generic result. Notice it when the summary misses facts from the main session. Put the relevant file paths and constraints in the brief.
3. **Inherited tools.** If `tools` is omitted, the subagent inherits the available tools, which can include write access you did not intend. Add an explicit allowlist.
4. **Vague descriptions.** Claude delegates by matching the request against each `description`. If the main agent never hands off the task, rewrite the description to name the situations where it applies.
5. **Compounding errors.** An early wrong step shapes every later step. Anthropic recommends testing in sandboxed environments and adding human review at key points. Check intermediate outputs before the run continues.

## When to use a skill instead

Ad-hoc prompting is enough for a one-off generative call, or for a single agentic task you will not repeat. A reusable definition helps when the same delegated loop runs again and again, because the trigger description, tool limits, and report format stay consistent across runs. [subagent-design](/skills/skill-almanac/subagent-design) is a related skill on this site that covers designing subagents and delegation briefs for coding agents, including the definition file fields described above. It fits teams that want the delegation rules written down rather than retyped each session. It does not replace testing the loop on real tasks.

## FAQ

**What is the difference between agentic AI and generative AI?**
Generative AI produces an output in response to a prompt. Agentic AI runs the same kind of model in a loop, where it chooses tool calls and continues until the task is done.

**Is an AI agent the same as agentic AI?**
Yes, in the sense that both run a model in a loop. Anthropic's term for the loop case is "agent": the model decides its own next steps and tool use, as opposed to a workflow where code sets the steps.

**Are tools and subagents the same thing?**
No. A tool is a function the application executes when the model requests it. A subagent is a separate delegated worker with its own context window and tool access, and it returns a summary to the main session.

## Related skills

- [subagent-design](https://skillalmanac.com/skills/skill-almanac/subagent-design.md): Platform Score 47/100 (provisional)

## Related guides

- [What Is Agentic AI? A Test for Telling Agents Apart](https://skillalmanac.com/learn/what-is-agentic-ai.md)
- [What Is an AI Agent? The Model, Tools and Memory Loop](https://skillalmanac.com/learn/what-is-an-ai-agent.md)
- [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent.md)
- [What Is Vibe Coding and When You Must Read the Code](https://skillalmanac.com/learn/what-is-vibe-coding.md)

## Sources

- https://www.anthropic.com/engineering/building-effective-agents
- https://platform.claude.com/docs/en/build-with-claude/tool-use/overview
- https://code.claude.com/docs/en/sub-agents

Platform Scores report our assessment under a published method. They are not a safety guarantee.
