Skip to content

Slash Commands

Slash commands work in both the CLI chat session and the mobile app. They provide quick access to Mia features without leaving the conversation.

These commands are available inside mia chat:

CommandDescription
/add <file>Queue a file for injection into the next prompt’s context
/exec <command>Run a shell command and queue its output for injection
/diff [ref]Queue the current git diff (optionally against a ref)
/remember <fact>Store a fact in persistent memory
/fetch <url>Fetch URL content and queue for injection
/newStart a fresh conversation (clears history)
/clearClear the terminal screen
/exitEnd the chat session
/helpShow available commands

Commands like /add, /exec, /diff, and /fetch don’t immediately send anything to the AI. They queue content that gets injected into your next message’s context. This lets you stage multiple pieces of context before asking your question.

> /add src/auth/index.ts
Queued: src/auth/index.ts
> /diff
Queued: git diff
> Now explain how the auth changes affect the login flow
[AI receives your question + file contents + diff]

These commands are dispatched through the P2P connection and work from the mobile app:

CommandDescription
/usage [today|week|all]Token usage analytics
/memory [list|search <q>|stats]Memory facts management
/config [get <key>]View configuration
/doctorRun workspace health diagnostics
/log [--n N]View recent dispatch history
/recap [--date YYYY-MM-DD]Generate a daily digest
/standup [--yesterday|--hours N]Generate a standup report
/statusShow daemon status
/updatePull latest code, rebuild, restart
/helpShow available commands
/usage week
→ Shows token breakdown by plugin for the current week
/memory search "database"
→ Searches memory facts for "database"
/standup --yesterday
→ Generates standup for yesterday's activity
/recap --date 2025-01-15
→ Generates a digest for January 15th
/log --n 5
→ Shows last 5 dispatches with timing and token counts

In the CLI, slash commands are intercepted before the prompt is sent to the AI. The CLI parses the command, executes it locally, and either queues context or displays results.

On mobile, slash commands are sent as regular messages over P2P. The daemon’s swarm-message-handler detects the leading / and routes to the appropriate handler. Results are broadcast back to the mobile app as formatted messages.