Skip to content

feat: add Meta-Prompter as a built-in default mode#11784

Draft
roomote[bot] wants to merge 1 commit intomainfrom
feature/add-meta-prompter-mode
Draft

feat: add Meta-Prompter as a built-in default mode#11784
roomote[bot] wants to merge 1 commit intomainfrom
feature/add-meta-prompter-mode

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Feb 27, 2026

Related GitHub Issue

Closes: #11783

Description

This PR attempts to address Issue #11783 by adding a new built-in Meta-Prompter mode to Roo Code. Feedback and guidance are welcome.

The Meta-Prompter mode helps users refine vague, underspecified prompts into precise, actionable instructions optimized for Roo's specialized modes (Code, Debug, Architect, Ask, Orchestrator).

Key implementation details:

  • Added a new entry to DEFAULT_MODES in packages/types/src/mode.ts with slug meta-prompter
  • Tool groups: ["read", "mcp"] (read-only access with MCP support, matching Ask mode's pattern)
  • The mode follows the YAML definition provided by @votrinhan88 (with corrected string formatting), implementing a structured 5-step workflow:
    1. Interview the user with targeted clarifying questions
    2. Read relevant files for concrete context
    3. Draft a refined prompt for the target mode
    4. Explain what was vague and what assumptions were made
    5. Offer one revision round

Design choice: The YAML only specified ["read"] for tool groups, but I added "mcp" to match Ask mode's pattern, since MCP access allows querying external resources when refining prompts.

Test Procedure

  • All existing mode-related tests pass (63 tests across 3 test files):
    • shared/__tests__/modes.spec.ts (45 tests)
    • shared/__tests__/modes-empty-prompt-component.spec.ts (7 tests)
    • core/prompts/__tests__/system-prompt.spec.ts (11 tests)
  • Full lint check passes across all 14 packages
  • Full type check passes across all 14 packages

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.

Documentation Updates

  • No documentation updates are required.

Additional Notes

The mode definition is based on the YAML file attached to issue #11783 by @votrinhan88, with the updated string formatting fixes from their follow-up comment.

Interactively review PR in Roo Code Cloud

Adds a new "Meta-Prompter" mode to DEFAULT_MODES that helps users
refine vague, underspecified prompts into precise, actionable
instructions for Roo's specialized modes.

The mode follows a structured 5-step workflow:
1. Interview the user with targeted clarifying questions
2. Read relevant files for concrete context
3. Draft a refined prompt for the target mode
4. Explain what was vague and what assumptions were made
5. Offer one revision round

Tool groups: read, mcp (read-only access with MCP support)

Closes #11783
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add Meta-Prompter mode for Roo

1 participant