Hangar
Hangar is the Reaktor desktop app. It opens a workspace (a repository of Reaktor apps), reads the
apps while they run, and shows their graph, phones, screens, cloud, data, auth, builds, tests, telemetry,
analytics and agents in thirteen panes that link to each other. Its code lives in
../hangar/desktop and the engine's workbench package, the names it had before it was
called Hangar.
Every control in the window is a Reaktor Surface component, styled by the Machine Signal design language, with Hangar's own fonts and icons. The map canvas, code editor, timeline and phone mirror are specialised engines that Surface hosts as islands. Pane choices, selections, filters, camera positions and layout are graph state, like everything else Hangar reads.
Code and Markdown use one native Compose editor in reaktor-ui/code. Markdown has source editing
and a formatted preview over the same document, caret and undo history. Its source wraps within
the pane, continues lists, task lists and quotes, and highlights fenced code using the fence's
language. Kotlin and Markdown are the primary languages; TypeScript, SQL, Cypher and JSON also
have built-in lexical profiles. Unknown fence languages preserve their source as plain text.
The Agent composer uses this editor too: Enter sends, Shift Enter inserts a newline, and Escape stops the active run while preserving the draft. The conversation graph remains the draft owner; the editor publishes edits synchronously. Agent output uses the same Markdown projection and native code viewer. Streaming updates retain completed preview blocks and the reader's selection.
CodeEditorState owns document edits, selection, undo, search and incremental lexical state.
CodeLanguage supplies a profile or overrides the line lexer with a typed CodeLexState for
languages with richer continuation rules. Adding another language does not change the renderer.
The source surface virtualizes lines and wrapped rows; the editable preview virtualizes blocks.
Only visible source text is laid out, and the token cache is bounded. There is no browser runtime
or separate Markdown document model in this path.
The preview supports headings, paragraphs, lists, task lists, quotes, inline emphasis, inline code,
web links and fenced code. It is not a complete CommonMark implementation: tables, images and
nested inline markup are not yet rendered. Native IME composition and screen-reader editing are
not implemented. Physical-device input is unqualified. The current source input handles desktop keys,
clipboard edits and surrogate-safe Unicode navigation. Language-server features depend on the
CodeIntelligence supplied by the host; a lexical profile alone does not provide semantic analysis.
Overview#
Read the picture from left to right. The window has one toolbar and thirteen panes, and each pane asks the workspace kernel for what it shows. The kernel keeps one catalogue of operations. Each operation either reads, writes, or writes only after a person approves it in Hangar or a terminal, and every run is recorded with its result. The kernel reads the running apps on phones, the Workers and the server, the repository, the databases, the cloud accounts and the telemetry backends. The reaktor CLI and the MCP server for coding agents go through the same kernel, so a person and an agent see the same answers.

