Skip to content

About

Fleet-customized fork of anthropics/claude-plugins-official's discord plugin (0.0.4, Apache-2.0). Adds lane-emoji react conventions (stub, default-off) + telemetry-relay design spec. Preserves upstream access-control surface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

discord-fleet

Fleet-customized fork of anthropics/claude-plugins-official's external_plugins/discord (forked from version 0.0.4, Apache-2.0).

This is a Claude Code plugin: a Discord MCP bridge with built-in access control. Forked for the Fleet of agents — Vox, Kit, Iris, Scout, Oracle, Pearl — to add lane-emoji conventions and a telemetry-relay design path.

Upstream's README is preserved as UPSTREAM_README.md. For the original setup walkthrough, access-control reference, or tool documentation, read that file. This README only documents what this fork changes.

What this fork adds

1. Lane-emoji react conventions (stub, default-off)

The fleet's overnight build pattern uses leading emojis to disambiguate parallel lanes in a single Discord channel:

Emoji Lane
🦊 Kit (sibling agent)
🪞 Iris (sibling agent, the Auditor)
👥 Team build / orchestration
🎲 Oracle (prediction-market agent)
🛒 Scout (paper-trading agent)
🧩 Plugin / infrastructure work
📒 Linear / ticket work
🚢 Push / ship / deploy
📜 Honcho / memory ingestion

Configure lane-emojis in ~/.claude/channels/discord/access.json:

{
  // ...existing fields...
  "ackReaction": "🦊",
  "laneEmojis": {
    "🦊": "kit",
    "🪞": "iris",
    "👥": "team",
    "🧩": "plugin-fork",
    "📒": "linear",
    "🚢": "push"
  }
}

Behavior:

  • When a configured lane-emoji is the first character of an inbound message, the bot reacts with that emoji instead of the global ackReaction. This gives a glanceable view of which lane each message belongs to in chat history.
  • When laneEmojis is absent or empty, behavior is identical to upstream — the global ackReaction (e.g. 🦊) fires on every message. No code path changes for non-fork users.
  • The longest matching prefix wins, so 🦊 and a hypothetical 🦊🦊🦊 can coexist without ambiguity.

Implementation: ~25 LOC patch in server.ts, gated on laneEmojis being non-empty so users who never opt in pay zero runtime cost.

2. Telemetry relay (design spec only — see TELEMETRY.md)

Claude Code's --output-format json-stream emits per-tool-call telemetry: duration_ms, tool name, status. The lane-progress checklist message (the 🦊 Running: block) could become a live timing tape if the plugin consumed that stream and edit_message'd the lane post.

Status: design only. See TELEMETRY.md for the proposed protocol, integration point, and rate-limit considerations. Not implemented in 0.1.0.

3. Inbound context enrichment (additive, mostly default-on)

The upstream listener hands Claude Code only what arrives in a single messageCreate event. The orchestrator then re-derives wall-clock, recent history, and reply-threading every turn. This fork has the listener do that work once per inbound, structurally. Design doc: learnings/proposals/2026-05-14-discord-fleet-listener-enrichment.md in the vox-agent repo.

New <channel> tag attributes (all additive — no existing attribute renamed or removed; a consumer that ignores unknown attributes is unaffected):

Attribute Always emitted? Purpose
now yes Server wall-clock (ISO 8601). Obey wall-clock-honesty without a date shellout.
channel_name yes Channel name (or DM). Grounds the orchestrator on where — upstream only sent an opaque ID.
is_dm yes "true"/"false".
delta_since_last_inbound_ms only if a prior inbound exists this channel Ms since the previous inbound here. Large gap = cold revival, small = active-thread continuation — no orchestrator math.
is_reply_to only if the message is a reply The message_id it threads under.
is_reply_to_bot only if the message is a reply "true" when the user is replying to our prior message vs a new topic.
recent_history only if inboundHistoryLimit > 0 Pre-fetched transcript (same format fetch_messages produces). Satisfies fetch-before-post without an extra round-trip.

recent_history is the one config-gated field. Default is off (inboundHistoryLimit absent ⇒ 0) for exact upstream parity — zero extra Discord API calls, zero payload growth for non-fleet users. To enable for a fleet channel, add one key to ~/.claude/channels/discord/access.json:

{
  // ...existing fields...
  "inboundHistoryLimit": 10
}

Re-read on every inbound (no restart needed). Discord caps the fetch at 100. A history-fetch failure is non-fatal — the inbound notification is still delivered without recent_history.

The everything-else fields (now, channel_name, is_dm, deltas, reply-threading) are trivially derived from data the listener already has and ship on by default — they cost ~5 LOC and a Map lookup, no extra API calls.

Progress visibility (Monitor-edit): the edit_message tool already supports editing a previously-sent bot message in place. The listener is structurally ready for the Monitor-edit pattern (one ack reply, then progressive edit_message of the same message_id); the remaining gap is orchestrator-behavioral (it must run the Monitor + edit loop), not listener-structural. The full json-stream-driven auto-edit relay remains deferred to TELEMETRY.md.

4. Fork-identity metadata

  • package.json: name → @chunky-metro/claude-channel-discord, version → 0.2.0
  • .claude-plugin/plugin.json: name → discord-fleet, version → 0.2.0
  • New NOTICE file documents the fork relationship per Apache-2.0 §4.

What this fork does NOT change

  • Pairing flow, allowlist semantics, dmPolicy, group channels, requireMention, mentionPatterns — all upstream behavior preserved. The /discord:access and /discord:configure skills are untouched.
  • Tool surface: reply, react, edit_message, fetch_messages, download_attachment — all upstream.
  • ~/.claude/channels/discord/.env location, STATE_DIR resolution, DISCORD_BOT_TOKEN source — unchanged.
  • Permission-reply intercept (y a4f91c / n a4f91c) — unchanged.
  • Wire format of notifications/claude/channel — additively extended only (see §3). Every existing meta field is preserved with the same name and meaning; new fields are additions. No field renamed or removed. (Telemetry relay, when implemented, would emit a separate notification kind.)

Installation

This fork is not published to a marketplace yet. To use it locally:

git clone https://github.com/chunky-metro/discord-fleet.git
cd discord-fleet
bun install
# Replace the official-marketplace install in your claude plugins setup
# (manual — automate at your own discretion)

Configuration matches upstream — see UPSTREAM_README.md for the full setup walkthrough.

Tracking upstream

Upstream version forked: anthropics/claude-plugins-official/external_plugins/discord@0.0.4.

Future upstream changes can be replayed onto this fork via standard git rebase / cherry-pick. The fleet additions are deliberately small (one type extension + one access.json key + one ~25 LOC patch in server.ts) so merge conflicts stay minimal.

License

Apache-2.0 — see LICENSE (preserved verbatim from upstream) and NOTICE (fork attribution per Apache-2.0 §4). All modifications in this fork are also released under Apache-2.0.

Provenance

  • Forked: 2026-05-05
  • Forked by: Vox, team-lead agent of the Fleet
  • Upstream commit reference: cache snapshot from ~/.claude/plugins/cache/claude-plugins-official/discord/0.0.4/ dated 2026-04-09 (the version installed on the originating machine at fork time)

About

Fleet-customized fork of anthropics/claude-plugins-official's discord plugin (0.0.4, Apache-2.0). Adds lane-emoji react conventions (stub, default-off) + telemetry-relay design spec. Preserves upstream access-control surface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages