No description
  • OCaml 51.1%
  • Python 18.9%
  • Rust 15.6%
  • Svelte 8.2%
  • TypeScript 4.2%
  • Other 1.9%
Find a file
kossLAN 520998b672
web: a new look, a synced theme, flat chat bands and a bare input bar
- Geist and JetBrains Mono, a 14px base with 15px messages, a radius
  scale, light-dark() tokens, one form-control base and fading popups;
  fewer rules between rows.
- A theme setting (System, Light, Dark) in server_settings, saved with
  the Save bar and cached for the first paint; Dark is a neutral carbon palette.
- Settings in tabs at the top, its fields as rows; ExecutionNodes split
  out of the page.
- Messages without bubbles: the user's in a full-width band, right
  aligned; tool calls open into a box with their rows and output;
  disclosure chevrons on the right, shown on hover.
- The input bar outside the scroller, with no rule or ground, a hint
  with the Enter key, a monochrome send that stop replaces, and the
  access warning as a full-width banner.
- The select ring drawn over the pane's content; the side panels'
  current row ringed inside its row.

Co-Authored-By: Qwen 3.8 27B <noreply@qwen.ai>
2026-11-23 15:30:53 -05:00
backend engine: B50's arm reads ending's drain mark or a drain running as the harness returns, so a drain started as the harness closes for tools a call changed is recorded to resume again; ending's write in an if; drained's doc gives the mark (the Opus gate's F1 to F3; main's rulings); test_engine ending_then_drain; the D90 note, unasked_stop's comment and ending's doc say both 2026-11-18 10:34:08 -07:00
bin drain: the restart after a drain holds until the user resumes or doesn't (D152): drain/resume, drain/discard 2026-11-12 09:54:31 -07:00
core web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
design design: C3 round 5's build record with Main's note; D187's round-5 lane entry (main's ruling and the user's answers); ledger B90's second route closed in the TUI, B102 (the changedFirst window, open) 2026-11-23 00:42:25 -07:00
gen web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
json C3, round 5: review A-F3, the fixtures cover every variant of every generated enum 2026-11-21 18:32:44 -07:00
net limits phase 1: the structural core, a hand-off to the implementer (D147) 2026-11-12 04:36:41 -07:00
nix web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
node D179 N1: the server's seven chunk decodes and the node's write chunks through Node_base64; output_files expects its exception 2026-11-18 08:00:53 -07:00
packages core, server: a notice's kind (typed seams N, the structural core): History.notice and Bubble { kind }, Legacy_notices' text tests and the store's upgrading decoder at its ten decode sites, every writer giving its kind; readers and tests compile as before, oracle_dump --typed checks each kind written against Legacy_notices 2026-11-17 17:52:40 -07:00
ppx C3, round 5: review A-F3, the ppx's README and an Enum case's map 2026-11-21 18:39:35 -07:00
providers radiance-listing, the Sonnet review's findings: a capabilities that isn't an object read as none, the image read split out, the test's image: false told from none and the host's own fields' precedence tested; provider-plugins.md names Radiance's listing 2026-11-22 19:45:21 -07:00
rust web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
sdk model roles step 1 core, on the core check (B8): an agent's model or account given ends the role, the user's is what the picker sends; a role pick marks model_by; start clears a role; agents.move's role_ended and user_pick.role; the spawn result's texts; §9 answers 2026-11-17 00:08:51 -07:00
server web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
share/bubble/packages metrics: the bundled package - metrics_read, its fold library, the fold and tool tests, ScopeLines 2026-11-16 08:33:23 -07:00
test web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
tools web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
web web: a new look, a synced theme, flat chat bands and a bare input bar 2026-11-23 15:30:53 -05:00
.gitignore C0: the Rust workspace and its toolchain, the rust check step and shape's .rs count 2026-11-20 04:45:35 -07:00
AGENTS.md C3, round 5: review A-F3, the fixtures cover every variant of every generated enum 2026-11-21 18:32:44 -07:00
dune C0: the Rust workspace and its toolchain, the rust check step and shape's .rs count 2026-11-20 04:45:35 -07:00
dune-project build: expose suffix-free programs in Dune install layout 2026-11-06 07:04:27 -07:00
flake.lock C2 (packet a): the TUI's scaffold — rust/tui and every dependency c2-spec §3 lists, crane and the x86_64 musl target with .#bubble-tui, and the rust step's BUBBLE_BIN 2026-11-20 07:12:49 -07:00
flake.nix C2 (packet a): the TUI's scaffold — rust/tui and every dependency c2-spec §3 lists, crane and the x86_64 musl target with .#bubble-tui, and the rust step's BUBBLE_BIN 2026-11-20 07:12:49 -07:00
README.md README: a Windows edit replaces the file itself, not only its security metadata (anytime P27.9, review F1) 2026-11-16 11:57:24 -07:00
RESUME.md RESUME: the standing approval as D158 (A6) and roles.md define it; repeated rules point to the tag and AGENTS.md 2026-11-16 05:06:21 -07:00
shell.nix C2 (packet a): the TUI's scaffold — rust/tui and every dependency c2-spec §3 lists, crane and the x86_64 musl target with .#bubble-tui, and the rust step's BUBBLE_BIN 2026-11-20 07:12:49 -07:00

