-
Notifications
You must be signed in to change notification settings - Fork 74
Agent commands
igardev edited this page Sep 18, 2025
·
2 revisions
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.
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:
- Select several lines of source code
- Press Ctrl+Shift+A (or right click and select "llama-vscode: Show Llama Agent") - this will attach the selected lines to the prompt
- Inside the agent prompt press "/" and select "explain" The agent will explain the selected code.