MiniBot
A local AI assistant in TypeScript. A terminal UI, a web UI and a background daemon share one append-only session log; file edits are hash-guarded; a golden eval suite scores each stage.
TypeScript · Node 24 · pi-agent-core · MCP · Langfuse
MiniBot is a personal assistant that runs on my Mac: files, shell, web, memory, skills, MCP, and macOS Calendar,
Reminders, Notes and Mail. The model loop is pi’s stateless runAgentLoop. Everything with state (sessions,
compaction, approvals, scheduling) is MiniBot’s, and one runtime serves a terminal UI, a web UI over SSE, and a
launchd daemon.
- The log is written before the next step. Each message is appended to the session log inside an event sink the
loop awaits, so nothing runs ahead of the record. Tool calls left without results are shown to the model as
interrupted; the file on disk is never rewritten. - Retries happen inside the stream. Events are held until the first visible token. A transient failure before that is retried invisibly; after it, the failure is final, because a retry would show the user a second answer.
- Edits are hash-guarded. Writes must quote the
sha256from the last read, or they get aconflict. - Unattended runs fail closed. The daemon has no approval channel, so shell and write tools are denied. Runs are cancelled after 10 minutes, and a failing task notifies once per streak, not on every run.