Skip to content

feat(desktop): Office observer, an agent that watches every agent - #44

Merged
Mariusfaitducode merged 2 commits into
marius/mainfrom
feature/office-observer
Nov 17, 2026
Merged

Mariusfaitducode merged 2 commits into
marius/mainfrom
feature/office-observer

Conversation

@Mariusfaitducode

Copy link
Copy Markdown
Owner

What

An observer in the Office: one agent whose job is to read every other agent and hand Marius one synthesis on three missions:

  1. Your work: what waits on you (old Desk reports, review requests, messages, red CI), threads that went quiet, what to resume first.
  2. Efficiency: agents idle for over a day, duplicated work, agents blocked on a prompt, silent tracked tasks, memory pressure, wasted turns (Insights).
  3. Superset: frictions seen in transcripts, "Superset idea" notes and ~/.claude/superset-ideas.md, deduplicated against the roadmap, proposed as roadmap items.

It only reads. Texts in the user's name come back as superset report draft; it never touches the user's to-dos.

How it fits

  • Office: a booth pinned to the top-left corner of the floor (not a desk among the others, so it doesn't touch the layout). It shows the state (never run, starting, observing, stalled, last run N ago), the latest headline and a count of today's findings. Clicking it opens a side panel: findings grouped by mission, each with "Open" (the conversation) and/or "Link", the full synthesis file, "Run now", "Conversation" (the last run), the agent it runs with, and a link to My automations. The observer's own sessions are kept out of the desks.
  • Run now creates a fresh session Observer · <date> with the prompt "load the superset:observer skill and follow it", so a run never drags the previous run's context. Default agent: the first Claude config whose label mentions "automation" (unattended, no permission prompts), else the first Claude config; the panel lets the user pick another, stored host-side.
  • Skill plugins/superset/skills/observer/SKILL.md (ships as superset:observer): begin, archive the previous observer sessions (only project-less sessions named Observer · …), gather, think, write ~/Documents/superset-observer/<date>.md, publish, one Desk report, Superset ideas as notes. Budget: one pass, under ~15 minutes.
  • CLI superset observer:
    • snapshot [--host] [--insights]: one compact digest of every conversation on a host (agent state, quiet minutes, open to-dos, open reports, tracked tasks, labels, notes, Superset ideas, totals). Sources an older host lacks are listed in unavailable rather than shown as empty. Plain shells and the observer's own sessions are left out.
    • begin, publish --file <json>, status.
  • Host service: officeObserver.get/setConfig/begin/publish, kept in ~/.superset/state/office-observer.json (like agent reports, no migration), pushed to the app with a new host-store:changed store office-observer. Additive: older apps ignore the new store value, and the app treats a host without the procedure as "too old".

Scheduling

Superset automations are paywalled on this plan, so scheduling goes through Relais: a new template "Observateur de l'Office" (weekdays 8:30 and 17:30, @automations agent, fresh session named Observer · {{date}}), committed in the local Relais repo. It is a template only: nothing is scheduled until it is created from My automations, after this build is installed (the skill ships with the app).

Not in this PR

  • The per-conversation state being built on feature/office-states (working / waiting / resume later / done). Once it merges, observer snapshot should read it instead of guessing from hook events.
  • Remote hosts are read by the skill with observer snapshot --host <id>; the Office booth only reads this Mac's host.

Base

Branched from marius/main with #43 (Focus, feature/active-workspaces) merged in, since it touches the Office. The diff includes #43 until it merges.

Checks

  • bun test on packages/host-service/src/office-observer, packages/host-service/src/trpc/router/office-observer, packages/cli/src/lib/observer, apps/desktop/.../office (all green).
  • tsc --noEmit on packages/host-service and packages/cli (only the existing grants test errors in cli remain).
  • bun run check:i18n clean, 18 new strings in every locale.
  • Dry run of observer snapshot against the real local host: 66 conversations in 25 workspaces, 47 open Desk reports (oldest 21 days), 24 Superset ideas, ~69 KB of JSON.
  • Desktop typecheck and the UI itself: not run locally (Fork CI and Marius's test).

To test

  1. Office: the booth appears top-left; click it, the panel opens; "Run now" creates an Observer · … session and the booth turns to "Starting…" then "Observing".
  2. After the run: the headline in the booth, findings grouped in the panel, "Open"/"Link" work, "Full synthesis" opens the Markdown file, a Desk report arrives.
  3. superset observer snapshot | less from any terminal.

🤖 Generated with Claude Code

Mariusfaitducode and others added 2 commits November 12, 2026 17:29
A one-click target on each workspace (sidebar rows, Ctrl+Tab cards, Office
name plates, Hosts page, Workspaces list and board) puts it in focus; ⌘⇧F,
the context menus, bulk selection, the command palette and F in Ctrl+Tab do
the same. Focused workspaces show a bold name and an indigo target. One
shared "Focus" filter narrows the sidebar, Ctrl+Tab, ⌘K, Office, Hosts,
Workspaces and Needs you.

The Office's "Active" filter (agents not resting) is renamed "Working" so
"active" no longer means two things.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gent

A booth in the Office corner shows the observer's state, its last run and
headline; its panel lists the latest findings by mission (your work,
efficiency, Superset) with a link or the conversation to open, and starts
a run in a fresh session ("Run now") with the agent the user picks.

The run itself is the superset:observer skill: it reads one digest of every
agent (`superset observer snapshot`), the to-dos, Desk reports, Superset
ideas, PRs and, through the messenger agent when there is one, messages;
writes a dated Markdown synthesis and publishes the short version with
`superset observer publish`. It only reads and hands over through the Desk.

Runs are kept host-side in ~/.superset/state/office-observer.json, like the
reports, and pushed to the app through the host-store event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mariusfaitducode
Mariusfaitducode merged commit 2134aee into marius/main Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant