Releases: zebbern/claude-code-discord
Releases · zebbern/claude-code-discord
v2.3.0 Channel Monitoring & Thread-per-Session
What's New in v2.3.0
New Features
- Channel Monitoring (#17): Automatically watch a Discord channel for bot/webhook messages. When a monitored bot posts, messages are batched over a 30-second debounce window, a thread is created on the alert, and Claude streams its investigation into the thread. Requires
MONITOR_CHANNEL_IDandMONITOR_BOT_IDSenv vars plus the Message Content privileged intent. - Thread-per-Session (#19): New
/claude-threadcommand starts each conversation in its own Discord thread with a custom name (name+promptoptions, both required). - Per-Channel Session Tracking: Regular
/claudecommands now automatically reuse the last session in the same channel — no need to manually passsession_id. - Custom Thread Names:
/claude-thread name:"Fix auth bug" prompt:"Review the module"creates a thread titled Fix auth bug. - Thread-Aware Channel Detection: Bot correctly recognizes commands inside session threads and maps them to the parent channel.
Changes
- New
discord/session-threads.ts—SessionThreadManagerhandles thread creation, lookup, and lifecycle discord/types.ts—InteractionContextnow exposesgetChannelId()core/handler-registry.ts—channelSessionMapmaintains channel → session mapping.env.exampleupdated with Channel Monitoring configuration section- All documentation updated for v2.3.0
Full Changelog: v2.2.0...v2.3.0
v2.1.0 Fast Mode, Hooks, MCP Management & More
What's New in v2.1.0
New Features
- Fast Mode (/fast): Toggle Opus 4.6 speed-optimized API config (2.5x faster, same quality)
- AskUserQuestion Handler: Claude can now ask clarifying questions mid-session via Discord buttons
- MCP Mid-Session Management (/mcp toggle, /mcp reconnect): Enable/disable or reconnect MCP servers without restarting
- Granular Sandbox Config: Full SDK SandboxSettings support (network rules, filesystem ACLs, excluded commands)
- Hooks System: Passive SDK callbacks for tool use, notification, and task completion observability
- stopTask(): Stop background tasks mid-session via /claude-control action:stop-task\
- Agent Teams: Experimental multi-agent collaboration with \delegate\ permission mode
- Additional Directories: Multi-repo access for Claude
- Fork Session: Branch conversations into independent sessions
- Startup Buttons: Quick-action buttons on bot startup embed (Status, Sessions, Help, Shutdown)
Changes
- /continue\ renamed to /resume\ for clarity
- Button UX overhaul: consistent styling, proper disabled states, contextual labels
- Settings display now shows all SDK features (hooks, agent teams, sandbox, additional dirs)
- stop_reason shown in completion embeds (end_turn, max_tokens, etc.)
Bug Fixes
- Getter pattern for \claudeController\ prevents stale abort controller references
- Abort state checks prevent sending to cancelled sessions
- Continue button properly resumes the last session
- Pagination titles show correct page info
- Unicode-safe message splitting prevents mid-codepoint truncation
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's New in v2.0.0
SDK Migration
- Migrated from deprecated
@anthropic-ai/claude-codeto@anthropic-ai/claude-agent-sdkv0.2.45 - Full streaming via AsyncGenerator, native agent support, account introspection
New Features
- Mid-Session Controls: Interrupt, change model, change permissions without restarting (
/claude-control) - File Rewind: Undo file changes to any conversation turn (
/rewind) - Structured Output: Force JSON responses matching a configurable schema
- Info Commands: View account info, models, MCP status (
/claude-info) - 7 Specialized Agents: Code reviewer, architect, debugger, security, performance, DevOps, general
Advanced SDK Features
- 1M token context beta
- File checkpointing for rewind support
- Sandbox mode for safe execution
Dynamic Model Discovery
- Auto-fetches available models from Anthropic API and CLI
- Quick model switching via
/claude-settingsor/quick-model
Production Fixes
- All settings wired to SDK (thinking, effort, system prompt, permissions, git context)
- Permission mode safety: Normal mode uses
acceptEditsinstead ofdefault - Removed duplicate completion embeds
- Removed hardcoded default model, SDK auto-selects
Docker & CI/CD
- Dockerfile includes Node.js 20 + Claude CLI
- GHCR image publishing on every push to main
- Watchtower auto-update support
Startup Version Check
- Bot compares local git commit vs GitHub on startup
- Sends Discord notification if an update is available
Documentation
- DRY docs structure: README is a concise hub linking to 7 focused doc files
- OS-specific installation instructions
- Full command reference (45+ commands)
- Architecture and SDK integration docs