← ClaudeAtlas

claude-remote-sessionslisted

Per-channel remote sessions for Claude Code via Discord and Telegram — each channel, thread, or chat gets its own isolated Claude Code session via tmux, with per-channel access control, project-specific workdirs, and automatic CLAUDE.md chain loading. Includes session managers, watchdog daemons (auto-respawn, auto-discover, stale cleanup), thread context injection, session resume, workdir mapping, and launchd boot persistence. Use when: (1) setting up per-channel Discord/Telegram sessions for Claude Code, (2) managing multiple sessions across messaging channels, (3) auto-discovering new channels or threads, (4) spawning thread sessions with parent conversation context, (5) keeping remote agent sessions alive, (6) cleaning up stale sessions, (7) setting up Telegram per-chat sessions. Triggers on 'remote sessions', 'discord sessions', 'telegram sessions', 'per-channel discord', 'discord watchdog', 'telegram watchdog', 'spawn discord session', 'claude remote', 'channel session', 'thread session'.
broomva/skills · ★ 3 · AI & Automation · score 72
Install: claude install-skill broomva/skills
# Claude Remote Sessions Each Discord channel or thread maps to its own independent Claude Code session running in a tmux pane. Discord messaging is handled natively by the MCP plugin inside each session. A watchdog daemon keeps sessions alive and auto-discovers new channels/threads. ## Prerequisites - Claude Code with `--channels` support (v2.1.80+) - Discord bot configured: `/discord:configure <token>` - tmux installed - Discord bot invited to your server with permissions: View Channels, Send Messages, Read History, Attach Files, Add Reactions, Manage Channels, Create Threads ## Setup ### 1. Configure environment Create `~/.claude/discord-sessions/config.env`: ```bash # Required DISCORD_ALLOWED_USER_ID="your-discord-user-id" DISCORD_GUILD_ID="your-guild-server-id" # Optional (defaults shown) DISCORD_SESSION_WORKDIR="$HOME" # Default workdir for new sessions DISCORD_WATCHDOG_INTERVAL=30 # Respawn check frequency (seconds) DISCORD_DISCOVER_INTERVAL=60 # Channel/thread discovery frequency (seconds) DISCORD_CLEANUP_INTERVAL=300 # Stale session cleanup frequency (seconds) ``` Find your user ID: Discord Settings → Advanced → Enable Developer Mode → right-click your name → Copy User ID. Find your guild ID: Right-click your server name → Copy Server ID. ### 2. Install scripts Copy scripts to your project: ```bash cp scripts/discord-session-manager.sh ~/your-project/scripts/ cp scripts/discord-watchdog.sh ~/your-project/scri