# Work: what your agents are doing

The Inbox is one document: what came in today, what needs you at the top, the rest under Archive all, and a thread
under every item. **Work** is the same kind of document for what your agents are doing. It lists what's waiting on
you, what's finished and what's still running. An agent called the **overseer** keeps it up to date.

![The Work tab: a session blocked on a multiple-choice prompt at the top; then under Needs you, a session waiting for a key only you can add, a pull request to review, a finished session to wrap up, a question with an answer box, and a session proposing stories and closing; then today's tasks, an FYI list with Archive all, and one parked session](https://quietdeck.ai/images/work.png)

## Documents and tabs

Every page you read in Quietdeck is a **document**. A document has a name, the tab it sits under, and the agent that
writes it. There are two kinds:

- **Inbox:** today's mail, written by the triage agent ([How Quietdeck works](https://quietdeck.ai/docs/concepts.md)). Every deck has one.
- **Work:** your agents' work, written by the overseer. Add it in **Settings**, under **Documents**.

You name tabs and documents yourself, and nest documents under a tab: Work could hold "Business", "Personal" and
"Side projects", each kept separate by the overseer's instructions. A tab with one document shows no sub-tabs. Each
document has its own **Approve All**.

[Quietdeck solo](https://quietdeck.ai/docs/solo.md) has one document, the Inbox, unless you add Work.

## Question panels

Some entries ask you something instead of proposing an action. A **question panel** has no approve check, just a
question and its own thread. Some offer answers as buttons, with a box for anything else. Others ask an open question and
take a written answer. You answer in the thread, and the agent updates the entry. The Inbox has them too.

## Blocked on a prompt

When a session stops on one of its own menus ("Allow this command?", or a multiple-choice question), the deck puts it
at the very top of Work, under **Blocked on a prompt**, as a small form with the menu's choices and an **Other** box.
Your answer is typed into the session.

## Needs you

Under that, the overseer writes **Needs you**:

- **A question** an agent is asking you.
- **A finished session** waiting to be wrapped up.
- **Work waiting for your review:** a pull request, a draft.
- **Your tasks** due today, or already started.
- **Things only you can do:** paste a key into your password manager, touch a security key. These have a **Done** in
  their thread, or the overseer marks them done when it sees the result.

## The FYI list

Under what needs you comes an **FYI** list: progress and completions ("The release session shipped 0.4.2"), under its
own **Archive all**. Approve All clears the FYI lines.

Work is never wiped after Approve All. It's an ongoing document. Entries stay until they're done or no longer matter,
and the overseer prunes it as it goes.

## Each entry is a session

Most entries are about one agent session. Where an Inbox item has a mail icon, a Work entry has a session icon. Its
menu shows the session's name (`tab@machine`) and a summary of what it's doing, with **Open transcript**, **Park**,
**Snooze until…** and **Ignore this session**.

What you can approve under an entry:

- **Wrap up session:** asks the session to run its wrap-up: list loose ends, propose stories and comments. The
  overseer reads the result and puts those proposals under the entry, with **Close session** last.
- **Message session:** passes your words on.
- **Close session.**
- **Create a story, or comment on one.**

The overseer never starts or closes a session without your approval.

## Parking

Not everything needs doing this week. **Park** a session to put it away indefinitely, or **Snooze until…** a date.
Parked sessions sit in a collapsed **Parked** section at the bottom of Work, each with **Unpark**. A snoozed one comes
back on its date.

## The overseer

The overseer is an agent like the triage agent, with a different job. Instead of mail it reads your other sessions: a
summary first, and only the new part of a transcript when it needs detail. The deck wakes it when a session goes idle (and
stays idle two minutes) or stops on a prompt. It skips a session that's still waiting on CI or a background task, and
one idle for more than six hours. It also reads your task list for today.

It leaves out the triage agent and any session you mark with **Ignore this session**, unless one of them is stuck on
a prompt.

You chat with it in Work's threads. It answers from what it's read, or passes your message on to the session.

The overseer shares the runner with the triage agent. The runner carries out what you approve and hands anything it
can't do back to the agent that posted the entry. [Set up an overseer](https://quietdeck.ai/docs/guides/overseer.md) walks through it.

## The Status board

![The Status tab: an agent waiting on you at the top, then working agents each with a task, a progress bar with the stages as ticks, and its story and pull request; an ongoing triage role without a bar; an agent with no report yet showing its summary; and a release at 100%](https://quietdeck.ai/images/status.png)

The Status tab, next to Work, shows one row per agent: the main thing it's working on, how far along it is, and its
Shortcut story and pull request. Agents set their own row with `quietdeck status` ([Instructions for your
agents](https://quietdeck.ai/docs/agent-instructions.md)); the percentage follows fixed stages, so 60% means tests pass for every agent:

| Progress | Stage |
| --- | --- |
| 0-20 | Understanding and planning |
| 20-60 | Building |
| 60 | Tests pass locally |
| 80 | PR open and CI green |
| 90 | Merged |
| 95 | Deploying |
| 100 | Live and checked |

Rows waiting on you come first, then working, then agents idle with real work in the last half hour; a row at 100%
stays for two hours. A session that hasn't reported shows Fleetlayer's one-line summary in italics, with no bar.

With `status.checkins` on in deck.yaml ([Configuration](https://quietdeck.ai/docs/configuration.md)), the deck checks in with a session that's
working, or did real work in the last half hour, when its row is older than that: one message asking it to update its
row, or confirm it with `quietdeck status --same`. Answering a check-in doesn't count as work, so an idle agent isn't
asked again and again. Sessions blocked on a prompt aren't asked, and nothing is sent while you're away or asleep.
Every change to a row is kept, so how long work really took can be read back later.

## For your own frontend

Documents and marks are in the [API](https://quietdeck.ai/docs/api.md): `/api/v1/documents` lists a deck's documents (kind `inbox` or `work`, and
the agent that writes each one), the report routes take `?doc=<slug>` to pick one, and `/api/v1/session-marks` holds
the ignored and parked sessions.
