opencrabs 0.2.66

The autonomous AI agent. Single Rust binary. Every channel.
Documentation
# OpenCrabs User-Defined Slash Commands
# Copy this to ~/.opencrabs/commands.toml
#
# Commands appear instantly in the / autocomplete dropdown.
# Changes are hot-reloaded — no restart needed.
#
# The agent can also create, edit, and remove commands autonomously
# using the config_manager tool (e.g. "create a /deploy command that...").
#
# action types:
#   "prompt"  — sends the prompt to the agent for execution
#   "system"  — displays the text inline as a system message (no LLM call)

# ========================================
# Example: DevOps Commands
# ========================================

[[commands]]
name = "/deploy"
description = "Deploy to staging server"
action = "prompt"
prompt = "Run ./deploy.sh staging and report the result."

[[commands]]
name = "/rebuild"
description = "Build and restart OpenCrabs from source"
action = "prompt"
prompt = 'Run `RUSTFLAGS="-C target-cpu=native" cargo build --release` in /srv/rs/opencrabs. If it succeeds, ask if I want to restart now.'

# ========================================
# Example: Productivity Commands
# ========================================

[[commands]]
name = "/standup"
description = "Generate a daily standup summary"
action = "prompt"
prompt = "Summarize my recent git commits and open tasks for a concise standup report."

[[commands]]
name = "/todo"
description = "Show open tasks in current project"
action = "prompt"
prompt = "List all TODO/FIXME comments in the current project and any open tasks files."

# ========================================
# Example: System Messages (no LLM call)
# ========================================

[[commands]]
name = "/howto"
description = "Show quick reference for common commands"
action = "system"
prompt = "Common commands: /models (switch model), /sessions (browse history), /usage (cost report), /stop (abort operation), /doctor (health check), /approve (approval policy), /compact (compact context), /whisper (voice-to-text), /rebuild (rebuild from source), /cd (change directory), /onboard (setup wizard). Channel commands (Telegram/Discord/Slack): /help, /usage, /models, /stop. Channel history: use channel_search tool (list_chats, recent, search) to browse stored messages across all channels."

# ========================================
# Example: Channel History Commands
# ========================================

[[commands]]
name = "/chats"
description = "List all known channel chats with message counts"
action = "prompt"
prompt = "Use the channel_search tool with operation list_chats to show all known chats across all channels."

[[commands]]
name = "/history"
description = "Show recent messages from a channel chat"
action = "prompt"
prompt = "Ask me which channel and chat to show history for, then use channel_search with operation recent to show the last 20 messages."