domdoss/Warden
About
This is a fork of the https://dockbox.dev project I made
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalπ₯ Warden
Your own AI. On your own machine. Hybrid by design.
π‘οΈ Warning Β· βοΈ Architecture Β· π§ Prompt Engineering Β· βοΈ Hybrid Models Β· π Dashboard Β· π§© MCP Β· π‘ Channels Β· π Audio Pipeline Β· π£οΈ Voice Β· π°οΈ Satellite Β· π Quick Start
β οΈ WARNING β READ THIS BEFORE YOU RUN ANYTHING β οΈ
This is insane software. It is probably not safe to run.
Warden is an AI agent with the same access as your user account. It executes shell commands, moves your mouse and types on your keyboard, drives your real browser with your real logged-in sessions and saved passwords, reads and sends your email, and can edit and restart its own source code. There is no sandbox and no container. A model mistake, a prompt injection from a web page it visits, or an email it reads can do anything you can do at a terminal.

This is the warning the dashboard shows on first launch. It is not a joke and it is not boilerplate. Do not run Warden on a machine you care about unless you have read the code, understood the risks, and accepted that you are handing a language model the keys to your computer.
Now that that's out of the way β I'm currently running it on my desktop, just rawdogging the system, and it has been solid. sudo prompts pop up graphically (polkit catches them), and in practice it doesn't stray out of its workspace unless it's actively searching for files or the like. Is this stupid in theory? Yes, absolutely. Does it work in practice? So far, yes β for now. Just back things up from time to time, in case.
What is it?
Warden is a personal AI assistant that lives on your desktop. It runs local models through Ollama for fast, private tasks, and reaches out to cloud models for heavy lifting β all within a single conversation. It connects to your real browser, controls your desktop, manages your email and calendar, and talks to you through whatever channel you prefer.
Architecture
The Seat
A single LLM β Warden, the captain's first officer β runs the show, and it is the only thing you talk to. It both answers and does the work: the browser, the desktop, the shell, files and the web are its own hands, not a specialist's. It hands off only what genuinely belongs to another seat β email and scheduling to Iris, heavy code to Vulkan, audits to Artemis β and work too long for a chat turn to a background copy of itself.
This used to be two seats: a deliberately small router that never touched the internet, delegating every hands-on step to Atlas. That split cost a round trip and a brief on every action, and the router could only describe work it could not see. The router and Atlas are now one seat, running one model, with one prompt.
You β Warden β does it itself: browser, desktop, shell, files, web ββ You
ββ hands off what it does not own:
β Iris (email, calendar, reminders, alarms)
β Vulkan (code and builds, background)
β Artemis(audit, background)
β Sentry (security scans, background β currently disabled)
β Council(deliberation)
β atlas_background (a copy of itself, for long work)
flowchart LR
U[You] --> S["Warden seat"]
S -->|"does it itself"| W["Browser / Desktop / Shell / Files / Web"]
W --> S
S -->|"WHAT brief"| I["Iris β email, calendar"]
S -->|"WHAT brief"| V["Vulkan β code, builds"]
S -->|"WHAT brief"| A["Artemis β audit"]
S -->|"WHAT brief"| SE["Sentry β security (disabled)"]
S -->|"WHAT brief"| C["Council β deliberation"]
S -->|"WHAT brief"| BG["atlas_background β long work"]
I --> S
V --> S
A --> S
SE --> S
C --> S
BG --> S
S -->|"report"| U
π‘ Tools are not carried in context all the time. Every seat but Iris gets a per-turn ranked set β the always-needed core plus what the task actually calls for β out of a pool that now includes every installed MCP server. A capability that doesn't surface is one
list_skills+activate_skillaway, so nothing is lost; it just stops being paid for on turns that never touch it. Iris is exempt: it runs the small fine-tuned toolcall model, trained on exactly one fixed tool list, so a list that changed per turn would put it off-distribution.
A small model is enough β that's the whole point
This is the counterintuitive part: the seat can be the cheapest model in the stack, and that's by design. Most turns are classification and composition β what does the user want, which specialist owns it, what does that specialist need to know to start cold, is anything I'm babysitting going sideways? β plus hands-on work that a good small model already nails (open a page, run a command, edit a file). None of that needs a frontier model. An e4b handles it β locally, in well under a second per turn, on hardware you already own β so the thing you talk to most carries no per-turn cloud cost.
e4b works; 31B cloud is recommended. The e4b is the floor, and the whole point is that the bar for "good enough to run the show" is low β it replies, routes, and composes briefs. But supervision has a failure mode the e4b will hit eventually: when a sub-agent returns narration that looks like a result (a timestamp computation written as prose, an "I'll do that" with no tool call), an e4b seat will sometimes take it at face value and relay it to you as done. A 31B cloud seat reads the same non-result and notices nothing was actually produced. (Loop-killing is the one supervision job that doesn't depend on the seat's smarts at all β a deterministic churn detector handles it regardless of model size; see Babysitting the sub-agents.) So: run the e4b if you want it all local and free; run the 31B cloud if you want the babysitting to actually catch sub-agents that bluff.
The expensive generation splits two ways. Work the seat keeps β browser, desktop, shell, files β runs on the seat's own model. Work it delegates goes to the specialists, each on its own model: Vulkan, Artemis, and the three Council seats. A delegation is a self-contained WHAT brief β the seat states what needs to happen and stops, never prescribing how (no URLs, no search queries, no "go to X then click Y"). That discipline is what lets a small model supervise a frontier one without getting in the way: the brief carries the goal, and the specialist owns the execution.
Babysitting the sub-agents
Delegation is not fire-and-forget. When the seat hands long work to a background copy of itself, the job runs in the background β the seat gets a job ID back immediately and stays free to handle your next message. While those jobs run, supervision is on-demand, not automated:
There is no running-job supervisor. The periodic LLM self-audit watchdog that used to tick every few minutes and flag running jobs as on track / off-rails / crashed has been cut out β the ticker never arms, the tick function is a no-op, and the dashboard Supervisor row is now just the completion-verdict gate (model + on/off) β its cadence control is gone. It was unneeded: the seat's chain-following is now strong enough to drive a job end to end on its own β delegate β drain the finished-job inbox β confirm the result against the ask β chain the next step, or re-delegate on failure β so a second model watching the running job added false positives without value. And it was actively harmful on local hardware: a 3b model cannot reliably tell a slow read-or-compose from veering, so it kept flagging healthy background jobs (a read-first pass, a long idle while a 27b composes a large file) and the standing escalation rule killed them and handed the work to Vulkan β and even after the ticker was no-op'd, the seat's prompt still made it role-play supervisor flags about its own legitimate read-only delegations and stop them. You supervise on demand: ask the seat how a job is doing and it looks (list_running_agents / agent_logs / read_job_result), assesses the recent calls itself, and can stop_agent + re-delegate on its own judgment. It just no longer wakes itself up to do it. (The one thing that still runs on the supervisor model is the completion verdict on finished jobs β see below.)
A deterministic churn detector. The thing that watches a looping job is in code, not the LLM. The runner counts consecutive read-only calls (Read, Grep, Glob, Bash, WebSearch, β¦) with no deliverable produced. At 12 in a row it injects a commit nudge into the agent's next turn β "you have enough context, stop searching, write the deliverable now" β and re-nudges every 10 further read-only calls. It only nudges: the runner never aborts a job on a call count and never auto-escalates to Vulkan. What happens next is the orchestrator's call β it reads the job's status and decides on its own judgment to nudge again, stop_agent it, or let it run. Artemis and Sentry are exempt β read-only is their job, not a loop. (Full mechanics: docs/notes/supervision-and-churn.md.)
When a job finishes, the result lands in an inbox.
Crucially, supervision stays out of your chat. The churn detector's commit nudge is injected into the agent's own turn, not your conversation. Progress lives in the dashboard instead: the real status line each job emits on every tool call streams into a grouped, collapsible Live Activity panel (one summary line when collapsed, the recent history when expanded), so you watch what's actually happening without a parade of chat bubbles. The chat only carries completed-task reports (and interventions) β you ask once, the seat drives the whole chain end to end, and you hear from it when there's something finished to tell you.
The inbox is the backbone of the async model. Finished jobs drop their full output there, and at the end of each turn the seat drains it, digests what actually matters in its own voice, and chains any follow-up work the results call for β so a multi-step ask (plan β council β revise) runs end to end without you having to say "and?" or "continue" between steps. If a job failed, the failure routes back to the seat automatically β it reads the full output, works out what went wrong, and re-delegates with a reworked brief (a different approach, a corrected URL, a missing detail β whatever the output showed was broken). You only hear about a failure if it can't be recovered; after the same task has failed the same way twice, the seat stops retrying and tells you instead. Urgent results can even interrupt a turn mid-flight, so a finished job you're waiting on never sits behind whatever else happens to be running.
The net effect: you ask once, and the seat owns the outcome β prompting the specialists, supervising them, cutting off the ones that drift, and correcting course until the job is done or it's genuinely stuck.
flowchart TD
A["You ask once"] --> B["Seat dispatches a WHAT brief"]
B --> C["Job runs in the background"]
C --> D["Finished job lands in the inbox"]
D --> E["Seat drains the inbox"]
E --> F{"Result matches the ask?"}
F -->|"yes"| G["Chain next step, or report"]
F -->|"no"| H["Re-delegate with a reworked brief"]
H --> C
G -->|"more to do"| B
G -->|"done"| I["Report back in its own words"]
One conversation, one voice
You have one conversation, with one assistant. Vulkan, Iris, and the rest never see your messages and never speak to you β the seat is the only voice in the chat. Most of what you ask, it does itself with its own tools; when work belongs to another seat, it composes a self-contained brief for the right specialist, and reports back in its own words when the work is done.

