quiet-bureau
A team of background AI agents (Python + Claude) with a live HQ dashboard and an Obsidian second brain
The Quiet Bureau
A team of AI agents that runs my day in the background, plus a live HQ where I can watch them work.
I'm a math senior with an internship's worth of BI work, a part-time job, classes, and an NSBE e-board role. I kept losing time to the same small jobs: checking Canvas, digging recruiter emails out of my inbox, cleaning my laptop, turning lecture notes into something I could actually study from. So I built a crew of agents to handle them and a "bureau" to supervise them, so I'm not guessing what's going on.
It runs on my Mac every day. Each agent is a small Python job on a schedule. When one needs to think, it calls Claude (through Claude Code's headless claude -p mode) with a strict JSON schema, so I get structured data back, not loose text. The HQ is a small web server that reads every agent's status files and draws a bird's-eye view of the building. Agents walk between rooms, show what they're working on, and take orders when I click them.
I designed the system and built it with Claude Code as my pair programmer. My focus was on how the agents should behave: what each one is allowed to do, when it should spend AI calls, and where a human (me) has to stay in the loop.
The agents
| Agent | Room | What it does |
|---|---|---|
| AXIOM | The Core | My second brain. An Obsidian vault laid out like a solar system: I'm the sun, the big areas of my life are planets, and every idea is a moon linked to what it grew from. I drop one-line thoughts in an inbox and AXIOM files them. Three times a day it "thinks" on its own: it reads what's new (deadlines, important mail, job leads, market news) and writes up ideas, reflections, and next steps. |
| The Scout | Lookout | Two research jobs. Market Watch (weekday mornings) summarizes the market, what credible investors and analysts are saying (including people who disagree), and what's worth learning. Opportunity Scout (twice a week) looks for real consumer needs that could become a business mostly run by automation. Every idea goes through a separate skeptical fact-check pass before I see it, with competitors, risks, and a "kill reason". |
| The Liaison | Mailroom | Watches Gmail (read-only) for recruiter messages and job emails. Scores each job against my résumé, drafts a suggested reply (never sends it), and puts strong fits on a Job Radar. |
| The Mailroom | Mailroom | Keeps my inbox down to what matters. Claude sorts threads into important / routine / low, but Python guardrails decide what actually moves: school, recruiters, banks, security, and real people are always protected. Low-priority mail is archived under a label, never deleted. |
| Agent Sweep | Containment | Keeps the laptop clean: clears caches and files downloads into the right folders. |
| The Director (Judge) | Director's Chamber | A rules-only safety check (no AI) before anything hard to undo. Every action is cleared, blocked, or referred to me. Anything that looks important (résumés, tax forms, contracts, class files) is held for me, not thrown out, and I can overturn any verdict from the HQ. |
| Agent Relay / Memory / Index / Keeper | Comms · Archives · Intel · Operations | The bridge to Memory Hero, my study game: watch Canvas for posts and due dates, turn notes into study missions, pull the textbook sections professors assign, and keep the game healthy. |
What I cared about while building it
- Humans approve anything risky. Agents can read, sort, summarize, and suggest. They don't send emails, submit applications, or permanently delete anything. Deletion goes through the Judge, and email "cleanup" only archives.
- Spend AI calls like they cost money. Most runs never call a model: the watcher checks for new info first and stays quiet when nothing changed. AXIOM can react to news at most 3 times a day with a 2-hour gap. Fast, cheap models handle sorting; a stronger one does the thinking. A usage meter logs tokens and cost for every background call, and one "Save my usage" switch pauses the optional work for a few hours.
- Structured output, not vibes. Every Claude call uses a JSON schema, and Python validates the result before anything touches a file, an inbox, or the vault.
- Research has to show its work. The scouts must run many searches, cross-check numbers, cite sources, include opposing views, and give a confidence level. The Opportunity Scout gets a second, independent fact-check that can lower a score or drop an idea.
- Privacy by default. A filter keeps personal finance details out of the dashboard, the vault, and notifications, so nothing sensitive shows up on screen when someone's looking over my shoulder.
- Tested. 41 pytest tests cover the guardrails, privacy filter, scheduling limits, Judge verdicts, and HQ API.
How it's put together
launchd schedules ──► Python agents ──► claude -p (JSON schema, limited tools)
│
├──► Obsidian vault (AXIOM notes, briefs, job radar, market notes)
└──► data/*.json status files ──► hub.py (localhost:8767) ──► HQ page + AXIOM brain
hub.py: HQ server. Reads status files (no AI calls) and only carries out safe orders (run now, open, pause).web/index.html: the bird's-eye HQ: rooms, walking agents, stats on hover, and the usage meter.web/axiom.html: AXIOM's brain as an interactive point-cloud brain on a canvas. Neurons fire when ideas are added, you can jump between regions, and there are tabs for Thinking, Markets, and Opportunities. It also runs inside Obsidian through a small plugin.axiom.py/axiom_brain.py: filing, thinking, watching, learning from what I keep or dismiss.scout.py: Market Watch and Opportunity Scout with the verify pass.recruiter.py,inbox_keeper.py,judge.py,usage_meter.py: as described above.obsidian-plugin/: AXIOM Bridge, a plain-JS Obsidian plugin that shows the brain in a pane, adds a status bar, and shows a "While you were away" summary when I come back.app/BureauHub.swift: a tiny macOS app that pins the HQ to the desktop with a menu-bar icon.bureau.sh: installs or removes every launchd job in one command.
Stack
Python 3 (standard library only for the server) · Claude Code headless mode (claude -p, JSON schemas, MCP tools for Gmail) · Obsidian · HTML/CSS/JavaScript canvas · Swift / WebKit · macOS launchd · pytest
Run it
python3 -m pytest -q # tests
./bureau.sh install # schedule the agents with launchd
open http://localhost:8767 # the HQ
It's built around my own Mac, vault, and accounts, so it's more of a working portfolio piece than a drop-in tool. Paths and schedules live at the top of each file.
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
0
Forks
0
Last updated 12d ago
Categories