Orchestrates Claude Code sessions, one per GitHub issue, with a dashboard.
- Agent (
src/OssOrchestrator.Agent): runs locally. Wakes when GitHub reports a change (and polls every 10 minutes as a safety net), launches Claude sessions, watches PRs and CI, closes finished sessions, and reads commands from the queue. Claude sessions have to run on the machine that has the repos. It sends messages to cloud sessions with the Claude profile in~/.claude-personal, which must be signed in. - Web (
src/OssOrchestrator.Web): ASP.NET Core (Razor Pages) dashboard for desktop and phone. Shows the sessions that need you first, with PR status, the backlog and recent commands, and sends commands (pause, take new issues, park, work slots, max sessions). It has no GitHub credentials. - Queue: Azure Storage Queue (web to agent commands, agent to web state).
- Database: Azure Cosmos DB free tier. Containers:
config,commands,state,events. - Webhook: GitHub calls
POST /webhooks/githubon the web app. It checks the signature and records the event inevents. The agent reads that container through the change feed and runs a pass right away. The pass reads the real state from GitHub, so the event only says "look now".
The agent also runs an MCP server for agents you start yourself on the same machine, at http://127.0.0.1:5391/mcp (change it with ORC_MCP_URL; only loopback addresses work). It has no login. The dashboard shows the URL on the Repos tab. In dry run the tools change nothing.
A local agent claims an issue (claim_issue), which returns the worker prompt (src/OssOrchestrator.Agent/Prompts/worker.md). It reports a question with report_needs_answer and a wait with update_issue_status. The agent cannot send to it, so it reads messages about its PR with get_messages. A claim ignores work slots, max sessions and "Take new issues", and the session then counts toward the limits.
Set up Claude Code once:
claude mcp add --scope user --transport http orc http://127.0.0.1:5391/mcp
ln -s "$PWD/skills/orc-worker" ~/.claude-personal/skills/orc-worker
Then run /orc-worker owner/repo [issue] in a new session.
For fx:
fx mcp add orc http://127.0.0.1:5391/mcp
ln -s "$PWD/skills/orc-worker" ~/.fx/skills/orc-worker
After each pass the agent records the totals of all repos in state: open issues, PRs merged in the last 24 hours, open sessions and sessions that use a work slot. There is one document per UTC day (history-yyyy-MM-dd). A point is added when a number changes, or after an hour. A pass that could not read all of GitHub is not recorded. Once, the agent rebuilds the open and merged counts of the past 30 days from GitHub (history-backfill). The dashboard's History tab charts the last 30 days.
An issue with the top-priority label starts before every other issue, across all repos. With more than one, the one marked first starts first. It takes the next free work slot: work slots and max sessions still apply. Paused repos and repos with "Take new issues" off start nothing, and a parked, ignored or assigned issue still does not start. Add or remove the label on GitHub, or use the buttons in the dashboard's Backlog tab, which change the same label.
A worker that cannot go on until other issues or PRs of the same repo are done posts one comment with a marker <!-- orc:blocked-by #123 --> for each one, then adds the waiting-on label. Only the newest such comment counts. Only comments by the worker's own login count. If the worker posts the comment but misses the label, the agent adds waiting-on and removes needs-answer. This happens only when the comment is newer than the start of the session, the last question and the end of the last wait. While the label is on, the dashboard lists the session under the session of its first open blocker (or under "Waiting on others" when that blocker has no session) and names its other open blockers, and it does not hold a work slot or count toward max sessions. When every blocker is merged, completed or closed, the agent tells the worker to continue and removes the label.
- The web app runs on Azure App Service (F1) with App Service Authentication (Microsoft Entra ID). Only the owner's account is allowed. Every route requires login.
- The agent authenticates to the queue and the API with a dedicated identity whose secret lives only on the local machine.
- Create the
eventscontainer in databaseorc: partition key/repo, default TTL 7 days (az cosmosdb sql container create -a <account> -g <group> -d orc -n events -p /repo --ttl 604800). The web app identity needs the Data Contributor role on the account; if it has that at account scope, nothing more is needed. - Login is handled inside the app (App Service Authentication is off), and
/webhooks/githubis anonymous: it checks the HMAC signature itself. If you ever turn App Service Authentication on, exclude that path, because GitHub cannot sign in. - Set the app setting
GitHub__WebhookSecretto a long random value. - Register the hook on each repo:
GITHUB_WEBHOOK_SECRET=... scripts/register-webhooks.sh https://<app>.azurewebsites.net owner/repo ...
Scaffold only. Targets .NET 10 until the .NET 11 SDK is available.