Example Custom Agent
Description
Example custom agent for Plain: answers Ask Sidekick discussions by running an agent CLI (Claude Code, Codex, pi or opencode)
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Example custom agent
In Plain, Ask Sidekick lets a teammate pick which agent answers a thread.
Pick a custom agent and power the Ask Sidekick surface with your own agent.
How it works
Plain fires a webhook at your server and waits for you to write the reply back. It answers by running the `claude` CLI on whatever machine it is running on, then posts the answer into the discussion.
┌─────────────────────┐ ┌─────────────────────┐
│ Plain │ discussion.message_created │ this process │
│ Ask Sidekick │ ───────────────────────────> │ bun run serve │
│ │ │ │
│ │ <─────────────────────────── │ │
└─────────────────────┘ sendDiscussionMessage └──────────┬──────────┘
│
v
┌─────────────────────┐
│ Claude Code │
│ claude -p │
└─────────────────────┘
Claude runs with `--permission-mode auto` and no sandbox. The prompt is whatever someone typed into a discussion, which means anyone in your workspace effectively has a shell on this machine.
It's recommended to run this in a sandbox when deployed in a production environment.
Written in TypeScript, run with [Bun](https://bun.sh).
Setting it up
Create a machine user under [Settings → Machine users](https://app.plain.com/~/settings/machine-users/) and give it an API key.
Make sure you also toggle the "Custom agent" toggle on the machine user so it's available as a target when running a Sidekick conversation.
Minimum permissions required:
- `threadDiscussionMess
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11