Patterns · Vol. 18

Pattern

The Claude Agent SDK

Embed Claude Code's agent loop inside an application through the Agent SDK, constructing sessions programmatically — with the same tools, permissions, and CLAUDE.md context as the CLI — so the agent becomes a component of a larger system rather than a tool a human drives.

Classification — The agent loop as a library for embedding in applications.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.