Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

apply changedcli-sdks-libraries/cli/apply

Nearest release: v2.1.283, published 3 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+22added
Lines−20removed
From line 12 where the diff opens
First seen 4 Sep 2026 this site's first read of the page
Recorded edits4to this page, all time

The whole hunk

from line 12, old and new numbered
/
lines
from line 12
1212 
1313Write the agent as a Markdown file under `agents/` and apply it:
1414 
15<MultiFileExample language="cli" label="CLI">
16 ```bash CLI
17 ant apply agents/summarizer.md
18 ```
15<CodeGroup>
16 <CodeGroupItem>
17 ```bash CLI
18 ant apply agents/summarizer.md
19 ```
1920 
20 <File filename="agents/summarizer.md">
21 ```markdown
22 ---
23 name: Summarizer
24 model: claude-opus-5-5
25 tools:
26 - type: agent_toolset_20260401
27 ---
21 <File filename="agents/summarizer.md">
22 ```markdown
23 ---
24 name: Summarizer
25 model: claude-opus-5-5
26 tools:
27 - type: agent_toolset_20260401
28 ---
2829 
29 You are a helpful assistant that writes concise summaries.
30 ```
31 </File>
32</MultiFileExample>
30 You are a helpful assistant that writes concise summaries.
31 ```
32 </File>
33 </CodeGroupItem>
34</CodeGroup>
3335 
3436The frontmatter holds the agent's configuration (the fields from [Define your agent](https://platform.claude.com/docs/en/managed-agents/agent-setup)) and the body is its system prompt. `ant apply` [infers](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/apply#kind-inference) that the file is an agent from its path, here the `agents/` directory.
3537 
from line 108
106108 
107109Resources refer to each other by path. Wherever the API expects another resource's ID, write the relative path to that resource's file instead. In this project, the reviewer agent lists `../skills/pr-summary` under `skills`, the lead agent lists `./reviewer.md` in its roster, and the deployment names its agent, environment, and memory store by path. `ant apply` creates them in dependency order and fills in the real IDs. The project has six files:
108110 
109<MultiFileExample variant="explorer">
111<FileExplorer>
110112 <File filename="agents/reviewer.md">
111113 ```markdown
112114 ---
from line 190
188190 Review any open pull requests. Start with the oldest.
189191 ```
190192 </File>
191</MultiFileExample>
193</FileExplorer>
192194 
193195Apply the whole directory:
194196 
Feedback