bubble

An agent server. You talk to agents in a web UI, and they run commands on nodes: small bubble-node processes that dial the server from the machines and accounts the agents work in.

This page sets up a server and a node with Nix. The design and its decisions are in design/; developing bubble is in AGENTS.md.

Packages

The flake builds these, for x86_64-linux and aarch64-linux:

Package Holds For
bubble bin/bubble, the server and its CLI; bin/bubble-node; the tool packages the server, and nodes on hosts with Nix
bubble-web the web app the server's UI; bubble serves it by default
bubble-node-static bin/bubble-node, static (musl) nodes on hosts without Nix
bubble-node-windows-aarch64 bin/bubble-node.exe a node on Windows 11 on ARM64; cross-built, and checked only on x86_64-linux

The commands below use flakes: enable them with experimental-features = nix-command flakes in nix.conf, or pass --extra-experimental-features 'nix-command flakes'. The flake's httpun-ws input is fetched over SSH from git.outfoxxed.me, so building needs SSH access to that forge. There's no binary cache: everything builds from source.

A scratch server and node

From a checkout, this gives a shell with bubble, bubble-node and bwrap on its PATH:

nix shell .#bubble nixpkgs#bubblewrap
mkdir -p ~/bubble-scratch
bubble serve --db ~/bubble-scratch/bubble.db

The server keeps its other state beside the database. Its flags:

  • --host IP and --port PORT: where it listens, 127.0.0.1:7340 by default.
  • --static DIR: the web app to serve. The package defaults it to bubble-web; a dev build is web/build.
  • --allow-host NAME: a host name browsers may reach it by, besides IP addresses and localhost, such as a TLS proxy's. Repeat it for each.

bubble serve --help lists the rest.

Pair your browser. In a second such shell, print a single-use token, good for 15 minutes:

bubble pair --db ~/bubble-scratch/bubble.db

Open http://127.0.0.1:7340, enter the token, and Pair. Add a model provider's account in Settings, under Models & connections.

Run a node, from the directory its commands should start in:

bubble-node --name scratch ws://127.0.0.1:7340/node

It shows in a thread's nodes sidebar, where you bind it to the thread. Binding is sandboxed by default, which needs bwrap on the node's PATH. It runs commands as you, and redials if the server goes away.

/node is unauthenticated: anything that reaches the server's port can register as a node and receive its commands. Bind --host to loopback or to a trusted network's address, such as a WireGuard or Tailscale IP, never 0.0.0.0. A TLS proxy doesn't authenticate /node, and one that forwards every path reaches it even on a loopback-bound server: block /node there (below).

NixOS

The flake's nixosModules.default runs the server, and nodes as users. In your system's flake:

{
	inputs.bubble.url = "git+ssh://git@git.outfoxxed.me/bubble/bubble";
	outputs = { nixpkgs, bubble, ... }: {
		nixosConfigurations.HOST = nixpkgs.lib.nixosSystem {
			modules = [ bubble.nixosModules.default ./configuration.nix ];
		};
	};
}

