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
- The app sends the user's message to a model.
- The model answers, or asks to call one of the registered tools.
- The agent checks the tool's risk. A tool that changes something needs approval.
- The app runs the tool and returns text.
- The model reads the result and answers.
How it differs from related things
| Where the agent lives | What it can touch | |
|---|---|---|
| Embedded agent | Inside your app | Only the functions your app registers |
| Hosted agent service | On a server | Whatever APIs you expose to that server |
| Coding agent in an editor | In the developer's editor | Files 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
- Can the model reach anything you did not register?
- Are changes separated from reads, and who approves a change?
- Where do the conversation and the tool results go?
- What happens on a device that cannot run the model?
Ed is one implementation. See the quickstarts and the comparison.