Overview

Prompt templates let you define reusable prompts that you can invoke as slash commands. Save your most common instructions, review checklists, or code generation patterns as templates.

Using Templates

Invoke a template with / followed by the template name:
Templates are regular slash commands — they appear alongside built-in commands.

Creating Templates

Place template files in ~/.loop/agent/prompts/:

Template Content

Each file contains the prompt text that will be sent to the agent:

Template Arguments

Templates support positional arguments: Example:
Usage:
This expands to: “Write comprehensive tests for src/parser.rs. Include unit tests, edge cases, and integration tests where appropriate. Use the project’s existing test framework.”

Template Ideas

Code Review

Documentation

Refactoring

Configuring Template Directories

Add custom template directories in settings:

Reloading Templates

After adding or modifying templates: