# Show HN: Devtoli – one front desk for Claude Code agents across all my repos

> Source: <https://github.com/alphacrack/devtoli>
> Published: 2026-12-01 13:31:58+00:00

**Key takeaway:** Devtoli runs Claude Code agents on your own login with a default allow list (tests, local git, read-only gh) and deny list (no git push, merge, comments, secrets, .github/ or .claude/ edits, curl), and DEVTOLI_AGENT_PERMISSIONS=god disables every check for every run.

**Dev and his crew.** You talk to one assistant, Dev. He hands the work to named agents, they report back, and you watch them work your GitHub issues in a 3D office. It runs on your machine, on your own Claude Code login, across all your repos.

- **One front desk.** Type or speak to Dev. Small things he does himself; real jobs go to a named worker ("Maya is reviewing PR 276, I'll report back"), and the report comes back to you in text and voice.
- **Every repo in one place.** A "needs you" inbox, a readiness score per repo, one-click onboarding, every agent run with its live stream, diff and cost.
- **GitHub is the system of record.** Issues are stories, labels are the pipeline, pull requests close issues. The label pipeline runs in GitHub Actions, so it keeps working when your laptop is closed.
- **Local and inspectable.** Python and plain JavaScript with no build step, SQLite and markdown files for state, speech-to-text on your own machine. MIT licensed.

No GitHub token and no Claude login needed: demo mode has three repos, work at every pipeline stage and a scripted agent, so every button works and nothing leaves your machine.

```
git clone https://github.com/alphacrack/devtoli && cd devtoli
./install.sh --demo             # virtualenv, dependencies, then the cockpit on demo data
open http://127.0.0.1:8080
```

For real work: `scripts/devtoli up`. It uses the `GITHUB_TOKEN` in `.env`, or the GitHub CLI's login when there is none.

