No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 19:52:11 +01:00
.claude-state init 2026-11-18 19:52:11 +01:00
nix init 2026-11-18 19:52:11 +01:00
src/move_bot init 2026-11-18 19:52:11 +01:00
workspace init 2026-11-18 19:52:11 +01:00
.env.example init 2026-11-18 19:52:11 +01:00
.gitignore init 2026-11-18 19:52:11 +01:00
flake.lock init 2026-11-18 19:52:11 +01:00
flake.nix init 2026-11-18 19:52:11 +01:00
pyproject.toml init 2026-11-18 19:52:11 +01:00
README.md init 2026-11-18 19:52:11 +01:00
uv.lock init 2026-11-18 19:52:11 +01:00

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

  1. Discord application — in the Developer Portal: create an app, add a Bot, enable the Message Content Intent, copy the token. Invite it with the bot scope and permissions: Read/Send Messages, Read Message History, Attach Files, Create Polls, Manage Webhooks (for the persona voices).

  2. Configure

    cp .env.example .env        # paste DISCORD_TOKEN
    cp workspace/.mcp.json.example workspace/.mcp.json   # optional, edit to taste
    

    Edit workspace/CLAUDE.md — fill in the family section (who's moving, constraints, destinations). That's the bot's standing context.

  3. Claude auth (first match wins):

    • A named ant CLI profile: ant auth login --profile move-bot, then set ANTHROPIC_PROFILE=move-bot in .env. Preferred, especially on a server.
    • ANTHROPIC_API_KEY in .env (metered API billing).
    • Neither: on first run the bot copies the host's interactive claude /login credentials into its state dir (local dev convenience).
  4. 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.
  • !reset starts a fresh conversation for the channel; !session shows 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 with MOVE_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.json permissions, or extend SAFE_TOOLS in src/move_bot/agent.py (MCP tool names look like mcp__<server>__<tool>).
  • More subagents: add AgentDefinitions in agent.py, or drop markdown agent files in workspace/.claude/agents/ (loaded via setting_sources=["project"]).
  • Skills: put skills in workspace/.claude/skills/.