-
Notifications
You must be signed in to change notification settings - Fork 5
Description
PO @planger
Description
This feature integrates the @TaskContextAgent and @AppTester agents into the @Coder agent using the newly introduced agent delegation mechanism from Issue #192. By enabling delegation between agents, @Coder will be able to route tasks such as task context creation/update and UI testing to specialized agents, leveraging their domain-specific capabilities while maintaining control of the overall workflow.
This approach modularizes the agent functionalities, allowing @Coder to focus on orchestration and its own specialitites while delegating specific actions to the appropriate agents.
Explore and evaluate how to best prompt this extended agent, what works better than before and what is challenging. Provide this integration in the form of a prompt variant.
Example Use Cases:
Feature: Delegating Task Context and UI Testing to Specialized Agents
As a developer
I want the @Coder agent to autonously decide when to create context or perform tests in the application
So that I can focus on higher-level tasks while allowing specialized agents to handle detailed operations
Scenario: Asking for a UI change
Given I am in a chat with the @Coder agent
And I write "@Coder Please highlight the currently selected agent in the Agent Configuration View."
When the @Coder agent processes the request
Then it should perform the code changes
And fix lint errors
And automatically invoke @AppTester to perform a UI test
And iterate as long as necessary until the initial request is fulfilled
And report back to the user the overall resultHints and Suggested Architecture:
-
Delegation Mechanism: Use the
delegateToAgent(agentName: string, requestText: string)function to route tasks to the specialized agents (@TaskContextAgentand@AppTester). It should be possible to just add the~{delegateToAgent}function in the system prompt and describe when to use which agents. -
Workflow Control:
- When
@Coderreceives a request that requires delegation, it will process the request and invokedelegateToAgentto invoke the task to the appropriate specialized agent within the overall workflow of the@Coderagent. - The agent responses will be streamed back and integrated into the ongoing conversation.
- When
-
Prompt Variant for @coder: Provide your extended system message as a prompt variant for the
@Coder.
Related Issues and Dependencies
-
Depends on:
- [Issue #191](Task Context Management / Agent #191): Task Context Agent Implementation
- [Issue #196](AppTester Agent via Browser Automation #196): AppTester Agent Implementation
- [Issue #192](Enable Agent-to-Agent Delegation via Tool Calls for Composable AI Behavior #192): Agent Delegation Mechanism