Dark mode toggle
Last Updated:
copresence desktop app showing live Discord Rich Presence for AI coding agents

copresence: Live Discord Rich Presence for Claude Code, Codex, Cursor, Gemini CLI & OpenCode

Developers have used Discord Rich Presence for years to show what IDE or language they're coding in — but these days, half the work happens inside AI coding agents running in terminals and editors. If you're juggling Claude Code, Codex, Cursor, Gemini CLI, or OpenCode, your friends still just see nothing at all.

copresence (v0.2.0) is an open-source, lightweight tray app built with Rust and Tauri that turns your live AI coding agent activity into a customizable Discord Rich Presence card across Windows, macOS, and Linux.

GitHub Repository: Dawn-Of-Justice/copresence (MIT License · Windows, macOS & Linux)

What Your Friends See on Discord

Playing Coding with AI
Claude Code · Running tests
+1 agent active · Plan 3/7 · 3-day streak
23:41 elapsed

The first line automatically updates with your active agent and what it's doing right now: thinking, editing code, running tests, building, waiting for your approval, or idle. When multiple agents are working simultaneously, copresence shows how many are active, rotates between them, and always prioritizes an agent that is waiting for your approval.

You can build the second line from 14 customizable items in any order you like:

Engineered to Be Light, Quiet, and Private

  • Tiny footprint (~3–5 MB RAM): One native Rust binary (~2 MB installer) with no Node.js runtime required. The settings window is created only when you open it and completely destroyed when closed.
  • Zero polling: copresence sleeps until an agent fires an event, and Discord tracks the elapsed timer itself. Claude Code reports over native HTTP hooks; Codex, Cursor, and Gemini use a tiny curl call so most events don't even spawn a heavy process.
  • Private by default: Your Discord card never reveals a project name, file, or command unless you explicitly allow it. Each project can be set to Public, Private, or Hidden (shows only "Coding"), and you can pause sharing from the tray in one click. All stats are computed locally.
  • Signed self-updates: Checks for updates at startup and every 6 hours, shows release notes before installing, and verifies every update against the project's cryptographic signature.

Supported Agents & Non-Destructive Setup

Inside copresence's Agents tab, toggling an agent backs up its existing config file first and adds only copresence's hook entries — turning an agent back off cleanly removes only what copresence added:

AgentHook / Integration Path
Claude CodeNative HTTP hooks in ~/.claude/settings.json
CodexLifecycle hooks in ~/.codex/config.toml (leaves your notify setting untouched)
CursorObserve-only hooks in ~/.cursor/hooks.json (never blocks commands)
Gemini CLIHooks in ~/.gemini/settings.json
OpenCodeLightweight plugin in ~/.config/opencode/plugins/

Optional: Crew Mode (Live Leaderboard With Friends)

If you want to share live agent status and a daily coding leaderboard with friends, copresence includes an optional Crew mode. Crew members see only the exact text on your Discord card — nothing more — and you can self-host the lightweight relay server with a single command:

node server/crew-server.js

How to Install

  1. Download the installer for your OS from the latest GitHub Release:
    • Windows: Run the -setup.exe installer (per-user install, no admin required).
    • macOS (Apple Silicon & Intel): Open the .dmg and drag copresence to Applications. Since it isn't Apple-notarized yet, right-click → Open (or allow it in System Settings → Privacy & Security on macOS 15+).
    • Linux (x86_64): Run the .AppImage (chmod +x) or install the .deb via sudo apt install ./copresence_*_amd64.deb. Works with regular, Flatpak, and Snap Discord installs.
  2. Open copresence → Agents and enable the coding agents you use.
  3. Restart your agents and make sure the Discord desktop app is open (browser Discord doesn't support local RPC).

Troubleshooting tip: If your card doesn't appear after sending a prompt, check Discord → User Settings → Activity Privacy → "Share your detected activities with others" and make sure your Discord status isn't set to Invisible.

Build From Source

To hack on the Rust engine or UI yourself, install stable Rust, Node.js 20+ (for the Tauri CLI), and your platform's Tauri v2 prerequisites:

git clone https://github.com/Dawn-Of-Justice/copresence.git
cd copresence/app
npm install
npx tauri dev     # run in development mode
npx tauri build   # build the native installer

You can also run the Rust tests with cargo test inside app/src-tauri, run the Node test suite with npm test at the repo root, or use the standalone Node.js CLI version.

Links & Resources

Disclaimer: copresence is an independent MIT-licensed project and is not affiliated with or endorsed by Anthropic, OpenAI, Anysphere, Google, OpenCode, or Discord.

Comments

Comments are disabled because you have not consented to their use. You can change your cookie preferences via our 'cookie banner'.