All articles

How the Chief of Staff Works

From a directory on disk to an executive AI partner: continuity, estate-wide situational awareness, and managerial synthesis without micromanagement.

Topics: AI Agents & Orchestration · Engineering Judgment & Reliability · Technical Strategy & Career

From a directory on disk to an executive AI partner.

Most people who build with AI agents think of them as single-turn problem solvers: you give an agent a task, it spins up an execution loop, edits a few files or scrapes a webpage, and terminates. When you close the terminal window, the context vanishes.

The Chief of Staff is architected differently. It is built around continuity, estate-wide situational awareness, and managerial synthesis. You don’t tell it which APIs to ping or how to format an internal search. You converse with it as an executive colleague, and it handles the investigation, coordination, and verification.

1. The Boot Sequence: Coming Into Existence

The Chief of Staff does not live on a cloud SaaS dashboard. It lives inside a dedicated workspace directory on the workstation (~/projects/chief-of-staff).

When Lee opens a terminal in that folder and runs the agent runtime, the Chief of Staff boots up through four distinct phases:

  1. The Operating Constitution: Before processing any prompt, the system mounts AGENTS.md, personality.md, and decisions.md. It enforces strict rules of evidence (machine state beats prose; every claim carries a citation), clear authority boundaries, and zero-tolerance policies for hallucination.
  2. Context Rehydration & Episodic Memory: The engine reads yesterday’s daily journal (journal/YYYY-MM-DD.md), permanent settled decisions, and the durable memory layer. It instantly knows what was left in flight yesterday and what open loops exist without re-prompting.
  3. Sensor & Tool Mounting: It mounts filesystem tools, subagent management tools, git repositories, and the local lee-kb knowledge plane.
  4. Active Role: Grounded in its four core responsibilities: Know → Think → Direct → Supervise.

2. Situational Radar: The Morning Sweep

If you ask a standard chatbot, "What should I focus on today?", it hallucinates generic productivity advice. When Lee asks the Chief of Staff, "What needs my attention?", it executes a live sensory sweep across local machine state:

  • Communication & Calendar Sensor: Checks the local indexed SQLite database of work emails and calendar events (synced via hourly background jobs) for upcoming commitments and critical client replies.
  • Autonomous Fleet Sensor: Inspects our autonomous AI employees and background orchestrators (Auto-Orch, Agent-Orch). Did an overnight run fail? Is an employee stuck at a gate waiting for human sign-off?
  • Commercial Sensor: Inspects the live revenue pipeline ledger and decision queue (business_pipeline.py) to see if proposals were accepted or if outbound campaigns stalled.

The Managerial Filter: A raw log dump is not executive work. The Chief of Staff compresses findings into four clean buckets: Needs You (capped at 5 urgent items requiring human approval), Changed Since Yesterday, Being Handled, and Watchlist.

3. Turning Conversation Into Action: General Contracting

When Lee gives a natural-language directive—such as "Let’s update our architecture documentation and publish the new system diagrams"—he doesn’t have to write prompts for three different models or manage files by hand.

The Chief of Staff acts as the General Contractor:

  • Task Decomposition & Ledger Logging: Records the objective, delegates, and checkpoints into today’s journal.
  • Delegating to Domain Specialists:
    • The Documentation Steward audits the codebase and produces verified technical text.
    • The Visual Communication Illustrator translates verified system facts into clean, anti-hallucination diagrams.
    • The Document Publisher compiles static portals, generates PDFs, and updates live webroot symlinks.
  • Auditing the Work: When subagents finish, the Chief of Staff inspects the generated artifacts against empirical evidence before reporting back.
  • Closing the Loop: Closes out the delegation ledger with verified timestamps and outputs.

4. Governed Authority Boundaries

The foundation of trust in the system is its strict authority division:

  • Autonomous Internally: Broad read access across 58+ project repositories, log inspection, documentation drafting, and local subagent delegation.
  • Gated Externally: External actions—such as sending emails, accepting meetings, publishing live releases, spending money, or promoting employees—are strictly reserved for Lee’s human approval.