The window#
- One title row. On macOS the window draws its own first row: the traffic lights, then Hangar, the app and branch pickers, back and forward, the open panes as tabs, search, the target and environment, Run, Debug, Stop, Develop and settings. In full screen the row starts at the edge, because the window controls are hidden.
- The menu bar is the Mac's. File, Edit, View, Navigate, Code, Graph, Run, Tools, Window and Help live in the macOS menu bar, as in IntelliJ IDEA. Items show their shortcuts, and the current pane, application and developer tool are ticked. On Windows and Linux the same menus open from Hangar at the start of the title row.
- One bottom bar holds the tool windows (runs, logs, traces, network, tests, build and diagnostics) and the status readings. It opens when you ask for it, when a plan waits for your approval, or when a run you started begins.
Panes#
| Pane | Shortcut | What it answers | Read more |
|---|---|---|---|
| Graph | ⌘1 | What is running, how it is wired, what calls what right now | Graph |
| DevTools | ⌘2 | What a connected phone is doing: elements, network, logs, timeline, audits, its live graph | DevTools |
| Studio | ⌘⇧S | The running app, edited in place: pick an element on a screen to change its layout, components, colours, words and sizes, then write the change back to the source. Design edits one screen, Navigation maps every route with a picture of its screen, and Graph shows the nodes behind the selection | |
| Agent | ⌘⇧A | The coding agents working on this workspace. Agents lists Claude Code and Codex first, then the ChatGPT + Gemini seat and gateway agents (open models on Cloudflare for set roles); MCP shows every Claude Code and Codex session here, whether each harness launches the door, what the door is waiting on, and what it serves. The Kanban, Runbooks, Memory and Audit views sit beside them. More | Conductor |
| UI | ⌘⇧U | Reaktor Surface components and design tokens, rendered live | |
| Data | ⌘3 | Every database, store and topic, with its tables in the side rail. Schema opens on a map of the tables and their foreign keys beside a summary: size, the largest tables, row access and findings (tables open to anonymous access, drift from the repository's SQL); Tables lists rows, size and scans. Pick a table for its columns, keys, row access and findings. Relationships walks a table's neighbours one step at a time and saves the view; Data pages through rows, and a foreign-key value opens the row it points to. Without a live connection the map is drawn from the repository's SQL | |
| Auth | ⌘4 | People, roles, access, sessions, audit and security findings. Access has Graph, Relationships, Matrix and Source with one caller, policy and draft. The role wizard previews reach; catalog save, assignment and heimdall sync have separate receipts. A search narrows only the list you are browsing; signing keys, provider settings, grants and findings are always read whole | Auth |
| AI | ⌘⇧I | BudBot and MannaBot: the workers, models, data and AI Gateway each bot is made of, a week of Workers AI usage per model, the account's gateways and their traffic, the model catalog with a place to try a prompt, on-device models and notebooks. More | |
| Testing | ⌘7 | What a change broke, what each part of the product verifies, every declared check, failing tests and runs, all read from the build model. More | Dependeasy |
| Build | ⌘6 | The Dependeasy build graph with its tasks, artifacts, runs and release gates, what is deployed where, and the deploy operations you can run. Each build artifact shows its size and how it changed across builds (from the fastlane size log); Live says why its last read failed | Deployment |
| Cloud | ⌘5 | Every cloud resource as one map or one list, from hostname to machine; what is live against the repository, with approval-gated deploys; the CI pipeline as a map; one history of what changed. Operations also reaches every operation of the Cloudflare, Supabase and Google Cloud APIs (Cloud APIs) | Cloud |
| Analytics | ⌘9 | How people use the product, and which funnel steps the app has stopped sending | Analytics and telemetry |
| Telemetry | ⌘8 | What is wrong right now, ranked by graph node (Signals), then dashboards, executions, performance, errors and logs, the device fleet, end-to-end verification and the collectors behind them | Analytics and telemetry |
The panes point at each other: a screen leads to its service, the worker that serves it and the databases it touches, and back. How the panes connect explains the links.






How the panes connect#
On its own, each pane answers questions about its part of the product. Linked, they answer the questions that cross parts: which database a screen depends on, which screens break if a worker fails, which worker served a failing request, and what is live right now. Every link follows one chain, in both directions:
screen → graph node → service → worker → store → Data target
- A screen or repository in the Graph pane reaches the service nodes it depends on through its wires.
- A service node knows its base URL, and the URL's host routes to the Cloudflare worker that serves
it, so
social.bestbuds.airesolves tosocial-service. A gateway host is followed through its service bindings, by the first path segment. - A worker's bindings are its stores: D1 databases, Durable Objects, R2 buckets, KV namespaces, and Postgres through Hyperdrive. ClickHouse and Memgraph are reached through VPC services.
- Each store maps to its target in the Data pane: D1 and Durable Objects by the worker and binding that own them, Postgres and ClickHouse by their environment's connection.
| Pane | What it shows from the others |
|---|---|
| Graph | Runs on for a service, or Backed by for anything that depends on one: the worker, how it was reached, its last deploy and 24-hour traffic once Cloud has been read, and each store, linked to Data |
| Cloud | In the app: the app services a worker serves and the screens that depend on them, linked to Graph, and the worker's stores, linked to Data |
| Data | Used by: the workers bound to the selected database, the app services behind them, and how many screens depend on it |
| DevTools | The worker that served each network request, and the app service that sent it when only one service uses that address |
| Deploy | Live: every worker with its environment, last deploy, author, source, 24-hour requests and error rate and the app services it serves, and every cluster workload with its readiness and images |
| Analytics | Each screen named in the events, linked to that screen in Graph |
A link opens its target in place: a graph node is revealed and selected, a cloud resource is
selected on the Cloud map, a Data target is selected in Data. Agents read the same chain through the
kernel operation hangar.system-trace: a graph node gives the services, workers and stores behind
it, a URL gives the worker that serves it, and a worker, store or Data target gives everything that
depends on it. hangar.app-graph-node reads one node in full.
The links have limits:
- Until Cloud has read the accounts, links come from the repository's declarations. After a read they also carry live deploys and traffic.
- A service node without a base URL links to a worker only when a worker has its name, such as
people-serviceforPeopleServiceNode. A service the app calls through another client links to no worker. - R2 buckets and KV namespaces have no Data target, so they link to Cloud instead.
- The gateway rule reads only the first path segment, and expects bindings named
<SEGMENT>_SERVICEor<SEGMENT>. - A base URL decides the worker, and so its environment. A name match prefers Hangar's current environment, and stores match the Data targets of their worker's environment.
Agents and the MCP door#
Claude Code and Codex do the real work in a workspace, so the Agent pane is built around them. It has three subpanes: Work draws every thread's plan as a DAG, a Kanban board or a log, where a person edits items and attaches agents; Agents is the gallery of agent profiles by model family, with a page for each and the harnesses under Runtimes; MCP shows the door. The Agent pane walks through all three, and The agent plane explains what they show.
- Runtimes lists Claude Code and Codex as the primary agents, with their version, whether their door entry is installed, how many sessions run on this workspace now and in the last three days, and how many calls they made through the door today. New task opens a conversation on that agent.
- Gateway agents are open models on the workspace's Cloudflare account, offered for set roles:
Reviewer (Kimi K2.7 Code), Second opinion (DeepSeek V4 Pro), Long-context reader (GLM 5.3), Quick
triage (GLM 5.3 Flash) and Open generalist (Qwen 3.8). A gateway agent reads the workspace with
three confined tools (read a file, search, list a folder), never edits files or runs commands, and
answers with file and line. Each turn goes through AI Gateway
reaktorwhen that gateway exists and the token can see it, and straight to Workers AI otherwise; the run records which route it took. - MCP shows each harness (Claude Code, Codex, Antigravity): whether its config launches the door, whether Codex trusts the project, how many sessions are live. Below it are the door's problems with the command that fixes each (for example a door launcher older than the conductor's source), then its views: Access, Atlas, Code graph, Sessions (every Claude Code and Codex session found on this machine for this workspace, with its last steps, the files it edited and the command that resumes it), Calls (door approvals and the call log), Servers (the providers the door serves), Tools (Hangar's own MCP tools) and Operations.
Sessions are read from Claude Code's and Codex's own transcript folders (~/.claude/projects,
~/.codex/sessions) when the pane opens and when you press Read again.
Testing#
The Testing pane answers five questions, one view each:
| View | Answers |
|---|---|
| Changes, the default | Did my change break anything? The checks affected by the working tree, or by one agent session's edits, with each check's last result and whether it is older than the change |
| Coverage | What each part of the product verifies, as a grid of domains against aspects, and which kinds of testing are missing |
| Checks | Every declared check, as a tree of suites or a filtered list, with its state, counts, last run and where it runs |
| Failures | Every failing test in the latest results, since when it has failed, and whether it is unstable |
| Runs | Every verification run, newest first: who started it, what it is doing, and its typed failures |

Everything on the pane comes from what the build declares. Checks are the Verify nodes of the exported build model,
build/dependeasy/model.json, across every included build, and a suite's children are the nodes it includes or
consumes. Results are the files each check declares: JUnit XML for Gradle JVM, JavaScript and Android tests and for
device flows, aggregate.json for Hangar flows with a screenshot of each failed flow, k6's summary export and
Karate's summary. A suite's state is the worst state among its checks. Runs come from the control plane's ledger,
including the Gradle receipts written by a terminal, an agent or the build worker. Changes come from each build's
Git working tree or from an agent's transcript, and the kernel picks the affected checks. A small history file keeps
the last 30 outcomes of each check and the names of its failing tests.
Domains and aspects. Each check says which part of the product it verifies, what kind of testing it is and which system it tests:
- Domains: Mobile, Web, Desktop, Site, Server, Worker, Shared, Tooling and Framework.
- Aspects: Static, Unit, Integration, End-to-end, Performance, End-to-end performance, Load, Accessibility, Security and Packaging.
- System: the app or service under test, such as
appAndroidorreaktorServer.
A declaration wins: covers(Domain.Web, Aspect.EndToEnd) on a check, or a coverage argument on a load suite.
Otherwise Dependeasy infers them when it exports the model. The domain comes from the product part that owns the
check's project: a client that builds an Android or Apple artifact is Mobile, a service that deploys a worker fleet is
Worker, and a build that declares no product, such as Reaktor, is Framework. The aspect comes from the kind of check:
unit tests are Unit; Hangar, window and device flows, Karate suites and test environments are End-to-end; k6 is Load;
benchmarks, profiles and size budgets are Performance; type checks and dependency boundaries are
Static; and Apple archives are Packaging. A suite covers what its checks cover, a check without its own inherits from
its nearest declared parent, and an included build keeps what its own export declared. An empty cell in the Coverage
grid explains the gap and gives the line that would declare a check; for accessibility or performance on an app, it
offers DevTools audits until a check exists.
Running checks. Unit tests, Hangar flows, boundaries and type checks run with one click, on this Mac or on the
build worker. Device flows install the app on a phone, so they wait for approval. API and load suites wait for
approval and need the dev environment selected; against production they need production selected and a typed
approval. A waiting run shows its plan at the top of the pane, with Approve and Cancel. Rerunning failing tests passes
--tests to Gradle and -Dhangar.flows to Hangar flows; load, API and device checks rerun whole.
The inspector shows a check's recent outcomes, failing tests, what it runs, its result files and where it is declared, with Run, Rerun failing, Open report and Show in the build graph. A check's id is its node id in the build graph, so Show in the build graph selects it in the Graph pane's Build source.
The pane picks affected checks by module, because the build model does not carry compiled source sets yet: an edit
under jvmTest also selects the module's Android unit tests. Hangar refuses a build model larger than 8 MiB.
AI: bots, AI Gateway and Workers#
The AI pane manages the products' AI. Its first view is the bots:
- BudBot (BestBuds):
campaign-engagement-serviceplans and posts Circle prompts,bot-serviceanswers@bestbudmentions, and the text and image moderators screen what members send. - MannaBot (Manna):
manna-apianswers questions, searches the learner's knowledge graph and turns media into text; themannaweb worker calls it.
For each bot the pane draws one map of its callers, workers, gateway, models and data stores, and lists what needs attention: model calls that skip a gateway, a scheduled handler no cron triggers, a model whose calls keep failing. The other views are Gateway (the account's AI Gateways, their settings, a week of traffic and the newest requests, and a Create button that asks for approval), Workers (every worker that calls a model, with 24-hour traffic once Compute has read the cloud), Models (the Workers AI catalog and the models the code calls, with a week of usage and a Try panel; each try is a run in the ledger), On-device, Notebooks and Data (every store each bot can reach and the tables its code reads or writes).
Hangar reads Cloudflare with the Wrangler sign-in already on the machine. That covers the model
catalog, usage and gateway traffic. Reading or creating gateways needs an API token with AI Gateway ·
Edit, Workers AI · Read and Account Analytics · Read. The AI pane and
Cloud APIs check CLOUDFLARE_API_TOKEN first, then the first line of
the checkout root's config/cloudflare/cloudflare.token. Give the token every permission you
want those to have; each operation in Cloud APIs lists the permissions it needs.
One map style#
Every graph in Hangar is drawn by one renderer: the Graph pane's map, the Cloud map, the graph beside the DevTools preview, and the Data pane's schema map and Memgraph results. Frames group what belongs together (a feature, a service, a schema, a label), cards carry a coloured header and pins, wires run from what is provided to what uses it, and the camera, legend and selection work the same everywhere. A frame with many cards of one kind wraps into a grid instead of a tall column, and changing the detail level keeps the camera where you left it.
Hangar on its own map#
Hangar is a Reaktor app too. Pick Hangar in the app picker and the Graph pane maps the desktop app itself, live:
- A frame per pane. Each pane is its own route (
/graph,/devtools,/data, …), so each gets its own frame. The sessions and kernel services that only one pane uses sit in that pane's frame: the Cloud frame holds the cloud workspace and the Radar tunnel, the Data frame the database sessions and saved documents, the Auth frame the directory session, the Agent frame the conversation, the MCP inspector and the workspace agents. - Shared services in shared frames. The kernel's control plane, navigation, telemetry and the shell's pane state are used by many panes, so they sit together and wire out to each pane.
- Named ports. Every port on Hangar's own nodes carries a name, so a wire reads as
operations,cloudortelemetryrather than an unlabelled line.
What Hangar improves#
| Usual approach | What goes wrong | Hangar's approach |
|---|---|---|
| A separate tool for each part: an IDE, browser developer tools, a cloud console, a database client and a CI dashboard | Each tool knows one part of the product. Following a failing screen to the database behind it means copying names from one tool into the next. | One window whose panes are linked through the graph: a screen leads to its service, the Worker that serves it and the databases it touches. |
| Architecture diagrams and wiki pages | They describe the system on the day they were written and then drift. | The maps are read from the running apps and the deployed Workers. |
| Coding agents in a terminal | An agent cannot see what the developer sees, and its writes are hard to review before they happen. | Agents call the same kernel operations as the panes. A write that needs approval waits for a person, and every run is recorded. |
| A design tool kept apart from the code | Designs and the shipped app drift apart, and every change is made twice. | Studio edits the running app and writes the change back to the source. |
Limitations#
- Some panes need a Reaktor app. Graph, Studio and DevTools read a running app's graph and Surface tree, so they work only with apps built on Reaktor. Data, Cloud and Telemetry also work with services that are not.
- A phone needs a DevTools build. Release builds never carry the DevTools agent, so a phone running one does not appear.
- Hangar reads with the credentials on your machine. Panes that read the cloud, the databases or the deployed Workers see only what those credentials allow. Until Cloud has read the accounts, links between panes come from the repository's declarations.
- Edits go through agents. Graph and Studio edits are drafts. A coding agent writes them into the source, and the next run of the app shows the result.
Other shortcuts#
| Keys | Does |
|---|---|
| ⌘K | Search graph nodes, workspace operations and every menu action (with its shortcut) |
| ⌘[ and ⌘] | Back and forward through where you have been |
| ⌘J | Show or hide the bottom tool window |
| ⌘= ⌘- ⌘0 | Zoom in, out, actual size |
| ⌃⌘F | Full screen |