Start from anywhere
Five doors lead to the same factory. Whichever one a request comes through, the job is the same: a builder agent opens the pull request from a sandbox of its own, a separate reviewer reviews it, the builder fixes what the review found, and a person merges, or your merge policy does.
| Door | How you ask | Where it reports |
|---|---|---|
| Discord | Ping the bot in a channel or thread | The thread, with a status card |
| GitHub | The factory label, or an @radian-factory comment | One status comment on the issue or pull request, kept up to date |
| Web | The dashboard: describe a change, pick an issue, or ask for a review | The dashboard and the trace |
| API | POST /api/v1/jobs with a workspace key | Signed callbacks on every phase change |
| MCP | Your coding agent calls the factory's tools | The tools' answers, and the trace |
Workspaces
A workspace is one connected repository and the people who can start work on it. There are two ways to make one, and you can use the product with no chat at all:
- On the web. Sign in with GitHub, pick a repository, and you are done. Maintainers are the people with write access to that repository; the factory asks GitHub at the moment they act.
- From Discord. Add the bot to your server and run
/connect. Maintainers are the server's owner, its admins, and one role you choose. See Getting started.
Everything below works the same for either kind. Only maintainers start work and merge.
Discord
Ping the bot with an issue number or a description, in a channel or a thread. It files an issue when there is none, starts the job, and keeps a status card in the thread.
In a Discord thread
@Radian Factory build #41
@Radian Factory make save names accept emojiWhen the pull request is ready, a maintainer presses Merge on the card, or says “merge it”.
GitHub
Put the factory label on an issue to hand it over. Or comment on an issue or pull request; comments count only from people with write access to the repository.
| Comment | On | What it does |
|---|---|---|
@radian-factory build | An issue | Build the issue: a builder opens a pull request, a separate reviewer reviews it. |
@radian-factory review | A pull request | Have a separate reviewer review the pull request. |
@radian-factory fix | A factory pull request | Have the builder fix what the review or CI found. |
@radian-factory stop | An issue or pull request | Stop the job working on it. |
@radian-factory merge | A factory pull request | Merge it at its current commit, through every merge check, decided by you. |
Pull requests can be reviewed automatically when they open, become ready, or get new commits: none, only those whose author has write access, or all of them, as the workspace is set. A burst of pushes costs one review, once the pull request has been quiet for a moment.
A job started on GitHub keeps one status comment on its issue or pull request, edited as it moves, instead of posting a new comment for every step.
Web
Sign in with GitHub, or with the signed link /dashboard sends you in Discord. In the dashboard you can describe a change in your own words, pick an open issue, or ask for a review of a pull request. The job then shows in the dashboard with its live trace, and posts nothing anywhere else.
API
Create a workspace key in the dashboard. Keys start with rf_; treat one like a password. Then start a job with one request:
Shell
export FACTORY=https://discordbot.gantchevkaloyan.workers.dev
export RF_KEY=rf_... # a workspace key from the dashboard
curl -X POST "$FACTORY/api/v1/jobs" \
-H "Authorization: Bearer $RF_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "build",
"issue": 41,
"externalId": "bug-2291",
"callbackUrl": "https://ci.acme.dev/factory"
}'externalIdis your own id for the request. Sending the same one again returns the job it already started instead of starting a second, so a retry is always safe.callbackUrl(anhttpsaddress) gets a signedPOSTon every phase change: building, reviewing, fixing, ready, done. Each carries aRadian-Signatureheader,t=<unix seconds>,v1=<hex>, where the hex is the HMAC-SHA256 of<t>.<body>under the signing secret shown once when the key was made. Check it, and thattis recent, before you trust one.- The key says which workspace, and so which repository. Use
issuefor an existing issue, orrequestwith a description of the change in place of it;{"kind": "review", "pull": 42}asks for a review of a pull request.
MCP
The factory is also an MCP server at /mcp, with the same workspace keys, so a coding agent such as Claude Code or Cursor can hand work to it and check on it.
Claude Code
claude mcp add --transport http radian-factory https://discordbot.gantchevkaloyan.workers.dev/mcp \
--header "Authorization: Bearer rf_..."mcp.json (Cursor and other clients)
{
"mcpServers": {
"radian-factory": {
"url": "https://discordbot.gantchevkaloyan.workers.dev/mcp",
"headers": { "Authorization": "Bearer rf_..." }
}
}
}| Tool | What it does |
|---|---|
factory_build | Start a build: an issue number or a description of the change. |
factory_review | Have a separate reviewer review a pull request. |
factory_job | One job: its phase, its pull request, its review verdict, its trace. |
factory_jobs | The workspace's jobs: what is building, reviewing, queued, or waiting for a person. |
factory_stop | Stop a job. |
The agent gets an answer at once with the job's id; the work runs in the factory's own sandboxes, not on your machine, and a person still merges unless your merge policy says otherwise.