|
| 1 | +--- |
| 2 | +title: "Agent Builder" |
| 3 | +description: "Fetch the guided Agent Builder workflow and its supporting resources, step by step." |
| 4 | +icon: "wand-magic-sparkles" |
| 5 | +--- |
| 6 | + |
| 7 | +Agent Builder is a guided workflow for turning how an organization works into automations — scope an objective, map current state, diagnose opportunities, propose a plan, then ship a skill or a developer-ready spec. The methodology is served over these two tools rather than shipped in the client, so the assistant fetches each step's instructions as it reaches it. |
| 8 | + |
| 9 | +<Note> |
| 10 | + These tools are gated by the `enable_agent_development_mcp` workspace setting. They only appear for workspaces where agent development is enabled. |
| 11 | +</Note> |
| 12 | + |
| 13 | +| Tool | When to use | |
| 14 | +|---|---| |
| 15 | +| `get_agent_builder_instructions` | The entry point and the per-step fetcher. Start with `step="begin"` to orient, then fetch each step as the workflow routes to it. | |
| 16 | +| `get_agent_builder_resource` | Pull a supporting resource (reference, primitive, or template) named in a step's manifest — fetched on demand, not up front. | |
| 17 | + |
| 18 | +## `get_agent_builder_instructions` |
| 19 | + |
| 20 | +Fetches one step's instruction body plus the manifest of supporting resources it may draw on. |
| 21 | + |
| 22 | +- **`step`** — the step to fetch. One of: `begin`, `home`, `start`, `objective`, `current_state`, `diagnose`, `propose`, `spec`, `skill_track`, `skill_discovery`, `skill_outline`, `skill_build`. |
| 23 | + |
| 24 | +Returns: |
| 25 | + |
| 26 | +- **`instructions`** — the step's body, with a "Relevant resources" appendix listing the resources you can fetch on demand. |
| 27 | +- **`resource_manifest`** — the same resources as structured `(type, subtype)` pairs. These are **relevance hints**, not required reads — fetch one only when the conversation calls for it. |
| 28 | + |
| 29 | +Always begin with `step="begin"`. The orientation step resolves the workspace, reads the user's intent, and routes into the right part of the lifecycle. There is no `next` field — routing lives in each step's prose, so the workflow self-navigates from `begin` onward. |
| 30 | + |
| 31 | +## `get_agent_builder_resource` |
| 32 | + |
| 33 | +Fetches a single supporting resource named in a step's `resource_manifest`. |
| 34 | + |
| 35 | +- **`type`** — `reference`, `primitive`, or `template`. |
| 36 | +- **`subtype`** — the specific variant. Must be valid for the given `type`; an invalid pairing is rejected. |
| 37 | + |
| 38 | +Returns: |
| 39 | + |
| 40 | +- **`content`** — the resource payload (markdown, HTML, or YAML). |
| 41 | +- **`version`** — the resource version number. |
| 42 | +- **`subtype`** — the resolved subtype. |
| 43 | + |
| 44 | +## The loop |
| 45 | + |
| 46 | +<Steps> |
| 47 | + <Step title="Orient"> |
| 48 | + Call `get_agent_builder_instructions` with `step="begin"`. Resolve the workspace and let the step route you to the entry point. |
| 49 | + </Step> |
| 50 | + <Step title="Walk the lifecycle"> |
| 51 | + Fetch each step's instructions as the workflow reaches it — `objective`, `current_state`, `diagnose`, `propose`, and then `spec` or the skill track. Follow the body's prose to decide what runs next. |
| 52 | + </Step> |
| 53 | + <Step title="Pull resources on demand"> |
| 54 | + When a step's manifest names a resource the current work needs, call `get_agent_builder_resource` for that `(type, subtype)`. Don't fetch the whole manifest up front. |
| 55 | + </Step> |
| 56 | +</Steps> |
| 57 | + |
| 58 | +## Watch for |
| 59 | + |
| 60 | +- **Begin first.** For MCP-only clients with no skills to auto-load, the convention is that the first call is `get_agent_builder_instructions(step="begin")`. Everything else routes from there. |
| 61 | +- **The manifest is a hint.** `resource_manifest` tells you what a step *may* draw on, not what to load. Fetch resources lazily. |
| 62 | +- **Feature-gated.** If these tools aren't present, the workspace doesn't have agent development enabled. |
| 63 | + |
| 64 | +See the [Build an agent with Agent Builder](/guides/agent-builder) guide for the end-to-end walkthrough. |
0 commit comments