curia
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Fail
- process.env — Environment variable access in daemon/bin/build-agent-image.mjs
- network request — Outbound network request in daemon/bin/build-attach-index.mjs
- fs.rmSync — Destructive file system operation in daemon/src/agenttoken.mjs
- exec() — Shell command execution in daemon/src/attach.mjs
- process.env — Environment variable access in daemon/src/attach.mjs
- exec() — Shell command execution in daemon/src/bridge.mjs
- network request — Outbound network request in daemon/src/bridge.mjs
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Self-hosted AI harness that you can drive from your phone
Curia
Many repos, one queue, driven from a phone.
Curia watches your GitHub issues, sends a coding agent at the ones that are ready, and brings
everything that needs you — a question, a preview, an approval — to whatever device you are holding.
Your box, your subscription, your repos.
The page is https://curia.sh. It makes the same promise to a reader who has not cloned anything
yet. This file sets curia up on your machine, and shows you around the code.
What it does
- Reads what is takeable across every watched repo, in dependency order.
- Sends an agent with one command: claims the issue, cuts a worktree, picks the model by label.
- Runs each agent in its own tmux session and git worktree. Six at once fits in 8 GB.
- Asks you questions in Discord and waits. Buttons, text, and images both ways.
- Publishes an agent's dev server as an HTTPS link on your tailnet, so you see the result.
- Puts a live agent's terminal in your browser, phone or desktop, at the same time.
- Ends every ticket the same way: commit, pull request, preview, your approval, merge.
- Survives restarts. GitHub holds the truth and the daemon rebuilds the rest.
- Runs Claude Code or Codex CLI under one contract.
Where it stands
- First commit 2026-07-21. One person runs it. You would be the second.
- Setup is manual and takes an evening. It gets simpler. There is no package yet.
- Tailscale and Discord are required. There is no web UI.
- Attach and preview links are open to anything on your tailnet.
- Agents use your own harness login, so an agent can do what you can do with it.
Setup
1. The box
Linux, always on. Node 22 or newer, tmux, ttyd, Tailscale. About 0.5 GB per running agent.
2. Tailscale
Install it on the box and on your phone. Turn on HTTPS certificates for your tailnet in the admin
console. Then let the daemon publish links without root:
tailscale set --operator=$USER
Every attach and preview link is a Tailscale link. Skip this and none of them work.
3. GitHub
gh auth login
gh auth setup-git
The account needs write access to every repo you watch.
4. Your harness (Claude Code, or Codex)
Log in as the user that runs the daemon:
claude
Agents use this login. Log out and every agent fails.
Codex CLI is optional. Install it only if you want the gpt entry in config/routing.yaml.
5. The Discord bot
- Create an application at https://discord.com/developers/applications.
- Open Bot, add a bot, copy the token. Discord shows it once.
- Turn on MESSAGE CONTENT INTENT. Without it your replies arrive empty and no question is ever
answered. - Open OAuth2 → URL Generator. Scopes:
bot,applications.commands. Permissions: Manage
Channels, Manage Webhooks, Send Messages, Create Public Threads, Send Messages in Threads, Read
Message History, Embed Links, Attach Files. - Open the generated URL and add the bot to your server.
- Turn on Developer Mode in Discord, right-click your name, Copy User ID.
The bot creates the #curia channel itself on its first boot.
6. The code
git clone https://github.com/alp82/curia.git
cd curia/daemon
npm install
7. daemon/.env
DISCORD_BOT_TOKEN=<the bot token>
DISCORD_ALLOWED_USERS=<your Discord user id>
TTYD_BIN=/home/<you>/.local/bin/ttyd
CURIA_AGENT_GH_TOKEN_<OWNER>=<a fine-grained GitHub PAT>
DISCORD_ALLOWED_USERSis the whole access check. Everyone on it can send agents at your repos.- Set
TTYD_BIN. It defaults to/home/alp/.local/bin/ttyd. Leave it and attach is dead. CURIA_AGENT_GH_TOKEN_<OWNER>is what an agent uses to reach GitHub. Without it the agent inherits your ownghlogin, which is your whole account. Mint one fine-grained PAT per resource owner you watch, with Contents, Issues and Pull requests read/write plus Commit statuses read. Put the owner in the key, uppercased:alp82/curiareadsCURIA_AGENT_GH_TOKEN_ALP82.
Optional: CURIA_GUILD_ID, CURIA_CHANNEL (default curia), PORT (4271), NUDGE_MS (30 min),OVERSEER_MODEL, OVERSEER_FALLBACK_MODEL.
Run one daemon per bot token.
8. config/curia.yaml
Change two things:
watch:
- repo: you/your-repo
dispatch:
workspace_root: /home/<you>/curia-work
workspace_root is where curia keeps its own clones and worktrees. It ships as /home/alp/curia-work.
Do not point it at a checkout you work in.
auto_dispatch is false, so nothing starts without you. The ports work as they ship; the daemon
checks them at boot and names any clash.
9. The skills
The nine skills in skills.install are not in this repo. They come from the publicmattpocock/skills collection, installed into ~/.claude/skills. The daemon refuses to boot if one
of them is missing, and names the path it looked for.
Pick one:
Install them.
Cut the list down to the ones you have.
Turn them off with an empty list — not a missing key:
skills: install: []
10. config/routing.yaml
Maps a ticket label to a model, and a model to a CLI. If you did not install Codex, delete the gpt
model, the codex harness, and every gpt under defaults and fallbacks.
11. The repos you watch
- Flat: label an issue
ready-for-agent. Curia takes open, unassigned, unblocked issues. - Map: the repo needs a
wayfinder:mapissue with child issues, and adocs/agents/issue-tracker.mdfile. Dispatch refuses without that file.
Blocking uses GitHub's own issue dependencies.
12. Run it
cd daemon
npm start
A good boot logs [bridge] ready: guild=<your guild> channel=#curia.
Test it: send a normal message in #curia. A thread opens and answers you.
Then use the commands, as Discord slash commands or as plain English in a thread:
tickets— what is takeablestart <n>— send an agent. On a map number, this sends one to the map's next takeable ticket.map <n> -- <what should change>— send an agent that updates the map itself. Leave the sentence off and it asks you what should change.map -- <what to chart>— send an agent with no map. It settles the destination with you, then creates the map issue itself. Name the repo (map <repo> -- …) when more than one is watched.status— who is runningattach <n>— that agent's terminal in your browserresume <n>/cancel <n>
An agent that no ticket answers for gets a handle instead of a number — chat-1, chat-2 — and the
three verbs above take it: attach chat-1, cancel chat-1, resume chat-1. status lists it.
13. Keep it running
deploy/curia.service is a systemd unit. Replace the user and the paths. Keep the PATH= line:
systemd's default path does not find gh, tmux, tailscale or ttyd under ~/.local/bin.
Restarting is safe. daemon/data/events.jsonl is the record; everything else is rebuilt from GitHub,
tmux and Tailscale on boot. Open questions keep their Discord buttons across a restart.
If it does not start
| Message | Fix |
|---|---|
bad config config/curia.yaml: ... |
The key it names. Config is checked before anything starts. |
skills.install names "x", but ... does not exist |
Step 9. |
preview range ... contains attach.serve_port |
Move one of the ports. |
attach index ... does not exist, or a stamp mismatch |
npm run build-attach-index --prefix daemon |
bot is in no guild |
The invite did not finish, or CURIA_GUILD_ID is wrong. |
| The bridge refuses to start | DISCORD_ALLOWED_USERS is empty. |
| Replies in a thread do nothing | The message content intent is off. |
Speaker identities are off in #curia |
The bot role lacks Manage Webhooks. Grant it on the role, or as a #curia channel override. Agent prose keeps posting under the bot voice until you do. |
spawned ttyd ... but no listener came up |
TTYD_BIN points at nothing. |
| Attach and preview links never appear | Tailscale HTTPS certificates are off, or --operator was never set. |
Logs are the daemon's output. Under systemd: journalctl -u curia -f.
Where things are
CONTEXT.md— the words curia uses.docs/adr/— the decisions behind the design.daemon/src/— the daemon itself: the dispatch loop, the Discord bridge, the MCP tools an agent
calls.config/— the two files you edit: what curia watches, and which model each label gets.docs/landing-page/— the brief, the build notes and the hosting record for https://curia.sh.daemon/README.mdanddocs/deploy.md— the operator's own box, not yours.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found