Skip to content

Slash Commands

Slash commands are saved prompt templates. Type / in the chat input to see a list of available commands, then select one to insert its content. This saves typing repetitive prompts and keeps consistent workflows across threads.

  1. Click in the chat input.
  2. Type / — an autocomplete dropdown appears listing all available commands.
  3. Continue typing to filter by name (e.g. /review narrows to commands with “review” in the name).
  4. Click a command or press Enter to insert it.

The command’s content is inserted into the input. You can edit it before sending, or send it immediately if no modification is needed.

Slash commands can be created from within Tarsk or by creating files manually.

  1. Open the Slash Commands panel (accessible from the / dropdown — click New Command).
  2. Choose the scope: Global (available in all projects) or Project (current project only).
  3. Set a name (becomes the /name trigger).
  4. Add a description (shown in the autocomplete dropdown).
  5. Write the command body — the Markdown text that will be inserted.
  6. Click Save.

Slash commands are Markdown files with YAML frontmatter stored at:

ScopeLocation
Global~/.tarsk/commands/
Project<threadPath>/.tarsk/commands/

Example: ~/.tarsk/commands/review.md

---
description: Review the latest changes and suggest improvements
argumentHint: focus area (optional)
mode: default
---
Please review the recent changes in this thread. Look for:
- Logic errors or edge cases
- Missing error handling
- Performance concerns
- Code style inconsistencies
Summarise findings and suggest specific improvements.
FieldRequiredDescription
descriptionYesShort description shown in the autocomplete dropdown
argumentHintNoHint text shown after the command name, suggesting what the user might type (e.g. “branch name”)
modeNodefault (standard chat) or plan (activates plan mode when this command is used)
---
description: Structured code review of recent changes
---
Review the changes made in this thread. For each file modified, evaluate:
1. Correctness and logic
2. Error handling completeness
3. Test coverage
4. Naming and readability
List any issues with line references and suggested fixes.
---
description: Generate tests for the current implementation
argumentHint: file or function name
---
Write comprehensive tests for the implementation. Include:
- Happy path tests
- Edge cases and boundary conditions
- Error/exception scenarios
- Use the existing test framework and conventions in this project.
---
description: Commit changes and create a pull request
---
1. Review the current git diff.
2. Generate a clear, conventional commit message.
3. Commit all staged changes.
4. Push to the remote branch.
5. Create a pull request with a descriptive title and summary.
GlobalProject
Available inAll projects, all threadsOnly threads of this project
Stored at~/.tarsk/commands/<threadPath>/.tarsk/commands/
OverrideProject commands override global commands with the same name

Use global commands for workflows that apply everywhere (review, test, commit). Use project commands for project-specific instructions that reference internal modules, APIs, or conventions.

In the slash command UI:

  • Edit — modify the name, description, or body
  • Delete — removes the file from disk; the command disappears from autocomplete immediately

Changes take effect in the next message — no restart required.