Skip to content

Reusability of Prompts #76

Closed
2 of 2 issues completed
Closed

Description

@jerop

TL;DR

Currently, the prompts used by the Gemini CLI are defined inline within the workflow files.

When we improve a prompt, users who have copied our provided workflows won't get the updates unless they manually copy the new prompt from our repository. This means users can easily be running on old, sub-optimal prompts.

Detailed design

Consider serving prompts via the Model Context Protocol (MCP), similar to how we currently serve custom tools.

This would involve:

  1. Defining our prompts in a structured format that the MCP server can understand.
  2. Configuring the MCP server to expose these prompts to the Gemini CLI.
  3. Updating the workflows to reference the prompts via MCP.

Additional information

Learn more in https://modelcontextprotocol.io/specification/2025-06-18/server/prompts

Activity

  1. sethvargo commented on Aug 1, 2025

    @sethvargo
    Contributor

    I wonder if, as a stop-gap, we can move these prompts into text files in the repo. Once the repo is public, the model could retrieve from the links?

  2. added
    priority/p2Important but can be addressed in a future release
    and removed on Aug 1, 2025
  3. jerop commented on Aug 2, 2025

    @jerop
    ContributorAuthor

    I wonder if, as a stop-gap, we can move these prompts into text files in the repo. Once the repo is public, the model could retrieve from the links?

    The challenge is that we also want users to be able to configure the prompts with their own preferences (e.g. code standards) - so we'd need to support dynamically switching from text files in our repo vs those they've configured elsewhere 🤔

  4. 17 remaining items

  5. reopened this on Oct 9, 2025
  6. gemini-cli commented on Oct 9, 2025

    @gemini-cli
    Contributor

    🤖 Hi @jerop, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

  7. jerop commented on Oct 23, 2025

    @jerop
    ContributorAuthor

    Update: we're now using custom commands in dogfooding - we need to:

    • refactor examples to also use custom commands in prompts
    • update /setup-github to also copy over the custom commands to .github/commands
  8. modified the milestones: v0.1.14, v0.1.15 on Oct 23, 2025
  9. added
    priority/p1Important and should be addressed in the near term
    priority/p0Critical and urgent e.g., critical security vulnerability, major breakage
    and removed
    priority/p2Important but can be addressed in a future release
    priority/p1Important and should be addressed in the near term
    on Nov 12, 2025
  10. modified the milestone: v0.1.15 on Nov 18, 2025
  11. self-assigned this
    on Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/promptskind/enhancementNew feature or requestpriority/p0Critical and urgent e.g., critical security vulnerability, major breakage

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions