Skip to content

Slash commands

Slash commands are special instructions that begin with / and are typed in the chat input. They let you quickly trigger specific workflows: compact the context, start a new task, install a template, or run your own automation.

CommandDescription
/compactSummarizes and compresses the current conversation to free up context window space. Learn more
/newtaskStarts a new task with a fresh context, optionally carrying over key information. Learn more
/create-skillLaunches a guided flow for creating a new Skill for the current project or globally
/create-commandCreates a new custom slash command (a .md file in .kodik/commands/)
/create-ruleCreates a new rules file for controlling agent behavior
/create-hookCreates a lifecycle hook — a shell command tied to an agent event. Learn more
/install-templateStarts a guided template installation workflow from the Kodik Marketplace
/analyze-workspaceAnalyzes the workspace and provides a summary of the project

Beyond the built-ins, you can define your own slash commands as Markdown files that Kodik discovers and makes available to the agent.

Commands are loaded from multiple locations. When names collide, the higher-priority source wins:

LocationScope
.kodik/commands/ in the project rootProject-level (highest priority)
.agents/commands/ in the project rootProject-level (.agents compatibility)
~/Documents/Kodik/Commands/User-global
~/.agents/commands/User-global (.agents compatibility)
Installed plugin’s commands directoryPlugin-level

A command file is a .md file whose filename (without the extension) becomes the command name. An optional YAML frontmatter block can supply metadata:

---
name: deploy
title: Deploy to staging
description: Builds the project and deploys to the staging environment
argument-hint: "[branch]"
mode: code
---
Build the project, run the tests, and deploy branch `$ARGUMENTS` to staging.
If tests fail, stop and report the issue.

Supported frontmatter fields:

FieldDescription
nameCommand name (defaults to filename without .md)
idStable command identifier (defaults to name)
titleHuman-readable display name shown in the UI
descriptionShort description of what the command does
argument-hintHint text shown in the autocomplete menu
modeExecution mode (e.g. code, plan, ask)

Commands contributed by plugins are namespaced as pluginId:commandName. In the chat you can invoke them with or without the prefix. See Plugins & Marketplace for details.