The Agent Editor is the visual editor for agent definitions. It opens automatically for <LU>/AI/Agents/<agent>/agent.yaml and for sub-agent files under <LU>/AI/Agents/<agent>/Subagents/*.yaml, whether you open them from AI Explorer, the file Explorer, or a New Agent… / New Sub-Agent… command.
The editor gives you a structured form for every key of the agent schema, so you do not have to remember key names or YAML syntax. It writes back to the same agent.yaml file, so the file in Git stays the source of truth, and you can always switch to the raw YAML.
The top strip of the editor has two tabs:
| Tab | Purpose |
| Editor | Edit the agent definition, as a form or as YAML source. |
| Preview | Chat with the deployed agent and inspect the trace. See Preview and Trace. Shown for top-level agents only; sub-agents cannot be run on their own. |
When you open a top-level agent, the editor lands on Preview. Click Editor to edit the definition.
On the Editor tab, a Form / Source toggle switches between the two views:
If the file has a YAML syntax error, the editor switches to Source and shows a banner (YAML syntax error — fix it here in Source view) with the parser message. The form is unavailable until the file parses again.
The form only updates the keys you change. Comments, key order and keys the editor does not know about are preserved, so a hand-edited agent.yaml survives a round trip through the form. Settings equal to their default are not written to the file.
You can still open the file as plain text with Open With… > Text Editor from the file's context menu.
A short, human-readable summary of the agent. It is also the delegation hint: when this agent is used as a sub-agent, the parent agent reads the description to decide when to call it. YAML key: description.
The agent's main instructions, in Markdown. YAML key: system_prompt.
The field is a Markdown editor with syntax highlighting, edit and preview tabs, a heading Outline that jumps to a section, and a word count. The same editor is used for Response guidelines and Constraints.
Both fields hold Markdown and both affect the final reply, but they behave differently when a turn is handed to a sub-agent:
Click the ? on either card to open the Guidelines and constraints matrix, which shows what happens to each on every route: when the agent answers itself, when it calls a sub-agent with task, and when it hands the turn over with delegate.
In a sub-agent file, Response guidelines shows a Not in use yet note: a sub-agent never owns a turn, so its response guidelines take no effect. Use Constraints for rules that must hold whoever calls the sub-agent. See Sub-Agents and Delegation.
This card controls which tools the LLM can call. YAML keys: tools, mcp_interfaces.
Three built-in tools can be switched on or off:
The core tools — task, ask_user, the skill tools, the reference-search tools and, for top-level agents, the planning tools — are added automatically and are not listed here.
Click + Add flow tool to expose a Broadway flow as a tool. The picker lists the flows of the agent's LU and of Shared Objects; table population flows are excluded. Click the flow name's open icon to open the flow itself.
The extension has no wizard for creating tools: a tool is an existing Broadway flow, which you build with the regular Studio flow editor. See Tools.
Every built-in or flow tool row has a Before and an After selector. A Before flow runs just before that tool is invoked (to mask arguments, validate, or block the call); an After flow runs on its result (to audit, redact or cache). These hooks apply to that one tool only; the agent-level pre_tool_call / post_tool_call hooks still run for every tool. In YAML, a tool with hooks is written as a single-key map:
tools:
- query
- current_datetime
- getAccounts:
before: MaskPII
after: AuditLog
Type the names of MCP interfaces defined in the project. Their tools become available to the agent. See Tools.
Agent-level lifecycle hooks, each a single Broadway flow. YAML key: hooks. Each row shows the flow's inputs and what it may return.
The external parameters of the hook flows are the agent's inputs — they are what the Preview New chat dialog asks for. See Hooks and Inputs.
This card is shown for top-level agents only. YAML keys: sub_agents, delegate.
Subagents/ folder is listed automatically and is available by default. Switch one off to hide it from the agent without deleting it.delegate route: a sub-agent can answer the user directly, and the parent's response guidelines travel with the turn.invoke.The editor checks every sub_agents: entry and reports broken references in the Problems panel as errors, and the agent's agent.yaml (and its node in AI Explorer) is decorated in red. The checks are:
Subagents/<name>.yaml of this agent.In the form, a broken entry is tagged missing.
Shown for top-level agents only (sub-agents never plan). YAML key: planning.
Reference-document search lets the agent search the reference packs under its References/ folder (for example, References/KB and References/Procedures). Packs are discovered automatically. An optional Custom ref-search prompt replaces the default instructions. YAML key: search_reference.
Enable widget building lets the agent produce charts and tables in the chat. YAML key: widget.
Skills in the agent's own Skills/ folder are discovered automatically and do not need to be listed. Use this card to:
AI/Skills/ or from Shared Objects (each entry shows its origin), or type a name.YAML key: skills. See Skills.
Every setting is optional. Each row shows the default it falls back to; a changed value shows a reset button, and values equal to the default are not written to the file. In a sub-agent, unset values are inherited from the parent agent instead.
Context compaction is off by default and runs only when both the threshold fraction and the context window are greater than 0. Note that the New Agent… template sets several of these explicitly (for example, thinking: medium, memory: true, max_iterations: 30 and compaction at 0.8 of 200000 tokens) — see AI Fusion Studio Overview. For details on each setting, see the agent.yaml Reference and Sessions and Context.
A file under Subagents/ opens in the same editor, with these differences:
Saving agent.yaml changes the file only. Deploy the agent's LU (a soft deploy is enough) before testing the change in Preview — Preview talks to the deployed agent. See When Changes Take Effect.
Next article: Preview and Trace
The Agent Editor is the visual editor for agent definitions. It opens automatically for <LU>/AI/Agents/<agent>/agent.yaml and for sub-agent files under <LU>/AI/Agents/<agent>/Subagents/*.yaml, whether you open them from AI Explorer, the file Explorer, or a New Agent… / New Sub-Agent… command.
The editor gives you a structured form for every key of the agent schema, so you do not have to remember key names or YAML syntax. It writes back to the same agent.yaml file, so the file in Git stays the source of truth, and you can always switch to the raw YAML.
The top strip of the editor has two tabs:
| Tab | Purpose |
| Editor | Edit the agent definition, as a form or as YAML source. |
| Preview | Chat with the deployed agent and inspect the trace. See Preview and Trace. Shown for top-level agents only; sub-agents cannot be run on their own. |
When you open a top-level agent, the editor lands on Preview. Click Editor to edit the definition.
On the Editor tab, a Form / Source toggle switches between the two views:
If the file has a YAML syntax error, the editor switches to Source and shows a banner (YAML syntax error — fix it here in Source view) with the parser message. The form is unavailable until the file parses again.
The form only updates the keys you change. Comments, key order and keys the editor does not know about are preserved, so a hand-edited agent.yaml survives a round trip through the form. Settings equal to their default are not written to the file.
You can still open the file as plain text with Open With… > Text Editor from the file's context menu.
A short, human-readable summary of the agent. It is also the delegation hint: when this agent is used as a sub-agent, the parent agent reads the description to decide when to call it. YAML key: description.
The agent's main instructions, in Markdown. YAML key: system_prompt.
The field is a Markdown editor with syntax highlighting, edit and preview tabs, a heading Outline that jumps to a section, and a word count. The same editor is used for Response guidelines and Constraints.
Both fields hold Markdown and both affect the final reply, but they behave differently when a turn is handed to a sub-agent:
Click the ? on either card to open the Guidelines and constraints matrix, which shows what happens to each on every route: when the agent answers itself, when it calls a sub-agent with task, and when it hands the turn over with delegate.
In a sub-agent file, Response guidelines shows a Not in use yet note: a sub-agent never owns a turn, so its response guidelines take no effect. Use Constraints for rules that must hold whoever calls the sub-agent. See Sub-Agents and Delegation.
This card controls which tools the LLM can call. YAML keys: tools, mcp_interfaces.
Three built-in tools can be switched on or off:
The core tools — task, ask_user, the skill tools, the reference-search tools and, for top-level agents, the planning tools — are added automatically and are not listed here.
Click + Add flow tool to expose a Broadway flow as a tool. The picker lists the flows of the agent's LU and of Shared Objects; table population flows are excluded. Click the flow name's open icon to open the flow itself.
The extension has no wizard for creating tools: a tool is an existing Broadway flow, which you build with the regular Studio flow editor. See Tools.
Every built-in or flow tool row has a Before and an After selector. A Before flow runs just before that tool is invoked (to mask arguments, validate, or block the call); an After flow runs on its result (to audit, redact or cache). These hooks apply to that one tool only; the agent-level pre_tool_call / post_tool_call hooks still run for every tool. In YAML, a tool with hooks is written as a single-key map:
tools:
- query
- current_datetime
- getAccounts:
before: MaskPII
after: AuditLog
Type the names of MCP interfaces defined in the project. Their tools become available to the agent. See Tools.
Agent-level lifecycle hooks, each a single Broadway flow. YAML key: hooks. Each row shows the flow's inputs and what it may return.
The external parameters of the hook flows are the agent's inputs — they are what the Preview New chat dialog asks for. See Hooks and Inputs.
This card is shown for top-level agents only. YAML keys: sub_agents, delegate.
Subagents/ folder is listed automatically and is available by default. Switch one off to hide it from the agent without deleting it.delegate route: a sub-agent can answer the user directly, and the parent's response guidelines travel with the turn.invoke.The editor checks every sub_agents: entry and reports broken references in the Problems panel as errors, and the agent's agent.yaml (and its node in AI Explorer) is decorated in red. The checks are:
Subagents/<name>.yaml of this agent.In the form, a broken entry is tagged missing.
Shown for top-level agents only (sub-agents never plan). YAML key: planning.
Reference-document search lets the agent search the reference packs under its References/ folder (for example, References/KB and References/Procedures). Packs are discovered automatically. An optional Custom ref-search prompt replaces the default instructions. YAML key: search_reference.
Enable widget building lets the agent produce charts and tables in the chat. YAML key: widget.
Skills in the agent's own Skills/ folder are discovered automatically and do not need to be listed. Use this card to:
AI/Skills/ or from Shared Objects (each entry shows its origin), or type a name.YAML key: skills. See Skills.
Every setting is optional. Each row shows the default it falls back to; a changed value shows a reset button, and values equal to the default are not written to the file. In a sub-agent, unset values are inherited from the parent agent instead.
Context compaction is off by default and runs only when both the threshold fraction and the context window are greater than 0. Note that the New Agent… template sets several of these explicitly (for example, thinking: medium, memory: true, max_iterations: 30 and compaction at 0.8 of 200000 tokens) — see AI Fusion Studio Overview. For details on each setting, see the agent.yaml Reference and Sessions and Context.
A file under Subagents/ opens in the same editor, with these differences:
Saving agent.yaml changes the file only. Deploy the agent's LU (a soft deploy is enough) before testing the change in Preview — Preview talks to the deployed agent. See When Changes Take Effect.
Next article: Preview and Trace