Skip to content

Agent commands

igardev edited this page Sep 18, 2025 · 2 revisions

Agent commands

What are agent commands

Agent commands are a way to reuse often used prompts. They could be used to describe complex workflows or for simple instructions.
Agent commands are stored in setting agent_commands and llama-vscode menu item "Agent commands..." could be used to manage them. In future they could be extended with additional context, specificatlly prepared by llama-vscode for each command.

How to use them

Prerequisite: tools model is selected.

In agent prompt text area press "/" - the available agent commands will be shown and could be selected. When selected, the command name is replaced with the longer prompt for this command and is sent to the AI model.
Example:

  1. Select several lines of source code
  2. Press Ctrl+Shift+A (or right click and select "llama-vscode: Show Llama Agent") - this will attach the selected lines to the prompt
  3. Inside the agent prompt press "/" and select "explain" The agent will explain the selected code.
Clone this wiki locally