Leave bubble's nixpkgs its own, without follows: its packages are built and checked against it. Its inputs come over SSH, so run nixos-rebuild switch --sudo --flake .#HOST as yourself, not under sudo, which fetches as root without your key; or give root a key for the forge. An older nixos-rebuild without --sudo takes --use-remote-sudo.

A server, with a node for the user alice dialing it:

services.bubble = {
	server.enable = true;
	nodes.alice-node.user = "alice";
};

The server listens on 127.0.0.1:7340 and keeps its state in /var/lib/bubble. Pair a browser with:

sudo -u bubble bubble pair --db /var/lib/bubble/bubble.db

On a headless server, reach the UI through ssh -L 7340:127.0.0.1:7340 HOST, or a TLS proxy that forwards Host and X-Forwarded-Proto, with its name in server.allowedHosts.

The proxy must not forward /node. /node is unauthenticated (see above): through the proxy, anyone who reaches it could register as one of your nodes and receive its commands and files. Nodes connect to the server's own address on a trusted network instead. Block the path at the proxy, for example respond /node 403 in a Caddy site, or location = /node { return 403; } in nginx.

The options are in nix/module.nix, and the design in design/nix.md §10.

Logging in with OIDC

With OIDC, a browser logs in through your identity provider instead of carrying a pairing token, with the provider's own MFA. Pairing keeps working beside it: it's the recovery path, and a way in that doesn't depend on the provider. A login makes an ordinary device that lasts --oidc-session-days (30 by default) and then ends, its sockets closing and the login page coming back. Everything else is as it was: a device logged in this way can do what a paired one can, including pairing others. A device paired from it is an ordinary paired device: it doesn't expire with the login, and taking your account or group away at the provider doesn't remove it; remove it in Settings → Devices.

At the identity provider, register a client for bubble (a web client, authorization code flow) whose redirect URI is exactly <public-url>/auth/oidc/callback, for example https://bubble.example/auth/oidc/callback. A confidential client has a secret; a public one needs none (bubble always sends PKCE, S256).

With flags:

