Provision Discord Project→Agent routing and OpenClaw/Hermes project-role agent workspaces with explicit mappings.
➡️ Start here: GETTING-STARTED.md
- Creates Discord categories/channels for a project
- Wires OpenClaw bindings using explicit channel→agent maps
- Writes Hermes Discord channel prompt/skill routing fragments when
--runtime hermesis selected - Creates machine-global state for repeatable operations
- Supports safe planning with
--planand--dry-run
initseeds role templates under:~/.clickityclank/templates/roles/<role>/{AGENTS.md,SOUL.md}
git clone https://github.com/stackingturtles/clickityclank.git
cd clickityclank
bun install
bun run build
npm linkVerify:
clickityclank --helpclickityclank uses two Discord concepts:
- Control-plane provisioning token (used by CLI to create categories/channels)
- Runtime bot accounts (used by OpenClaw to actually reply in channels)
Set provisioning token env var:
export CLICKITYCLANK_DISCORD_TOKEN='YOUR_DISCORD_BOT_TOKEN'- Open:
https://discord.com/developers/applications - Create/open your provisioning bot application
- Go to Bot (left sidebar)
- Click Reset Token (if needed), then Copy
- Set it in your shell as
CLICKITYCLANK_DISCORD_TOKEN
- In Discord app: User Settings → Advanced → Developer Mode = ON
- Right-click your server icon
- Click Copy Server ID
Use that value as --guild-id.
If you want each channel to reply as its dedicated role bot (not shared legacy identities), you must create and configure runtime bot accounts in OpenClaw.
Minimum role bots for a standard project:
frontendbackendqa
- Go to
https://discord.com/developers/applications - Click New Application (example name:
Frontend) - Open app → Bot → Add Bot
- Copy token
- OAuth2 → URL Generator
- Scopes:
bot - Permissions:
- View Channels
- Read Message History
- Send Messages
- Manage Channels (recommended for setup automation)
- Scopes:
- Invite bot to your server
Repeat for backend and qa bots.
For automatic role pinning, the Discord runtime accountId should match the agent id.
Example:
- accountId
frontend↔ agentIdfrontend - accountId
backend↔ agentIdbackend - accountId
qa↔ agentIdqa
When this naming matches, clickityclank will add accountId to channel bindings automatically and prevent cross-bot replies.
clickityclank init --roles frontend,backend,qa,mobiledevclickityclank doctorclickityclank project create linearstories \
--guild-id 957153563694473286 \
--map frontend:frontend \
--map backend:backend \
--map qa:qa \
--map mobiledev:mobiledev \
--map infra:infra \
--project-scoped-agents \
--plan --dry-runWith --project-scoped-agents, maps become project-specific agent IDs (e.g. linearstories-frontend) while reusing the role bot account (frontend).
clickityclank project create linearstories \
--guild-id 957153563694473286 \
--map frontend:frontend \
--map backend:backend \
--map qa:qa \
--map mobiledev:mobiledev \
--map infra:infra \
--project-scoped-agentsclickityclank init [--roles <csv>] [--json]clickityclank doctor [--json] [--discord-token <token>]clickityclank project create <name> --guild-id <id> (--map <channel:agentId>... | --maps-file <file>) [--runtime openclaw|hermes] [--repo <path>] [--context-file <path>] [--create-missing-agents] [--project-scoped-agents] [--overwrite-templates] [--plan] [--dry-run] [--json]clickityclank project delete <name> --yes [--plan] [--dry-run] [--json]clickityclank setup [--guild-id <id>] [--runtime openclaw|hermes] [--roles <csv>] [--repo-root <path>] [--dry-run] [--json]clickityclank hermes apply <name> [--dry-run] [--verify] [--restart] [--json]clickityclank project sync <name> [--maps-file <file>] [--create-missing-agents] [--delete-removed-channels] [--allow-rename] [--plan] [--dry-run] [--json]clickityclank project verify <name> [--json]clickityclank project repair <name> [--plan] [--dry-run] [--json]clickityclank project manifest from-request --request-file <file> [--output <file>] [--json]clickityclank project list [--json]clickityclank project show <name> [--json]
OpenClaw remains the default runtime. Select Hermes explicitly:
clickityclank project create linearstories \
--runtime hermes \
--guild-id 957153563694473286 \
--repo /Users/developer/code/linearstories \
--map frontend:frontend \
--map backend:backend \
--map qa:qaHermes mode still provisions the Discord category/channels, but it does not mutate ~/.openclaw/openclaw.json or create per-channel OpenClaw workspaces. It writes:
- project context:
~/.clickityclank/projects/<project>/AGENTS.mdunless--context-fileis supplied; - routes source-of-truth:
~/.clickityclank/hermes/routes.json; - reviewable Hermes config fragment:
~/.clickityclank/hermes/hermes-config.fragment.yaml.
The fragment uses existing Hermes Discord primitives: discord.channel_prompts, discord.free_response_channels, discord.no_thread_channels, and discord.channel_skill_bindings. It also emits channel_routes metadata for Hermes gateways that support pre-model-call runtime routing. Merge it into ~/.hermes/config.yaml after review, then restart Hermes gateway.
For per-channel speed/reasoning trade-offs, see Hermes Channel Runtime Modes.
To apply a generated Hermes fragment to live Hermes config after review:
clickityclank hermes apply linearstories --dry-run --json
clickityclank hermes apply linearstories --verify --jsonThe apply command backs up ~/.hermes/config.yaml, merges only ClickityClank-managed Discord/Hermes route keys, runs hermes config check, and restores the backup if validation fails. Use --restart to receive safe restart instructions; the command does not blindly restart an active gateway process.
--map <channel>:<agentId>
- left side (
channel) = Discord channel name to create under the project category - right side (
agentId) = OpenClaw agent ID to route that channel to
Example:
--map frontend:frontend→ messages in#frontendroute tofrontend--map backend:backend→ messages in#backendroute tobackend--map qa:qa→ messages in#qaroute toqa
project: sneakerscan
maps:
- channel: frontend
agentId: frontend
- channel: backend
agentId: backend
- channel: qa
agentId: qa
- channel: mobiledev
agentId: mobiledev
- channel: infra
agentId: infraRun:
clickityclank project create sneakerscan \
--guild-id 957153563694473286 \
--maps-file ./sneakerscan.yaml- Machine-global state:
~/.openclaw/clickityclank/state.json - OpenClaw config:
~/.openclaw/openclaw.json - Workspace convention:
~/.openclaw/workspace-<project>-<channel> - Template root:
~/.clickityclank/templates/roles/ - Hermes project context:
~/.clickityclank/projects/<project>/AGENTS.md - Hermes routes/config fragments:
~/.clickityclank/hermes/
Always run with --plan --dry-run first for mutating commands.
Delete example:
clickityclank project delete linearstories --plan --dry-run
clickityclank project delete linearstories --yesMIT License. See LICENSE for details.