Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/studio/CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ One sentence, at most 16 words, on what a turn did, or what it waits on: an outc
_Avoid_: Intention (the agent's own words while it works)

**Turn summary**:
A Headline and up to three typed Body lines, written by one cheap writer call when the turn ends, or when Daniel opens the turn if summaries are set to write on open. A turn gets one when its final response is about 150 words or more, or when it ends asking Daniel something; other turns show their response as it is. The writer is given the turn's recorded facts (its files with their line counts, hunks up to a cap, each check's command, result and retries) and told not to restate them. A Body line is `why`, `reported`, `open` or `ask`, at most 20 words; `open` and `ask` always show, and a `reported` line reads "Agent says". A line with a number or id the turn's material lacks is dropped; numbers in the turn's diff, line counts or check results, number words and digits in a known path always pass. A summary stored before the Headline is read with its first line as the Headline and the rest as `reported` lines; the writer is not run again on it.
A Headline and up to three typed Body lines, written by one cheap writer call when the turn ends, or when Daniel opens the turn if summaries are set to write on open. A turn gets one when its final response is about 150 words or more, when it ends asking Daniel something, or when it changed files; other turns show their response as it is. The writer is given the turn's recorded facts (its files with their line counts, hunks up to a cap, each check's command, result and retries) and told not to restate them. A Body line is `why`, `reported`, `open` or `ask`, at most 20 words; `open` and `ask` always show, and a `reported` line reads "Agent says". A line with a number or id the turn's material lacks is dropped; numbers in the turn's diff, line counts or check results, number words and digits in a known path always pass. A summary stored before the Headline is read with its first line as the Headline and the rest as `reported` lines; the writer is not run again on it. The same call writes the turn card's fields (spec #1062): `next`, at most three things the reply asks of Daniel or leaves for him, and `did`, at most three things the turn did, each at most 14 words, a `did` item read through the same "Agent says:" rule as the Headline; and `prompts`, at most two `agent` prompts, each backed by a `quote` of the final response checked word for word, and one `suggested`, the writer's own, with no quote, each at most 12 words. Each item obeys the number-and-id rule, and an item that breaks a rule or its limit is dropped, never cut, without asking the writer again; a list whose every item is dropped is stored as none, not as an empty list. A summary stored before these fields has none of them, which differs from an empty list.
_Avoid_: Card (retired), brief (the whole session's, kept for resuming)

**Transcript**:
Expand Down Expand Up @@ -78,9 +78,13 @@ What Daniel reads to resume an agent session he lost track of, in **Context mode
The banner the rail opened on when Daniel returned to a session, retired into **Context mode** (spec #967, Q40), whose "since you looked" line became the session panel's **Since you looked** timeline (spec #1019). The rail's mode is decided at the selection and kept while he reads, the mode's hold.

**Context mode**:
The story rail's mode while the session doesn't need Daniel, in every session (spec #967), drawn as the session panel (spec #1019): a card (purpose, state, the touched parts with their **behaviour lines**, Show on map) and the **Since you looked** timeline. Pressing the card's purpose opens the Goal, his last decision and one fold, "N decided · N facts · #issue", holding the issue's title, the decisions (the decision history's questions and plans, and answered rounds), Open, Design so far and the facts, each **checked** (a turn's evidence line) or **the agent's claim** (a `reported` Body line). The header's chip and linked issue go with it. It absorbs **Where we were** and the folded **Brief**.
The story rail's mode while the session doesn't need Daniel, in every session (spec #967), drawn as the session panel (spec #1019): at Your turn and Idle the **turn card** above all, then a card (purpose, state, the touched parts with their **behaviour lines**, Show on map) and the **Since you looked** timeline. Pressing the card's purpose opens the Goal, his last decision and one fold, "N decided · N facts · #issue", holding the issue's title, the decisions (the decision history's questions and plans, and answered rounds), Open, Design so far and the facts, each **checked** (a turn's evidence line) or **the agent's claim** (a `reported` Body line). The header's chip and linked issue go with it. It absorbs **Where we were** and the folded **Brief**.
_Avoid_: Context view, status card

**Turn card**:
The block that leads the session panel (**Context mode**) at Your turn and Idle (spec #1062): the newest turn's **Headline**, "You next" and "Agent did" as short numbered lists, its `open` Body lines as "Not done: …", its **Reply** row and a "Full reply" fold. The Reply row holds up to two pills the reply proposes (solid) and one plotkeeper suggests (dashed, ✦), and a box: a pill fills the box, and Enter sends it by **Send** (spec #1062, ticket #1069). A summary stored before the lists shows only its Headline, the box and the fold, and a turn with no summary its reply's first line, the box and the fold. None while the session runs or needs Daniel.
_Avoid_: Turn banner

**Decision mode**:
The story rail's mode while the session needs Daniel (spec #967): the docked question, plan or permission with "Why it asks", a blocked command's note with the Jump, a waiting plan's plan view and, from ticket #978, a round's planning view. The rail's mode is decided when Daniel selects the session and held while he reads, in both directions; a new ask still docks at once. A new prompt, his answer in the view, or selecting the session again decides it afresh.

Expand Down Expand Up @@ -157,6 +161,7 @@ _Avoid_: Reveal, jump to file (a **Jump** goes to a terminal)

**Send**:
The **Planning view**'s main answer, "Send in Herdr", which types a **Round**'s reply into a session that runs directly in Herdr.app through herdr-core's `hc send`, with the reply as one argument so quotes and newlines arrive as written (spec #967). A guard lets it through only when the session recorded a Herdr terminal id and its agent's pid, `hc get` within 5 seconds reports that pid as the terminal's foreground, the app as `claude-code`, and the state `idle` or `done`; otherwise the button is disabled and names the reason, and the copy button sits beside it. The guard is checked when the round opens, and again by the send itself, and `hc send` gets 65 seconds, above its wait for a draft of Daniel's. A send records the round answered on the page the moment it succeeds; a refusal or a failure leaves it open. Where Send can't type — outside Herdr, or with the guard refusing — the copy button reads "Copy & Jump" when the Jump knows the session's terminal, else "Copy reply" with the Jump's one-line reason; either copies the same reply, and a prompt pasted from it records the form's answers.
The **Turn card**'s box sends the same way (ticket #1069): Enter, or its "Send in Herdr", types the box's text with the generic `send` past the same guard, asked once per ended turn, after marking the session seen; no round is recorded. A sent prompt empties the box, and a failed one keeps it and says why. Where Send can't type, the box has Copy & Jump or Copy reply, copying its text, and Enter only says why, so it never copies or jumps on its own.

**Wiring**:
plotkeeper putting its hooks into an agent, such as Claude Code or Codex, only with the user's consent. Each agent found is wired, declined or not yet asked: a start in a terminal asks only about the agents not yet asked, a start with no terminal never asks or wires, `plotkeeper install` wires every agent found, and `plotkeeper uninstall` unwires them all and forgets the answers.
Expand Down
Binary file modified docs/studio/assets/readme/spotlit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading