Skip to content

Releases: zebbern/claude-code-discord

v2.3.0 Channel Monitoring & Thread-per-Session

02 Mar 23:07

Choose a tag to compare

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_ID and MONITOR_BOT_IDS env vars plus the Message Content privileged intent.
  • Thread-per-Session (#19): New /claude-thread command starts each conversation in its own Discord thread with a custom name (name + prompt options, both required).
  • Per-Channel Session Tracking: Regular /claude commands now automatically reuse the last session in the same channel — no need to manually pass session_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.tsSessionThreadManager handles thread creation, lookup, and lifecycle
  • discord/types.tsInteractionContext now exposes getChannelId()
  • core/handler-registry.tschannelSessionMap maintains channel → session mapping
  • .env.example updated 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

18 Feb 05:01

Choose a tag to compare

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

18 Feb 00:20

Choose a tag to compare

What's New in v2.0.0

SDK Migration

  • Migrated from deprecated @anthropic-ai/claude-code to @anthropic-ai/claude-agent-sdk v0.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-settings or /quick-model

Production Fixes

  • All settings wired to SDK (thinking, effort, system prompt, permissions, git context)
  • Permission mode safety: Normal mode uses acceptEdits instead of default
  • 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