Skip to content

Conversation

@papakonnekt
Copy link

@papakonnekt papakonnekt commented Jun 22, 2025

This commit introduces three major architectural enhancements to Roocode:

  1. Asynchronous Operations & Advanced Workflow Control:

    • Adds dispatch_task for non-blocking sub-task creation.
    • Adds get_task_status to check on active dispatched tasks.
    • Adds consolidate_results to await and gather results from multiple tasks.
    • Adds cancel_task to terminate dispatched tasks.
    • Adds release_tasks for cleaning up terminated task records from memory.
    • Updates Task.ts to manage status, final results, and a global active task list to support these operations.
  2. Centralized Task Lifecycle Management:

    • Introduces workspace settings (taskCompletionMediatorModeEnabled, taskCompletionMediatorAgentMode) to enable a mediator agent.
    • Modifies attemptCompletionTool to intercept task completions, set the original parent to await mediation, and launch a mediator task (as a child of the original parent or new root) in the configured mode.
    • Adds resume_parent_task tool for the mediator to call, which allows the original parent task to resume with the (potentially modified) result.
    • Updates Task.ts and ClineProvider.ts to handle the mediation state and result passing.
  3. Conversational Task Framework ("Debate Mode"):

    • Adds start_conversation tool to manage a structured debate between two dynamically defined AI agents.
    • The tool handles agent setup with custom system prompts (via enhancements to Task.ts and ClineProvider.ts), turn-by-turn message passing, and a referee LLM check for a termination condition.
    • Returns the full conversation transcript.

All new tools have been integrated into the system prompt schema and message handling logic. Placeholder i18n keys for new error messages have been added to tools.json.

Note: pnpm test failed due to a pre-commit hook linting issue (ESM/CJS related) that seems to be an environment/tooling setup problem rather than a direct consequence of these code changes. The core feature implementation is complete.

Related GitHub Issue

Closes: #

Description

Test Procedure

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Documentation Updates

Additional Notes

Get in Touch


Important

Enhances task management with asynchronous operations, centralized lifecycle management, and a new conversational framework for AI agent interactions.

  • Asynchronous Operations & Workflow Control:
    • Adds dispatch_task, get_task_status, consolidate_results, cancel_task, release_tasks tools in presentAssistantMessage.ts.
    • Updates Task.ts to manage task status, results, and active task list.
  • Task Lifecycle Management:
    • Introduces mediator settings in ClineProvider.ts.
    • Modifies attemptCompletionTool.ts to handle task mediation.
    • Adds resume_parent_task tool for mediation.
  • Conversational Framework:
    • Adds start_conversation tool for AI agent debates.
    • Manages conversation with custom prompts and referee checks.
  • Miscellaneous:
    • Updates tools.json for i18n keys.
    • Adds new configuration options in package.json.

This description was created by Ellipsis for cdd5113. You can customize this summary. It will automatically update as commits are pushed.

This commit introduces three major architectural enhancements to Roocode:

1.  **Asynchronous Operations & Advanced Workflow Control:**
    *   Adds `dispatch_task` for non-blocking sub-task creation.
    *   Adds `get_task_status` to check on active dispatched tasks.
    *   Adds `consolidate_results` to await and gather results from multiple tasks.
    *   Adds `cancel_task` to terminate dispatched tasks.
    *   Adds `release_tasks` for cleaning up terminated task records from memory.
    *   Updates `Task.ts` to manage status, final results, and a global active task list to support these operations.

2.  **Centralized Task Lifecycle Management:**
    *   Introduces workspace settings (`taskCompletionMediatorModeEnabled`, `taskCompletionMediatorAgentMode`) to enable a mediator agent.
    *   Modifies `attemptCompletionTool` to intercept task completions, set the original parent to await mediation, and launch a mediator task (as a child of the original parent or new root) in the configured mode.
    *   Adds `resume_parent_task` tool for the mediator to call, which allows the original parent task to resume with the (potentially modified) result.
    *   Updates `Task.ts` and `ClineProvider.ts` to handle the mediation state and result passing.

3.  **Conversational Task Framework ("Debate Mode")**:
    *   Adds `start_conversation` tool to manage a structured debate between two dynamically defined AI agents.
    *   The tool handles agent setup with custom system prompts (via enhancements to `Task.ts` and `ClineProvider.ts`), turn-by-turn message passing, and a referee LLM check for a termination condition.
    *   Returns the full conversation transcript.

All new tools have been integrated into the system prompt schema and message handling logic. Placeholder i18n keys for new error messages have been added to `tools.json`.

Note: `pnpm test` failed due to a pre-commit hook linting issue (ESM/CJS related) that seems to be an environment/tooling setup problem rather than a direct consequence of these code changes. The core feature implementation is complete.
@papakonnekt papakonnekt requested review from cte and mrubens as code owners June 22, 2025 08:51
@papakonnekt papakonnekt requested a review from jr as a code owner June 22, 2025 08:51
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Jun 22, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 22, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant