Repository navigation
v1.21.0
app-stack: two new skills for agents inside your app
embedded-agents-design(new, on every runtime): decide what an agent may do before anyone builds it.- An agent card, agreed with you first: its one job, every tool by name and kind (reads, shows, writes, proposes), what it never does, its limits with their sources, and which rules code enforces, which the instructions only ask for, and which are left to the agent.
- The agent proposes and a person clicks. Code for actions that can't be taken back: the app draws a confirm card from what it stored, a typed "yes" runs nothing, the click works once, for the same person, within ten minutes, and checks permission again. An act whose outcome is unknown can't be proposed again until somebody checks it. SQL, TypeScript, a route and their tests, plus a test that fails when an agent's tools and its card differ.
embedded-agents-managed(new): the same agent directories on Claude Managed Agents. Anthropic runs the loop and keeps the conversation; your app runs its own functions, with no public address needed. Only when you ask for it, or an agent needs a hosted sandbox for code: the Messages API stays the default. Deliberately small: the app's own tools, plus hosted code or search as an opt-in. It is a beta, tested from localhost only, with a live suite you rerun on each SDK upgrade.embedded-agents-agent-sdk: the wrapper now takes the app's own tools (tools,context), as the Messages API one did. Its sections are renumbered.embedded-agents-messages-api: Sonnet 5.5's cache reads are priced at $0.10 per million tokens, not $0.20 (price list read 2026-11-25), so a run's reported cost was too high. The file guard also refuses a link that leads to an.envfile, and.ENV, which Windows and macOS open as.env; the Agent SDK's guard ignores case too.
The skills that meet an agent first
propose, app-lifecycle, saas-authorization, shipping-artifacts, document-app, derive-tests, intended-vs-implemented, release-gate and agent-instructions now lead to the agent card, so it is agreed in the proposal and checked at the release.
Measured on eight runs of four planning prompts, Opus, before and after, scored by the agent that built it: the exact tool list was complete in 5 of 8, now 8 of 8; the never-list in 4, now 8; the three-way split of rules in 0, now 8; a card agreed before the build in 0, now 8. Propose-then-click was already 8 of 8. Cost per run: $0.49 before, $0.45 after.
What to do: if your app already has an agent, ask your coding agent to write its card with embedded-agents-design and check it against the tools the route passes. If you copied the Messages API or Agent SDK wrapper, copy agent.ts again: for the price and the file guard on the Messages API, for tools and the file guard on the Agent SDK.
Reviewed in rounds 190 to 196.