Skip to content
igardev edited this page Sep 18, 2025 · 1 revision

Rules

What are rules

Rules are additional user instructions that are added to the system prompt when an agent request is sent to the AI model. They are stored in a file, created by the user in a plain text or markdown format. As llama-vscode provides the possibility to change the system prompt for the agents, additional instructions can be added to the system prompt and the result will be the same. The difference is that the rules from a file will be added to each agent system prompt on the fly.

How to use them

The rules are optional. You could use rules file to add instructions to the system prompt - code writing conventions, code formatting, additional information about the project, etc.

There are two ways to configure rules:

  • Create a new rules file under name llama-vscode-rules.md in the root of the project.
  • In llama-vscode setting Agent_rules enter a path to a rules file. It could be relative to the project root or absolute path. If this is specified, the file llama-vscode-rules.md will be ignored.
Clone this wiki locally