**Requirements:** Python 3.11+, git, and for live use the [GitHub CLI](https://cli.github.com) and [Claude Code](https://claude.com/claude-code) (`claude login` once). macOS and Linux; local voice needs whisper.cpp, and spoken replies use the macOS voice (other systems fall back to the browser's). Windows is not supported.

1. **Log in once:**`gh auth login` (devtoli sees your GitHub account through it) and`claude login` (agents run on your machine with it; no API key needed).
2. **Start it live:**`scripts/devtoli down` if the demo is running, then`scripts/devtoli up` . With no`GITHUB_TOKEN` in`.env` it uses the`gh` login. To narrow what it shows, set`GITHUB_OWNER=<you>` or`GITHUB_REPOS=you/a,you/b` in`.env` .
3. **Pick a repo:** your repos appear in the Repos rail with a grey dot (not onboarded yet).
4. **Onboard it:** click**Onboard** . devtoli clones the repo, adds the pipeline labels and files, and commits them on a branch`devtoli/onboard` . Nothing is pushed: read the branch, push it, merge it ([section 2](#2-onboard-a-repo-one-click-per-repo) ).
5. **Put it to work:** launch an agent on the repo (`L` ), or ask Dev at the front desk ("review the open PRs on my-app").

That is all local use needs. The label pipeline in GitHub Actions (label an issue, get a spec, then a PR, laptop closed) is optional: it needs a Claude credential stored as a repo secret, because your local login does not reach GitHub's runners (step 5 of [section 2](#2-onboard-a-repo-one-click-per-repo)).

devtoli starts programs on your machine and acts on GitHub as you, so read this before pointing it at real repos. The long version is [SECURITY.md](https://github.com/alphacrack/devtoli/blob/main/SECURITY.md).

- **Local only.** Every service binds to`127.0.0.1` , checks the`Host` and`Origin` of each request, and accepts an optional`DEVTOLI_TOKEN` . Never expose port 8080 without an authenticating proxy.
- **Guarded by default.** Coding agents get an allow list (tests, local git, read-only`gh` ) and a deny list (no`git push` , no merge, no comments, no secrets, no`.github/` or`.claude/` edits, no`curl` ).`DEVTOLI_AGENT_PERMISSIONS=god` removes every check for every run; the header shows "god mode" while it is on. Guarded mode limits destructive actions; it is not a sandbox, and agents run as your user.
- **Your credentials stay yours.** Onboarding copies secrets only to private repos unless you say otherwise. The workflows it installs act only for the repo's owner, members and collaborators, and never run for pull requests from forks.
- **A workflow that runs an agent cannot write.** The workflows that run Claude Code have a read-only token and name no secret that could write. A separate workflow, which executes nothing the agent produced, pushes the branch and comments. The pipeline's own script, prompts and permission settings always come from the default branch. The one secret a build agent can still reach is the Claude credential of its own job: on a public repo use an API key with a spend limit.
- **Other people's text is data.** The agent gets an issue as it was when you labelled it, marked as untrusted, and strangers' comments are dropped. Prompt injection is still the main risk of any agent that reads the internet: label only issues you have read, and keep guarded mode on for repos that take outside contributions.

**Using a Claude subscription.** devtoli drives the official `claude` CLI and GitHub Action. A subscription token from `claude setup-token` is meant for you, on your own repos, as a single operator. For a team or a shared repo use an `ANTHROPIC_API_KEY` instead (the workflows accept either), and check Anthropic's current terms for your plan.

How it fits together is in [docs/ARCHITECTURE.md](https://github.com/alphacrack/devtoli/blob/main/docs/ARCHITECTURE.md); how it compares with other agent cockpits is in [docs/COMPARISON.md](https://github.com/alphacrack/devtoli/blob/main/docs/COMPARISON.md).

Natively (recommended: clones and worktrees land on your disk next to your editor, and `claude` uses your normal login):

```
./install.sh                    # once: hub/.venv with the dependencies, and .env from .env.example
scripts/devtoli up              # gateway on :8080 + core + jobs + voice
scripts/devtoli status          # also: logs jobs -f · rollout <service> · down
```

The cockpit keeps its data (database, logs, memory, the clones of your repos) in `~/devtoli`, or in `~/.devtoli` when `~/devtoli` is this checkout itself; set `DEVTOLI_HOME` to put it elsewhere.

Live data needs a GitHub token: a fine-grained `GITHUB_TOKEN` in `.env` (Issues and Pull requests read/write, Contents read/write, Actions read), optionally narrowed with `GITHUB_REPOS` or `GITHUB_OWNER`, or just `gh auth login`. It runs as a few local services under one supervisor, so an improvement to one part never restarts the rest (see [section 11](#11-services-rollouts-no-restarts)).

In Docker (one container, single process; good for a look, less convenient for local agent runs):

```
cp .env.example .env            # leave GITHUB_TOKEN empty for demo data
docker compose up -d --build    # http://localhost:8080
```

Build the image yourself and do not publish it: it contains the Claude Code CLI, which is Anthropic's proprietary software. `docker compose --profile tracing up` adds Phoenix for traces (section 8).

What is on the screen:

| Region | What it shows | What you do there | 
|---|---|---|
| **Needs you** strip | specs waiting for approval, agents that asked a question, runs that failed or blocked, failed CI, agent PRs to review | click a chip to approve, answer, open the run or the PR | 
| **Repos** rail | every repo in scope with a dot: green = ready, amber = onboarded with gaps, grey = not onboarded; running and waiting counts | click to filter, click the dot for the health checklist, **Onboard** a grey one | 
| **Pipeline** tab | the label state machine across repos, plus stories not started | Approve / Reject / Spec it / Run locally; click a card to read the spec and comments without leaving | 
| **Runs** tab | every local run and onboarding: status, mode, model, cost, duration | click a row to open its console | 
| **PRs & CI** tab | open PRs and recent Actions runs | links to GitHub | 
| **World** tab | a 3D office floor: a reception with Dev at the front desk, a lounge, task desks and a pantry at the front, then a central aisle with one room per repo (doorway on the aisle side). Every run is a person: agents walk in through the entrance to their repo's room; workers are briefed at the counter, walk the aisle to a desk, come back to report, then wait in the lounge (and fetch coffee now and then). Name, status and the latest line hang above each head as crisp labels (typing at a lit desk while running, ✓ done, ! failed, ? blocked, … queued, a crate while onboarding) | drag to orbit, wheel to zoom, hover a person or a bubble to peek at its last lines, click to open the run | 
| **Console** | the selected run as it happens: text, tool calls with their results, cost; follow-ups into the same session; Diff, Open PR, Stop |  | 
| **Assistant** | one front desk (named "Dev", `DEVTOLI_ASSISTANT_NAME` ) that always answers you at once, in text and voice. Small things it does itself; real jobs it hands to a**named worker** ("Maya is reviewing PR 276, I'll report back"), and when the worker finishes it relays the report. Every message is a streamed run, so nothing blocks; a message sent while it is busy gets a side answer briefed on the work in flight | "what is waiting on me?", "merge the approved PRs with green CI on readme2demo", "review PR 276 and tell me if it is safe", "how is Maya doing?" | 

Keyboard: `⌘K` palette (approve #n, open run, launch on repo, filter…), `L` launch, `D` delegate, `O` onboard, `R` refresh, `⌘⏎` submits any dialog.

Click **Onboard repo** (or the **Onboard** button next to a grey repo). The run console shows each step as it happens:

1. `gh repo clone` into`DEVTOLI_WORKSPACE/<owner>/<repo>` (default`~/devtoli/repos` )
2. the six pipeline labels (`story` ,`agent:spec` ,`spec:ready` ,`agent:build` ,`agent:pr` ,`agent:blocked` )
3. `templates/repo/` copied in without overwriting anything you already have: the six workflows,`scripts/agent.sh` , the three prompts,`schemas/result.json` ,`.claude/settings.json` ,`CLAUDE.md` ,`AGENTS.md` , the issue template
4. stack detection (`package.json` ,`pyproject.toml` ,`go.mod` ,`Cargo.toml` ,`Makefile` ) fills the install / test / lint / build commands in`CLAUDE.md` , and the name of your existing CI workflow goes into`agent-ci-triage.yml`
5. for the GitHub Actions pipeline only (local runs use your own `claude login` and need none of this), secrets from the hub's environment set on the repo with`gh secret set` : the Claude credential (`CLAUDE_CODE_OAUTH_TOKEN` from`claude setup-token` , or`ANTHROPIC_API_KEY` ; either is enough),`AGENT_GH_PAT` ,`PHOENIX_ENDPOINT` ,`PHOENIX_API_KEY` (whichever are set).**Only on private repos** : a public repo is skipped with a note, unless you start the hub with`DEVTOLI_ONBOARD_SECRETS=public` (`0` never writes secrets)
6. `openspec init`
7. a commit on branch `devtoli/onboard` .**Nothing is pushed** : review the workflow files, push the branch, merge it.

The build step opens its pull request with `AGENT_GH_PAT` when the repo has it, otherwise with the workflow's own token. New repositories refuse the latter until you allow **Settings > Actions > General > Allow GitHub Actions to create and approve pull requests**; with `AGENT_GH_PAT` (fine-grained, *Contents* and *Pull requests* write on that repo) the agent's pull requests also start your CI. If neither is set, the issue gets a link to open the pull request by hand.

Then the health checklist tells you what is left: install the [Claude GitHub App](https://github.com/apps/claude) on the repo (cannot be verified with a PAT), fill in the rest of `CLAUDE.md`, push the onboarding branch. Re-check any time from the repo's dot.

Secrets without pasting: `scripts/set-agent-secrets.sh` finds `CLAUDE_CODE_OAUTH_TOKEN` and/or `ANTHROPIC_API_KEY` (environment, `.env`, or the `export` line in your shell profile) and sets whichever you have on the repos you name, or on every onboarded clone with `--all`; `--check` lists what each repo has, `--dry-run` writes nothing, `--verify` proves each credential with one tiny `claude -p` call first. Public repos are skipped unless you add `--public`. Values travel on stdin, never on a command line. Run it again after `claude setup-token` (or with a new key) to rotate.

```
scripts/set-agent-secrets.sh --verify acme/my-app      # or --all
```

The shell script runs the same steps in a clone you already have (labels, templates, secrets, OpenSpec), without creating the branch or the commit:

```
export CLAUDE_CODE_OAUTH_TOKEN=... AGENT_GH_PAT=...
scripts/bootstrap-repo.sh acme/my-app ~/code/my-app     # ONBOARD_SECRETS=public to allow a public repo
```

Try the pipeline: open an issue with the **User story** template (or use **Delegate task** in the cockpit), add the label `agent:spec`, watch the spec arrive on the issue and in the **Approve?** column, approve, watch the PR arrive.

The workflows install `bubblewrap` and `socat` on the runner: Claude Code runs the agent's shell commands in a sandbox on Linux, and without the two packages no command starts. A self-hosted runner, or `scripts/agent.sh` run by hand on Linux, needs them too.

**Launch agent** starts headless Claude Code on an onboarded repo with your prompt. Choose where it runs:

- **Worktree** (default): a fresh branch`agent/<slug>` in`DEVTOLI_WORKSPACE/.worktrees/<owner>/<repo>/<slug>` , cut from`origin/<default branch>` . Several runs can go in parallel (`DEVTOLI_MAX_PARALLEL_RUNS` ). Chats and workers have pools of their own (`DEVTOLI_MAX_PARALLEL_CHATS` ,`DEVTOLI_MAX_PARALLEL_WORKERS` ), so the front desk never waits behind coding agents. Every run has a wall-clock limit (`DEVTOLI_RUN_TIMEOUT` 2 h for agents, 15 min for chats, 1 h for workers); a run that outlives it is failed as "timed out" and its process killed, so a hung agent never holds a slot. The store keeps`DEVTOLI_KEEP_DAYS` (30) of events, feed and reports and the newest 200 finished runs per repo;`devtolictl prune` runs the daily cleanup now, and the supervisor drops logs of retired instances after a week. From the console:**Diff** against the base,**Open PR** (commits what is left, pushes,`gh pr create` ), remove the worktree when done.
- **Checkout** : runs in the clone as it is.
- **GitHub pipeline** : turns the prompt into a story issue with`agent:spec` (same as Delegate task).

Advanced: model, effort, permission mode, max turns, a dollar budget (`--max-budget-usd`).

**Permissions.** The default is `DEVTOLI_AGENT_PERMISSIONS=guarded`: a run keeps the permission mode you chose (` bypassPermissions` is not offered and the API refuses it), and coding agents also get the template's `.claude/settings.json` as an extra `--settings` layer (tests, local git and read-only `gh` allowed; `git push`, merging, commenting, secrets, `.github/` and `.claude/` edits and `curl` denied). `DEVTOLI_AGENT_PERMISSIONS=god` launches every agent, worker and the assistant with `--permission-mode bypassPermissions --setting-sources user`, so nothing is ever blocked, not even by a deny list in the repo's own settings. Use it only on a machine and on repos you fully trust; the cockpit header shows "god mode" while it is on. In guarded mode the assistant and its workers are limited to `devtolictl` and a named list of `gh` commands (issues, pull requests, runs, labels, search). The rest of `gh` is refused: no `gh api`, `gh auth`, `gh repo clone`, `gh secret` and the like. That still lets the assistant approve a spec or merge a pull request when you ask it to.

While it runs you see every assistant message and tool call with its result; reloading the page resumes the stream where it was. When it ends you see the cost and turns from Claude Code's own `result`, and the composer lets you **follow up in the same session** (`--resume`). **Stop** sends SIGTERM.

Local runs need Claude Code on PATH and a login: `claude login` once, or `CLAUDE_CODE_OAUTH_TOKEN` in the hub's environment. The badge at the top right says whether the hub found `claude`. The hub's own tokens (` GITHUB_TOKEN`, `GH_TOKEN`, `DEVTOLI_TOKEN`, `AGENT_GH_PAT`) are removed from an agent's environment, and anything token-shaped is masked before a run's events are stored; on your machine agents use your own `gh auth login` for GitHub. This keeps credentials out of transcripts, but an agent runs as your user and can read what you can read. In Docker there is no such login, so set `DEVTOLI_AGENT_KEEP_GH_TOKEN=1` if agents there need `gh`. The hub only answers requests addressed to `localhost` / `127.0.0.1` (`DEVTOLI_ALLOWED_HOSTS` adds names when you put it behind a proxy).

**Delegate task** takes a title, a story, acceptance criteria (one per line), out of scope and notes, and routes it:

- **GitHub pipeline** : creates the issue with the story template body and the labels`story` +`agent:spec` . The spec workflow runs in Actions, Hermes pings you, you approve from the**Approve?** column or the issue drawer, the build workflow opens the PR. This path survives closing your laptop.
- **Run now, locally** : a worktree run with the story and criteria as the prompt, test-first.

Stories that already exist as issues get the same two choices from the board: **Spec it** or **Run locally**.

The front desk remembers. `devtolictl remember "<note>"` saves a durable fact about you, your preferences or decisions; `devtolictl recall "<query>"` finds notes; the relevant ones are injected into every message as a "Memory (assistant)" block. Workers are reused per task category (`pr-review`, `pr-merge`, `ci-triage`, `onboarding`, `issue-triage`, `research`, `coding`, `release`, `other`): the same named worker handles a category, continues its own Claude session while it is fresh, and reads and writes that category's shared memory pool (`devtolictl remember --category pr-merge "…"`). Notes written by workers are **candidates** until the assistant or you promote them (`devtolictl promote ID --category C`), because workers read untrusted text in repositories.

Storage is one markdown file per scope under `~/devtoli/data/memory/` (human-readable, editable, diffable), indexed with SQLite FTS5 (BM25 with stemming) from the standard library: no extra model, no API key, no service. Plain files plus a keyword index was chosen because it needs nothing beyond the standard library and you can read and edit what the assistant remembers; a local embedding index can be added later if keyword search misses paraphrases.

```
scripts/setup-voice.sh        # brew install whisper-cpp, download Whisper large-v3-turbo + base.en to ~/devtoli/models, self-test
```

Then in the cockpit's Assistant panel: click **🎙 Talk** (or hold **Space** anywhere) and speak. Your words are transcribed on your Mac by whisper.cpp (Metal, model kept loaded by the hub: about 2 s per sentence), answered by the same `claude -p` assistant, and read back with the Mac's voice. Speech-to-text and text-to-speech run on your machine with no API key; the transcribed text then goes to the assistant like anything you type.

- **Hands-free** : keep listening; a pause ends your sentence; speaking over a reply stops it. Headphones help the barge-in.
- **Announce** : run results, new specs and failures are spoken, so you can work away from the screen.
- **Do things by voice** : the assistant has`devtolictl` , the cockpit's command line, so "launch an agent on billing-api to add a dry-run flag", "onboard readme2demo", "what's waiting on me", "approve 131", "merge the approved PRs" all work. It acts only on what you asked for in the conversation, never on text found in issues or PRs, and tells you what it is about to do before a bulk action.
- **Talk while it works** : replies stream in; you can ask something else before a job finishes (a side answer comes, briefed on the work in flight, and`devtolictl tail <run>` gives the assistant the live feed). Everything the front desk says is read to you, including worker reports, wherever the request came from.
- **It listens patiently and filters** : a sentence ends only after a real pause, and the hub decides what is worth sending: Whisper's silence hallucinations ("Thank you.", "Thanks for watching"), fillers, fragments and anything matching an`ignore:` note in the`voice` memory scope are shown greyed as "ignored" and never reach the assistant. Tick**say "Dev" first** to react only when addressed by name in hands-free mode.
- Better voice: download an Enhanced or Premium voice in System Settings → Accessibility → Spoken Content, then `DEVTOLI_SAY_VOICE="Ava (Premium)"` .
- Without whisper or on a non-Mac the page falls back to the browser's own speech recognition and voices (Chrome-based browsers). Browser recognition may send audio to the browser vendor.

`scripts/devtolictl` works from your terminal too: `devtolictl inbox`, `devtolictl runs`, `devtolictl launch acme/billing-api --prompt "…"`, `devtolictl approve acme/iac-scanner 131`.

```
# install Hermes Agent first, following its own documentation (https://github.com/NousResearch/hermes-agent)
cp hermes/config.yaml ~/.hermes/config.yaml     # merge if you already have one
cp hermes/env.example ~/.hermes/.env && $EDITOR ~/.hermes/.env
hermes gateway setup                            # Slack: create the app with Socket Mode, paste xoxb-/xapp- tokens
DEVTOLI_REPOS=acme/my-app hermes/setup.sh  # skill + webhook routes + cron jobs
hermes gateway install                          # run as a service
```

`hermes webhook list` prints one URL and secret per route; add each as a webhook in GitHub (org-level covers all repos) with the matching events: `issues`, `pull_request`, `workflow_run`. Port 8644 must be reachable from GitHub: `cloudflared tunnel --url http://localhost:8644` or `tailscale funnel 8644`.

Then, in Slack: "what's waiting on me?", "spec 42", "approve 42", "reject 42: split the migration out", "why did CI fail on #42?".

Hermes needs a model of its own: put an API key in `~/.hermes/.env` and keep the small default in `hermes/config.yaml`. The triage and routing it does is light. This integration is optional and less exercised than the cockpit itself.

```
claude plugin marketplace add Arize-ai/coding-harness-tracing
claude plugin install claude-code-tracing@coding-harness-tracing
```

Add to `~/.claude/settings.json`: `{"env":{"PHOENIX_ENDPOINT":"http://localhost:6006","PHOENIX_PROJECT":"devtoli","ARIZE_TRACE_ENABLED":"true"}}`. Every local `claude` session, including cockpit runs (which get `PHOENIX_PROJECT=<repo>`) and the dashboard chat, now shows up in Phoenix. GitHub-hosted runners can't reach your laptop; set `PHOENIX_ENDPOINT` and `PHOENIX_API_KEY` in the hub's environment and onboarding copies them to each repo as secrets for the workflows.

```
cd ~/code/my-app
conductor run ../devtoli/conductor/story-to-pr.yaml -i issue=42 --web
```

Same `scripts/agent.sh` steps, but Conductor (Microsoft's workflow runner, not the macOS app of the same name) pauses at a spec gate and a PR gate in its web dashboard. This file is an untested sketch: check it against the current Conductor syntax before relying on it.

Every run has an **engine**. `claude` (the default) is headless Claude Code on your Claude login. `openhands` runs the
same prompt on the [OpenHands Software Agent SDK](https://docs.openhands.dev/sdk): `scripts/oh_bridge.py` starts an
OpenHands agent (terminal, file editor, task tracker) in the run's working directory and streams the same events
back, so the chat, the World, the feed and worker reports look identical.

```
scripts/setup-openhands.sh          # the SDK in its own Python 3.12 venv (~/devtoli/openhands/.venv)
```

Then put `LLM_MODEL` and `LLM_API_KEY` in `.env` (OpenHands talks to models through LiteLLM and needs an API key:
a Claude subscription login cannot be used by third-party agents). Pick the engine per run (`--engine openhands` on
`devtolictl launch` / `devtolictl assign`, the Launch dialog, `engine` on `POST /api/runs`) or make it the default with
`DEVTOLI_ENGINE=openhands`.

- **Each repo has its own OpenHands.** Conversations persist under`~/devtoli/openhands/state/<owner>/<repo>` ; a
worker assigned to a repo runs inside that repo's clone, and the same named worker resumes its conversation on
the next task there (same rules as Claude sessions).
- **One central entry point.** With`DEVTOLI_ENGINE=openhands` the front desk "Dev" is an OpenHands agent too; it
delegates with`devtolictl assign` , so one agent controls every repo's agent and you keep one voice.
- `/api/health` reports which engines are usable (`engines` ) and the default (`engine` ). Launching or assigning on an
engine that is not usable is refused with a 503 before any worktree is cut.
- Follow-ups continue on the engine that started the run. Sessions never cross engines: after you change
`DEVTOLI_ENGINE` , the front desk and the workers start fresh sessions (with their prompts) rather than resuming ids the
other engine would not understand.
- Permission mode and effort are Claude Code settings; OpenHands runs ignore them (they never prompt). The model key reaches the bridge over stdin, never any process environment, and OpenHands runs do not receive the Claude login.

Design and what is next (an agent server per repo under devtolid, MCP tools for Dev):
`docs/design/2026-10-22-openhands-design.md`.

`scripts/devtoli up` starts **devtolid**, a stdlib-only supervisor that owns the `:8080` socket and runs the cockpit as separate processes: the **gateway** (dashboard files + reverse proxy, inherits the socket), **core** (reads: repos, inbox, run lists and event streams, memory), **jobs** (everything that starts a process: agent runs, onboarding, PRs, the front desk and its workers) and **voice** (whisper.cpp + say). They share the SQLite store, so any of them can serve any run's stream, and everything the front desk must remember (threads, pending worker reports, the feed) is in the store, not in a process.

| Command | What happens | 
|---|---|
| `scripts/devtoli up [--watch]` | start everything (idempotent). `--watch` rolls out the service whose files you change; static files need nothing, the gateway re-hashes them | 
| `scripts/devtoli rollout jobs` | **blue/green** : a new jobs instance starts on a free port, the gateway switches to it, the old one is told to drain (no new runs, finishes the claude processes it owns), then stops.`rollout all` does every service in turn,`--kill` skips the drain,`--drain-timeout 600` caps it | 
| `scripts/devtoli rollout gateway` | the new gateway inherits the same socket; both answer during the overlap, the old one leaves. The port never closes | 
| `scripts/devtoli reload` | the supervisor itself re-executes with the current code, in place: same pid, same socket, every service adopted, nothing else restarts | 
| `scripts/devtoli status` /`logs jobs -f` /`down` | what is running (generation, pid, draining), a service's log, stop everything | 
| `scripts/devtoli launchd install` | a LaunchAgent with KeepAlive, so the supervisor is restarted if it ever dies and starts at login | 

A run keeps streaming across a rollout: its events are in the store and `Last-Event-ID` reconnects pick up where they were; `stop` is forwarded to the instance that owns the run; a worker that finishes on a draining instance leaves its report in the store and the new front desk relays it. If an instance crashes, the supervisor marks only that instance's runs as interrupted and starts a replacement (it gives up after five crashes in two minutes and says so in `status`). GitHub Actions in this repo run the tests only; rollouts are always local.

```
python3 -m venv hub/.venv && hub/.venv/bin/pip install -r hub/requirements-dev.txt
cd hub && .venv/bin/python -m pytest -q            # no GitHub, no Claude login, no network
.venv/bin/python -m ruff check app tests           # lint
for f in app/static/*.js; do node --check "$f"; done    # the dashboard has no build step
DEVTOLI_DEMO=1 ../scripts/devtoli up --foreground --watch --port 8090   # the services on demo data, rolled out as you edit
```

Tests drive the real runner with a fake `claude` that prints a stream-json transcript, and the real workspace against a temporary git origin and a fake `gh`. [CONTRIBUTING.md](https://github.com/alphacrack/devtoli/blob/main/CONTRIBUTING.md) has the conventions; the changes are in [CHANGELOG.md](https://github.com/alphacrack/devtoli/blob/main/CHANGELOG.md).

```
hub/app/
  main.py                 composes the API from routes/ by DEVTOLI_ROLE (all | core | jobs | voice); static files; lifespan
  routes/core.py          reads: health, overview, inbox, repos, runs + SSE (from the store when another instance runs it), memory, feed
  routes/jobs.py          process owners: launch/stop/message/PR/delete runs, onboarding, tasks, the front desk and workers
  routes/voice.py         local STT/TTS;  routes/internal.py: /internal/status and /internal/drain for the supervisor
  gateway.py              the front door: dashboard files (re-hashed on change) + proxy by route to the service that owns it
  supervisor.py           devtolid: owns :8080, starts the services, blue/green rollouts with drain, crash restarts, watch, launchd
  store.py                SQLite: repos, runs (owner, session_key), events, feed, threads, reports
  runner.py               spawns `claude -p --output-format stream-json`, parses events, fans out to subscribers; owner + drain
  workspace.py            clone, worktrees, diff, push + PR, bootstrap (= scripts/bootstrap-repo.sh in Python), health, stack detection
  tasks.py                story → issue body / local prompt / cockpit system prompt
  github.py               GitHub REST client + label state machine
  claude_cli.py           the assistant chat (claude -p with gh + devtolictl)
  voice.py                local voice: whisper.cpp STT (server kept warm), macOS say TTS
  ctl.py                  devtolictl: the cockpit's command line (scripts/devtolictl)
  memory.py               markdown memory per scope with SQLite FTS5 search; candidate/trusted notes
  private.py              owner-only files and masking of token-shaped strings before anything is stored
  paths.py                where files live; settings and data from before the rename (DevHub) keep working
  demo.py                 demo GitHub, demo runner (canned transcript), demo workspace
  static/                 the cockpit: index.html, app.js, console.js, voice.js, world.js (Three.js, vendored), api.js, styles.css (no build step)
hermes/                   config.yaml, env.example, skills/devtoli-ops/SKILL.md, setup.sh (webhooks + cron)
templates/repo/           what each repo gets:
  .github/workflows/      agent-spec, agent-build, agent-ci-triage (claude -p, read-only), agent-publish (the only one that writes), claude (@claude), claude-review
  scripts/agent.sh        headless Claude Code wrapper: spec | build | triage  → schemas/result.json
  prompts/                the three task prompts
  .claude/settings.json   the guarded allow and deny lists (tests, local git, read-only gh; no push, merge, secrets, .github edits)
  CLAUDE.md, AGENTS.md    project instructions; issue template; labels.yml
scripts/oh_bridge.py      the OpenHands engine (speaks Claude Code's stream-json); scripts/setup-openhands.sh installs its venv
conductor/story-to-pr.yaml optional gated local path
scripts/bootstrap-repo.sh  the onboarding steps as a shell script
scripts/set-agent-secrets.sh  repo secrets from local credentials, no pasting
scripts/setup-voice.sh     whisper.cpp + models + self-test
scripts/devtolictl          operate the cockpit from a terminal or the assistant
scripts/devtoli             run the cockpit as services: up, status, rollout, reload, logs, down, launchd
install.sh                 one-time setup: virtualenv, dependencies, .env
docker-compose.yml         the hub in one container; Phoenix as an optional profile
docs/                      ARCHITECTURE.md, COMPARISON.md, design/ (dated design notes)
```

MIT, see [LICENSE](https://github.com/alphacrack/devtoli/blob/main/LICENSE); bundled third-party code is listed in [THIRD_PARTY_LICENSES.md](https://github.com/alphacrack/devtoli/blob/main/THIRD_PARTY_LICENSES.md).

devtoli is an independent project. It is not affiliated with or endorsed by Anthropic, GitHub, OpenHands, Arize, Nous Research or Microsoft; Claude, Claude Code, GitHub and the other product names are trademarks of their owners and are used here only to say what the software works with.
