`hive-mind consensus` exits 0 and prints "Vote recorded (For: undefined…)" when the tool
refuses a vote (unregistered voter, double vote, Byzantine, already decided); only its
--format json output carries the tool's "error" for the runner. The shared-memory key
count no longer counts the broadcasts array it lists separately.
Co-Authored-By: RuFlo <ruv@ruv.net>
A new keyless view (👑, after Swarm) that reads what .claude-flow/hive-mind/state.json
records: the queen and her term, the consensus strategy with the fault tolerance and
quorum it implies (the CLI's own calculateRequiredVotes arithmetic), every worker with
its hive role and liveness (from .claude-flow/agents.json, where hive-mind spawn writes),
open proposals against their bar with raft timeouts and Byzantine voters, decided
history, and the shared-memory broadcasts.
- gfx/hive.ts: a honeycomb of hex cells, the queen's crown centred, workers ringed
clockwise; walls show each ballot on the picked proposal; one meter per proposal.
xterm-256 colours only. A cell flashes for 2 s after its vote/join/leave event and is
otherwise still (byte-identical frames); size depends on model and columns only.
- data/events.ts: one event per new ballot and per join/leave, tagged with the worker.
- Actions, each confirm-gated: vote through `hive-mind consensus` (the only path that
carries the hive token) as the next registered worker without a ballot; propose,
broadcast and spawn through `mcp exec` (no token needed). A second raft proposal in
the same term is refused before it is asked.
- Tabs: a view with key '' gets a Button without a hotkey; viewOf never matches ''.
The first tab row now runs to the last digit-keyed view, so Hive-Mind sits after Swarm.
- The swarm view's hive section is a short summary with "▸ open hive".
Co-Authored-By: RuFlo <ruv@ruv.net>
The field holds the keys, so the pick hotkeys would only type. A slash word in the field switches harness
and drops an ask the previous harness left on screen.
Co-Authored-By: RuFlo <ruv@ruv.net>
- The docked pane no longer goes compact. Compact was meant for an inline pane too short for its view, but it also
fired on the dock, so the taller pages (Swarm, Claims, Plugins, Learning, Terminal, x.ruv.io) lost the banner and
their block title while the shorter ones kept them. The dock scrolls, so it now always draws the full frame.
Even a compact inline pane keeps each page's title and description line.
- The Main Menu is back to the banner and the RUFLO BBS title, and the neon sign is the boot's alone. Rows go back to 32.
- The terminal's field takes the keys when the view opens and after a harness pick ($.ui.focus), so typing reaches it
instead of firing pane hotkeys (w, s, c…). Verified live: "where is the swarm" landed in the field.
Co-Authored-By: RuFlo <ruv@ruv.net>
After the first Enter the field is emptied, so the second Enter submitted empty text and read
'type something first' instead of running the confirmed command. An empty Enter on a pending
terminal ask now confirms it. Seen live while recording the console tour.
Co-Authored-By: RuFlo <ruv@ruv.net>
- Sessions: each agent keeps a conversation per project, so a follow-up carries the context.
- codex: by its thread id, via `codex exec --json` then `codex exec resume <id> --json`, read-only throughout.
- claude: by a session id the console picks, via `--session-id` then `--resume`, in plan mode with $1 a turn.
- Ids are saved per project, and only id-shaped strings come back.
- Streaming (stream.ts):
- codex JSON events show commands, file changes, tools and the answer.
- claude stream-json types the answer out from deltas, shows tool calls, and counts the cost.
- If a run ends with events but no answer drawn, the terminal says the format may have changed.
- Concurrency: codex and claude run side by side.
- The swarm harness (v) sends one question to both, and their lines are tagged.
- s stops all runs.
- Confirm once per session: the first message shows the exact command(s), and Enter again runs them. After that the session is live and Enter sends. /new or o starts over. ruflo commands are still asked every time.
- Scrollback wraps to the pane instead of truncating.
- Neon boot: each tube materialises out of random letters as it strikes, and the lit sign now and then glitches (a row slips, cells flash to noise).
Co-Authored-By: RuFlo <ruv@ruv.net>
- gfx/neon.ts draws ruflo/assets/ruflo-small.jpeg in cells:
- a pink rounded frame on clips and wires, yellow tube lettering, a cyan badge of waves, on a brick wall
- tubes are line characters on a lit cell, with a white-hot core
- glow is additive light on the wall, so the halo stays saturated
- Colours sit on the xterm-256 cube: Claude Code draws Rasters in 256 colours in some terminals, and off-cube dark tints collapsed to brown and grey there.
- Boot: the line connects, then the tubes strike one after another with a stutter, then hum, with a rare buzz.
- Main menu: the sign hangs lit and still in place of the banner (motion outside the boot must mean data).
Co-Authored-By: RuFlo <ruv@ruv.net>
- Boot: RUFLO materialises as big ANSI block art out of an animated ASCII field.
- A 4x4 ordered dither plus a left-to-right sweep decides when each cell resolves.
- Cells still resolving flicker as noise characters, with a dim plasma behind, and resolved letters get a drop shadow.
- This is the image-to-ASCII effect of tools like ascii-magic, done in cells: offline and deterministic.
- Moved to gfx/boot.ts.
- Main menu (0, 📟): where the cockpit lands in the BBS look (bare /ruflo, auto-open).
- "RUFLO BBS" block title, a host line, and three boxed menus (Swarm Commands, System Features, Other Commands) whose entries go where their keys go.
- A modem-style status bar with this project's live facts, a T - mm:ss clock, and a (1:1) prompt that takes a key or a name.
- b goes back to the menu; /ruflo <view> still opens that view.
- Auto-open no longer overrides a view a /ruflo command opened meanwhile.
Co-Authored-By: RuFlo <ruv@ruv.net>
- x.ruv.io view (w, 🛸): a Wildcat-style main menu of what the open federation offers; each read entry
puts its `ruflo federation …` command in the terminal. The registry (join steps, limits, default rooms)
and the roster come from the network, so they run only with federationNetwork on (new opt-in
registryProbe; smoke now expects two network probes).
- Terminal view (i, 💻): pick codex (exec, read-only sandbox), claude (-p, plan mode, $1 cap) or one
ruflo CLI command. The text reaches model harnesses on stdin, never as an argument. Enter shows the
exact command, Enter again runs it. Output streams through $.process.spawn into a scrollback that keeps
indentation and strips escapes and bidi characters. s stops a run; it is also capped at ten minutes.
- ActionSpec gains run/shows so the confirm row prints the real argv for a non-ruflo command.
Co-Authored-By: RuFlo <ruv@ruv.net>
An auto-opened pane does not hold the keys, and the frame loop only ran for a
focused pane, so the boot screen froze on its first line. The loop now also
runs while booting; when the boot ends the pane redraws once and an unfocused
pane's loop stops again. The bar now fills by about 2.9 s once the first reads
answer, and the boot lasts at least 3.2 s, so 100% shows before the view.
Tests: kit 51/51, specs 42/42, smoke 14/14.
Co-Authored-By: RuFlo <ruv@ruv.net>
With the bbs look, opening the pane plays a dial-up boot: ATDT ruflo.local,
RING… RING…, CONNECT 115200 / ARQ / V.42bis, the RUFLO logo drawing in a row
at a time (magenta to cyan, with the banner's scanline), "░▒▓ AGENT SWARM
CONSOLE", "> handshake ok · node <project>", and LOADING [▓▓▓░░░] 58% reads
6/10 with a blinking cursor. The bar mixes elapsed time with the reads that
have answered, so it moves before any read returns.
It runs at least 2.6 s, longer while the first read is still out, never past
6 s, and draws nothing else under it. `boot: false` turns it off; the plain
look never shows it.
Tests: kit 51/51 (a fresh pane shows only the boot raster; the view and
behaviour tests run with boot off), specs 42/42 (the sequence and the bar;
the 2.6 s / first-read / 6 s rule), smoke 14/14, validate --strict clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
#3614 changed ruflo-swarm's panel default from auto to command (so two panes
never auto-open) without bumping the version; installed 0.3.0 copies kept
auto, opened the Swarm pane beside the console and took its keys.
Co-Authored-By: RuFlo <ruv@ruv.net>
A cyberpunk/BBS look, on by default (`look: bbs`; `look: plain` keeps the
terminal theme's colours and plain rules, better on light backgrounds):
- Banner: RUFLO in a two-row half-block font, magenta to cyan, with a
scanline sweeping across it, "░▒▓ AGENT SWARM CONSOLE", the node, and a
blinking block cursor.
- Section headers: `▓▒░ SWARM ░▒▓══════ right` instead of `Swarm ──── right`.
- Palette: neon magenta headings, cyan values, matrix-green labels; amber
stays the attention colour.
- Tabs: the current tab is framed like a menu pick, `[2: 🐝 SWARM]`.
- Under the tabs, a sysop prompt: `>> 🐝 SWARM :: what it is for`.
- Status: `[LINK OK] ▸ sync 3s` (`[DIALING…]` before the first read).
The look is set once per render (`setLook`), so every view keeps reading
THEME.x; the plain look is byte-for-byte what 0.2.0 drew. Version 0.3.0 so
installed copies update.
Tests: kit 50/50, specs 40/40 (banner rows, gradient, blinking cursor; option
parsing), smoke 14/14, validate --strict clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
Emoji tabs in two rows (data views, then management views), the line naming
the current view, the band, busy agents breathing with a work-in-flight dot,
readable agent labels and claims cards, and clean agent logs.
Co-Authored-By: RuFlo <ruv@ruv.net>
Symbols like ⁂ ◫ ≋ were hard to read. Each view now has an emoji with default
emoji presentation (no variation selector, so it renders the same in every
terminal): 🏠 Overview, 🐝 Swarm, 📌 Claims, 🌐 Federation, 🧩 Plugins,
🧠 Learning, 🔬 MetaHarness, 💾 Memory, 💰 Cost, 🕒 Timeline, ✅ Approvals,
📡 Events, 🎯 Missions. An emoji is two cells, so the bar is two rows: the
nine data views (1-9), then the four management views (g q e m). From 140
columns every tab also spells its name; the line under the bar always names the
current view and says what it is for.
Tests: kit 50/50, specs 38/38, smoke 14/14, validate --strict clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude Code loads an installed plugin from its cache, keyed by version, and
'claude plugin update' only refreshes it when the version changes. #3625 (icon
tabs, band, work-in-flight animation, clearer swarm and claims, clean logs)
merged at 0.1.0, so every installed copy kept the 3.51.0 code.
Co-Authored-By: RuFlo <ruv@ruv.net>
A 95 s recording of the ruflo console in a live Claude Code session: overview,
swarm topology with agents at work, agent drill-down, a confirmed claim, the
approvals queue, missions, events, timeline, learning, MetaHarness,
federation, plugins, memory, cost and the palette. Asset at
docs/assets/ruflo-console-tour.gif (729 KB).
Co-Authored-By: RuFlo <ruv@ruv.net>
plain() removed the ESC byte but left the rest of each colour sequence, so the
drill-down's 'ruflo agent logs' tail read '[1mLogs for agent-…[0m'. Whole
CSI sequences now go first; the hostile-text tests assert the sequence is
gone, and still that no control or bidi character reaches the tree.
Tests: kit 50/50, specs 38/38.
Co-Authored-By: RuFlo <ruv@ruv.net>
The dock's width is the engine's to choose (it keeps where the divider was
left), so the current tab spells its name only from 110 columns; below that
it is its key and icon, highlighted, and the line under the bar always leads
with the icon and view name. The swarm table drops the type column when no
agent has a name that differs from its type, and a busy agent's work-in-flight
dot is two dots wide in full amber so it reads at a glance.
Tests: kit 50/50, specs 37/37.
Co-Authored-By: RuFlo <ruv@ruv.net>
Tabs: `1: Ovr◂ 2: Swm 3: Clm …` becomes an icon per view (one terminal cell,
no emoji) with the current tab's key, icon and name in the heading colour —
`1:⌂ 2:⁂ Swarm 3:⚑ 4:⇄ 5:◫ 6:✦ 7:⚙ 8:▤ 9:$ g:◷ q:✓ e:≋ m:⚐` — and one dim
line under the bar says what the current view is for (the drill-down says how
to go back).
Swarm: one label per agent (name, else type, with a short id only where two
read the same: `coder·i1a3`), the type column only when it differs from the
name, `#od014i` instead of the full id, and a one-line legend.
Animation stays data, never decoration (the graph's rule): while ruflo has an
agent busy, a dim amber dot keeps travelling from the leader down its edge and
the node (◉) breathes; idle agents are still. Test: a busy agent moves with no
event and stops when it goes idle; with every agent idle only the leader's
heartbeat moves before an event.
Claims lanes: a card leads with the task's title (from the task store, also
for claimed tasks), then `owner · #shortid`, clipped with an ellipsis; empty
lanes shrink to their title and the room goes to lanes that hold cards.
Tests: kit 50/50, specs 37/37, smoke 14/14, validate --strict clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
hook-handler.cjs changed, so its signed hash did too (helper-signing.test.ts
failed on the old hash). Re-signed with the ruflo-helpers-signing-key; all 5
helper hashes match; root and packaged hook-handler.cjs are identical.
Co-Authored-By: RuFlo <ruv@ruv.net>
Review follow-ups on the destination pinning:
- null and "" now mean "no assertion" (MCP clients commonly send null for
optional fields) instead of throwing; the destination still comes only
from server configuration, so this cannot widen anything.
- Operator configuration may name a plain-HTTP loopback service
(localhost, 127.0.0.1, [::1]) for a local or self-hosted gateway/LLM.
Public http:// and lookalike hosts (localhost.attacker.example,
127.0.0.1.nip.io, 10.0.0.1) stay rejected. An argument must still equal
the configured base exactly, so it can never select a loopback port the
operator did not.
- Note: this supersedes ADR-125's "tool argument beats env var" precedence
for RUFLO_X_GATEWAY_URL and SERAPHINA_METALLM_URL; arguments are now
assertions only.
Tests: mcp-service-url-security 37/37 (new: absent overrides, loopback
config and port mismatch, lookalike hosts; 0/false/{} still rejected),
x-federation-tools passes; CLI build clean; env-var precedence audit ok.
Co-Authored-By: RuFlo <ruv@ruv.net>
Before: `◆ ruflo · hierarchical 0/0 busy · 7466 patterns · → coder · $1010.66 console`
After: `◆ ruflo · 2 to approve (q) · ⚠ 1 alert · swarm, no agents · $1,011 this session · routed → coder · +12 learned open console`
- Leads with what needs a person: approvals waiting and warn/bad alerts,
in the warning colour. Info alerts (a claim held for days) stay in the pane.
A stale marketplace clone is one of those alerts, so it is no longer a
separate word.
- The swarm in words: "3 agents idle", "1/3 agents busy", "swarm, no agents".
Never "0/0 busy"; the topology name is config and lives in Swarm (2).
- Spend is labelled ("this session"), whole dollars above $100, and hidden
until it reaches a cent.
- "routed → coder" names the router's last pick.
- Learning shows as growth since the console loaded ("+12 learned"), not a
running total that never tells you anything new.
- Parts are ordered by importance, so a narrow band drops the least useful.
- The button says "open console" and only shows while the pane is closed.
Tests: band.spec.ts (5), kit behaviour test updated; console kit 50/50,
ruflo-mods and ruflo-swarm 0 fail, smoke 14/14, validate --strict clean.
Seen live in ~/projects/ruflo: `◆ ruflo · 1 agent idle · 26 claims · +1 learned`.
Co-Authored-By: RuFlo <ruv@ruv.net>
Validate configured HTTPS bases and matching compatibility arguments before I/O, reject redirects, and retain operator-only destination selection for federation and Seraphina tools.
Prepared by Codex in Dragan’s authorized session.
Require Claude Code PreToolUse exit 2 across shipped and generated handlers, with regression checks for command shapes and mod ownership.
Prepared by Codex in Dragan’s authorized session.
117/117 verified on all three (every marker-cited dist built before regen),
drift 0, Ed25519 signature valid, no newly regressed fix in history.
Co-Authored-By: RuFlo <ruv@ruv.net>
The ruflo repo's own .claude/settings.json now enables the three mod plugins
from the ruvnet/ruflo marketplace, plus CLAUDE_CODE_ENABLE_FUNCTION_HOOKS for
Claude Code 2.1.277-2.1.286. Same keys `ruflo mods install --scope project`
writes; formatting of the rest of the file left untouched.
Co-Authored-By: RuFlo <ruv@ruv.net>
#3614 shipped ruflo-console on main, so `ruflo init` and `ruflo mods install`
now install it like ruflo-mods and ruflo-swarm. A marketplace clone without
it is stale (a doctor failure with the exact repair), never "pending".
- MOD_PLUGINS: ruflo-console@ruflo required: true.
- `ruflo mods install` points at /ruflo (and /ruflo mods) instead of /ruflo-mods.
- ADR-406 catalog: the source scan now reads `$.command.registerCommand`, and
the engine parser splits a `command=a|b` matcher into its names and treats
`command=?` (a matcher chosen at run time) as naming nothing, deferring to
the source scan for that plugin. Without this, regenerating after #3614
either failed schema validation (`ruflo|ruflo-console`, `?`) or dropped the
five /ruflo-swarm-* commands. Regenerated: 241 -> 243 entries (+/ruflo,
+/ruflo-console), none removed; the console's catalog copy is synced.
- Tests and the e2e-mods-init script now expect ruflo-console installed.
Co-Authored-By: RuFlo <ruv@ruv.net>