-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
All commands are Discord slash commands registered via REST API on startup.
These commands require the ManageChannels Discord permission.
Creates a new room (Discord text channel).
- Channel is named
claude-<name> - Created inside the current category if one exists
- If inside a project category and no
pathspecified, uses the project's shared workspace - Default mode is
bypassPermissions - Default agent is the first
AGENT_*defined (orclaude)
Deletes the current room.
- Kills the tmux session
- Removes the DB row
- Optionally wipes the workspace directory (
wipe:True) - Blocked for project rooms (to protect shared workspace)
- Deletes the Discord channel
Renames the current room to claude-<new>. Updates the Discord channel name and DB record.
Changes the permission mode for the current room.
- Updates the DB
- Kills the current tmux session
- Next
/enterrestarts the agent with new mode flags
Mode options:
| Mode | Description |
|---|---|
default |
Normal permissions (asks before edits/commands) |
plan |
Plan mode only |
acceptEdits |
Auto-accept file edits |
bypassPermissions |
Skip all permission prompts (default) |
Switches the agent for this room.
- Shows the new agent name and command
- Resets the tmux session — the current session is killed
- Next
/enterstarts the new agent - See Multi-Agent for details
Lists all non-archived rooms in the current guild.
See Projects for full details.
Creates a new project (Discord category + shared workspace).
Lists all projects in the current guild.
Deletes the project. Run from a channel inside the project category.
Shows project info for the current channel's category.
Flushes the message buffer and sends it to the agent.
- Combines all buffered messages with newlines
- Appends attachment references with absolute paths
- Creates the tmux session if needed (lazy initialization)
- Sends the composed text via
tmux send-keys
Drops the current message buffer. Returns the number of discarded entries.
Shows a snapshot of the current buffer:
- Entry count
- Total characters
- Attachment count
- Preview (truncated to 1500 chars)
Resets the session for the current channel.
- Kills the tmux session
- Clears the in-memory session state
- Next
/enterstarts a fresh agent instance
Shows session information:
- Tmux session name
- Workspace path
- Whether tmux is alive
- Current agent and its command
- Current mode
- Registration status
Bot owner only (auto-detected from Discord application info + BOT_OWNER_IDS env).
Adds an entry to the allowlist. Writes to both DB and in-memory cache.
Removes an entry from the allowlist.
Shows all ACL entries (users, roles, channels) and registered room count.
Displays a formatted help message with command descriptions and available agents.
When an agent presents interactive menus (numbered choices), the bot renders them as Discord buttons. Clicking a button sends the corresponding digit + Enter to the tmux session. Buttons are disabled after use to prevent double-sends.
claude-tmux-discord — Discord bot for per-channel Claude Code sessions via tmux
Setup
Usage
Technical
Help