Radian Factory

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.

DoorHow you askWhere it reports
DiscordPing the bot in a channel or threadThe thread, with a status card
GitHubThe factory label, or an @radian-factory commentOne status comment on the issue or pull request, kept up to date
WebThe dashboard: describe a change, pick an issue, or ask for a reviewThe dashboard and the trace
APIPOST /api/v1/jobs with a workspace keySigned callbacks on every phase change
MCPYour coding agent calls the factory's toolsThe 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 emoji

When 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.

CommentOnWhat it does
@radian-factory buildAn issueBuild the issue: a builder opens a pull request, a separate reviewer reviews it.
@radian-factory reviewA pull requestHave a separate reviewer review the pull request.
@radian-factory fixA factory pull requestHave the builder fix what the review or CI found.
@radian-factory stopAn issue or pull requestStop the job working on it.
@radian-factory mergeA factory pull requestMerge 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"
  }'
  • externalId is 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 (an https address) gets a signed POST on every phase change: building, reviewing, fixing, ready, done. Each carries a Radian-Signature header, 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 that t is recent, before you trust one.
  • The key says which workspace, and so which repository. Use issue for an existing issue, or request with 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_..." }
    }
  }
}
ToolWhat it does
factory_buildStart a build: an issue number or a description of the change.
factory_reviewHave a separate reviewer review a pull request.
factory_jobOne job: its phase, its pull request, its review verdict, its trace.
factory_jobsThe workspace's jobs: what is building, reviewing, queued, or waiting for a person.
factory_stopStop 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.

Next

  • Commands: every Discord command and GitHub comment.
  • Traces: what every job leaves behind, whichever door it came through.