One place to see, answer and talk to every coding agent you run in herdr-core (or herdr) — routed by a System 1 model instead of a chat agent.
Reflex is a Mac menu-bar app in the spirit of One, with two deliberate differences:
- Terminal-native, subscription-native. Your agents (Claude Code, Codex, pi, Grok, …) keep running in their own TUIs inside herdr-core's terminals, on the plans you already pay for. Reflex never wraps them in an SDK, ACP or a chat API.
- System 1 routing. No LLM sits at the helm rewriting your words. A request goes to Jev (via jev-fabric) as typed questions over candidates Reflex built itself — which live session? which folder? is this a side question? does it continue an earlier conversation? — and comes back as keys and probabilities in about a second. Your text is delivered verbatim. Reflex decides where and when; your agents decide what.
The routing and dispatch daemon is written in TypeScript and ships as one
native binary built by Bun. Its safety rules are stated as
laws and proven with gdp-wired
(daemon/laws/).
Reflex.app (Swift) phone (web page)
edge tab · rail · ⌥⌥ bar · inbox · terminals paired once by QR, over Tailscale
│ HTTP + bearer token │
└──────────────┬────────────────────────┘
reflexd (TypeScript, one native binary)
actor ── core.step(State, Msg) → (State, dispatches) ← pure, proven
│ ticker · poller · indexer · http · exec
├── herdr-core socket (terminals, status, prompts, keys, machines)
├── herdr socket (agents still running there, while you move over)
├── the app's link.sock (herdr-core screens for the phone)
├── jev-fabric serve (one typed Jev call per request)
└── reflex-scan.sh / reflex-fork.sh (folder facts, /btw forks)
| Edge tab & rail | While agents work, a small tab at the right screen edge shows a spinning ring per working agent, amber for one waiting on you, green for done. Hover it (or rest on an empty edge for half a second) for the rail: inbox, your agents, Ask, Settings, ⋯. A question waiting on you sits beside it — answer with 1, 2, 3. Click the dots for every agent (grouped only when a project has several, its sub-folders with it; counts per state past 8 agents) in one scrolling list, narrowed by its state chips or by typing (⌫ edits, esc clears), with one click to its terminal. Prefer the menu bar? Settings → Edge & Rail → Menu bar: no edge, and no Dock icon except while a terminal window is open (so ⌘Tab finds it); Reflex's icon counts questions (amber) and working agents (blue), a click opens the question or every agent under it, a right-click the menu. |
| ⌥⌥ Ask bar | Double-tap Option and type. A few words search your sessions, most recently used first (⏎ opens that terminal), then earlier sessions and your folders that match (⏎ on a folder starts a new session there and opens it). A sentence or question becomes a request: a Raycast-style list of where it could go — live sessions, folders to start one in, earlier conversations to resume — with Jev's pick on top and a weight per row (pick a row yourself before Jev answers and the list stays as it was). ⏎ sends (the terminal stays closed); ⌘⏎ sends and opens it. ⇧⏎ or ⌥⏎ starts a new line; in a request of several lines ↑↓ move through the text and choose a row from its first or last line, while Tab and ⌃N / ⌃P always choose. /claude, /pi, /codex… pick the agent for new sessions, /new starts in a new folder, /btw asks on the side, /folder picks any folder, /resume lists earlier sessions (once you type, an open session that matches comes first). @work keeps everything on another Mac: the search, the request, Jev's candidates and any session it starts (typing @ lists your Macs). Paste or drop images: Jev routes on your words, the agent gets the image. A request you haven't sent stays in the bar when you click away (to copy the next image) or press ⌥⌥; Esc clears it. |
| It remembers | Where your recent requests went, so “also add tests for that” lands in the same session; and where you overrode Jev, so a similar request goes where you sent it. Kept on your Mac; Settings → Routing shows it and forgets it. |
| Unsure? It asks. | When Jev isn't sure, nothing is sent on its own: its best guess is highlighted for you to confirm. Without Jev at all (no key, not installed) the bar still works — you choose. |
| Questions | Every question an agent stops on — numbered options, Claude's AskUserQuestion (several questions, multi-select with a Next step, the review), arrow menus like the folder-trust prompt — becomes a card you can answer from the rail, the inbox or your phone. For Claude the rail's card reads the question from its session file: the whole question, each choice's description, which of several questions it is, and for a permission prompt what the command is for, with the command itself a click away. Choices with a preview say so; the preview stays in the terminal. |
| Inbox | Questions first, then updates: what each session said last (read from Claude's and pi's own session files, on the Mac it runs on, otherwise its screen, cleaned of terminal noise; a pi started outside Reflex is found by its folder and session name). Opening a session clears its notifications. |
| Resume | Earlier Claude, pi and Codex sessions (from their own session files) and Claude background sessions (claude agents) come back into herdr: ⏎ resumes or attaches, ⌘⏎ forks. Jev may offer one when a request clearly continues it — only when sure, and never over a live session (both proved). A background session nobody is watching notifies you when it finishes. Agents herdr-core lost — to a restart, a lost holder or a crash, not ones you quit or closed — stay in the rail under Stopped: Resume brings the session back in a new terminal (one started outside Reflex: its folder's latest), × forgets it. |
| btw | Start with btw to ask without interrupting: Claude Code gets its native /btw; pi (and Claude when it is blocked on a dialog) gets a headless, unsaved fork of its session. |
| Terminals | A real terminal on any agent (SwiftTerm, attached through herdr): full colour, keys and resizing go straight to its TUI. ⌘⌫ clears the line, ⌘← / ⌘→ go to its start and end, ⇧⏎ starts a new line in Claude Code and ⌃⏎ steers it, and ⌥ with an arrow, Home, End or ⌦ reaches the agent (pi's ⌥↑ brings back a queued message), as in Ghostty. ⌘-click opens a link, written out or OSC 8. ⌘V with an image (a screenshot, a file copied in Finder) pastes its path, which the agent reads as an image. One window per session. herdr gives a terminal to one attached client at a time: while another window or another Mac has it, the window shares it — shown live, and what you type goes in too (through herdr's API), while the other sets the size. Take Over makes this one the attached one; taken from, it goes back to sharing; the button in its header hands it over. A herdr-core agent's terminal is the core's stream straight into the window, with no client process in between: any number of windows, Macs and the phone see it and type into it at once, and the one you last typed in, resized or focused sets its size (no Take Over needed); if the core restarts for an update, the window reattaches by itself. Ghostty themes with light and dark slots, Geist Mono when installed. |
| Phone | ⋯ on the rail → Take Reflex with You: a QR code that works once and expires in ten minutes. On the phone: your agents, their questions with big answer buttons, updates, and a live terminal you can type into (keys for esc, tab, arrows, ⏎, ^C, ctrl). The terminal takes the phone's size, so the agent lays out for it instead of wrapping, and is drawn cell by cell (box drawing, wide characters and symbols line up); swipe to scroll Claude's or pi's own screen, or a shell's scrollback. While your Mac's window has the terminal it keeps the Mac's size, and Fit to phone takes it. Light, dark or system. |
| Other Macs | Agents on your other Macs show up with this Mac's, in the rail, the inbox, the Ask bar and terminals, tagged with the machine (work: ~/project). Add a Mac in Settings → Machines (or the optional onboarding step): type its SSH host, Test says what's in the way — Remote Login off or limited to some users, no key yet, a host key never seen, asleep or off the tailnet, herdr missing — and Add saves it with herdr machine add, the same saved machines herdr's own sidebar uses; Reflex keeps an SSH tunnel to each enabled one through your own ~/.ssh/config, keys and agent (Tailscale works: ProxyCommand tailscale nc %h %p) and reconnects when it drops. They wear the machine's name in lists and a badge on their dots, dimmed while its tunnel reconnects; Settings → Machines lists herdr's machines and how each is connected. Remove… on either backend's row asks before forgetting its saved connection; the agents and terminals keep running on that Mac, and it can be added again later. You can send them requests, answer their questions and open their terminals. Images in a request, or pasted into one of their terminals, are copied to that Mac first (over the same SSH, into its temporary folder), since its agent can only read its own files. Their folders and earlier Claude, pi and Codex sessions join the search and /resume, wearing the machine's name: Reflex reads them over the same SSH (its folder scan runs there under the same roots, relative to that Mac's home; session files are read at their start and end, only when they change; nothing is installed there). ⏎ on one starts or resumes it in that Mac's herdr. A request goes to this Mac's folders unless you start it with @work, which keeps it — and Jev's candidates — on that Mac. Headless /btw forks still run on this Mac only. Machines herdr-core added (hc machine add, or Settings → Machines while new sessions start in herdr-core) need no tunnel of Reflex's: the core dials them over your ssh, their terminals join its list (work/t7), and Reflex reads their folders and sessions and puts images there through the core. |
| Sandboxes | With the instabox CLI signed in, the box button in a terminal's header moves its claude, pi or codex session to a new instabox box (or any machine herdr-core reaches), keeping the conversation. The agent brings what its work stands on — this project, other repositories and their worktrees, a document from Downloads, notes and scratch folders, each at the same ~ path there — with the bundled reflex skill, then asks to move; your click was the OK. Reflex copies the conversation while the agent is still here, closes it between turns, sends the last lines, resumes it there and turns its window into the new one: the window says what it's doing throughout. The box starts from your template, a private snapshot in your own instabox account that your agent builds once from this Mac's setup (each local pi package becomes its published one; mcporter's commands and supercomputer get installed; no keys go in), and Reflex tells you when a file it was built from changes; Settings → Machines sets its size (2 to 32 vCPUs). A box stays up while its agents work or you type in its terminal: Reflex keeps renewing its time, and pauses it after 15 idle minutes (10 minutes for lanes) — even if an agent is waiting on your answer or an idle window is open — with its memory and programs kept. Waiting prompts stay in the inbox and rail; answering one or opening its terminal automatically resumes the box right where it left off. An agent can also ask on its own (reflex move self --to NAME): you approve it in its window, or let Settings → Machines approve them. @instabox in the Ask bar starts a session on a new box, and Start new sessions on makes it the default. |
| Lanes and pausing | An agent that wants work kept apart (several agents at once, a heavy loop) can give it a lane, an instabox box of its own: reflex lane new NAME --repo DIR. Made from an instabox box, a lane is a fork of it, with every repository, dependency and build already there, in seconds; from a Mac it's a new box with the repository copied. It's the agent's call, and a lane is a machine like any other, so the agent can start a few agents there (hc run --on lane-NAME), each in its own worktree. They show up in the rail, the inbox and Settings → Machines. reflex lane fetch NAME brings every branch the lane made back into the repository it came from, and reflex lane rm NAME refuses while anything there isn't fetched, pushed or committed. An agent on a box with no instabox login asks the Reflex that moved it, which makes the lane with its own. Any sandbox card in Settings → Machines can Pause (an instabox box: its programs kept, only its disk costs) or Turn Off, and Pause All does every one; each stays down until you Resume it. |
| Between machines | Any session moves between any two machines Reflex reaches — this Mac, your other Macs, an instabox box — through the Mac doing the move, which only needs to reach both: the box button offers Move to This Mac for a session elsewhere, and Settings → Machines → Move every session moves a whole Mac's work (retiring one: from the Mac you keep, move everything off the old one). The agent says what its work needs besides its project (reflex move self --to NAME PATH...: other repositories, worktrees, files from Downloads) and Reflex copies it from wherever it is, each to the same ~ path. A moved session keeps a line home over herdr-core's ssh link — from a sandbox behind NAT too: reflex home fetch PATH copies a file it finds missing from the Mac that moved it (you allow it in its window, or Settings does), reflex home ls looks, reflex home machines lists where it can go. Open In reaches another machine's folder too: a shell there in Ghostty, Terminal, iTerm or Warp, or VS Code, Cursor or Windsurf over ssh. |
| Keep awake | While agents work (or always), the Mac doesn't idle-sleep; on battery below 20% (adjustable) it lets go. |
- An Apple Silicon Mac on macOS 26 or later.
- herdr-core 0.1.14+ (
hc): new sessions start there by default. Agents report their own status to it (OSC 7501, the Program Status Protocol): Claude Code and pi do; Codex doesn't yet, so it shows without a status (working, done, its questions) until it does — the core never guesses from the screen. (Claude Code 2.1.321 first asks the terminal whether it listens, and afterclaude --resumethat goes unanswered, so it says nothing through 7501 and turns a glyph in its window title instead; Reflex reads working and idle off that glyph.) Reflex starts Claude and pi with a session id it chose (--session-id), so their question cards and earlier sessions line up from the first moment; a Claude you start yourself is matched through~/.claude/sessions/<pid>.jsononce it has a session. - herdr 0.9+ is optional: agents running there stay
listed, and you can still answer, open and close them, while you move over.
Settings → Setup → Move from herdr moves them: between turns, each ends in
herdr and resumes the same conversation in herdr-core, in the same folder and
on the same Mac (an agent still working moves once its turn ends). Settings →
Projects → New sessions start in picks herdr again. It needs
its agent integrations (
herdr integration install claude && herdr integration install pi). Reflex does not ship herdr-core, herdr or jev-fabric: its setup has an Install button for each, which runs that tool's own installer (it verifies its download and puts one binary in~/.local/bin). - At least one agent: Claude Code, Codex, pi, …
- For routing: jev-fabric and a System One provider key (TypeSafe's Jev by default, stored in your Keychain). Settings → Routing also offers OpenRouter, Vercel and SubQ Snap, which needs jev-fabric 0.7 or later; each provider keeps its own key. Setup shows the jev-fabric version you have and offers Update when a newer release is out or the provider needs one. Without them everything else works and you pick where requests go.
- Updates: once at launch and then daily, Reflex checks for newer herdr-core,
herdr and jev-fabric releases (their
latest.json, GitHub's latest jev-fabric) next to its own. One that's out shows like a Reflex update: a dot on the menu bar icon, a row in the menu bar panel, a button on the rail, and Update in Settings → Setup. herdr-core updates withhc update, which restarts the core in place: its terminals, and your agents, keep running. herdr updates withherdr update, but its running server keeps the old version until it restarts, and restarting stops every agent (herdr resumes the ones it can). So Reflex offers Restart herdr… and asks first; it never restarts herdr by itself. - For the phone: Tailscale on the Mac and the phone
(the Mac app, Homebrew or a headless
tailscaledall work).
Building also needs Bun 1.4 (curl -fsSL https://bun.sh/install | bash)
and Xcode / Swift 6 with its Metal Toolchain (SwiftTerm compiles a shader:
xcodebuild -downloadComponent MetalToolchain).
scripts/build-app.sh # reflexd + Reflex.app → build/Reflex.app
open build/Reflex.appThe first run walks you through it: herdr and its integrations, connecting Jev (and trying a request without sending anything), the folders to index, ⌥⌥ and the edge. Every check also lives in Settings → Setup.
scripts/release.sh # ad-hoc signed DMG: runs on this Mac; checks the
# app under the hardened runtime
DEVELOPER_ID="Developer ID Application: Name (TEAMID)" NOTARY_PROFILE=reflex \
scripts/release.sh # signed, notarized and stapled build/Reflex-<version>.dmgNOTARY_PROFILE is a notarytool keychain profile
(xcrun notarytool store-credentials reflex --apple-id … --team-id …).
-
scripts/test-terminal-links.sh— macOS regression tests for padded and wrapped file paths, URLs, OSC 8 links, and native ⌘-hover underlines. The build and test scripts applyscripts/patches/swiftterm-link-padding.patchto the pinned SwiftTerm 1.20.0 checkout: its implicit path matcher otherwise includes Pi's end-of-row spaces in the link. Usescripts/prepare-swiftterm.shbefore invokingswift buildorswift testdirectly; preparation is idempotent and stops if the patch no longer matches the dependency. -
cd daemon && bun run check— types, thenbun test tests: every law proven (ALL LAWS PROVEN;bun run lawsprints the table), and the tests below.scripts/build-app.shruns it before every daemon build. -
daemon/tests/screens.test.ts— the answers read off captured Claude Code screens (numbered, multi-select, review, arrow menu, idle); whether a sent prompt sits typed but unsent in the agent's input box, or never arrived (both are put right after sending); which herdr an agent on another Mac is reached through, its agents kept while the tunnel reconnects, and places there (work:/Users/you/VCS/app): their machine, path, how Jev reads them and which a request scoped to one machine may start in; earlier sessions by harness. Held to what the Bend daemon printed for the same cases (daemon/tests/golden). -
python3 scripts/test-agent-status.py— the real status adapter (daemon/src/herdr.ts) against a disposable socket (needs Bun, not herdr or a live agent). Checksagent.get {target}and its response shape: unlikepane.get, this advances background launches to readiness without opening a terminal. -
python3 scripts/test-core.py— the herdr-core adapter (daemon/src/hc.ts,daemon/src/term.ts) against a real, disposable core (its ownHC_SESSIONand state, never yours) with fake agents that report OSC 7501: which terminals are agents and what they are, status words, sessions from labels and from Claude's session file, a prompt refused while starting or blocked, keys, reads, a start and a close, and which backend each pane id goes to; then the core is stopped and started: which agents it lost are stopped (a kept terminal given a new shell, a finished one), and which aren't (an agent you quit, an exit, a kill, one brought back by name or session). -
python3 scripts/test-core-daemon.py— the real reflexd on a disposable core with no herdr anywhere: its API lists the core's agents, a prompt is answered, pi starts with the session id Reflex chose (no request: nothing reaches a model), closing it ends it, and its session resumes in the core (what moving an agent from herdr does once herdr has closed it); then the core loses it in a stop and start,/api/stoppedlists it, and resuming it and closing the lost one brings it back. -
scripts/test-corelink.sh— the app's stream client (CoreLink.swift) on a disposable core: framed calls, the first paint, typing, resizing, flow control past the first 256 KiB, a reattach; then the phone's viewer (PhoneLink.swift) asked as reflexd asks it. Needs the app built once. -
scripts/test-machine-removal.sh— portable regression for removing saved herdr and herdr-core machines: exact profile IDs, disconnected/disabled machines, failure recovery, tunnel cleanup and stale list responses. Uses disposable fake CLIs; never connects to a real machine or changes your saved profiles. -
scripts/test-phone-open.sh— macOS regression for concurrent phone-terminal opens: shared attachment, active-viewer upgrade, failure recovery and reopen. Uses the real opening code with a controlled core; no live agents or app build. A watchdog off the main thread catches a completed-task loop freezing the UI. -
scripts/test-size-ownership.sh— portable regression for two machines viewing one terminal: only typing, focus, or resizing transfers control. Read-only repaints cannot take it back; screen refreshes coalesce during resize bursts and stale async paints are discarded. Runs the real session lifecycle against a controlled core. -
scripts/test-resize.sh [command]— a window's view of a full-screen program (pi by default) on a disposable core, drawn into SwiftTerm as the app draws it: after resizes, a reattach over an older frame, another window taking the size (this one follows at it, then takes it back) and that window leaving, the view must match the core's screen row for row. These four takeREFLEX_TEST_HC=/path/to/herdr-corewhenhcisn't on PATH. -
REFLEX_PROFILE=<folder> build/Reflex.app/Contents/MacOS/Reflex— Reflex as a new user meets it: its own settings, support folder, Keychain entry and port. AddREFLEX_PATH=/usr/bin:/binto see it with nothing installed.
scripts/build-app.sh --daemon
REFLEX_TOKEN=dev REFLEX_SCAN=$PWD/scripts/reflex-scan.sh REFLEX_FORK=$PWD/scripts/reflex-fork.sh \
REFLEX_WEB=$PWD/web JEV_PROVIDER=typesafe TYPESAFE_API_KEY=... build/reflexd
curl -H 'authorization: Bearer dev' localhost:47823/api/state| Variable | Default | |
|---|---|---|
REFLEX_PORT / REFLEX_BIND |
47823 / 127.0.0.1 |
the app picks the bind for the phone remote |
REFLEX_TOKEN |
generated (printed once) | bearer token for every /api/* call |
REFLEX_CORE_SOCKET / HC_SESSION |
~/.local/state/herdr-core/default/default.sock |
herdr-core (the app works it out as the core does: HC_SOCKET, its config, XDG_RUNTIME_DIR) |
REFLEX_BACKEND |
core |
where new sessions start: core or herdr |
REFLEX_HERDR_SOCKET / HERDR_SESSION |
default herdr session | herdr, for agents still running there |
REFLEX_HARNESS |
claude |
agent for new sessions |
REFLEX_THRESHOLD |
6000 |
how sure Jev must be to act alone (basis points; the app fixes it at 60%) |
REFLEX_ROOTS / REFLEX_SCAN_DEPTH |
~/VCS / 6 |
where the folder index looks for git repos, and how deep |
REFLEX_FOLDERS_FILE |
— | extra folders to index, one per line |
REFLEX_JEV |
jev-fabric |
the jev-fabric binary |
REFLEX_DATA |
~/Library/Application Support/Reflex |
usage history, earlier sessions, pairing |
GET /api/state · POST /api/route {text, dry?, memory?, harness?, profile?} · POST /api/candidates {text, harness?, profile?, memory?, machine?} ·
POST /api/explain {text} · POST /api/send {pane, text} · POST /api/side {pane, text} ·
POST /api/spawn {cwd, kind?, profile?, text} · POST /api/resume {cwd, kind, profile?, session, mode, text} (mode resume, fork, attach or continue: the folder's latest) ·
POST /api/answer {item, key} · POST /api/dismiss {item} · POST /api/note {pane, agent, title, body} ·
GET /api/pane?id=&lines=&format=ansi · POST /api/keys {pane, key} · POST /api/text {pane, text} ·
POST /api/focus {pane} · POST /api/close {pane} · GET /api/stopped · GET /api/folders?q=&machine= · GET /api/sessions ·
POST /api/reindex {machines?} · POST /api/cancel {id} · GET /api/jev/ping · GET /api/health · POST /api/pair {code}.
A folder or earlier session on another Mac has the path <machine>:<path>
(work:/Users/you/VCS/app): spawn and resume start it on that Mac, through
herdr-core when the core has added it (else that Mac's herdr).
machine scopes routing to one Mac ("", the default: every live session, and
this Mac's folders and earlier sessions); /api/folders takes . for this Mac
only, and every Mac's without it.
profile is a harness profile's name (reflex profile: tom for
claude[tom]; none for your own): a session started or resumed in herdr-core
runs through reflex profile run (a bare harness gets that machine's default
profile) and is labelled reflex.profile; agents, stopped agents and earlier
sessions carry profile when they have one, and /api/candidates with a
profile offers only that profile's sessions.
Every call except health and pair needs the token.
- Candidates are built deterministically. Live agents come from herdr
(kind, folder, state, title, last lines of output). Folders come from the
index (
scripts/reflex-scan.sh: every git repo under your roots with its description, recent commit subjects, branch, activity age and how often you started sessions there; and their parents: a plain folder holding two or more repos, like~/VCS/work/acme, described by what it holds, for work that spans them; past twelve it is a collection, offered only when named or matched), ranked bydaemon/src/folders.ts: folders you name (or the start of whose name you write) are pinned first, the best match on top, then lexical matches, then recent activity. A joined word is one name:pi-fabricnames pi-fabric, not everypi-*folder. Earlier conversations are ranked the same way. At most 8 folders, 12 agents and 5 earlier conversations are offered. - What you did before. The app adds a few lines: where your last requests went, and your corrections for similar requests.
- One Jev call, typed questions:
target(which live session, or new),folder,side(is this a side question),resume(does it continue an earlier conversation). - Typed answer → decision (
daemon/src/route.ts): every key maps back to a candidate, or the request waits for you. The harness for a new session is the one you name in the text, otherwise your default.
Try it without sending anything: POST /api/route {"text": "...", "dry": true}
returns the decision; POST /api/explain returns the exact Jev request.
cd daemon && bun run laws proves every law in daemon/laws/ with gdp-wired
and prints ALL LAWS PROVEN only when each one is proven and checked by its
kernel, each law's broken variant (the bug it rules out) is refused, and each
rule agrees with the code it describes (fun.compare over every combination
of what a decision reads, rule.compare, or the rule run beside core.step
on random messages). The rules are the pure functions in daemon/src
(core.ts, route.ts, folders.ts) as gdp-wired states them; laws about
pending dispatches are proven from every state, not only those a run reaches.
daemon/tests/laws.test.ts also checks each law as first stated, on the real
functions over random inputs:
fired_are_ripe,kept_are_unripe,fire_partitions,cancel_removes— scheduled dispatches run exactly when due, once, and a cancelled one never.tick_runs_ripe,tick_keeps_unripe,enqueue_runs_nothing,answer_runs_nothing— only the clock runs anything.new_blocked_agent_asks,finished_turn_reports,answered_question_clears— inbox transitions.unsure_target_never_acts,unsure_folder_never_acts,unsure_resume_changes_nothing— when Jev is unsure, Reflex asks; it never acts.live_session_beats_resume— a request never resumes an old conversation over a live session that fits.blocked_agent_gets_no_native_btw— a side question never types into a blocked agent's TUI.rank_is_bounded— Jev is offered at most k folders.
The laws cover reflexd's policy. herdr, Jev, the harnesses, Bun and the
IO shell (main.ts) are assumptions. A rule is the decision the code makes,
written again in gdp-wired's terms; that the code makes it is a test (it
agrees with the rule on every combination, or on thousands of random runs),
not a proof.
- reflexd can type into your agents, so every API call needs a bearer token. The Mac app uses its own token, made fresh each launch.
- The phone gets its token by trading a one-time code (the QR) that expires in ten minutes; the QR never carries the token. The phone token works only while the phone remote is on; Sign Out Phones in Settings replaces it.
- The phone remote prefers Tailscale (WireGuard-encrypted, and private to your
devices). With
tailscaledin userspace mode reflexd stays on localhost and is reachable from your tailnet only. Without Tailscale it uses your Wi-Fi only when you allow it, with a warning: that traffic is unencrypted. - Everything stays on your Mac: routing memory (
memory.json), the index of earlier sessions (sessions.tsv), pasted images (a temporary folder). No telemetry. From your other Macs, Reflex reads their folders and the start and end of their session files over your own SSH, into the same files here (machines/<machine>.folders,sessions.tsv). - Routing sends Jev's provider your request with the short context Jev chooses
from: your live sessions' titles and last few screen lines, candidate
folders' names, descriptions and recent commit subjects, earlier
conversations' titles and last prompts, and where your recent requests went.
POST /api/explainshows exactly what would be sent. Images never are. - Side-question forks for Claude run read-only and are never saved.
- The pure modules (
model,core,route,folders,past,js,http,strindaemon/src) import nothing that does IO; IO lives inmain.ts,hc.ts,herdr.ts,term.ts,link.tsandhost.ts. One actor owns the state: every change iscore.step, one message at a time. - Text is read as reflexd always read it: by Unicode scalar (lengths, take and
drop), with ASCII whitespace and ASCII lower case, and counters wrap at 32
bits (
daemon/src/str.ts). bun run build:linuxbuilds a linux-x64 reflexd;docs/design.mdis the design language.- Dev hooks (
REFLEX_SHOW=bar|inbox|rail|agents|settings|onboarding|pairing|…) open a surface at launch for screenshots and tests.
MIT. The JSON reader in daemon/src/js.ts is a port of the
strict-json reader, Apache-2.0 (see daemon/vendor/strict-json's LICENSE
and PROVENANCE.md).