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 (it opens on preview), a heading Outline that jumps to a section, and a word count (N words · markdown). 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. Click Close to dismiss it.

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:
Each built-in row shows a default on or default off tag. 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 (Search Broadway flows…) 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, or × (Remove tool) to remove it. With no flow tools, the card reads No custom tools — the agent can still delegate and ask the user.
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 banner at the top of the card counts the tools that run a custom hook (X of N tools run a custom hook · M total). 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 (Type an MCP interface name…). Their tools become available to the agent. See Tools.

Agent-level lifecycle hooks, each a single Broadway flow. YAML key: hooks. Each row shows Inputs: (what the flow receives) and Returns: (what it may return), and an icon that opens the selected flow.
| Label | YAML key | Purpose |
| Before the user message | step_start |
Inspect or rewrite the turn's user message before the model sees it, and optionally give the model extra context for this turn. This is also where an entity-scoped agent loads its entity instance. Inputs: query, step_id, sessionId, agentName, previous_additional_context. Returns: result (the rewritten message) and additional_context (added to this turn's system prompt only). See Additional Context for the Turn. |
| After the answer | step_end |
Validate the answer and optionally trigger a follow-up run. |
| Before a tool call | pre_tool_call |
Inspect and optionally block any tool call (ALLOW / BLOCK). |
| After a tool call | post_tool_call |
Observe or log a completed tool call, or end the run early. |
| When the run errors | on_error |
Customize the error message shown when an agent run fails. Tool errors are handled by the after-a-tool-call hook. |
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.
Folder sub-agents — every file in the agent's Subagents/ folder is listed automatically and is available by default. Switch one off to hide it from the agent without deleting it.
Linked agents — click + Add subagent, choose a Data Product (LU) under DATA PRODUCT (Search data products/logical units…), and pick a top-level agent from that LU (Search agents in this LU…). This lets an agent reuse another agent, including one from a different LU. Each row has Open subagent file and, for a linked agent, Remove subagent link actions.
Allow handing a turn to a subagent — off by default. When on, the agent gets the delegate route: a sub-agent can answer the user directly, and the parent's response guidelines travel with the turn.
Route per sub-agent — enabled once handing off is allowed: Both (the agent decides per request; the recommended default), Task only (the sub-agent always returns its result to the parent, which writes the reply), or Delegate only (the sub-agent answers the user and ends the turn). YAML key per entry: invoke.
Questions from subagents (subagent_questions, AI Fusion Studio 1.0.3) — who answers when a sub-agent called with task asks a question: Pass to the user (the default), Answer them myself (the agent answers with answer_subagent and the turn keeps going) or Don't let them ask (the sub-agents are not given ask_user and say what is missing in their result). Choose one of the last two for agents with nobody to ask, such as one called through an API. The ? on the section header explains each choice and its limits. An invalid value in the file is flagged, and choosing an option replaces it. In a sub-agent file the same choice has a section of its own, Questions from subagents, which matters only if that sub-agent calls sub-agents of its own. See Choosing Who Answers.
The footer counts the active sub-agents (X of N active).


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 (Reset to default, or Reset to inherit from parent in a sub-agent), 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. The compaction row shows an active or off by default badge.
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 (it opens on preview), a heading Outline that jumps to a section, and a word count (N words · markdown). 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. Click Close to dismiss it.

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:
Each built-in row shows a default on or default off tag. 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 (Search Broadway flows…) 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, or × (Remove tool) to remove it. With no flow tools, the card reads No custom tools — the agent can still delegate and ask the user.
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 banner at the top of the card counts the tools that run a custom hook (X of N tools run a custom hook · M total). 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 (Type an MCP interface name…). Their tools become available to the agent. See Tools.

Agent-level lifecycle hooks, each a single Broadway flow. YAML key: hooks. Each row shows Inputs: (what the flow receives) and Returns: (what it may return), and an icon that opens the selected flow.
| Label | YAML key | Purpose |
| Before the user message | step_start |
Inspect or rewrite the turn's user message before the model sees it, and optionally give the model extra context for this turn. This is also where an entity-scoped agent loads its entity instance. Inputs: query, step_id, sessionId, agentName, previous_additional_context. Returns: result (the rewritten message) and additional_context (added to this turn's system prompt only). See Additional Context for the Turn. |
| After the answer | step_end |
Validate the answer and optionally trigger a follow-up run. |
| Before a tool call | pre_tool_call |
Inspect and optionally block any tool call (ALLOW / BLOCK). |
| After a tool call | post_tool_call |
Observe or log a completed tool call, or end the run early. |
| When the run errors | on_error |
Customize the error message shown when an agent run fails. Tool errors are handled by the after-a-tool-call hook. |
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.
Folder sub-agents — every file in the agent's Subagents/ folder is listed automatically and is available by default. Switch one off to hide it from the agent without deleting it.
Linked agents — click + Add subagent, choose a Data Product (LU) under DATA PRODUCT (Search data products/logical units…), and pick a top-level agent from that LU (Search agents in this LU…). This lets an agent reuse another agent, including one from a different LU. Each row has Open subagent file and, for a linked agent, Remove subagent link actions.
Allow handing a turn to a subagent — off by default. When on, the agent gets the delegate route: a sub-agent can answer the user directly, and the parent's response guidelines travel with the turn.
Route per sub-agent — enabled once handing off is allowed: Both (the agent decides per request; the recommended default), Task only (the sub-agent always returns its result to the parent, which writes the reply), or Delegate only (the sub-agent answers the user and ends the turn). YAML key per entry: invoke.
Questions from subagents (subagent_questions, AI Fusion Studio 1.0.3) — who answers when a sub-agent called with task asks a question: Pass to the user (the default), Answer them myself (the agent answers with answer_subagent and the turn keeps going) or Don't let them ask (the sub-agents are not given ask_user and say what is missing in their result). Choose one of the last two for agents with nobody to ask, such as one called through an API. The ? on the section header explains each choice and its limits. An invalid value in the file is flagged, and choosing an option replaces it. In a sub-agent file the same choice has a section of its own, Questions from subagents, which matters only if that sub-agent calls sub-agents of its own. See Choosing Who Answers.
The footer counts the active sub-agents (X of N active).


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 (Reset to default, or Reset to inherit from parent in a sub-agent), 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. The compaction row shows an active or off by default badge.
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