LitoMore/agent-discord-presence

Discord Rich Presence for Codex, Claude Code, OpenCode, Pi, and DeepSeek Harness, powered by one local service that keeps your active work visible in Discord.

Project Overview项目介绍

This is a Discord Rich Presence plugin for AI agents including DeepSeek Harness, Claude Code and more. It automatically generates activity summaries, status and session time for active work, auto-reconnects and clears stale sessions. Use it when you need to display agent work status on Discord. It requires Node.js 22+, and you need to manually restart the service after rebooting.

这是一款支持DeepSeek Harness、Claude Code等多款AI代理的Discord富状态显示插件。核心能力是自动为活跃代理工作会话生成活动摘要、状态和会话时长,自动重连并清理无效会话。需要在Discord展示代理工作状态时使用,注意需要Node.js 22+环境,电脑重启后需手动重启服务。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:LitoMore/agent-discord-presence

LitoMore/agent-discord-presence 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Agent Discord Presence

Discord Rich Presence for Codex, Claude Code, OpenCode, Pi, and DeepSeek Harness, powered by one local service that keeps your active work visible in Discord.

Features

  • Generates a summary title, subtitle, activity state, and elapsed session time for your active agent work.
  • Selects the active session across supported agents, reconnects to Discord, and clears stale sessions automatically.
  • Uses the current agent model by default for summaries, with optional custom model, service, language, and prompt styling.
  • Sends up to 4,000 characters of the completed assistant reply to the summarization model and includes model usage metadata.
  • Allows automatic summaries to be disabled while keeping lifecycle updates enabled.
  • Runs multiple agents together with independent model, prompt, and display settings.

Quick start

The easiest way to get started is to let your agent handle the setup. Paste this repository link into your agent, or copy the prompt below:

Install and configure agent-discord-presence for the agent I'm using:
https://github.com/LitoMore/agent-discord-presence

Read the README and USAGE.md, check the prerequisites, install the package,
and set up the hooks or plugin for my agent while preserving my existing
configuration. Start the service in the background, check its status, and
let me know if I need to restart my agent or take any other steps.

You'll need Node.js 22+ and the Discord desktop app. Open Discord and sign in before checking your presence. A default Discord Application ID is included; no bot token is needed.

Prefer to set it up yourself? Install the package and start the service in the background:

npm install --global agent-discord-presence
adp start -b

Then follow the setup instructions for your agent:

Once connected, give your agent a task and check Discord for its activity. Run adp status to check the service and Discord connection.

Stop the service with adp stop; this clears its Discord activity. To run in the foreground instead, use adp start and stop it with Ctrl+C. Automatic startup is not configured, so run adp start -b again after restarting your computer.

Documentation

See the usage guide for installation, configuration, and operation:

License

MIT

上一个 Prev dsh-onebot 下一个 Next iyam-dsh-desktop