| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .claude-state | ||
| nix | ||
| src/move_bot | ||
| workspace | ||
| .env.example | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
move-bot (Convoy)
Convoy — a Discord-fronted Claude agent for planning the family relocation — roughly Claude Code / Cowork with Discord as the interface. Built on the Claude Agent SDK, so it inherits the full Claude Code harness: built-in tools (Read/Write/Edit/Bash/Glob/Grep/ WebSearch/WebFetch), MCP servers, subagents, sessions, and CLAUDE.md memory.
How it maps to Claude Code
| Claude Code concept | move-bot equivalent |
|---|---|
| Terminal session | Discord channel/thread — each channel is one persistent session, resumed across restarts (workspace/.sessions.json) |
~/.claude state home |
workspace/.claude-state/ via CLAUDE_CONFIG_DIR — transcripts, settings, and credentials live inside the workspace, so migrating the bot = copying one directory. The CLI keys transcripts by the workspace's absolute path; on boot the bot detects path changes and re-keys automatically, so the directory is freely relocatable |
| Working directory + CLAUDE.md | workspace/ — shared memory across all channels (CLAUDE.md, memory/, research/, plan.md) |
| MCP servers | workspace/.mcp.json (see .mcp.json.example) |
| Subagents (Task tool) | researcher (web research) and analyst (budget math) defined in src/move_bot/agent.py; Claude delegates via the Task tool |
| Permission prompts | Discord ✅/❌ reaction approval for Bash/Write/Edit/MCP tools; read-only tools are pre-approved |
/clear |
!reset in a channel (workspace memory is kept) |
Setup
-
Discord application — in the Developer Portal: create an app, add a Bot, enable the Message Content Intent, copy the token. Invite it with the
botscope and permissions: Read/Send Messages, Read Message History, Attach Files, Create Polls, Manage Webhooks (for the persona voices). -
Configure
cp .env.example .env # paste DISCORD_TOKEN cp workspace/.mcp.json.example workspace/.mcp.json # optional, edit to tasteEdit
workspace/CLAUDE.md— fill in the family section (who's moving, constraints, destinations). That's the bot's standing context. -
Claude auth (first match wins):
- A named ant CLI
profile:
ant auth login --profile move-bot, then setANTHROPIC_PROFILE=move-botin.env. Preferred, especially on a server. ANTHROPIC_API_KEYin.env(metered API billing).- Neither: on first run the bot copies the host's interactive
claude /logincredentials into its state dir (local dev convenience).
- A named ant CLI
profile:
-
Run
uv sync uv run move-bot
Usage
- In channels listed in
MOVE_BOT_CHANNELS, every message goes to Claude. Elsewhere, @mention the bot or DM it. - Attach files (PDFs of leases, spreadsheets, school letters) — they're saved
to
workspace/inbox/and Claude reads them. !resetstarts a fresh conversation for the channel;!sessionshows the current session ID.- When Claude wants to run something with side effects (shell commands,
external MCP calls, writes outside the workspace), it posts an approval
card — click Allow, Always allow (persists a rule), or Deny.
Restrict who may approve with
MOVE_BOT_APPROVERS; disable the gate withMOVE_BOT_AUTO_APPROVE=true. - Convoy has Discord-native tools: it can create polls for family decisions, post under persona voices ("Convoy · Researcher", "Convoy System") via webhook, and upload files (charts, documents) from the workspace.
Extending
- Pre-approve specific tools (e.g. trusted MCP tools) without disabling
the gate: add them to
workspace/.claude/settings.jsonpermissions, or extendSAFE_TOOLSinsrc/move_bot/agent.py(MCP tool names look likemcp__<server>__<tool>). - More subagents: add
AgentDefinitions inagent.py, or drop markdown agent files inworkspace/.claude/agents/(loaded viasetting_sources=["project"]). - Skills: put skills in
workspace/.claude/skills/.