Skip to content

Enhance system prompt flexibility optionsΒ #3773

@kvokka

Description

@kvokka

What problem does this proposed feature solve?

System prompt is written in a generic way, which is a good default solution, but it can not be the best for the current SOTA LLMs and for older small local LLMs at the same time.

Currently, it's possible to adjust it, but it's painful

Also, global settings (like Open tabs context limit) pollute the context of subtasks for some modes and may consume up to 1k tokens for nothing. And it's not the only example.

Good solutions might be later easier included in Roo from/by the community. Win-win

Describe the proposed solution in detail

In Roo 3.17.2, when system prompt overriding is more challenging than it should be because:

  1. The user still gets some leftovers from Roo, like language settings. It's excessive for the English language, but there is no way to cut it
  2. Let the user use templating with the system prompt. Mustache lib or any other templating engine will work, passing the same context as the system prompt has now

Technical considerations or implementation details (optional)

No response

Describe alternatives considered (if any)

I'm ok to make a Roo Code plugin for this purpose, but #3770 is a blocker. Of course, it's possible to copy-paste a bunch of code from Roo, but it's best to go with this option and keep all in 1 place.

Additional Context & Mockups

No response

Proposal Checklist

  • I have searched existing Issues and Discussions to ensure this proposal is not a duplicate.
  • This proposal is for a specific, actionable change intended for implementation (not a general idea).
  • I understand that this proposal requires review and approval before any development work begins.

Are you interested in implementing this feature if approved?

  • Yes, I would like to contribute to implementing this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ApprovalReady to move forward, but waiting on maintainer or team sign-off.enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions