Repository navigation
Replies: 2 comments 1 reply
|
Update: #35247 (agents can restyle T3 Code with theme colors and CSS) landed in nightly, and it overlaps with part of this. Themes can now carry custom CSS, agents can write it with It can't do the rest of this proposal, and isn't meant to. CSS only styles what the app already renders, so it can't add the Brief, summary lines, live PR state, Linear or jj rows, or service status. It also can't add behaviour like collapse that remembers its state, drill-ins, menus or actions. Individual card sections have no stable hooks, so hiding or reordering them relies on structural selectors that break when the markup changes. And mobile doesn't use theme CSS. What it does show is a model for widgets:
A small first step that helps both: give each details card section its own stable 🤖 Claude Opus 5.5 |
|
+1, with a smaller first step that would already cover my case. I keep a long-running, multi-thread effort's state in one file outside any thread (a roadmap: phase, units done, what's blocked, what waits on me). I wanted it in the details card next to the branch and the changes. Today the closest options are a project script that prints a line into a terminal, an automation whose title carries the status (cut off after about 17 characters), or an inline HTML render that scrolls away with the chat. A narrow version that needs no plugin runtime: let {
"panels": [
{ "id": "roadmap", "title": "Roadmap", "source": { "file": "~/.cache/my-tracker/panel.html" }, "refresh": "on-change" }
]
}
I built the content side to test the idea: a 284 px section with a phase title, two counts, a progress bar, "2 blocked · 2 in flight", the titles that need attention, and disclosures for the unit list. It reads fine at that width, so the missing piece is only the slot. Related: #31141 lists "thread-detail sections" among extension contributions, and #6977 covers custom project surfaces. This would be the smallest of the three. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Try it: interactive mockup. Every › and ⌄ opens something, sections collapse, rows have right-click menus, and the Ask box and dev server work. Anything that would message the agent goes into a fake composer instead.
The link is a single standalone HTML page, not T3 Code. It copies the details card's styling (row heights, spacing, type sizes, colours) so it looks like the real card, and fills it with sample data: the transcript, brief, PRs and costs come from a real thread, while the Linear items, service state and Ask answers are made up. Nothing in it talks to a server.
thread-dashboard-demo.mp4
Background
I started out wanting a "model activity protocol": a record of a thread's state that models and people both update, so a later thread or person can understand what happened without reading the transcript, the PR, the issues and everything else. I prototyped a few versions (typed fields, then a short brief written by a cheap side model, with a history of earlier versions) and ran them on real threads.
That pushed me toward a smaller first step. The details card already sits next to every thread. If threads could add their state, controls and extra info to it, it would work as a dashboard for the thread: what it's for, where it's at, and what to do next. A protocol could come later if this works out.
The problem
When I switch back to a thread I usually have to scroll the transcript or ask the agent for a summary to remember what it's doing. Scrolling is slow, and asking interrupts the agent and costs a turn.
The proposal
Keep the card's existing rows, spacing and type, and add:
t3.jsonor~/.t3/widgetsand built from the same rows as everything else.Use cases
1. Coming back to a thread
Everything from today's card is still there. The Brief adds the goal and a short summary near the top. Colour is only used for state: amber for waiting on you, blue for running, green for ok or open, red for failing or closed.
Sections you don't care about right now can be collapsed. The summary line still shows
+1.2k −145,typecheck 3 errors,1 needs youorweekly 92%.2. Seeing how it got here
‹ › (or the arrow keys) steps back through earlier versions of the brief. Older versions are marked so they don't look current. Clicking one scrolls the transcript to the turn where it happened.
3. A decision that's waiting on you
It's listed at the top of the Brief and expands to show the options. Picking one drafts a message in the composer.
4. Why was this decided?
Decisions open as a list. Clicking one scrolls the thread to the turn where it was made. Each item in the Brief keeps a link like this to the turn, command output or diff it came from.
5. Asking a question without interrupting
Questions go to a side model that reads the brief and recent turns. The answer shows in the card and the thread isn't affected.
6. What changed
Changes opens a file list, then a diff excerpt, with links to the diff panel and your editor.
7. Related PRs and issues
Linked PRs and issues show their current state. The number is coloured by state and shown with a short description. Clicking opens a summary with actions; right-click works too.
8. A failing check
The Run section shows the failure even when collapsed. Clicking it shows the output, with options to ask the agent to fix it (drafted), fix it in a subagent, or run it again.
9. Services
Project scripts marked as services get start, stop, status and logs. Hovering a running service shows a stop button.
10. Acting on a next step
Right-clicking a next step offers: do it now, do it in a subagent, move it to a new thread, or dismiss it.
The context bar's menu has compact, hand off to a new thread, and switch provider.
11. Widgets
The Linear section is a user widget and the jj section is a project widget. Both use the card's normal rows, so they look like the rest of the card. The "…" menu shows where each widget is defined, and each has a link out to the real tool.
12. Existing controls
The editor picker, ref switcher and commit menu work as they do today, and it works in light mode.
Screenshots
How widgets could work
A widget defines where its data comes from, how it shows as rows, and what actions it has. Keeping the options limited stops third-party widgets from cluttering the card. Anything that needs a richer UI would open in a separate view from a row.
thread(draft a prompt),ask(side model),run(command on the environment host),tool(MCP call),openA GitHub issue widget could use
gh issue view --json, and a Subversion onesvn info. Each would be around fifteen lines.Cost of the Brief
I measured this on a real thread with 49 steps. Each step is a fresh call with the current brief plus the new transcript items. The CLI calls are trimmed down to just the prompt (no agent system prompt, instruction files or tools).
For comparison, the main thread itself (Claude Opus 5.5 at medium effort) used 471 requests over the same stretch: about 131.5M input tokens, almost all of them cache reads, and 382k output tokens. At API prices ($4 per million input, $0.20 per million cache reads, $8 per million 1-hour cache writes, $20 per million output) that's about $40. Keeping the Brief current adds roughly 0.3% with Haiku or 0.1% with Luna. Subagents aren't included in the main thread figure.
I also tried keeping one model session open per thread. Context grew every step, to 146k tokens per step by the end, so I dropped it.
Possible order of work
serviceand a health check get start, stop and status.Known gaps in the mockup
Questions
🤖 Claude Opus 5.5
All reactions