Customization
Custom chat modes
Adding custom chat modes allows you to:
- Create specialized modes for specific tasks or workflows
- Tailor the model’s behavior and available tools for different use cases
Create a custom chat mode
- Run the command Chat: New Mode File… in the Command Palette.
- Choose a location for the new chat mode file from the dropdown.
- Name the file and press Enter.
- Edit the newly created
.chatmode.mdfile to specify the chat modedescription, thetoolsthe chat mode can use, as well as the chat mode prompt content.
Once you have created a custom chat mode, it will appear in the mode selector dropdown in the Chat pane, allowing you to select and use it like the default chat modes.
Configure your custom chat modes
- Run the command Chat: Configure Chat Modes… in the Command Palette.
Additional resources
Custom chat modes are now called custom agents in VS Code documentation. To learn more about the format of custom agents, see the following VS Code documentation:
- Custom agent file structure
- Note: Positron Assistant does not support the
modelfield at this time.
- Note: Positron Assistant does not support the
- Custom agents in VS Code
Custom prompts and instructions
Extend the default prompt
Extending the default prompt allows you to:
- Add project-specific coding standards or conventions
- Include domain-specific terminology or context
- Define preferred libraries or frameworks for your project
To customize Positron Assistant’s behavior, create one or more of these files in your workspace root directory:
agents.mdagent.mdpositron.mdclaude.mdgemini.mdllms.txt
Positron Assistant looks for these files and appends each file’s content to the default prompt for all chat and inline chat interactions. This customization does not affect code completions.
Note that Positron Assistant does not guarantee the order in which it appends these files. Follow issue #10571 for updates.
Custom prompt files
Adding custom prompt files allows you to:
- Reuse prompts across chat requests and sessions
- Explicitly apply prompts to specific chat requests
Create a custom prompt file
- Run the command Chat: New Prompt File… in the Command Palette.
- Choose a location for the new prompt file from the dropdown.
- Name the file and press Enter.
- Edit the newly created
.prompt.mdfile to specify the promptdescription, chatmodes the prompt should be available for, thetoolsthe prompt can use, as well as the prompt content.
Use a custom prompt in a chat or inline chat session
- Type
/in the chat input box to open the slash command menu - Continue typing the custom prompt name or select the prompt from the slash command menu.
- Finish your message and send it to the model. Your custom prompt will be included in the request.
For example, if you have a prompt file named emojis.prompt.md, you can type /emojis in the chat input box to use that prompt.
Configure your custom prompt files
- Run the command Chat: Configure Prompt Files… in the Command Palette.
Additional resources
To learn more about the format of custom prompt files, see the following VS Code documentation:
- Prompt file structure
- Note: Positron Assistant does not support the
modelfield at this time.
- Note: Positron Assistant does not support the
- Tips for defining prompt files
Custom instructions
Define custom instructions to apply specific prompts to files that match glob patterns. This allows you to:
- Enforce coding standards for specific file types, such as Python or R scripts
- Provide context-specific guidelines for different parts of your project, such as data processing or visualization scripts
Define custom instructions
- Run the command Chat: New Instructions File… in the Command Palette.
- Choose a location for the new instructions file from the dropdown.
- Name the file and press Enter.
- Edit the newly created
.instructions.mdfile to specify theapplyTofile glob pattern and the instructions you want to apply.
Once you have created custom instructions files, Positron Assistant will automatically apply the relevant instructions based on the file glob patterns when you interact with the model in chat or inline chat.
Configure your custom instructions files
- Run the command Chat: Configure Instructions… in the Command Palette.
Additional resources
To learn more about the format of custom instructions files, see the following VS Code documentation: