The manager
What started it
On 2026-11-30 the owner asked for a local control panel in the terminal: one sees the virtual environment and creates projects; a project gets a Brain, a Brain gets its users. Start simple.
Until this loop the engine was one process that one configured with environment variables and managed with curl. The owner asked for what the desktop app gives its users, without the desktop app: a place to see that the system listens, and to manage it.
What one sees
The other tabs of a Brain are Overview, Archivist, MCP and Journal, and a Proposals screen opens when something
waits. All nine pictures are in devlog/img/, taken from the real panel on two running engines with
the stand-in model, in the dark and the light theme.
How it is made
Three layers, each usable without the one above:
- A manager with no screen: the list of projects, one detached engine per Brain, a free loopback port from 8765, an owner token made at each start and kept in a file only the user can read. It never opens a Brain's database: it asks the engine.
- Plain commands for scripts and small terminals, each with
--json. - The panel, built with Textual 8.2.8 (MIT). The engine never imports it: two tests prove it, one by walking every import, one by starting the commands with the library made impossible to import.
$ archivist projects create "Pilot check" Created Pilot check (pilot-check): running on http://127.0.0.1:8765 MCP address for agents: http://127.0.0.1:8765/mcp $ archivist status 2 Brains, 2 up on ports 8765, 8766 · the archivist can file · nothing waits for you NAME SLUG STATE ADDRESS ITEMS INBOX WAITING MEMORY PID Pilot check pilot-check running 127.0.0.1:8765 0 0 0 49.3 MB 2738126 Second one second-one running 127.0.0.1:8766 0 0 0 49.3 MB 2738155 $ archivist users revoke "Pilot check" Scout Revoked Scout (c53be8b0f4c): its token is refused from now on.
From the piloting session's own run. The user's token answered 200 with 13 tools before the last command and 401 after it.
What was checked
| Check | Result |
|---|---|
| The whole suite, offline, no key | 286 tests, 1 skipped (Tesseract), Python 3.12.3 and 3.13.15; 245 before |
| A first run from a fresh clone, in a real terminal, key by key | docs/manager-first-run.md: a project, a user, a real MCP call, approve, reject, revoke, stop |
| Engines outlive the panel and are found again | same ports, same data; a stop frees the port |
| The owner token appears nowhere | searched in every screen, output, log and picture; file 0600, folder 0700 |
| Every engine binds 127.0.0.1 | the listening sockets were read; a hostile ARCHIVIST_HOST is ignored |
| A Brain from before the manager is adopted in place | every file hashed before and after |
| A Brain started by the manager with a real model | two test items from a trusted user filed in 2.4 and 1.8 seconds |
What went wrong on the way
- Under WSL the boot time the system reports moved 33 seconds between two commands, and the manager called a
running Brain stopped. An engine is now recognised by its start ticks in
/proc. - The footer was rebuilt at every refresh and blinked; it is rebuilt only when the offered keys change.
archivist statussaid « no key » from a shell without one while a running Brain had been started with one. The line now says what it knows.
What is not done
- One terminal was tried: tmux on Linux under WSL. No Windows or macOS terminal, no SSH, no screen reader; the clipboard keys were not checked.
- At 80 columns two keys of the Brains footer are cut; they still work.
- Brains are separate folders and processes, not isolated from each other: one user of the machine runs them all. The owner token sits in the engine's environment. That is the next work: isolation and hardening.
- The panel refreshes every two seconds through
/health, which writes to the database. - « Remove » takes a project off the list and never deletes its data; deleting from the manager does not exist.
- The repository is still local: nothing is pushed.
Next
Isolation and hardening, starting with the model call that blocks the engine while a trusted proposal is filed; then a deployment on one machine, with the owner's go for its cost.