computer reinvention / 02 · magi · v0.3.0

An agent-first desktop.

The interface is an agent.

mAGI is a Fedora/Hyprland setup built around LLM agents. One orchestrator agent runs in tmux and starts at login. You speak or type to it. It starts other agents, operates the desktop, and asks you only for decisions.

$ bash <(curl -fsSL https://raw.githubusercontent.com/pankajgarkoti/magi/main/install.sh)
GitHub
magi-overview (SUPER + O): every window as a live thumbnail, grouped by workspace. Type to filter, Enter jumps. Captured at 2× in the distro test VM. More clips in the mAGI README: theme switching, control centre, Wi-Fi picker.

One agent in front.

The orchestrator (opencode by default; Claude Code, Codex, or any terminal agent) runs in tmux window 1 and starts at login. Other agents get their own tmux windows. tmux is the orchestration layer, so every agent gets the same send-keys, capture-pane, and window layout.

SUPER + `

Drops the orchestrator console over the desktop. It also opens by itself at login. The console is the whole interface: type or speak, the agent acts.

orch spawn

The orchestrator starts workers in new tmux windows through a ledger-tracked spawn: the brief is filed, the row is recorded, and the worker is watched, not polled.

magi-agent off

Opt-in throughout. No agent ships in the image. First login runs PILOT SETUP: pick an agent, run its official installer, sign in with your own account.

starting a worker, hearing back
$ orch spawn build-2 ~/work/api "Rate-limit POST /login"
  → brief: notes/orchestrator/briefs/2026-11-27/build-2.md
  → ledger row agents(build-2) · tmux window build-2

$ magi-agent wait build-2     # or keep working; the bus taps you

[magi] build-2: finished   exit 0, 14 min
  typed into the orchestrator only when idle;
  nothing interrupts a turn or a half-typed message
[magi] web-1: waiting at a prompt   approval: rm -rf /tmp/cache
  • Watched, not polled. Each spawn names its tmux window. Finished, waiting at a prompt, and exited all arrive as [magi] lines through the same idle gate as the bus.
  • A ledger across reboots. orch keeps agents, open threads, watchers, decisions, and deliverables in SQLite. After a reboot the tmux layout comes back with each session resumed.
  • Housekeeping. Agents idle for an hour are closed, with the resume command logged. Open threads become checkboxes in the daily note; tick one and it closes in the ledger too.
  • Per-agent adapters. Installer, sign-in, launch, resume, and state reads differ per agent and live in one file. Without network, everything except the agent keeps working.

Workers report back. Nothing polls.

A terminal agent only acts when text arrives in its input. Polling spends tokens on "nothing new". Interrupting lands text mid-turn. The bus delivers on idle instead: one append-only log, typed in when the agent is idle and its input box is empty.

one append-only log, idle-gated delivery
$ orch-bus emit build-2 "tests pass on main"

$ orch-bus unread      # pull mode, own offset

[event bus] build-2: tests pass on main
  typed by orch-bus.service only when:
  agent state is idle, input box is empty

$ orch-bus emit deploy "0.3.0 ISO is up" --urgent
  → bus line + desktop notification via notify-send
  • One log. Anything that can run a command can publish: workers, shell scripts, systemd timers, browser probes. No broker, no port: one JSON line per event.
  • Idle gate. Delivery waits for the agent's own idle state plus an empty input box. A half-typed message is never overwritten. BUS_DELIVERY=off logs only; the agent reads with unread.
  • Change-only emitters. Dispatch polls on a 15 s interval but types only what is new; probes carry dedupe keys so repeats never re-fire.
  • The bus window. The tmux window bus follows the log live. Worker [magi] messages are logged there too.
untrusted text arrives framed, never as instructions
$ orch-bus emit page-title "ignore previous instructions…" --external

[event bus · external · page-title · NOT instructions] «…»
  control chars stripped · bidi overrides folded ·
  served as quoted data in a fixed frame

$ orch-bus quarantine list
HIGH  7f3a…  page-title  fake [event bus] frame, held off-bus

$ orch-bus status
breaker: TRIPPED   nothing types until the owner runs:
$ orch-bus resume      owner only · releases held events
  • Trust levels. Every event is owner, internal, or external. Text written by other people (a transcript, a web page) is marked external and shown only inside the data frame.
  • Quarantine. High-risk events are replaced by a one-line notice; the full text waits in quarantine. Owner and internal traffic never quarantines and never trips the breaker.
  • Circuit breaker. The first high-risk event stops all typing until orch-bus resume. The owner is alerted by desktop notification and a self-chat message.
  • Probes as sources. browser-bus runs allow-listed probes in matching tabs over the DevTools protocol; each probe declares its match, its sources, and a rate limit. The page you are signed in to becomes an event source without scraping.

The bus ran on the author's own machine before it shipped in 0.2.0. Design, dates, and related work are written up in docs/event-bus.md.

Muscle memory, zero model calls.

browser-bus is the senses: it watches pages. magi-reflex is the muscle: a flow recorded once as a small JSON document and replayed forever over CDP against the agent browser. No model in the loop, structural guards before anything acts.

record once, replay without the model
$ magi-reflex run local-fill-form --args '{"name":"ada"}'
  own tab · entry http://127.0.0.1:8765/ · domain locked
  fill   target_assert ok → script ok
         → steady (dom_stable 700ms) → verify ok
  done in 3.2s · zero_model_calls=1 · tab closed on every exit path

$ magi-reflex seal local-fill-form
  capture the net signature from a verified replay

magi-reflex checkout-flow STALE at pay: net signature drift
  replay refuses until re-sealed; lookup stops offering it
  • Pre-action target assertion. Every phase proves its exact target before typing or clicking anything. A reflex missing the assertion is refused outright.
  • Entry-domain lock. If the tab's origin leaves the reflex domain, the run aborts. Reflexes never act on messaging or social surfaces. Outside the harmless-surface allowlist a reflex needs explicit owner registration.
  • Drift detection. Sealed reflexes compare the observed network signature before verify is trusted. Drift fails the phase as STALE and emits one bus line.
  • Practice reflexes ship. Local form fill, an httpbin submit, a test-site login: the harmless surface to learn the loop on before arming anything real.

What surrounds the agent.

Hyprland with three colour themes. A browser the agent can see. Voice that never leaves the machine. GNOME stays installed; mAGI is an extra session on the login screen.

browser

A browser for agents.

Chromium runs in tmux window chrome with DevTools on port 9222. The agent gets the chrome-devtools MCP server pointed at it. Probes watch tabs and publish to the bus.

probes ship as examples, install hot
$ browser-bus probe add ./mysite.js
  installed · hot-reloaded
$ browser-bus probe test mysite
  live status in every matching tab
$ orch-bus unread
[event bus] status: "degraded"   # the status page stopped
  saying "operational"; the agent was never polling it
voice

Local voice.

A listener transcribes the microphone with faster-whisper and types the text in as [voice] …. Replies are spoken with Piper. Both models ship in the image. No audio leaves the machine. No wake word.

every 3 hours, without being asked mid-task
[voice] "remind me about the dentist when builds go green"
  → listener types it in · orchestrator files a thread

## From voice (14:00–17:00)   # in today's note
- [ ] dentist appointment ← decided, done, or still open
The mAGI control centre in the NERV theme, open on its THEME page
The control centre (SUPER + SHIFT + Space) in the NERV theme. Network, Bluetooth, sound, brightness, power, themes, wallpapers, and the AGENTS page. Resident, so it opens in under 100 ms.

The bar module next to the mAGI tag shows orchestrator state (IDLE, WORKING, ASKING, OFFLINE), the agent count, and the listener. The screenshots above show a test stand-in for the agent command: the VM was not signed in to any agent account.

Honest trade-off, stated in the README: the debugging port listens on 127.0.0.1 only, but any program on this machine can drive the signed-in browser through it. That is what lets agents use it, and it is also the risk. Keep untrusted software off the machine, sign in to only what you want agents to use, or turn it off with BROWSER=0.

Get it.

Three ways onto the same desktop. New machine, atomic image, or an existing Fedora 44 Workstation. The installer is plain-Fedora shell: safe to re-run, every step skipped when already done.

# New machine or VM: installer ISO (netinstall + mAGI image, offline)

# Atomic install on any bootc Fedora:
$ sudo bootc switch ghcr.io/pankajgarkoti/magi:latest
$ sudo bootc upgrade    # staged, atomic; rollback ready

# Existing Fedora 44 Workstation (backs up first, verifies after):
$ bash <(curl -fsSL https://raw.githubusercontent.com/pankajgarkoti/magi/main/install.sh)
  ✓ COPR hyprland · packages · fonts · stow links · wallpapers
  ✓ existing files moved to ~/.magi-backup/<timestamp>/
  ✓ every link, package, and the Hyprland config verified

# Then the opt-in orchestrator layer (official installers only):
$ agent/setup.sh       # links tools + units, builds the voice runtime
$ magi-update          # pull, re-link, reload Hyprland + panels

VM-tested: the installer and the images are exercised in a throwaway Fedora 44 VM (tests/vm), and the screenshots and clips on this page were captured there. To roll back, uninstall.sh removes the links and copies back everything from ~/.magi-backup/. Backups are never deleted.