Skip to content

Releases

v0.3.0: polls, reaction events, idle browser close

Choose a tag to compare

@jerry729 jerry729 released this 22 Nov 08:38

Three features the bot wrote for itself: group members asked for them in chat, the self-update agent made the
changes, and an admin applied them. They are upstreamed here with only small adjustments.

  • Native Discord polls. reply takes an optional poll (question, 2–10 answers with optional emoji, duration
    1–768 hours, default 24, single or multiple choice), so the bot can open a poll when the group needs to decide.
    fetch_messages on a poll message shows the live tally and who voted for what; the first version read the
    cached counts, which stay stale for polls the bot sent itself, and the group's bug report led to the fix.
  • Emoji reactions reach the model. Reactions arrive as kind="reaction" events, with reactions on the same
    message within a few seconds merged into one event and an add followed by a remove cancelling out. The same
    access rules as messages apply; in channels with requireMention: true only reactions on the bot's own messages
    count. The model stays quiet on them by default and uses them when they clearly answer something it asked (e.g. ✅
    to confirm). fetch_messages lines now show reactions, and for a single message who reacted.
  • The headless browser closes when idle. Playwright MCP now runs behind a small stdio proxy
    (channel/browser-proxy.ts) that closes the browser after 10 minutes without browser tool calls; it reopens on
    the next call, and calls still in progress are never interrupted. Set BROWSER_IDLE_MIN to change the timeout
    (0 turns it off).

Upgrade: pull, then restart the bot (!bot restart): the new gateway intents and config/mcp.json are read at
startup. The reaction and poll intents are not privileged, so nothing changes in the Developer Portal. If you edited
config/mcp.json, wrap your playwright command the same way (bun channel/browser-proxy.ts --idle-min 10 -- npx ...). Polls need the Send Polls permission, which @everyone has by default; if a server removed it, give it to the
bot's role.

v0.2.1: security fix for file search

Choose a tag to compare

@jerry729 jerry729 released this 21 Nov 15:59

A security fix. Everyone running evocord should upgrade.

What was wrong

The chat session's settings (config/runtime-settings.json) allowed the Grep and Glob tools with no path restriction. Someone in your server who talked the bot into it could have it search, and so read, files anywhere your user account can read: other projects in your home directory, documents, and so on.

Already protected before this fix: the bot token, config/bot.json, ~/.ssh, ~/.claude* and ~/.config. Those deny rules were not affected.

What changed

  • File search (Grep, Glob) now works only inside the bot directory, with the existing deny rules still applied. Anything outside is refused.
  • A new test fails if an unrestricted Read, Grep or Glob permission comes back.

Upgrade

  1. git pull
  2. Restart the session with !bot restart. The settings are read when the session starts.

If you edited config/runtime-settings.json yourself, delete the "Glob" and "Grep" entries from allow by hand.

Full changelog: CHANGELOG.md

v0.2.0: a fresh start every day, without forgetting

Choose a tag to compare

@jerry729 jerry729 released this 21 Nov 12:11

🌅 A fresh start every day

A bot that never stops talking drags its whole history into every reply: answers get distracted by last week's jokes, and each message costs more than the one before. evocord now gives its bot a fresh start once a day, without losing what matters:

  1. Keep what matters. When the server goes quiet (by default after 4 am, after 30 minutes without messages; an active conversation postpones it), the bot saves what will still matter in a week, such as nicknames, preferences, server conventions, promises it made and bills nobody has split yet. It skips small talk, games, weather, prices and one-off questions, and tidies out memory entries that are done.
  2. Write a handoff note for its successor: what happened, where each conversation stopped, who is waiting for an answer.
  3. Start fresh. The new session opens with that note and reads memory before anything else.

Admins can trigger it any time with !bot rotate. Configure it under rotate in config/bot.json, or turn it off with rotate.enabled: false.

🗂️ Searchable chat history

Details that never made it into memory aren't gone. When someone brings up "that pizza place from yesterday", pastes a message link or asks what someone said last week, the bot searches the channel's Discord history by keyword, person, date or attachment type. It then reads the surrounding conversation and answers from the original messages. Lookups stay inside the chats the bot is configured to serve.

🧠 Tighter memory

Memory now keeps only what will still matter in a week. It notes where each detail came from, so the original message can be pulled up again instead of copied into notes.

Upgrading

git pull && bun install
./scripts/stop.sh && ./scripts/start.sh

The daily handoff is on by default. If you edited CLAUDE.md, merge the new "Chat history", "Memory" and "Daily handoff" sections into your copy.

Full list: CHANGELOG

v0.1.0 — first public release

Choose a tag to compare

@jerry729 jerry729 released this 21 Nov 10:48

evocord is a self-hosted Discord bot built on Claude Code channels. Your members ask for a feature, the bot writes it, an admin clicks Apply, and it restarts with the feature. If the new version breaks, it rolls back by itself.

Get started: README → Setup · Real examples: Evolution gallery

First public release.

  • Custom Claude Code channel server for Discord:
    • per-channel access control;
    • mention-only or "read everything and decide when to speak" modes;
    • catch-up of messages missed during restarts.
  • Tools for the chat model: reply, react, edit_message, fetch_messages, download_attachment.
  • Voice messages transcribed locally with faster-whisper (GPU when available); transcribe for other audio and
    video.
  • run_code: Python / bash / Node in a locked-down Docker sandbox with a persistent per-channel work directory;
    generated files are posted back.
  • Self-evolution (self_update, !bot evolve):
    • a coding agent works in a git worktree;
    • checks run in the Docker sandbox;
    • proposals come with a diff and Apply/Discard buttons;
    • admin-only apply, automatic rollback if the new version doesn't start;
    • optional proposals from non-admins (no shell for their agent runs, daily limit).
  • Supervisor: runs Claude Code in a pty, answers startup prompts, resumes the conversation, handles restart
    requests and rollbacks.
  • Admin commands: !bot status / restart / reset / evolve / jobs / diff / apply / discard / log / rollback.
  • Optional dedicated Claude account for the bot (runtime.claudeConfigDir).

Built on Claude Code channels (research preview). Tested with Claude Code 2.1.330.