bubble serve --db ~/bubble-scratch/bubble.db \
  --public-url http://127.0.0.1:7340 \
  --oidc-issuer https://idp.example/application/o/bubble/ \
  --oidc-client-id bubble --oidc-client-secret-file /run/secrets/oidc-client-secret
  • --public-url URL: bubble's external origin, no path. It's the redirect URI's base, and its host counts as an --allow-host. Required with OIDC: a redirect URI must never come from a request's Host.
  • --oidc-issuer URL: the issuer, exactly as its discovery document states it (Authentik's ends in /). Turns OIDC on. It must be https, or http on a loopback host for tests.
  • --oidc-client-id ID, and --oidc-client-secret-file FILE for a confidential client. Without the file, bubble reads oidc-client-secret in $CREDENTIALS_DIRECTORY when systemd set one (the module's way); with neither, it's a public client.
  • --oidc-name LABEL: the login button's label; the issuer's host by default.
  • --oidc-session-days N: how long a login lasts, 1 to 400, 30 by default.
  • --oidc-require-claim NAME=VALUE: admit only logins whose claim NAME is the string VALUE, or a list holding it, such as groups=bubble. Without it, anyone the provider authenticates may log in — restrict the client at the provider itself, or set a rule. The strongest is sub=<your id>, which the provider never lets anyone else have; groups=… suits a provider whose groups you manage, and hd=example.com a Google Workspace domain. email=… is only as strong as the provider's check of the address, which bubble doesn't read (email_verified): Google vouches only for @gmail.com addresses and its Workspace domains, so with Google an email= rule should name a @gmail.com address.

With the module, under services.bubble.server:

services.bubble.server = {
	publicUrl = "https://bubble.example";
	oidc = {
		issuer = "https://idp.example/application/o/bubble/";
		clientId = "bubble";
		clientSecretFile = "/run/secrets/oidc-client-secret";  # a path outside the store
		requireClaim = "groups=bubble";
	};
};

The secret file stays where it is: the module passes it to the unit as systemd's LoadCredential, so it's in neither the store nor the unit's environment. oidc.name sets the button's label, and oidc.sessionDays the session length.

A public login page still doesn't guard /node. If you serve bubble through a TLS proxy, the proxy must not forward /node (see above): it's unauthenticated, so anyone who reaches it through the proxy could register as a node. Block it there, for example respond /node 403 in a Caddy site, or location = /node { return 403; } in nginx, and keep nodes on a trusted network.

The design, the notes on each provider, and what phase 1 leaves out are in design/auth.md §3.

A node on another machine

The server must listen on an address the node can reach, on a trusted network only (see above). With the module, open its port on that network's interface alone, not with server.openFirewall, which opens it on every interface:

services.bubble.server.host = "100.64.0.1";  # this machine's Tailscale IP
networking.firewall.interfaces.tailscale0.allowedTCPPorts = [ 7340 ];

With Nix there, run the node straight from the flake, with nothing to install:

nix shell git+ssh://git@git.outfoxxed.me/bubble/bubble#bubble nixpkgs#bubblewrap -c bubble-node --name laptop ws://SERVER:7340/node

That machine needs flakes enabled, and your SSH key and a known_hosts entry for git.outfoxxed.me, for bubble and its httpun-ws input. It builds from source. A checkout's path works in place of the URL.

The node lasts as long as that command. For one that stays up, use the module's node unit on NixOS, with services.bubble.nodes.<name>.url, or a service of your own.

Without Nix, build bubble-node-static for the target's system on a machine with Nix, copy its bin/bubble-node over, and run it the same way. For an ARM target, that's .#packages.aarch64-linux.bubble-node-static, which needs an aarch64 builder.

nix build .#bubble-node-static
scp result/bin/bubble-node laptop:

A node on Windows

On Windows 11 on ARM64, the node is bubble-node.exe, cross-built on Linux. It works as a node elsewhere does, with these differences:

  • It has no sandbox. Commands, and nodes opened inside it (launch sandbox: "none" only), run with your account's full rights.
  • Commands are PowerShell 7, not sh.
  • There's no glob, grep or MCP servers on it. Agents search with PowerShell instead.
  • A command can't outlive its own run: everything it starts ends with it. That doesn't hold for what something else starts on its behalf, such as a service, Task Scheduler or WMI.
  • An edit or write replaces the file itself: it takes its folder's access-control list and loses its alternate data streams (Zone.Identifier among them), hidden and system attributes and hard links.

Build it, and copy it to the machine:

nix build .#bubble-node-windows-aarch64
scp result/bin/bubble-node.exe laptop:

It's unsigned, so Defender may scan it on first run, and Smart App Control, if it's on, blocks it.

It needs PowerShell 7.4 or later, from Microsoft's ZIP, first on your PATH. Use the win-arm64 ZIP from PowerShell's GitHub releases, not the Store's PowerShell: that one escapes the node's cleanup, so the node skips it. In PowerShell:

$ps = "$env:LOCALAPPDATA\Programs\PowerShell\7"
Expand-Archive PowerShell-7.7.0-win-arm64.zip $ps
[Environment]::SetEnvironmentVariable('PATH', "$ps;" + [Environment]::GetEnvironmentVariable('PATH', 'User'), 'User')

Put the node in %LOCALAPPDATA%\Programs\bubble, and run it from a new prompt, with the same trusted-network rule as above:

& "$env:LOCALAPPDATA\Programs\bubble\bubble-node.exe" --name laptop ws://SERVER:7340/node

Ctrl+C, or closing its window, stops it, ending what it runs.

For one that stays up, register a logon task. It opens the node's window at each logon. Task Scheduler's defaults would stop it after 72 hours, and on battery, so this turns both off:

$exe = "$env:LOCALAPPDATA\Programs\bubble\bubble-node.exe"
$action = New-ScheduledTaskAction -Execute $exe -Argument '--name laptop ws://SERVER:7340/node' -WorkingDirectory $HOME
$trigger = New-ScheduledTaskTrigger -AtLogOn -User (whoami)
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit ([TimeSpan]::Zero) -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
Register-ScheduledTask -TaskName 'bubble node' -Action $action -Trigger $trigger -Settings $settings

Start-ScheduledTask 'bubble node' starts it without logging on again.

For a wss:// server whose certificate comes from a private CA, import that CA's root into your own store: Import-Certificate ca.crt -CertStoreLocation Cert:\CurrentUser\Root.