Your raw message never reaches a specialist. When you ask for something the seat does itself β "hey can you set the volume to like fifty percent" β it just does it: no rewrite, no middleman. Only work that belongs to another seat β email to Iris, heavy code to Vulkan, an audit to Artemis β gets handed off, and then as a self-contained WHAT brief: the goal in the seat's own words, typos and slang resolved, so the specialist starts from a clean statement of what's needed instead of guessing at your phrasing.
Sub-Agents
Each sub-agent has its own system prompt and toolset. Iris and Sentry share one model (the dashboard's Toolcall model); Vulkan, Artemis, and each Council seat keep their own, and a background copy of the seat runs on the seat's own settings. They don't share context β the seat composes a self-contained task string with everything the sub-agent needs.
| Agent | Model | Tools | Role |
|---|---|---|---|
| Atlas | Local or cloud | Shell, browser (DOM control), desktop, files, web search/fetch, documents | Execution β anything that touches the internet or runs commands. |
| Vulkan | Local or cloud | Read, Edit, Grep, Glob, Bash, build & test runs | Coding, scripting, building, heavy bash β editing source, running builds and tests, refactoring, complex shell pipelines. Runs in the background like Atlas. |
| Iris | Local or cloud (local recommended) | Email, calendar, contacts, todos, scheduling, projects & work tasks | Personal information management β email digests, calendar events, scheduled tasks (cron, interval, once), projects, deliverables, and work tasks. |
| Artemis | Local or cloud | Read-only file access | Critical review β audits conversations and decisions. |
| The Council | 3Γ, local or cloud | Read-only file access | Three independent seats (Skeptic, Pragmatist, Synthesist) deliberate in parallel on high-stakes decisions. |
| Sentry | Local or cloud (local recommended) | Bash (read-only), sentry_report |
Background security scanner β currently disabled (SENTRY_ENABLED=false). When enabled it would inventory the PC read-only (listening sockets, network connections, running services, autostart, user crontab, enabled units, processes), diff against a learned baseline, and report only when something new or suspicious appears. It's off until the fine-tune has sentry examples to drive a real inventory β a stock model fabricates one, so re-enable only after training sentry rows. |
ποΈ The Atlas seat, Vulkan, Artemis, and each Council seat have their own model. Iris and Sentry share one Toolcall model (a single model + ctx row in the dashboard). Pick local Ollama or cloud per role β the same pipeline handles both. With
max_loaded_models=3(see Tuning the Ollama daemon), the Atlas seat (always kept alive) and the Toolcall model (if its keep-alive checkbox is on β this covers Iris/Sentry) stay resident in VRAM, with room for a third resident model (a separately-enabled model whose keep-alive is on). The supervisor model no longer holds a resident slot β its running-job tick was cut out; it only runs the occasional completion verdict on finished jobs. Any fourth model evicts the least-recently-used resident. The keep-alive re-pin that runs every minute only maintains models that are loaded β it snapshots Ollama's/api/psfirst and never re-spawns a model that was deliberately unloaded, so a pinned model can't fight something big (like the training loop's 17 GB analyst) for VRAM after you cleared it on purpose.



β° Scheduling β Iris
Iris owns the scheduling and calendar side of personal information management. It creates and manages schedule entries and calendar events β it never executes the scheduled tasks.
The seat owns the intent; Iris owns the timing. When something needs to happen later, the seat gives Iris a prompt (what to run) and a when (the timing intent). For scheduling, Iris's sole job is to translate that into one flawless schedule entry and hand it to the scheduler. Nothing more. When the ask is an appointment rather than a fire-later task, Iris writes a calendar event (start/end time, location) the same way.
What Iris does:
- Picks the right
schedule_typeβcron(recurring at specific times),interval(every N ms), oronce(a single future timestamp) β and writes theschedule_valuein its exact format. - Does the time arithmetic in your local timezone, walking the offset digit by digit and verifying computed-time minus now equals the requested interval before committing.
- Stores the prompt verbatim β at fire time that prompt is injected into the running chat as a message from "Scheduler", and the seat runs it like any other message, with full context and all its tools. Iris set up the schedule; the seat does the work.
- Manages the lifecycle of existing entries β list, pause, resume, cancel, update.
- Creates, lists, updates, and deletes calendar events (appointments with start/end time, location) β the calendar side of timing.
- Everything else personal: email, contacts, todos, projects, and work tasks.
What Iris does not do:
- It does not execute the scheduled task. Ever. It writes the entry and stops.
- It does not gather data or do research β if a scheduled prompt needs facts (a price, a status, a number), the seat gathers them first and hands Iris the result to bake into the prompt.
- It does not diagnose why a task did or didn't fire β that's Artemis's job. Iris only touches the entry if it needs fixing or recreating.
Model: basic structured output β a small local model (granite) is plenty. The reliability lives in the prompt and the format validation, not in a big model.
The schedule-value format is where scheduling breaks in every system that has one, so Iris is built to be obsessive about it: it validates the cron expression, rejects malformed intervals and timestamps, refuses timezone suffixes on once, and double-checks its own offset math. The point is that the entry is correct the first time, every time, on a model that costs nothing to run.
πͺ¨ The toolcall agents (Iris, Sentry) are prompted for
granite4.1:3b. Their system prompts are tuned to that 3B model β temperature 0, deterministic keywordβtool rules, and no few-shot examples (granite pattern-matches example shapes: shown onlyschedule_task(...)examples, it would callschedule_taskto "delete" instead ofcancel_task). When editing any of these prompts, keep that target in mind: drive behavior with explicit rules and tool-selection mappings, never examples, and verify againstgranite4.1:3bβ a prompt that reads cleanly on a big cloud model can mis-fire on the 3B local one.
β οΈ Stock granite doesn't cut it β the fine-tuned
toolcall-ftmodel is effectively required. The toolcall agents need the LoRA fine-tune built fromtraining/(toolcall-ftin Ollama; seetraining/README/Modelfile.toolcall-ftfor building it). Reliable tool-call transcription on this action-parameter surface (one tool per noun βtask,calendar,alarmβ each with anactionenum, collapsed from 41 flat tools in 2026-09) was trained in β a stock model won't reproduce it. On a fresh install without the LoRA weights it just wouldn't work, even with the 8B stock model swapped in.
Persistent Runner
π₯ The agent-runner is a persistent child process β no Docker, no containers, no cold starts between messages. It stays warm for hours (configurable
IDLE_TIMEOUT), keeping MCP servers connected and skills loaded. Follow-up messages route over IPC in milliseconds.
π§ Prompt Engineering
This is the feature that makes Warden work. The system prompt isn't a paragraph of vibes β it's a carefully engineered control surface that has been iterated on extensively.
π― Delegation Discipline
The seat is trained to state WHAT, never HOW, in every delegation. It doesn't prescribe URLs, search queries, or step-by-step instructions for the specialists. The system prompt explicitly forbids it:
"Atlas is the internet model. It runs on a larger, more capable model than you. Never tell Atlas how to use the internet β no URLs, no search queries, no 'go to X then click Y.' Give it the goal and the facts, and stop."
This is reinforced at three layers: the seat's system prompt, the delegate tool descriptions (what the seat sees when deciding to call them), and the specialists' own system prompts (which tell them to ignore prescribed steps).
π― Driving Forces
The seat's reasoning posture is a dashboard dropdown, not a fixed trait. A Driving Force preset rewrites the seat's preamble with a different bias β and switching it clears the seat's context, so the new persona starts a fresh conversation instead of inheriting the old one's thread. The built-in presets:
| Preset | Bias |
|---|---|
| ship-it | Optimize for getting it done; accept a good-enough result in hand over a perfect one that isn't. |
| architect | Think in systems and long-term structure before acting. |
| debugger | Assume something is broken; trace the real data flow before changing anything. |
| first-principles | Reason from fundamentals instead of analogy. |
| mentor | Explain and teach rather than execute. |
| socratic | Ask the user sharp questions instead of guessing. |
| paranoid-reviewer | Assume the worst; double-check every claim before trusting it. |
| staff-engineer | Own the outcome end to end and weigh trade-offs explicitly. |
The presets are plain markdown in data/driving-forces/ β add your own and it shows up in the dropdown. Empty selection is the built-in default preamble.
π§΅ Fabric Pattern Integration
Warden ships with 258 expert prompt patterns from the Fabric library. Every turn, the user's message is keyword-extracted and the top 5 most relevant patterns are injected into the system prompt by name and description. The seat loads the full pattern on demand and bakes its framing into its own work and the briefs it hands out β structure without micromanaging the execution.
π² Dynamic Tool Selection
Warden is built to host many tools at once β the core set plus anything you add via skills and MCP servers β so the tool surface had to scale without bloating every prompt. Not all 30+ tools go into every turn. Keywords from the conversation are extracted and tools are ranked by relevance; the core routing tools (sub-agents, Read, Bash) are always included, and everything else is surfaced only when relevant. This keeps the context window lean, the model focused, and the system futureproof β add a new tool and it's available without rethinking the prompt.

π‘οΈ Defensive Loop Patterns
The tool loop has multiple circuit breakers to prevent common failure modes:
- Intent-without-action detection β if the model keeps saying "I'll do X" without actually calling tools, it gets nudged (capped at 2 nudges)
- Circling detection β consecutive useless rounds (no tool calls, no output) trigger a forced no-tools round to extract an answer
- Degenerate output filter β word-mash / garbled output from misconfigured models is detected and suppressed
- Verifier sub-agent β after effectful work (file writes, edits), a verifier pass confirms the changes
- Deterministic churn detection β N consecutive read-only calls (Read/Grep/Glob/Bash/WebSearch β the
RESEARCHset) with no deliverable produced β inject a "stop searching, write now" commit nudge, re-nudged every 10 further read-only calls (12/10 thresholds). It only nudges β the runner never aborts on a call count and never auto-escalates; the orchestrator decides (nudge /stop_agent/ let it run) on its own judgment. Artemis and Sentry are exempt (read-only is their job). (See docs/notes/supervision-and-churn.md.) - Per-delegate concurrency cap + same-file backstop β at most 3 jobs per delegate run at once (
MAX_CONCURRENT_PER_DELEGATE); a further dispatch for the same delegate is queued and starts when a slot frees. Separately, a dispatch that names a file a running writer already holds is queued behind it, so two jobs can't clobber the same file. - Atlas first-turn thinking β Atlas thinks on its first iteration only (plan what it needs, then act), paired with a READ ONCE prompt rule (read each named file once; don't re-Read it to find the next edit target β that re-reading is the loop). Later iterations keep thinking off to preserve context.
- Supervisor watchdog (cut out) β the periodic LLM self-audit that flagged running jobs and let the seat nudge/stop has been removed. It was unneeded once the seat's chain-following could drive a job end to end on its own, and a 3b model kept false-flagging healthy slow reads/composes. The seat still monitors on demand (ask it, and it looks + can stop/retry on its own), and the completion verdict still judges finished jobs. Nothing stops a job on a call count β the deterministic churn detector only nudges; the only code-enforced stop is a 3-hour wall-clock kill, and otherwise the seat (on demand) or you decide when to
stop_agent.
π Memory System
The seat writes directly to MEMORY.md, TODO.md, and HEARTBEAT.md β no delegation needed. Only MEMORY.md is loaded into context every turn; HEARTBEAT.md is injected only for scheduled heartbeat tasks, and TODO.md is not auto-loaded.
After every conversation, a memory writeback pass runs automatically: a local model reads the last ~30 messages of the chat, distills durable facts (preferences, decisions, context the agent should carry forward), and appends them to MEMORY.md with a dated entry in JOURNAL.md. The distilled facts are visible to the agent on the very next turn β no manual note-taking, no "remember this" prompts. The writeback is fire-and-forget (never blocks the message loop), throttled to once per chat per 15 minutes, and auto-compacts MEMORY.md when it grows too large. Both files live at WORKSPACE_ROOT β the same place the seat loads MEMORY.md from every turn, and the same place Mercury writes MERCURY_MEMORY.md. (JOURNAL.md lives there too but is never injected into the prompt.)
πͺ Mercury β rolling conversation memory
Mercury is the working-memory layer for the live conversation β how a fresh seat (after a restart or context clear) knows what the current thread is about without replaying an ever-growing transcript.
- Rolling compaction. On a turn-based cadence (every 30 user turns β
MERCURY_TURNS_PER_COMPACTIONβ never mid-turn), a local model reads the recent conversation, keeps the newest ~30 messages verbatim (MERCURY_RECENT_MESSAGES), and compresses the rest into a concise state-of-the-conversation note written toMERCURY_MEMORY.md. Every turn's prompt starts with that summary merged into the system prompt, cache-prefix-stable. - RAG over recent history. A follow-up that references something older than the verbatim window ("what did I say about the filter two hours ago?") pulls keyword-matched turns from the last ~120 messages into a
<mercury_context>block. Retrieval is deliberately conservative, because raw old turns injected carelessly once hijacked a turn β the model answered a fresh question by replaying a day-old exchange verbatim, matched on a single shared keyword: a query with 3+ keywords must now match β₯2 of them, score ties break toward the newest message, every retrieved line carries its timestamp, and the block is labeled background-only with the current ask explicitly prioritized. - Filed to MARM when present. Each compaction also files the summary into MARM (session
mercury,marm_log_entry, deduped on unchanged text) so the rolling state stays semantically recallable even after the 120-message horizon passes. Fire-and-forget and fail-open: MARM down or absent changes nothing β Mercury and its RAG work standalone and are always the default recall path.
𧬠MARM β semantic long-term recall (default-on)
MARM Memory (by Lyellr88) is the default long-term memory server: local-first recall beyond what MEMORY.md can hold. Warden runs identically without it β every MARM path is fail-open β but with it installed you get:
- Nothing is forgotten.
MEMORY.mdauto-compacts and drops older lines; MARM keeps every distilled fact the writeback has ever logged, recallable by relevance. - Semantic recall, injected automatically. Every turn, the runner asks MARM for the memories most relevant to the incoming message and injects the top hits into the seat's prompt β recall doesn't depend on the model remembering to ask. Hybrid BM25 + embedding search, so "why did the streaming app white-page" finds the memory written as "router DNS hijack blocked stremio.com." The seat can still call
marm_smart_recalldirectly for a deeper dig. - Linked ideas. MARM's concept graph connects the logged facts into entity β predicate β entity relations, so separate ideas are pieced together instead of sitting in a flat list.
Default-on since 2026-09-22. install.sh installs the server (uv tool install marm-mcp-server; requires uv), provisions a marm-memory.service systemd --user unit (MCP HTTP at 127.0.0.1:8001, wired into warden.service via the warden.service.d/marm.conf drop-in so it starts with Warden), and registers the marm stdio entry in data/mcp-servers.json with the absolute binary path (systemd's minimal PATH can miss ~/.local/bin; a fresh install's seeded config uses marm-memory from PATH and upserts to the absolute path on install). Opt out with INSTALL_MARM=0 ./install.sh and/or disable the marm entry in data/mcp-servers.json. Optional: pin the concept-graph topic model with MARM_TOPIC_MODEL=<model> install.sh when the server default isn't right for your models (ollama list).
The seat is granted mcp__marm__* tools β the one MCP server it calls directly, since recall is assistant state, not hands-on work. The # LONG-TERM RECALL prompt section is emitted only when the marm entry is enabled, so a disabled MARM never leaves the model advertised tools it doesn't have. Data lives in ~/.marm/.
How it integrates (all built in, none of it requires touching Warden's core):
- The memory writeback mirrors every distilled fact into MARM (
marm_log_entry, over MCP HTTP) right after appending toMEMORY.mdβ fire-and-forget, with a 10s timeout: MARM down or absent changes nothing. In the other direction,marm-recall.tsauto-recalls the top MARM matches for each incoming message (2.5s timeout, β€3 hits, β€900 chars, fail-open) and injects them into the seat's prompt as a# RECALLED MEMORIESsection. - Mercury compaction files each rolling summary into MARM as well (
marm_log_entry, sessionmercury, deduped on unchanged text) β the conversation's recent state becomes long-term recallable under the same fail-open contract. - The voice app's center panel is the memory galaxy (
eyes_ears/ui/memory-galaxy.html): a 3D constellation of MARM's concept graph β nodes are entities extracted from stored memories, edges are walked relations. Clicking a node opens its details in a separate popup window. The built graph is cached (15 min), so a UI restart doesn't re-probe MARM. With MARM off or the concept graph unbuilt, the galaxy falls back to its built-in demo constellation.
flowchart TD
S["Seat"] -->|"loaded every turn"| M["MEMORY.md (TODO.md and HEARTBEAT.md are not auto-loaded)"]
W["memory writeback"] -->|"distills durable facts"| M
W -->|"mirrors facts"| MARM["MARM β semantic long-term recall"]
MARM -->|"top recalls injected"| S
S -->|"rolling compaction"| MC["Mercury β MERCURY_MEMORY.md"]
MC -->|"filed on compaction"| MARM
π Heartbeat
HEARTBEAT.md holds standing instructions the agent executes on schedule via the task scheduler β no prompt from you required. Edit it from the dashboard's Heartbeat panel (or let the agent edit it itself) and the instructions run automatically, giving the agent persistent autonomous behavior between conversations.
Under the hood, the heartbeat is a real scheduled task (heartbeat-owner) persisted to heartbeat.json and synced to the task scheduler. The dashboard's Save button writes your instructions, creates or updates the cron row, and mirrors the content to HEARTBEAT.md so runTask injects it into the prompt. The task is seeded paused on boot β it's always visible in the Ops Scheduled tab, and you enable it with one click. Pausing via the Ops tab reflects immediately in the dashboard toggle; resuming re-activates the cron. The cron defaults to hourly at :45 (offset from the iris-digest crons so they don't pile up on the same minute).

ποΈ Context Compaction
The seat keeps its running context lean by design, not by a giant ceiling. After every turn its persistent conversation collapses to chat-history-only β the last few turns' final responses (~1K each) β and drops all the tool calls, tool results, and system injections that produced them. Mercury is pinned; long-term memory isn't relied on for the working window. Trimming is group-aware (it drops whole tool-callβresult groups, so it keeps fewer messages without orphaning a tool result), and each tool result is capped at ~1K tokens. Two manual resets sit on top:
- New Thought (chat header) clears the seat's context server-side β the next message starts a fresh conversation, no accumulated history.
- Clear Conversation (chat header) goes further: it deletes the stored message log for the chat too, wipes the rolling Mercury summary, and sets the context-clear marker β the next message starts from a genuinely empty history, database included.
- Idle auto-clear (Settings β Model Configuration β Idle clear, default 30 min) drops context automatically when your last message was older than the threshold.
0disables it.
βοΈ Self-Editing
The agent can modify its own source. A built-in self-edit skill constrains edits to src/ and container/agent-runner/src/, runs npm run build, gates on a successful compile, tells you what's changing, then restarts the service with systemctl --user restart warden. It refuses to touch dist/, configs, or the systemd unit, and never restarts on a failed build β so the agent can ship its own fixes without you opening a terminal.
A companion update-warden skill does the upstream equivalent: it fetches origin/main, shows what's new, merges, runs npm run build, and β with the same gate β restarts only if the build succeeded (exit 0), verifying systemctl --user is-active warden prints active afterward. It refuses to run on a dirty tree and aborts the merge on unresolvable conflicts, leaving the service on the previous dist/ until you fix things. Ask "update warden" to trigger it.
βοΈ Hybrid Model Architecture
Warden is built for hybrid operation from the ground up. Different tasks need different models, and you shouldn't have to choose one and stick with it.
βοΈ How It Works
Every model selection in the dashboard is per-role:
| Role | Recommended | Why |
|---|---|---|
| Atlas (the seat) | e4b local works; 31B cloud recommended | Fast, cheap routing + hands-on work + supervision. e4b is the floor; 31B cloud catches sub-agents that bluff a result. Keep-alive is on by default. |
| Supervisor (watchdog) | Small local (e.g. granite4.1:3b) | The running-job self-audit tick is cut out (see above). The model still runs the completion verdict on finished jobs β tool-less, a few hundred tokens per call, falls back to the seat model if unset. The dashboard Supervisor row now just gates that completion verdict (model + on/off); its periodic tick/cadence control is gone. |
| Atlas | Cloud (deepseek, glm) | Heavy lifting β internet access, shell, browser, complex reasoning. Keep-alive optional. |
| Vulkan | Cloud (default) | Coding, builds, tests, refactoring, heavy shell pipelines. Keep-alive optional. |
| Toolcall agents | Local (recommended) | Iris and Sentry share one model + ctx row. Run them local; save cloud for Atlas and the Council. |
| Artemis | Cloud (default) | Read-only audit. Keep-alive optional. |
| Council seats | Cloud Γ3 (different models) | Diverse perspectives for deliberation. |
Every role can be flipped to local or cloud from the dashboard β same pipeline, no code change β so the column above is a recommendation, not a constraint.
β οΈ Kimi is not recommended right now. Kimi loops on read-heavy / long-running subagent tasks (atlas, vulkan, artemis) β it re-issues the same read-only call repeatedly instead of converging, and it leaks its chain-of-thought as untagged text when thinking is disabled. (Thinking is decided per model by its advertised Ollama capability, not by name β a model that advertises
thinkinggetsthink:true, anything else runsthink:falseand falls back cleanly if the server rejects it.) The deterministic churn detector still catches read-only-call loops on kimi, but artemis is churn-exempt, so a looping kimi-artemis runs to the iteration cap unchecked. The default fleet is all-local (atlas =orchatlas-ft, the toolcall sub-agents = local Granite, Vulkan =qwen3-coder-next); cloud kimi/glm remain available per-role if you want them.
All of this is configured from the dashboard's Settings panel β assistant name, model per role, Ollama URL, and keep-alive toggles:



π One Pipeline, Local or Cloud
There is no separate infrastructure for cloud models. Ollama serves both local models (on your machine) and cloud models (remote Ollama-compatible endpoints) through the same HTTP API β so every agent can be flipped between local and cloud from the dashboard with no code or infrastructure change. You're just picking a model id. The agent-runner talks to Ollama directly β no proxy in the path by default.
π§ Model Routing
The agent-runner speaks Ollama's native HTTP API and talks to Ollama directly β local models at localhost:11434, cloud models at their Ollama-compatible endpoint, model picked per role in the dashboard. No proxy in the path. The agent doesn't know or care whether the model is local or cloud; same format, same tools, same conversation.


Optional β piping in Claude: src/credential-proxy.ts (port 3001) is in the codebase but not wired in by default. It exists for one case: routing to Anthropic's Claude. It translates Ollama-native requests β Anthropic format and injects the Claude API key so the agent-runner never sees it. If you want Claude, wire the proxy in and point the agent-runner at it; otherwise everything stays on native Ollama.
Supervisor model & per-iteration thinking. The running-job self-audit tick is cut out; the completion verdict still runs on a separate SUPERVISOR_MODEL (falls back to the seat model) β a small, tool-less call, so a local model is ideal. Sub-agents think on a per-iteration rule: Atlas thinks on its first turn only (plan, then act β paired with the READ-ONCE prompt rule against the re-reading loop); thinking is otherwise capability-driven β a model that advertises thinking to Ollama may think on its turns, one that doesn't runs think:false and retries cleanly without it if the server rejects it; every other sub-agent iteration is think:false. The seat has its own dashboard thinkingMode (max = every turn, true = first turn, off otherwise) and thinks on turn 1 by default. Granite models don't advertise thinking, so the capability check keeps the Granite toolcall agents (iris/sentry) on think:false automatically.
π Real Browser Automation
Warden browses through your actual Chrome β the one you're logged into, with cookies, sessions, and extensions intact. There is no Warden-owned browser, no headless puppet, no CDP port: the single path is a Chrome extension bridge.
The chain: the chrome-mcp-server extension (unpacked copy at chrome-mcp-server-1.0.0/) runs in your real Chrome and spawns the mcp-chrome-bridge native host (npm install -g mcp-chrome-bridge, serving MCP on 127.0.0.1:12306). Warden's browser gate (src/browser-mcp-gate.ts) owns the single upstream connection to that host and re-serves it statelessly at POST /mcp/browser on :3200 β the agent-runner never touches 12306 directly.
The browser is an optional component that never blocks anything. It's dialed on demand β only when a browser/web tool is actually invoked β and the gate fails fast (5s) if the bridge is down, so no request can hang on it. Warden boots, chats, and runs every non-web turn with the bridge completely absent.
flowchart LR
A["Chrome MCP Server extension"] -->|"connectNative"| B["mcp-chrome-bridge :12306"]
B -->|"single upstream connection"| C["Warden gate :3200 β POST /mcp/browser"]
C -->|"chrome_* tools"| D["agent-runner (browser + youtube tools)"]
For the full contract (lazy connect, fail-to-default toolsets, the diagnostics ladder, and the one-command repair via scripts/restart-browser-bridge.sh), see CLAUDE.md β Browser capability.
π±οΈ Desktop Control
Warden controls your actual desktop β mouse movement, keystrokes, window management. Wayland via ydotool, X11 via xdotool. It discovers your display environment automatically, even when started from systemd with no DISPLAY set.
π§° The Custom Toolset
Almost none of Warden's tools are generic wrappers β they're purpose-built, one layer above the real system, and they work out of the box because they bind to what's already there: your real Chrome profile, your real audio hardware, your real CalDAV calendar, your real media players. No adapters to configure, no credentials to paste twice, no "integration setup."
The design rule for the action tools is one tool per noun, one action parameter. Iris's toolcall surface is four merged tools β email, task, calendar, alarm (a 2026-09 collapse of 41 flat tools). project is a separate merged tool (kind + action over projects, work tasks, deliverables, blockers, priorities and financials) that the seat calls directly, not Iris. Each is a single schema whose action selects the operation. Small models stay in-distribution, and every new operation is one enum value, not a new tool.
π Browser automation (via the extension bridge)
The live surface is the extension's own chrome_* toolset (~27 tools: chrome_navigate, chrome_read_page, chrome_computer, tab management, key presses, β¦) served through the Warden gate. The youtube tool (container/agent-runner/src/tools/youtube.ts) drives pages through the McpPage adapter on top of it β navigate + script-eval are the required pair, with tab-list and key-press tools upgrading fidelity when present. If the bridge is down, the tool reports that as a terminal fact and the turn ends β browser failure never takes down chat or any other capability.
π±οΈ Desktop & apps
desktop_screenshot Β· desktop_click Β· desktop_type Β· open_app β sees and steers native apps (settings windows, media players) with pixel coordinates, auto-detecting Wayland vs X11; open_app fire-and-forgets files to their OS-default app.
π Media & audio
audio_volume (speakers) Β· mic_volume Β· media_control (play/pause/skip) β anything exposing MPRIS: a browser YouTube tab, Spotify, mpv, VLC. Dedicated tools, not amixer/playerctl shell noise.
youtube β play, search, and control the real Chrome YouTube tab through the browser bridge: now-playing, pause/resume, next, seek, fullscreen. Any ask mentioning YouTube routes here and the tool result is the reply; a "stop the music" ask maps to action: pause, and the prompt's control rule forbids ever stating a playback change without the call that made it β that exact zero-tool-call hallucination (seat claimed "paused" while the music kept playing) is what the mapping was added for (2026-09-21).
ποΈ Vision
query_image β ask questions about any image on disk, answered locally. read_image + webcam_capture + desktop_screenshot feed frames into the agent's vision context automatically.
βοΈ Communications
email (read/send/cache, date-windowed) β your real IMAP inbox Β· contacts β full CRUD (list_contacts, search_contacts, get_contact, create_contact, update_contact, delete_contact) Β· calendar β CalDAV events, Kontact/Google-synced.
β° Scheduling & time
alarm Β· task (schedule/list/update/pause/resume/cancel β cron, interval, one-shot) Β· start_timer Β· stop_timer Β· log_time β durations are parsed host-side (ISO-8601 PT2M), never by the model doing clock math. Fired reminders land in chat directly, and the Alarms view shows every once/cron/interval job including fired ones.
π Projects, work & todos
project (kind + action over projects and work tasks) Β· list_todos Β· create_todo Β· complete_todo Β· delete_todo.
π Documents
generate_pdf β build a PDF from scratch Β· convert_file β DOCX/XLSX/HTML/markdown conversions, no external services.
π§ Context & chat plumbing
get_chat_history Β· attach_file (deliver a generated file to the user) Β· send_message Β· clear_context β the agent manages its own thread weight.
π‘οΈ Sentry
sentry_report β the software-security scanner (read-only sockets/services/crontab audit, one inventory submission, host logs the scan and relays findings). Currently disabled: SENTRY_ENABLED=false in the agent-runner and SENTRY_SCANS_ENABLED=false on the host, because the fine-tune has no sentry SFT examples and fabricates its inventory. The tool is registered but reports Sentry offline.
π The rest
api_request + list_api_keys β your own stored provider credentials, used directly Β· fabric_pattern β Daniel Miessler's fabric patterns hot-plugged into prompts Β· Bash β a persistent shared shell where cd sticks.
Every tool above is registered with a toolset and routed to agents by role (Dynamic Tool Selection) β vulkan gets code tools and physically cannot screenshot-loop, sentry gets read-only audit tools and nothing else, atlas gets the browser and the media hardware.
π Dashboard
A full PWA at http://localhost:3200. Open it and you're in β single-user, the full dashboard is right there.

The dashboard includes:
| π¬ Chat | Main conversation interface | ποΈ Projects |
| π Files | Browse, upload, download, manage | β° Scheduled Tasks |
| π API Keys | Provider credentials | β° Alarms |
| π Heartbeat | Standing instructions on schedule | β‘ Actions |
| βοΈ Email | IMAP inbox + send | |
| π€ Talk | Voice transcription | π Notes |
| π Calendar | CalDAV synced with Kontact | π§© Skills & MCP |
| π Agent Activity | Live verbose status + collapsible progress panel | π Process Logs |
| π° Digest | Hourly/daily/weekly grounded briefings | π Training |
| π Alpha Stack | Trading research stack β its own webapp, embedded (see Alpha Stack) | |
| π₯οΈ Hologram Panels | Today, digest, agents, chat, tasks, upload, system β all in the voice UI | |
| ποΈ Ops Panel | Inbox (scanned work tasks + calendar events β β confirm / β deny), Work tasks, Reminders, Schedules, Calendar (Google-synced appointments), + all scheduled crons with pause/resume β heartbeat, iris-digest hourly/daily/weekly |


β‘ Quick Actions
One-touch prompt buttons for the things you do all the time β setup, review, write, research. Press a button instead of typing the same prompt again; each action fires a pre-written prompt into the conversation.

π Built-In Help
An agent system is only as good as the requests you give it, so Warden teaches you how to use it. On first launch the dashboard opens a How to Use Warden guide that leads with the one thing new users need to hear β this is not a chatbot β then walks the whole system: the agent roster and what each specialist actually does, how to convene the Council on a decision, how to delegate to Atlas (including parallel delegations in a single turn), the skills system, and what kinds of asks work best.
Behind the modal sits a full help site with in-depth pages. The flagship, not-a-chatbot, puts chatbot-style asks and agent-style asks side by side β "tell me about microservices" gets you conversation; "read src/auth.ts and tell me if there's a timing-safe comparison missing" gets you tools run, files read, verdicts returned β then distills the principles that make requests land: be specific about the target, parallelize independent asks, read BLOCKED messages instead of retrying blindly, and watch the verbose bar to see what Warden is doing right now.
π Notes
An Obsidian-inspired markdown vault backed by the real filesystem β no database, just .md files you can also edit by hand or sync with anything. The vault root is ~/Documents/Notes; the corpus (tags, backlinks, [[link]] resolution, search) is indexed only from that subtree, so it stays focused on your actual notes instead of pulling in the tens of thousands of unrelated markdown files (READMEs, skill docs, etc.) scattered across the rest of your home directory.
[[wiki-links]]β link notes by title; the corpus resolves them across the vault.- Backlinks β every note shows what links into it.
- Tags β
#taglines feed a tag sidebar with counts. - Folders β browse subfolders; create notes in the current folder.
- Search β full-text over titles and bodies, scoped to the vault.
- Ignore β hide individual files or whole folders from the corpus without deleting them.
Files are plain markdown on disk; the dashboard is just a viewer/editor over them.
π€ Bio
A markdown file at USER_BIO.md in the workspace root that tells the agent who you are β name, location, sleep schedule, preferences, habits, whatever you want it to know. The dashboard's Bio page reads and writes it directly. Iris digests read the same file to ground hourly/daily/weekly summaries in real context: weather for your city, sleep nudges based on your schedule, habit-aware suggestions. It's the difference between a generic "good morning" and one that knows you're in Vancouver, you went to bed at 2am, and you've got a standup in 20 minutes.
π° Digest
Iris compiles short briefings from your real local data and publishes them to the dashboard digest panel and the hologram UI (eyes_ears/ui/digest.html). There's no scraped news feed β every line comes from a grounded source.

Three cadences, each a scheduled task that Iris owns, all configurable from the dashboard Ops β Schedules tab (or the voice UI Ops panel) with pause/resume per cadence:
| Span | Scope |
|---|---|
| Hourly | The present and the next ~2h |
| Daily | End-of-day β today in review, what's still active, tomorrow |
| Weekly | A seven-day roundup with theme-grouped email activity |
Grounding β each run is preceded by buildDigestContext (src/task-scheduler.ts), which assembles a real-world context block from the local DB and prepends it to the prompt:
- Current local time and timezone
- User bio & habits from
USER_BIO.md(the same file the Bio page edits) - Calendar events β last 6h through next 48h via
listCalendarEvents - Active work tasks β non-done tasks via
getWorkTasks - Weather β keyless
wttr.infor the location named in your bio - Recent emails β Iris may call
read_emailsonce for inbox activity
Iris then compiles the markdown digest and publishes it by calling post_summary (a keyless internal loopback to POST /api/summaries?span=X), which is the only way the digest reaches the panel.
Anti-fabrication β every digest prompt leads with a CRITICAL RULE β NO FABRICATION block: every fact must appear verbatim in INPUT or read_emails output; empty sections say "none"; a blank digest is better than a fabricated one. The Nudge line is restricted to time-of-day and weather only, never invented tasks. This was added after Iris kept inventing a plausible-but-fake "client proposal" in the hourly digest β the EXAMPLE sections that gave it a template to pattern-match against were removed at the same time.
Rendering β the panel renders the markdown itself (renderMd in digest.html), not a generic parser:
- Bold section headers as glowing uppercase labels
- Bullet lists with
βΈmarkers - Pipe tables with styled header rows and hover-highlighted rows
- Task status badges β
[todo]/[in-progress]/[blocked]/[done]/[review]become colored pills - Review blockquotes β the Day/Week in Review prose gets a left-border blockquote treatment
Manual trigger β POST /api/digest/generate?span=hourly|daily|weekly runs a digest now through the same grounded path as the cron. The panel's Generate button does exactly this and polls until the fresh digest lands (timestamp changes, up to ~90s).
π₯ Actionable Extraction β leave it running, come back to a full inbox
This is the one you leave running overnight. You walk away, Warden keeps working, and when you come back everything that actually needs you is already sitting in the Ops Inbox β the meetings and to-dos pulled out of your last hour's email, deduped, and waiting for a single click to confirm. Or flip on auto-accept and your calendar fills itself, offline, with no prompt from you.
There is no separate "scan agent." Finding actionable items is just one more job the hourly Iris digest does on top of summarizing. The same Iris, on the same cron (7 * * * *), reads the last hour's email and emits two extra JSON keys alongside its summary:
{
"title": "...", "summary": "...", "alerts": [], "blocks": [...],
"actionable_tasks": [{ "title": "Confirm the 3pm dentist appointment", "due": "2026-08-14T15:00:00", "project_hint": "personal" }],
"actionable_events": [{ "title": "Meeting with Sunny", "start": "2026-08-14T12:00:00", "end": "" }]
}
When the digest completes, the digest_complete callback (src/index.ts) parses those keys and calls createActionableItems, which writes real rows β work tasks and calendar events β exactly the same ones a manual create_calendar_event / schedule_task would produce. Daily and weekly digests do not extract β they only summarize. Extraction is hourly only.
What counts as actionable (encoded in the hourly prompt):
| Type | Is one when⦠| Is not one when⦠|
|---|---|---|
| Task | A concrete to-do the user must do β prepare, make sure, get ready, confirm, review, send, schedule, fix, follow up, deliver, pay, book, submit. due set only when a deadline is stated. |
A greeting, question, opinion, status update, or bot-sent message. |
| Event | A scheduled meeting/appointment with a stated date and start time inside the message (start in ISO from that time; end if stated). |
The email's receive/arrival date (that's metadata, never a start), or a promotion/receipt/newsletter/shipping notice/automated reminder. |
A single email can yield both β the meeting at a stated time is an event; "make sure you're ready for it" is a separate task. Empty arrays are the correct answer when nothing's actionable; Iris is told not to invent items.
Dedup β before creating anything, taskAlreadyExists(title) checks work tasks by title and eventAlreadyExists(title, start) checks calendar events by title and exact start time. So the same meeting surfacing in two consecutive hourly windows creates it once, not twice.
The Ops Inbox (/api/scan/inbox β the Ops Panel's Inbox tab) is where unconfirmed items land:
GET /api/scan/inboxreturns the unconfirmed work tasks + calendar events plus the currentautoConfirmflag.POST /api/scan/confirm { kind, id }green-checks one item β setsconfirmed = 1so it graduates out of the inbox and onto the real calendar / task list. Deny is a normal delete.GET/POST /api/scan/config { autoAccept }reads or flips the toggle.
Auto-accept β when scan:auto_accept is on, createActionableItems writes every row with confirmed = 1 already, so items skip the inbox entirely and land straight on the calendar/task list. Turn it on from the Actionable tab's toggle or POST /api/scan/config { "autoAccept": true }. Off (the default) means everything is confirmed = 0 and waits in the inbox for your β.
Offline calendar fill β extracted events are written to the local calendar DB (calendar_source: 'local', a fresh ical_uid), with no round-trip to Google. That's the "auto-fills the calendar offline" part: your inbox-to-calendar pipeline doesn't depend on any provider being reachable. Online calendars sync the other direction β the 15-minute startCalendarSyncPoller pulls Google events into the same local DB so the models can read both local and remote in one list_calendar_events call. (Iris manages entries on that local copy: create, list, update, and delete by the uid list_calendar_events returns.)
Manual run β the Actionable tab's Scan now button (POST /api/scan/run) fires the same hourly Iris digest on demand through triggerDigest('hourly', true) β identical path β identical extraction. There is no separate scan cron or scan model; the hourly digest cron is the only thing that extracts, and the button is just "run it now."
End-to-end, unattended β set autoAccept, walk away, come back: the hourly cron has been pulling actionable items out of each hour's email, deduping them, and writing them to your calendar and task list the whole time. Or leave auto-accept off and triage the inbox in one pass. Either way the work of turning "you've got mail" into "you've got a calendar" is already done.
β° Daily digest as an alarm clock
Each digest span has a talk toggle (digest:talk:hourly|daily|weekly in router state, set from the dashboard). When talk is on for a span, that span's digest isn't just published to the panel β digest_complete also pushes it through the normal chat_complete notification path, and the voice client speaks it aloud via TTS.
The daily digest's cron is configurable from the dashboard (default 17 21 * * *, i.e. 21:17 local β deliberately off the :00 mark). Move it to your wake time, turn on digest:talk:daily, and the morning briefing β today's calendar, active tasks, notable emails, and the alerts block β is spoken to you at that time. Grounded in your real local data, not a generic forecast. A TTS alarm clock that knows you've got a standup in 20 minutes.
π Training loop
Warden's seat model is a fine-tune (orchatlas-ft, built from training/), and the dashboard's Training view closes the circuit: failures the system actually made become new SFT rows and a fresh retrain β audit β modify β train, three buttons, no terminal.
| Step | What it does |
|---|---|
| Audit logs (1 / 3 / 7-day window) | Clears VRAM (refuses while an agent turn is live), loads a 17 GB local analyst model, parses the warden logs (journald, warden.log fallback) for failure-shaped turns β tool errors that never recovered, dead ends with zero tool calls, refusals, hallucinated answers, infra outages β and has the analyst classify each slice as a failure class or not_a_failure (conversational turns grep-match too; the classifier filters them, not the regexes). No cap β every failure-shaped turn is cataloged, because dropped slices are dropped training data. The catalog is checkpointed after every slice, so a crash mid-run keeps the classification work. Catalogs land in training/loop/catalogs/. |
| Modify training data | Takes the newest catalog, drops the non-failures, and has the analyst write new SFT rows against the live tool pool and existing exemplars. Every row is validated locally against the merge contract (exact time anchor, tools in the role pool, no per-row tools), then merge_orchatlas_parts.mjs runs as the gate β anything invalid gets renamed .rejected and the step fails loudly instead of corrupting the dataset. |
| Train | Runs the standard 1-epoch atlasorch.sh as-is. When it finishes, flip the seat model to orchatlas-ft in the dashboard. |
Each step is a detached background job with a live log tail in the view; only one step runs at a time, and audit/modify unload the analyst when they finish so the VRAM goes back to the resident models. The keep-alive re-pin cooperates: it only maintains models that are loaded β it snapshots Ollama's /api/ps and never re-spawns a model that was deliberately unloaded, so a pinned seat model can't fight the analyst for VRAM mid-audit.
flowchart LR
A["Audit logs (1 / 3 / 7-day)"] --> B["Modify training data"]
B --> C["Train β atlasorch.sh"]
C --> D["Flip seat model to orchatlas-ft"]
D -.->|"new failures"| A
π Alpha Stack
The trading research stack lives at trading/ (red rail button under Chat in the dashboard) β a machine-local environment, not part of a fresh install: the venv, models, data, and paper-trading state are self-ignored via trading/.gitignore and are never committed.
The Alpha Stack view is the stack's own webapp β trading/webapp/ (a stdlib-only server, bound to 0.0.0.0:8765 so the dashboard's mobile/LAN clients can load the embedded iframe β same no-auth single-user posture as the dashboard itself). Warden does not run it as a daemon: opening the Alpha Stack view spawns it on demand (trading/bin/python webapp/app.py, detached, logging to trading/logs/webapp.log); the systemd drop-in warden.service.d/alpha-webapp.conf also starts it on every Warden (re)start. The iframe targets the dashboard's own hostname on :8765, so it renders from any device that can reach the dashboard. State (trading/.alpha-stack/) and reports (trading/.tradingagents/logs/) live on disk under the stack root, so a webapp restart loses nothing.
Everything is fail-open: with no trading/ present the view reports the failure and Warden runs identically. The stack's local LLM dependency (TradingAgents points at http://localhost:11434/v1) is the same Ollama the rest of Warden uses.
π HTTP API
Everything talks to Warden through one HTTP server β the dashboard, the hologram panels, the Pi satellite, and Iris's internal loopback. It's a single plain-JSON server on STATUS_PORT (default :3200), the same one that serves the dashboard UI. There is no auth gate β Warden is single-user, so every /api/* route is open on the loopback host. (The old multi-user/admin/user route trees return 410 Gone.)
Surface
| Group | Endpoints |
|---|---|
| System & control | GET /api/status Β· GET /api/health Β· GET /api/heartbeat Β· GET /api/activity Β· GET/POST /api/process-logs Β· POST /api/server/restart Β· POST /api/open-terminal Β· POST /api/terminal |
| Chat & agents | GET/POST /api/messages Β· POST /api/chat/stop Β· POST /api/chat/interrupt Β· POST /api/chat/clear-context Β· POST /api/chat/clear-conversation Β· POST /api/agents/kill Β· POST /api/voice |
| Files (shared workspace) | POST /api/files/upload Β· GET /api/files/download Β· GET /api/files/serve Β· GET /api/files/list Β· GET /api/files/read Β· GET /api/files/stat Β· POST /api/files/mkdir Β· POST /api/files/copy Β· POST /api/files/rename Β· POST /api/files/revert Β· GET /api/files/history Β· GET /api/files/version |
| Digests | GET/POST /api/summaries?span= Β· POST /api/digest/generate?span=hourly|daily|weekly |
| Actionable / Ops inbox | POST /api/scan/run (run hourly extraction now) Β· GET /api/scan/inbox (unconfirmed tasks + events) Β· POST /api/scan/confirm Β· GET/POST /api/scan/config ({ autoAccept }) |
| Tasks & scheduling | GET/POST /api/tasks Β· POST /api/tasks/bulk Β· GET/POST /api/work-tasks Β· GET/POST /api/timers Β· GET/POST /api/automations Β· GET/POST /api/alarms |
| Memory, bio, search | GET/POST /api/bio Β· GET/POST /api/projects Β· GET /api/search Β· GET /api/skills Β· GET /api/groups |
| Channels | GET /api/channels Β· */api/channels/slack Β· */api/channels/telegram Β· */api/channels/whatsapp (+ /qr, /sync) Β· */api/email/{accounts,inbox,drafts,message,send,test} Β· GET/POST /api/calendar/events Β· POST /api/calendar/import Β· GET/POST /api/calendar-token Β· GET /api/oauth/start Β· GET /api/oauth/callback Β· GET /api/oauth/accounts |
| Models / Ollama | GET /api/ollama/servers Β· GET /api/ollama/model-names Β· POST /api/ollama/test Β· GET /api/ollama/thinking-support Β· POST /api/ollama/toggle |
| Training loop | POST /api/training/audit {days: 1|3|7} Β· POST /api/training/modify Β· POST /api/training/train Β· POST /api/training/stop (SIGTERMs the running step's process group) Β· GET /api/training/status Β· GET /api/training/catalogs |
| Alpha Stack | GET /api/alphastack/status (inventory + whether the webapp is up) Β· POST /api/alphastack/webapp/start (spawns the stack's webapp on 0.0.0.0:8765 on demand) |
| Audit | POST /api/audit/run Β· GET /api/audit/status |
| Settings & UI plumbing | GET/POST /api/settings Β· GET/POST /api/dashboard-pages (live/beta file editing) Β· GET/POST /api/mcp-servers Β· GET /api/notifications Β· GET /api/notifications/poll Β· GET/POST /api/notification-list Β· POST /api/notification-list/read-all Β· GET/POST /api/api-keys |
Things worth knowing
- Files are workspace-scoped. Every
/api/files/*route resolves its?path=underGROUPS_DIR(~/warden/groups) and rejects anything that escapes it (.., absolute paths). The shared uploads/downloads folder the hologram panel uses isgroups/uploads/. Uploads take the file body asapplication/octet-streamwith the filename in anx-filenameheader (up to 1 GB); downloads stream a single file as octet-stream or a directory astar.gz. - Digests are a loopback. Iris compiles a digest and publishes it by
POST /api/summaries?span=Xβ a keyless internal call back to this same server. The panel then readsGET /api/summaries?span=X. That loopback is the only way a digest reaches the UI. - The hologram can't
fetch()directly. Its panels load fromfile://, so Qt WebEngine's same-origin policy blocks them from reaching:3200.eyes_ears/ui/jarvis_window.pybridges this withwarden_api(path, method, body)(JSON proxy),warden_upload(dir, name, b64), andwarden_download(path)(base64 in/out) β Python makes the real HTTP request and hands the result back to the iframe. - Quick checks.
curl -fsS http://localhost:3200/api/statusfor a live snapshot;curl -fsS http://localhost:3200/api/healthfor a liveness ping.
π§© MCP Ecosystem
Model Context Protocol servers give agents real capabilities without touching core code:

| Server | Capability |
|---|---|
| Filesystem | Read, write, edit, search, manage files |
| Fetch | Retrieve web content |
| Shell | Execute commands in a live PTY |
| Memory | Persistent knowledge graph |
| SQLite | Query and manage databases |
| Time | Timezone-aware scheduling |
| Plasma | KDE Plasma D-Bus (notifications, clipboard, windows) |
MCP servers are configured in data/mcp-servers.json and can be toggled from the dashboard. Atlas and Vulkan get every installed server; the chat seat keeps marm (memory recall is assistant state) and routes the rest through a delegate.
Default apps
Warden ships a built-in provider for each capability β browser, web, files, shell, capture. An installed MCP server can take one over from Settings β Default apps: pick chrome-mcp for browser and from the next dispatch the agents browse with that server.
Choosing a server replaces the built-in rather than sitting beside it. One provider per job is the point: two tools that can both plausibly do something is how a small model ends up hand-driving a page instead of calling the tool that owns the task. If the chosen server has no tools loaded, the built-in stays and the runner logs why β a server that failed to start can't leave a seat unable to work.
π‘ Channels
One conversation, many doors. All channels merge into a single chat:
| Channel | How |
|---|---|
| π Web Dashboard | PWA at http://localhost:3200 β always enabled |
| βοΈ Telegram | Bot via grammy β enabled |
| π WhatsApp | Baileys (no third-party API) (module present, disabled by default) |
| π Slack | Bot integration (module present, disabled by default) |
The Web Dashboard and Telegram are enabled in the default build β src/channels/index.ts imports ./web.js and ./telegram.js. WhatsApp and Slack still ship but are commented out; uncomment the relevant import './<channel>.js'; line there to turn one back on. Message from the dashboard, continue on Telegram, check back on the web β same context, same memory.
Telegram
The Telegram bot is single-owner by design β it only talks to one chat. The bot can drive a whole computer, so it's not open to anyone: the first chat to /start it claims ownership, and every other chat is politely refused. The refusal message includes that chat's id, so you know exactly what to paste to re-point the bot there.
- Editable owner chat β Settings β Channels β Edit Telegram exposes a Chat ID field that sets the real owner chat (
TELEGRAM_OWNER_IDindata/env/env+ thetelegram:owner_idrouter state) and reconnects the bot. Paste a different chat id and save; the bot re-points there on reconnect. Leave the bot-token field blank to keep the current token. - Group support β add the bot to a group and
/startit there; it replies with that group's chat id (a negative-100β¦number). Paste that id (including the leading-) into the Chat ID field and save, and the bot listens on the group instead of your DM. To actually see group messages, disable Group Privacy via @BotFather (/mybotsβ your bot β Bot Settings β Group Privacy β Turn off), then re-add the bot to the group. - Full sender names β every inbound message is tagged with the sender's full name (First Last, or username) so the seat can tell who is talking in a group, not just "a user." The name flows straight into the agent's message context (
<message sender="First Last">β¦</message>).
π οΈ Tech Stack
| Layer | Technology |
|---|---|
| Runtime | Node.js 20+ with TypeScript |
| Database | SQLite via better-sqlite3 |
| Browser | mcp-chrome-bridge native host (12306) + chrome-mcp-server extension on your real Chrome, re-served statelessly by the Warden gate β navigate, read, click, type, key-press, tab management |
| Desktop | xdotool + spectacle β coordinate input, screenshots |
| Terminal | Live PTY shell (tmux warden-shell) |
| LLM | Ollama (local + cloud) |
| LLM Routing | Native Ollama HTTP by default; optional credential proxy (src/credential-proxy.ts) for Anthropic format translation |
| Messaging | grammy (Telegram), Baileys (WhatsApp), Slack SDK |
| IMAP via imapflow, SMTP via nodemailer | |
| Voice | Whisper (STT), Kokoro or Orpheus (TTS) |
| Logging | Pino |
| Process | Single Node.js process, agent-runner as persistent child |
All LLM communication is raw HTTP fetch to Ollama. No vendor SDKs. You control the model.
π Quick Start
What you need
Warden is an autonomous AI that runs on your own hardware. It can operate fully locally, fully in the cloud, or mixed. The minimal setup is a single Linux machine with a local Ollama instance.
| Component | Minimum | Recommended |
|---|---|---|
| OS | Linux (kernel 5+) | Arch Linux or Ubuntu LTS |
| Node.js | 20+ | 22 LTS |
| RAM | 8 GB | 16 GB+ (local models + browser tools) |
| GPU | Optional | NVIDIA GPU for local vision / TTS models |
| Browser | Optional β your real Google Chrome | Google Chrome + the mcp-chrome-bridge native host for the extension-driven browser tools |
| Microphone/speaker | Optional | USB or Bluetooth headset for voice |
Step 1 β Get the repo
git clone https://github.com/domdoss/Warden.git warden
cd warden
All commands below assume you are inside the project root.
Step 2 β Install system dependencies
On Arch Linux (the primary target):
bash install-deps.sh
This installs Node.js, npm, git, build tools, poppler, tmux, sqlite, and desktop-control utilities (xdotool, ydotool, wtype, grim, clipboard tools, etc.). It also enables loginctl linger so user systemd services keep running after logout.
On other distros, install the equivalents manually. The key binaries Warden expects are:
nodeandnpmpoppler(forpdftotext)tmux,sqlite3xdotool,ydotool,wtype,grim,wl-clipboard,xclip,scrot
For the browser capability (optional): your normal Google Chrome, plus npm install -g mcp-chrome-bridge and the unpacked chrome-mcp-server-1.0.0/ extension from this repo loaded via chrome://extensions β Load unpacked. No system Chromium and no CDP flags needed β the extension bridge is the only path.
macOS users can try bash install-macos.sh as a best-effort alternative. Some Linux-only tools will not be available.
Step 3 β Run the installer
bash install.sh
install.sh is interactive and does the following:
- Shows a safety warning and asks you to type
I UNDERSTANDbefore continuing. - Verifies Node.js >= 20.
- Offers to run
install-deps.shif it detectspacman. - Checks for the optional browser chain (Google Chrome,
mcp-chrome-bridge, the unpacked extension folder) and warns β never blocks β if any are missing. - Installs npm dependencies for the server and the agent-runner.
- Compiles TypeScript with
npm run build. - Creates runtime directories:
data/,store/,groups/,logs/. - Initializes the SQLite database.
- Writes a starter
data/env/envconfig file if one does not exist. - Registers and starts a systemd user service:
~/.config/systemd/user/warden.service, plus a drop-in that runsscripts/restart-browser-bridge.shon every start so a Warden restart also repairs the browser bridge. - Enables user linger so the service survives logout.
After it finishes, the dashboard is available at http://localhost:3200.
Step 4 β Configure
Open data/env/env and set at least the assistant identity and Ollama endpoint:
ASSISTANT_NAME=Warden
TZ=America/Vancouver
OLLAMA_URL=http://127.0.0.1:11434
If you want cloud models, set the appropriate keys later from the dashboard or env file. Channels (Telegram, Slack, WhatsApp) are optional β the dashboard works without them.
Restart the service after editing:
systemctl --user restart warden
Step 5 β Verify
# Service status
systemctl --user status warden
# API health
curl -fsS http://localhost:3200/api/status
# Dashboard
open http://localhost:3200
The dashboard loads directly.
Day-to-day control
# Start / stop / restart
systemctl --user start warden
systemctl --user kill warden # fast stop
systemctl --user restart warden
# View logs
journalctl --user -u warden -f
tail -f logs/warden.log
Tuning the Ollama daemon
Warden drives Ollama as its local model runtime β the Atlas seat, the shared Toolcall model (Iris/Sentry), and any resident cloud models all live there. The daemon's defaults are tuned for a generic single-user chat client, not an agent loop that fires many short requests across several models, so it's worth overriding them. Create a systemd drop-in for the ollama system service:
sudo systemctl edit ollama
Add these to the override (the [Service] section is where Environment= lines belong):
[Service]
Environment="OLLAMA_NUM_PARALLEL=1"
Environment="OLLAMA_MAX_LOADED_MODELS=3"
Environment="OLLAMA_KEEP_ALIVE=30m"
Environment="OLLAMA_KV_CACHE_TYPE=q8_0"
Then reload and restart so they take effect:
sudo systemctl daemon-reload
sudo systemctl restart ollama
Verify they landed (systemctl show ollama -p Environment prints the merged environment, including your drop-in):
systemctl show ollama -p Environment
What each line does and why it's here:
| Setting | What it controls | Why this value |
|---|---|---|
OLLAMA_NUM_PARALLEL=1 |
How many inference requests Ollama will run concurrently. The default scales with your CPU count, inviting parallelism. | Warden serves one conversation at a time, and background jobs are capped at 3 running jobs per delegate (with a same-file queue behind any writer). Those jobs still fire many short requests across several models, and there is no benefit to running them concurrently β only downside: two models racing for VRAM, evicting each other, or OOMing. Pinning this to 1 serializes requests so a model finishes and frees memory before the next one loads. |
OLLAMA_MAX_LOADED_MODELS=3 |
The max number of models Ollama will keep resident in VRAM at once. Beyond this, the least-recently-used resident model is evicted. | Room for the three things that matter to Warden: the Atlas seat (kept alive always), the shared Toolcall model (Iris/Sentry), and a third resident model whose keep-alive you've enabled. (The supervisor no longer holds a slot β its running-job tick was cut out; it only runs the occasional completion verdict on finished jobs.) A fourth request simply evicts the LRU rather than OOMing. (Raise or lower this to match your VRAM; the dashboard's keep-alive checkboxes decide which models are candidates for these slots.) |
OLLAMA_KEEP_ALIVE=30m |
How long a model stays loaded in VRAM after its last request before Ollama unloads it. Default is 5m. |
The agent loop issues many short, bursty requests separated by seconds-to-minutes of thinking. At 5m a model often unloads between turns and you pay the multi-second reload latency on the next call. 30m keeps models hot across a typical work session so repeated calls hit resident weights. Lower it if you're tight on VRAM and want idle models to release memory sooner. |
OLLAMA_KV_CACHE_TYPE=q8_0 |
Quantizes the KV cache (the per-token attention state that grows with context length) to 8-bit instead of fp16. | Long agent contexts eat VRAM fast, and the KV cache is where it goes. q8_0 roughly halves that cache footprint at a negligible quality cost, which is what lets you run longer contexts and keep more models resident (see OLLAMA_MAX_LOADED_MODELS) on the same GPU. Leave it fp16 only if you have VRAM to spare and want the last bit of fidelity. |
These are the levers that actually matter for an agent workload: serialize the work, keep the right models hot, and spend VRAM on cache cheaply. Everything else in the Ollama config is either automatic or not worth touching for Warden.
Modular audio pipeline (run.sh)
Warden's audio system runs on a single desktop by default β mic, speaker, STT, TTS, and the Warden brain all on one machine. The pipeline is composable, though: if you want, you can offload just the raw mic/speaker I/O to a small satellite box on the LAN (a Pi or any headless box). The same run.sh entrypoint covers everything from "all-local on the desktop" (the default) to "mic on a Pi in the kitchen, speaker on a Pi in the living room."
The pipeline looks like this:
ββββββββββββ raw PCM ββββββββββββββββ transcribed text βββββββββββββββββ
β MIC β ββββββββββββββ> β STT (local) β βββββββββββββββββββ> β WARDEN β
β local β HTTP stream β Whisper β β (any host) β
β or Pi β ββββββββββββββββ β atlas seat β
ββββββββββββ β + delegates β
βββββββββ¬ββββββββ
ββββββββββββ WAV audio ββββββββββββββββ spoken reply β
β SPEAKER β <ββββββββββββββ β TTS (local) β <ββββββββββββββββββββ
β local β HTTP POST β Kokoro or β
β or Pi β β Orpheus β
ββββββββββββ ββββββββββββββββ
Here's how a spoken question travels through the pipeline. By default everything is local: you press the push-to-talk button (or clap twice), the desktop's mic captures audio, Whisper transcribes it, and the text goes to the Warden seat on the same machine. Warden reads it, delegates to whatever specialists are needed, and sends back a reply. The reply hits the local TTS engine (Kokoro or Orpheus, running on the GPU), which synthesizes a WAV file and PipeWire plays it on the desk speakers. If you've offloaded audio I/O to a satellite, the mic stream comes from the satellite's satellite_server.py over HTTP instead, and the finished WAV is POSTed to the satellite's :8766/play endpoint to come out of whatever speaker is plugged into it.
Every joint in that chain is a flag. --mic local means "read the desktop's built-in mic." --mic 192.168.1.80 means "stream it from a satellite." --speaker local means "play through the desktop speakers." --speaker 192.168.1.81 means "send the WAV to a satellite in another room." The desktop always runs STT, TTS, and the hologram UI β those need the GPU. The satellite only ever runs pw-record and pw-play. It has no Python dependencies. It doesn't even need a virtual environment. You could run it on a Pi Zero and it wouldn't break a sweat.
This means you can put mics and speakers wherever you actually spend time β kitchen, workshop, bedside table β without moving the GPU. Each satellite is just a small box with a USB mic and a powered speaker, running one script. The desktop stays on your desk. And run.sh ties it all together: one command, a few flags, and the whole system comes up.
STT, TTS, and the hologram UI always run on the desktop. Only raw audio I/O β the microphone stream and speaker playback β can be offloaded to a satellite. The satellite is a dumb pipe: it runs satellite_server.py, a ~200-line Python script with zero dependencies beyond PipeWire's pw-record and pw-play. No venv, no GPU, no models. A Pi Zero is overkill.
Independent per-side routing
Mic and speaker are chosen independently. You can have the Pi mic in one room and your desk speakers in another, or vice versa:
# Everything local (the default)
./run.sh
# Both mic and speaker on the default satellite (from eyes_ears/config/settings.yaml)
./run.sh --remote
# Both on a specific satellite
./run.sh --remote 192.168.1.80
# Satellite mic, local desk speaker
./run.sh --mic 192.168.1.80 --speaker local
# Local desktop mic, satellite speaker in another room
./run.sh --mic local --speaker 192.168.1.80
# Different satellites for mic and speaker
./run.sh --mic 192.168.1.80 --speaker 192.168.1.81
The --mic and --speaker flags accept local, remote (resolves to the default satellite IP), remote:<ip>, or a bare IP. The root run.sh normalizes all of these into main.py's --mic/--speaker format before launching.
eyes_ears/run.sh β the single entrypoint
eyes_ears/run.sh is the one launcher for the ears app (the Eyes / Oculus webcam detector was removed 2026-09-15 β ears only now). It handles the app-specific setup before handing off to ears.main:
./run.sh --ears # voice assistant, local mic + speaker
./run.sh --ears --remote ... # voice on a satellite relay
./run.sh --ui-only # hologram + panels + text chat, NO audio routing
The --ui-only mode lets a machine run just the hologram + panels against the Warden server with no mic, speaker, STT, TTS, clap-detector, control-server, or global-hotkey β handy for a desktop that shouldn't route audio.
Interactive launcher
With no flags and a TTY, eyes_ears/run.sh drops into an interactive menu (prefaced by an ANSI EARS block banner):
1) Ears β voice + UI, local mic + speaker
2) Satellite β this machine is the audio relay on :8766
3) UI only β hologram + panels + text chat, NO audio routing
4) Configure β set warden.base_url / satellite.host
5) Quit
The same choices exist as flags for scripting: --ears, --ui-only, --satellite, --configure. Bare --mic/--speaker/--remote audio flags forward to ears (--remote <host> is shorthand for --mic remote:HOST --speaker remote:HOST). No Warden or satellite IPs are hardcoded in the script β both come from eyes_ears/config/settings.yaml, set via the Configure menu or --configure.
- Satellite mode:
./run.sh --satelliteruns the dumb audio relay (../satellite/satellite_server.py) on the current machine instead of ears β same script, opposite role. The relay is stdlib-only, so this works on a bare Pi with no venv. - GPU setup: Sets CUDA library paths for the orpheus_cpp TTS engine and configures Qt WebEngine flags for the hologram UI (skips slow kwallet probes).
- TTS persistence:
--tts kokoro|orpheus_cpp|orpheusand--tts-devicepersist toeyes_ears/config/settings.yamlbefore launch, so the in-process TTS picks them up at startup. Defaults to Kokoro; swap with./run.sh --tts orpheus_cpp. - Sensible defaults: No flags (with a TTY) drops into the menu; otherwise no flags = fully local (desk mic + desk speaker). Any
--mic/--speaker/--remoteflag and it forwards them through.
cd eyes_ears
# Menu (default, with a TTY)
./run.sh
# Or pick a role directly
./run.sh --ears
./run.sh --ui-only
# Run the satellite relay on this machine instead
./run.sh --satellite
# Orpheus TTS with a device pin
./run.sh --tts orpheus_cpp --tts-device cuda:0
# Remote mic, local speaker
./run.sh --mic remote:192.168.1.80 --speaker local
```For a permanent install, prefer the systemd service. `run.sh` is for development, one-off tests, and split-machine topologies.
---
## π Multi-Machine / Bare-Metal Role Configuration
> **Note (2026-08):** Warden now runs on a **single desktop** β the old two-box desktop + Pi setup was retired. The role-split below still works if you genuinely want to distribute roles across machines on a LAN, but it is no longer the default or the supported path. Most users want everything on one box.
Warden is split into roles that can run on different machines on the same LAN. By default everything assumes `localhost`, but you can point each role at another host by editing the right config.
| Role | What to set | Where |
|------|-------------|-------|
| **Warden** (brain/dashboard) | `WARDEN_URL` or `warden.base_url` | `data/env/env` for server; `eyes_ears/config/settings.yaml` for ears |
| **Audio** (hologram) | Warden URL + Satellite URL | `eyes_ears/config/settings.yaml` under `warden.base_url`; `--remote <satellite-ip>` on launch |
| **Ollama** | `OLLAMA_URL` | `data/env/env` |
| **Satellite** (Pi audio relay) | Audio server IP | Pi TUI (`tui/graice-tui.sh`) |
### Example: split across three machines
- **Warden** on a small box at `http://<warden-host>:3200`
- **Ollama** on a GPU box at `http://<ollama-host>:11434`
- **Audio** on the same desktop, using a Pi Satellite at `<satellite-host>`
Set on the **Warden host** (`data/env/env`):
```bash
OLLAMA_URL=http://<ollama-host>:11434
Set on the Audio host (eyes_ears/config/settings.yaml) β one merged file, one warden.base_url:
warden:
base_url: http://<warden-host>:3200
Then start Audio pointed at the Satellite:
./eyes_ears/run.sh --remote <satellite-host>
See Modular audio pipeline for the full routing matrix β independent mic/speaker, local/satellite/ui-only, and the interactive launcher.
π£οΈ Voice Assistant
eyes_ears/ (the ears half) is a voice-first desktop companion that turns Warden into a talk-to-it assistant. Press a button (or a global hotkey), speak, and the reply is spoken back. Speech-to-text (Whisper) and text-to-speech (Kokoro or Orpheus) run locally on your machine β your voice never leaves it. All reasoning, tools, and memory stay on the Warden server; the app is just ears and a mouth.

- π€ Local STT (Whisper) + TTS (Kokoro or Orpheus) β your voice never leaves the machine.
- π» Hologram UI that reflects state (idle / listening / thinking / speaking).
- π Double-clap wake word β clap twice to start a conversation (works on both local mic and satellite Pi mic).
- πΈ Vision: capture a photo, describe a scene, read text (OCR), find objects.
- π¬ Direct Line chat panel β type messages from the hologram UI instead of the dashboard.
- π₯οΈ Built-in dashboard panels β today, digest, agents, chat, tasks, upload, and system tabs in the hologram window.
- π Talks to your existing Warden session.
- π Independent mic/speaker routing β each side can be local or a remote satellite. See Modular audio pipeline.
Hologram window
The voice UI runs in its own GPU-accelerated window via pywebview + Qt WebEngine. It's a real Chromium instance with hardware rendering β D3D11 ANGLE on capable GPUs, automatic SwiftShader fallback on VMs or machines without a GPU. The window hosts eyes_ears/ui/jarvis.html (the animated hologram face with idle/listening/thinking/speaking states) and eyes_ears/ui/panels.html (the dashboard panels laid out as iframes in a single transparent window).
Collapsing what used to be 5 separate windows into 1 cut Qt WebEngine's renderer-process startup from ~3 minutes cold to well under a minute. The panels layout stacks three rows: a top strip for the hologram, a middle row with digest, chat, ops, and upload side-by-side, and a bottom ambient strip. Each panel is an iframe loading its own HTML file from eyes_ears/ui/ β they share the pywebview JS bridge so they can talk to the Python host.
Because those iframes load from file://, Qt WebEngine's same-origin policy blocks them from fetch()-ing the Warden API directly. eyes_ears/ui/jarvis_window.py bridges this with a warden_api(path, method, body) proxy: the iframe calls it through the pywebview bridge, and Python makes the real HTTP request to the Warden URL and returns the raw body. It's the only path the digest, chat, and ops panels have to /api/* β which is why a bug that passed an Event object where a span string belonged surfaced as a warden_api proxy failed traceback rather than a silent network error.
The window wrapper (eyes_ears/ui/jarvis_window.py) exposes the same interface as the old button-window code, so main.py can swap between them with almost no changes. GPU flags are tuned per-platform: --enable-unsafe-swiftshader lets Chromium fall back to software rendering when no GPU is present, and --ignore-gpu-blocklist stops it from refusing integrated graphics it considers too old.
Install the voice client
- Create a Python virtual environment:
cd eyes_ears
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Copy the example config and edit it:
cp config/settings.example.yaml config/settings.yaml
Set at least:
warden:
base_url: http://localhost:3200
voice:
sample_rate: 48000
whisper_model: base
tts_engine: kokoro # or "orpheus" for higher-quality LLM-based TTS (needs ~6 GB VRAM)
tts_voice: am_michael
- Run it:
python -m ears.main
# or
./run.sh --ears
Common flags
python -m ears.main --remote <satellite-host> # use a Pi/headless box for mic + speaker
Troubleshooting audio
- If you see
Invalid sample rate, try48000instead of16000insettings.yaml. - Bluetooth HFP headsets often need the
pipewireorpulsebackend devices. Set explicitaudio.input_device/audio.playback_deviceindices if auto-detection fails. - The clap detector has its own sample rate (
clap_sample_rate). Keep it at48000unless you know the mic supports the chosen rate.
π°οΈ Satellite (Pi audio relay)
Note (2026-08): The dedicated-Pi satellite is optional / legacy β Warden's voice system runs fully on the desktop now. This section describes the optional remote mic/speaker relay for when you want audio I/O in another room.
satellite/ is the Raspberry Pi side of the voice system β the ears and mouth that live on a dedicated Pi (or any small headless box). The Pi is a dumb pipe: it streams raw microphone audio to the desktop and plays back the TTS the desktop returns. No STT, no TTS, no model inference happens on the Pi β transcription and synthesis run on the desktop, so a Pi Zero is plenty.
The satellite relay is a single ~200-line Python file (satellite_server.py) with zero dependencies beyond PipeWire's pw-record and pw-play. It exposes three HTTP endpoints on :8766:
| Endpoint | What it does |
|---|---|
GET /mic |
Streams 16 kHz raw PCM from the default PipeWire mic |
POST /play |
Accepts a WAV body and plays it on the default PipeWire speaker |
POST /cancel |
Stops playback immediately (barge-in) |
The satellite mic also supports double-clap wake β clap twice near the Pi and the hologram starts listening, no button press needed.
Launch it from eyes_ears/run.sh --satellite (same script, opposite role) or directly:
python3 satellite/satellite_server.py --host 0.0.0.0 --port 8766
See Modular audio pipeline above for how mic and speaker routing works end-to-end.
Pi files
| File | What it is |
|---|---|
satellite_server.py |
HTTP audio relay (:8766). GET /mic streams 16 kHz PCM from the default mic; POST /play accepts a WAV body and plays it on the default speaker; POST /cancel stops playback (barge-in). |
hardware/voice-button.py |
GPIO hold-to-talk button (gpiozero, BCM pin 17 to GND). |
tui/graice-tui.sh |
On-device settings menu: WiFi, Bluetooth, speaker/mic volume, mode selection, and start/stop. |
boot-defaults.sh + warden-boot-defaults.service |
Restores saved WiFi, Bluetooth, and default audio sink/source at boot. |
install-deps-pi.sh |
apt-based installer for Raspberry Pi OS. |
Install on the Pi
- Flash Raspberry Pi OS Lite or Desktop.
- Clone or copy the repo.
- Install system dependencies:
bash satellite/install-deps-pi.sh
- If the Pi is also the Warden brain, run the main installer too:
bash install.sh
- Configure the Pi from the TUI:
bash tui/graice-tui.sh
Pick a mode and, if using the Pi as a satellite, set the audio server IP to the laptop running the voice client.
Modes
| Mode | What the Pi runs | Button behaviour |
|---|---|---|
| standalone | Warden + button | Records here, sends to local Warden. |
| satellite | Audio relay + button | Streams mic to the laptop; laptop does STT/TTS. |
| both | Warden + audio relay + button | Same as satellite, but talks back to the Pi's own Warden. |
Run the relay manually
cd satellite
python3 satellite_server.py
The relay binds :8766 by default.
βοΈ Configuration
Environment file
The main config file is data/env/env. It is created by install.sh if it doesn't exist. Key variables:
# Identity
ASSISTANT_NAME=Warden
LOCAL_ASSISTANT_NAME=Kimi # display name for local/offline mode (a persona), NOT a model β model picks live in the dashboard
# Server
STATUS_PORT=3200 # dashboard / API port
TZ=America/Vancouver
# Ollama / models
OLLAMA_URL=http://127.0.0.1:11434
OLLAMA_CHAT_MODEL=llama3.2:latest
DEFAULT_MODEL_MODE= # "local", "hybrid", or empty (Ollama only)
IDLE_TIMEOUT=14400000 # how long the warm agent-runner stays alive
# Optional channels
TELEGRAM_BOT_TOKEN= # from @BotFather
SLACK_BOT_TOKEN= # xoxb-...
SLACK_TEAM_ID= # T...
# Browser / desktop
BROWSER_BIN=/usr/bin/chromium
BROWSER_HEADLESS=false
Changes to data/env/env take effect on the next service restart:
systemctl --user restart warden
Dashboard settings
Most runtime behavior is controlled from the dashboard at http://localhost:3200:
- Models β per-role model selection: Atlas (the seat), Vulkan, Artemis, council seats, and one shared Toolcall model for Iris/Sentry. Each role has a num_ctx override and a keep-alive checkbox for Atlas/Toolcall.
- Servers β Ollama URL, Whisper URL, Satellite IP, and the Audio/Warden role URLs.
- Heartbeat β scheduled standing instructions.
- Skills & MCP β toggle capabilities and external tools.
Dashboard settings are stored in the router state and take effect immediately β no restart needed.
Voice config
eyes_ears/config/settings.yaml holds STT/TTS parameters, audio devices, the Warden server URL (warden.base_url), and the Satellite port. Copy from eyes_ears/config/settings.example.yaml or run ./eyes_ears/run.sh --configure to generate it. This file is gitignored.
π€ Why Warden?
Most AI assistants live in the cloud. They see what you type, not what you see. They run on someone else's hardware, with someone else's model, under someone else's terms.
Warden runs on your machine. It uses your browser, your desktop, your files, your email. It works with local models through Ollama, so your data never leaves your hardware unless you choose to send it. And when you need more power, it reaches out to cloud models β all within the same conversation, with the same memory.
It is not a demo. It is a real assistant with browser automation, desktop control, voice, email, calendar, multi-channel messaging, a plugin ecosystem, an agent architecture that can reason about your work and audit its own decisions, and a prompt engineering surface that has been battle-tested across hundreds of hours of real use.
Warden stole fire from the gods. This one runs on your desktop.
π License
Free for personal, non-commercial use. You can run it, modify it, and fork it for yourself β but you can't make money off this code, a fork of it, or anything built on it. No selling it, no SaaS, no paid services on top of it, no commercial use. Forks inherit the same restriction. See LICENSE for the full terms.
Explore related projects
Loadingβ¦