embed

What is an embedded agent?

An embedded agent is an AI agent that runs inside a host application and can only act through the functions that application registers. The app owns the interface, the data and the permissions. The agent is a component, not a separate product the user visits.

The loop

  1. The app sends the user's message to a model.
  2. The model answers, or asks to call one of the registered tools.
  3. The agent checks the tool's risk. A tool that changes something needs approval.
  4. The app runs the tool and returns text.
  5. The model reads the result and answers.

How it differs from related things

Where the agent livesWhat it can touch
Embedded agentInside your appOnly the functions your app registers
Hosted agent serviceOn a serverWhatever APIs you expose to that server
Coding agent in an editorIn the developer's editorFiles and a terminal, with permission

Protocols such as MCP (tools from servers) and ACP (agents talking to editors) describe how parts connect. An embedded agent can use them, but does not require them.

What to ask of an embedded agent SDK

Ed is one implementation. See the quickstarts and the comparison.