Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/remorses/kimaki/llms.txt

Use this file to discover all available pages before exploring further.

Kimaki provides Discord slash commands to control OpenCode sessions directly from Discord. All commands use Discord’s native autocomplete for file paths, agent names, and session IDs.

Command Categories

Session Management

Create, resume, and control coding sessions:
  • /session - Start a new session with a prompt
  • /resume - Resume a previous session
  • /abort - Stop the current running session
  • /fork - Branch from any message in a session
  • /share - Generate a public URL to share a session

Worktree Commands

Manage git worktrees for isolated development:
  • /new-worktree - Create a git worktree and start a session
  • /merge-worktree - Merge worktree commits into the default branch

Configuration

Configure AI models, agents, and output settings:
  • /model - Change the AI model for a channel or session
  • /agent - Change the agent for a channel or session
  • /verbosity - Control output detail level
  • /mention-mode - Toggle mention-only mode for a channel

Utilities

Queue management and maintenance:
  • /queue - Queue a message to send after the current response
  • /clear-queue - Clear all queued messages
  • /undo - Undo the last assistant message (revert file changes)
  • /redo - Redo the last undone message
  • /upgrade-and-restart - Upgrade Kimaki to the latest version

Command Scopes

Channel vs Thread: Most commands behave differently depending on where you run them:
  • In a text channel: Affects all future sessions in that channel
  • In a thread: Affects only the current session in that thread

Session-Specific Commands

These commands only work inside active session threads:
  • /abort, /fork, /share
  • /queue, /clear-queue
  • /undo, /redo

Configuration Commands

These commands can be scoped to different levels:
  • Session scope: Applies only to the current thread’s session
  • Channel scope: Applies to all new sessions in the channel
  • Global scope: Applies to all channels (default for new channels)

Autocomplete Features

Kimaki provides intelligent autocomplete for:
  • File paths - Search your project files by name
  • Agent names - Pick from configured agents in .opencode/agent/
  • Session IDs - Find previous sessions by title and date
  • Models - Browse available AI models by provider

Common Workflows

1
Starting a New Session
2
  • Run /session prompt:"Add user authentication"
  • Kimaki creates a thread and starts the session
  • The AI begins working on your request
  • 3
    Switching Models Mid-Session
    4
  • Run /model in an active thread
  • Select provider (e.g., Anthropic)
  • Select model (e.g., claude-opus-4)
  • Choose “This session only”
  • Current request aborts and retries with the new model
  • 5
    Working in Isolation with Worktrees
    6
  • Run /new-worktree name:feature-auth in a channel
  • Kimaki creates a thread with a git worktree
  • All changes happen in the isolated worktree
  • When done, run /merge-worktree to merge back
  • Tips

    When starting a session, reference files using @filename syntax:
    /session prompt:"Review @src/auth.ts and add tests"
    
    The autocomplete helps you find files quickly.
    Queue multiple tasks while the AI is working:
    /queue message:"Now add error handling"
    /queue message:"Update the README"
    
    Messages send automatically when the current response finishes.
    If the AI makes unwanted changes, undo them:
    /undo
    
    This reverts file changes from the last assistant message. Use /redo if you change your mind.

    Next Steps

    Build docs developers (and LLMs) love