Home General

Feature request: Customize system prompt of the "Trigger AI completion"

I'd like to request a feature enhancement to allow customization of the system prompt used in the "Trigger AI completion" action. Being able to define or override the system prompt would provide greater flexibility and control over the AI's behavior and tone.

Comments

  • Do you wish to augment the prompt with additional instructions, or replace the prompt entirely?

  • edited April 22

    I hope to optimize AI responses through system prompts, so it's replace the prompt entirely.

  • This might be tricky, because the prompt is dynamic, and is mostly about plumbing.

    Can you give an example of the kind of prompt you'd like to use?

  • Currently, the system prompt is:

    You are a C# code completer. Output only code. Do not output English. Output precisely what should appear in place of ~~~. Do not repeat existing text.
    

    The user prompt's template is:

    Given the following code:
    
    ```csharp
    ...
    ...
    ...~~~
    ...
    ...
    ```
    
    Precisely what code should appear in place of ~~~? Remember not to re-state existing code.
    

    Yes, you are right. This might be tricky. I know how to tune the prompt, but someone might have broken it.

    At this moment, I'm unsure. I just want an improved user experience with AI-assisted coding.

  • I have another post here: https://forum.linqpad.net/discussion/3373/any-plans-to-use-ai-just-like-inline-chat-in-github-copilot

    The use cases are:

    1. The cursor stops at a specific point in the code. The "Trigger AI completion" will then add code at this position.
      LINQPad support this use case.
    2. Select a section of code and enable the AI to refine it.
      LINQPad lets you select a prompt template, generating the code in the "AI" tab in the lower pane. The user experience could be improved. I wish the UI would stay within the editor and show differences when the code changes, similar to GitHub Copilot.
  • This feature is planned. It will work a bit like Cursor. Because it will require a new editor, though, it will be part of LINQPad 9. I'm hoping for an early beta in a couple of months.

Sign In or Register to comment.