Skip to content

Integrate @TaskContextAgent and @AppTester with @Coder Using Agent Delegation #216

@planger

Description

@planger

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 result

Hints and Suggested Architecture:

  • Delegation Mechanism: Use the delegateToAgent(agentName: string, requestText: string) function to route tasks to the specialized agents (@TaskContextAgent and @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 @Coder receives a request that requires delegation, it will process the request and invoke delegateToAgent to invoke the task to the appropriate specialized agent within the overall workflow of the @Coder agent.
    • The agent responses will be streamed back and integrated into the ongoing conversation.
  • Prompt Variant for @coder: Provide your extended system message as a prompt variant for the @Coder.

Related Issues and Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions