Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Linaqrufv1.1.0MITIn 1 marketplace
Display Claude Code activity as Discord Rich Presence. Shows project name, current activity (tool use, thinking, compacting, waiting), model, context usage, cost, git branch, lines changed, delegated subagent, and a repository link button. Activity is read from the session transcript, so no hook runs per tool call; one daemon serves all sessions.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Display Claude Code activity as Discord Rich Presence.
Editing presence.py on kana-code-plugins (master)
Opus 5.5 • 129k ctx • $6.44 • +309 -104
[View on GitHub]
A background daemon follows your Claude Code sessions and updates Discord. An optional statusline renders the same data in your terminal.
The plugin starts no process per tool call. The daemon reads the current
tool from the session transcript (reading only the new bytes, once a
second), so a burst of parallel subagents costs the plugin nothing. Hooks run
only at session start, session end and compaction. Each hook process has a
hard deadline, and the plugin never runs git: it reads .git/HEAD and
.git/config. Discord accepts one presence update per 15 s, so the daemon
sends at most that.
python on your PATH. The hooks call
python; on Debian/Ubuntu the python-is-python3 package provides it.pip install pypresence (required), pip install pyyaml (optional, for
config.yaml)/plugin marketplace add Linaqruf/kana-code-plugins
/plugin install kana-code-rpc@kana-code-plugins
Hooks activate automatically. There are no commands to run.
The statusline feeds model, context and cost data to the Discord display
and renders a terminal status bar. In ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "python /path/to/kana-code-rpc/scripts/statusline.py"
}
}
Claude Code runs this command on every update, so start the interpreter
directly. On Windows, python is often a launcher (the Microsoft Store alias
or the Python install manager) that starts the real interpreter in a second
process. Use the interpreter's full path, with forward slashes, for example
C:/Users/you/AppData/Local/Python/pythoncore-3.14-64/python.exe.
python -c "import sys; print(sys.executable)" prints it.
Terminal output: Opus 5.5 › ⚡ Editing › █░░░░░░░░░ 14% › 145k ctx › $7.18 › 59m › main
The ctx figure is your current context (what is in the window now),
not cumulative session usage. That is what Claude Code's
context_window.total_input_tokens reports. A 5h NN% warning appears when
your 5-hour rate-limit window passes 80%.
Without the statusline, Discord still shows the activity, project, branch and model (read from the transcript). Only context usage, cost and line counts need it.
.claude-plugin/config.yaml in the plugin directory (requires PyYAML):
discord_app_id: null # Custom Discord application ID (optional)
display:
show_tokens: true # Context token count (129k ctx)
show_cost: true # Cost ($0.18)
show_model: true # Model name
show_branch: true # Git branch
show_file: true # Filename when editing
show_lines: true # Lines added/removed
show_context_warning: true # Context % warning above 80%
show_button: true # Repository link button
custom_button_label: "" # Override button label (max 31 chars)
custom_button_url: "" # Override button URL (http(s), max 512 chars)
idle_timeout: 300 # Seconds before "Idling"
Config hot-reloads about every 30 seconds while the daemon runs.
| Hook | Trigger | Action |
|---|---|---|
SessionStart | Claude Code opens, /clear, /resume, compaction | Register the session and its transcript; start the daemon if needed |
PreCompact | Context compaction | Show "Compacting context" |
SessionEnd | Claude Code exits | Unregister the session; the daemon exits after the last one |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub linaqruf/kana-code-plugins --plugin kana-code-rpcPlugins from other owners that cover similar ground