kevin-david/discord-adapter

โ˜… 0Forks 0TypeScriptGitHub โ†—Compare

README

@openacp/discord-adapter

Discord adapter plugin for OpenACP. Creates forum threads for each AI session, supports slash commands, streaming messages, and permission requests.

Installation

openacp plugin add @openacp/discord-adapter

Features

  • Forum threads โ€” each session gets its own thread in a dedicated #openacp-sessions forum channel
  • Tool card embeds โ€” agent activity rendered as Discord embeds with colored sidebar (๐Ÿ”ต running, ๐ŸŸข done, ๐Ÿ”ด error)
  • Action row buttons โ€” [๐Ÿ”‡ Low] [๐Ÿ“Š Medium] [๐Ÿ” High] [โŒ Cancel] appear inline under the tool card while the agent is working
  • Output modes โ€” three detail levels (low/medium/high) with a 3-level cascade: session override โ†’ adapter default โ†’ global default
  • Streaming messages โ€” responses stream in real-time with debounced edits
  • Permission buttons โ€” Allow/Reject buttons for agent permission requests
  • File and image support โ€” attach files and screenshots directly in threads

Slash Commands

Command Description
/new [agent] [workspace] Create a new session
/newchat New session, same agent and workspace
/cancel Cancel the current session
/status Show session or system status
/sessions List all sessions
/menu Open the session control panel
/handoff Get a command to resume locally
/agents Browse available agents
/install <name> Install an agent
/outputmode [low|medium|high|reset] [session] Set output detail level
/dangerous Toggle auto-approval of permissions
/tts [on|off] Toggle text-to-speech
/settings Change config in-chat
/doctor Run diagnostics
/help Show help

Output Mode

Controls how much detail is shown while the agent is working:

Mode Description
low Compact icon grid โ€” minimal noise
medium Tool titles, descriptions, output summaries (default)
high Full inline output, plan list, thinking viewer links

Switch adapter default: /outputmode high Override per session: /outputmode session high Reset to global default: /outputmode reset

Or click the mode buttons in the tool card action row โ€” no command needed.

Development

git clone https://github.com/Open-ACP/discord-adapter.git
cd discord-adapter
pnpm install
pnpm build
pnpm test

# Hot-reload development
openacp dev .

Configuration

After installing the plugin, run openacp plugin configure @openacp/discord-adapter to set up:

  • Discord bot token
  • Guild ID
  • Forum channel ID

Contributors

kevin-davidgithub-actions[bot]dylan-112

Issues