Skip to content

Spec: Web UI design brief — Jarvis chat and admin panel ​

Spec ID: SPEC-web-ui-design · Source of product requirements: abstract-project-spec.md (IDs SLK-*, DSP-*, WRK-*, CTX-*, CI-*, ST-*, PRF-*, SEC-*, ADM-*, NFR-*).

This is a brief for the design that the owner draws in Claude Design. The document fixes the structure of the screens, their content, data, actions and states. Colors, fonts, spacing and the visual language are deliberately left undefined: those are the owner's decisions. Once the design is ready, we will write the web-layer specification with EARS criteria based on it.

Goal and scope ​

In the first iteration the web app plays two roles:

  • Chat with Jarvis. This is where the owner submits tasks, answers questions, approves the spec and plan, and allows or denies agent actions. In iteration 1 the SLK-* requirements of the abstract spec are implemented by this chat.
  • Admin panel. Shows all tasks, state, Claude sessions, event journals, limits and connections. Supports debugging: stop a run, retry a stage, write into a session.

Slack with threads arrives in iteration 2 and must map onto the same 1:1 model. Every top-level owner message opens a Thread. All further conversation about it (agent replies, questions, approvals, progress) happens inside that thread. That is why we build the web chat as a list of threads, not as one endless feed.

What we design in iteration 1: the shell, Chat, Tasks, Task detail, Session console, Overview, Config & limits, Connections, plus shared components and states.

What we leave for iteration 2: Slack (only an inactive row on Connections), weekly limit-usage history, editing the config from the UI, the mobile version.

The model the UI shows ​

EntityWhat it is for the UI
ThreadA conversation between the owner and Jarvis. Starts with a top-level message. May spawn 0 or 1 Task
MessageA message in a thread: from Owner, from Jarvis, or a service card (status, decision, question, permission)
TaskWork on code from intake to the end of PR follow-up. Has a Task Stage (see the glossary of the abstract spec)
SessionA Claude CLI session (claude -p --resume). A thread has a dispatcher session; a task has one or more worker sessions
RunOne CLI invocation within a session: from process start to end of turn. Has tokens, total_cost_usd, duration, status
Run EventA stream-json event: agent text, a tool call (input and result), an error, a system event
ArtifactA task file: context.md, spec.md, plan.md, tasks.md, result.md
Permission RequestA permission request from the CLI via --permission-prompt-tool: tool, description, input data
LimitsValues from the config file. Read-only in the UI
UsageNotional cost (total_cost_usd from the CLI) for today compared to the daily limit

Cost in the CLI on a subscription is notional: the owner pays no real money for it. The UI always labels it as notional $ to avoid confusing it with an API bill.

Superseded in layout by web-ui-graphite.md (Graphite): the routes below stay; the header and nav column give way to one sidebar.

Left-hand navigation with five items plus two service items at the bottom:

RouteScreenNav itemRequirements
/redirects to /chat——
/chat, /chat/:threadIdChatChatSLK-01…SLK-07, DSP-01, DSP-04…DSP-07, WRK-04, WRK-05
/overviewOverviewOverviewDSP-08, DSP-09, ADM-01, NFR-03
/tasksTasksTasksADM-01, DSP-05
/tasks/:taskIdTask detailTasksADM-02, WRK-01…WRK-11, CI-01…CI-09, ST-03
/sessions/:sessionIdSession consoleTasks (or Chat for the dispatcher session)ADM-03, ADM-04, ADM-06
/configConfig & limitsserviceADM-05, PRF-01…PRF-04, NFR-03
/connectionsConnectionsserviceCTX-01…CTX-05, SEC-04
any other pathNot found——

The shell on every screen:

  • The product name Jarvis and the LOCAL · NO AUTH badge (ADM-07).
  • A compact Usage meter: notional $X.XX / $Y.YY today and a bar. Clicking it goes to /config. Next to it a Reset button (with a confirmation) starts "spent today" over from now (LIM-04).
  • An engine connection indicator: Live, Reconnecting…, Offline.
  • A counter of what is waiting on the owner: questions, spec/plan approvals, permission requests. Clicking it goes to the oldest such thread.
  • A full-width Paused: daily budget reached banner when the limit is exhausted (see "Global states").
  • A Collapse navigation / Expand navigation button at the start of the header (aria-expanded). Collapsed, the navigation is an icon-only rail: every item stays a link with its name (for screen readers and as a hover tooltip) and the active item keeps its bar. The choice is kept in this browser (localStorage) and survives a reload.

Screens ​

Chat — /chat, /chat/:threadId ​

Goal. The main working screen: submit a task, hold the conversation, make decisions. Covers SLK-01…SLK-07, DSP-01, DSP-04…DSP-07, WRK-04, WRK-05, SEC-01.

Blocks:

  1. Thread list (left column). Each row: the first words of the message, a Task Stage badge (if there is a task), time of last activity, a "waiting for you" marker. At the top, a New thread button and an All · Waiting for me · Active · Done · Archived filter. Each row has an archive button (shown on hover or focus); an archived thread shows only under Archived, where the same button brings it back. Archiving only hides the thread: its task and runs go on. Sorting: threads waiting on the owner first, then by last activity. The column is resizable from the handle between it and the thread (a Resize thread list separator): drag, arrow keys (Shift for bigger steps), Home/End, double-click to reset. Width 14rem–32rem, 19rem by default, kept in this browser and restored on reload.
  2. Thread (center). Header: thread title, links to the task (T-12 →) and the PR (PR #34 ↗), stage badge. Below it, a chronological feed of messages.
  3. Input field at the bottom of the thread. One frame: the text field on top, growing with the text up to a cap and then scrolling; under it the hint "Enter — send, Shift+Enter — new line" on the left and Send at the bottom right. The empty-state field has the same layout, taller. While the dispatcher is processing the previous message, a new one can be written: it is placed in the queue with a queued marker.
  4. Empty state with no thread selected: a "Describe a task or ask a question" field and a few examples ("Add a course curriculum page from the design…", "What does Notion say about…").

Message types in the feed:

TypeContentActions
Owner messageOwner's text, time, queued / delivered marker—
Jarvis messageAgent text in Markdown, links to artifacts, the PR, sources—
Status cardOne message that updates in place (SLK-07): stage, steps with checkmarks (✓ context, ✓ spec, … implementing 3/5), attempt counters (checks 2/3), time since startOpen task →, Open console →
Decision cardSpec and plan for approval (WRK-04): a short summary, links to spec.md and plan.mdApprove, Request changes (opens a comment field)
Question cardA worker question (WRK-05) with options or a free-form answeroption buttons, Answer
Permission cardA permission request (SLK-05, DSP-09): who is asking (the dispatcher or worker T-12), tool, description, input data (collapsed if long)Allow, Deny
Result cardDraft PR opened, CI result, final summary (WRK-09, CI-03, CI-08)Open PR ↗, Open result.md
System messageA service event, shown as a message card labelled system: "Task queued — starts when a worker is free", "Worker restarted from stage Implementing", "Cancelled"—

After an answer, decision, question and permission cards become inactive and show what was chosen, by whom and when (Approved · 14:32). A card cannot be answered twice.

Thread actions (the ⋯ menu): Status (DSP-05), Hold task / Resume task (DSP-11), Cancel task (DSP-06, with confirmation), Open task, Open dispatcher session.

Thread header, task controls: a ⏸ On hold mark while the task is held (DSP-11) and a model selector (Fable, Opus, Sonnet, Haiku; DSP-12) that shows the model the task is pinned to — for a task with none, <configured model> (default) — and is read-only once the task is over. An archived thread carries an Archived mark; the ⋯ menu has Archive thread / Unarchive thread. An owner message that waits for the task's worker shows queued and a Send now button (DSP-10).

Deleting a message (THR-DEL-02): every message in the feed (the owner's bubble, Jarvis's text, a system line) has a small trash button, Delete message, shown on hover and focus and always, faintly, on touch. It opens a confirmation (Delete this message?, It is removed permanently., danger Delete). DELETE /api/threads/:threadId/messages/:messageId answers 204; 404 when the message is not in that thread; 409 Answer or dismiss this card first for a decision, question or permission card that has no answer yet (the web shows no button there, and shows the server's message in the dialog if it is refused anyway). Only the message row goes: nothing else points at a message, journals are untouched, and an owner message still queued for a worker is gone from the queue, so no run receives it.

Deleting a thread (THR-DEL-01): the ⋯ menu has Delete thread. It opens a confirmation (Delete thread in the danger style) that says the chat, its tasks and runs are removed for good; on success the open page goes to /chat and the lists drop the thread. The engine (DELETE /api/threads/:id, 204) refuses with 409 and a message while a task of the thread is not Done/Failed/Cancelled or a run of it is running; the dialog then stays open and shows that message. An unknown thread is 404. The delete removes, in one transaction, the thread's messages, tasks, sessions, runs, run events, permission requests, watches and journal rows, and the tasks' artifact folders. Git branches, worktrees and pull requests are not touched.

States: empty thread list; thread loading; the dispatcher is "thinking" (an indicator under the last message); send failure (a message with Retry); thread without a task (a knowledge question, DSP-07); budget exhausted (the input field stays active, but above it an explanation that new tasks will be queued); engine unavailable (the input field is disabled, with the message "Engine offline — messages can't be sent").

Overview — /overview ​

Goal. Understand at a glance what is happening right now. An analog of Mission Control from Agent Ops Center. Covers DSP-08, DSP-09, ADM-01, NFR-03.

Blocks:

  1. KPI row: Workers busy N/max, Queue N, Waiting for you N, PRs open N, Usage today $X / $Y.
  2. Dispatcher. The dispatcher session card: status (Idle, Running, Waiting for permission, Error), current action (tool and argument, or "Thinking"), duration of the current run, a link to the console.
  3. Workers. A card per worker slot; the number of cards equals maxConcurrentWorkers. A busy slot: the task (T-12 and title), the stage with a Context · Spec · Impl · Verify · Review · PR stepper, current action, duration, attempts (checks 1/3), the run's notional cost, Console →. A free slot: "Free". The "stuck" state is marked separately: no events for over 10 minutes, or waiting for permission (DSP-09).
  4. Queue. Tasks and events waiting for a free slot: what exactly (a new task, a CI event, an owner reply), and since when.
  5. Watching. Tasks in PR Open and Blocked that occupy no slot: the PR, CI state, review state, the time of the watcher's last check, next check in N s.
  6. Event log. A combined feed of events across all tasks, newest first, with a filter by task and type (stage, ci, review, permission, error) and a pause, as in Mission Control.

States: nothing happening (all slots free, the queue empty, "Jarvis is idle"); paused over budget (worker cards show Paused, the queue does not move); engine unavailable.

Tasks — /tasks ​

Goal. The list of all tasks. Covers ADM-01, DSP-05.

A table: ID, Title, Stage, Waiting for (owner, CI, review, worker slot, —), Branch, PR, CI (the aggregated state of the current commit), Runs, Notional $, Updated. Filters by stage (Active · Waiting · Done · Failed · Cancelled) and search by title or ID. Clicking a row opens Task detail.

States: empty ("No tasks yet. Submit the first one in Chat", with a link); loading; error.

Task detail — /tasks/:taskId ​

Goal. Everything about one task in one place: what has been done, what is happening now, what comes next. Covers ADM-02, ADM-06, WRK-01…WRK-11, CI-01…CI-09, ST-03, ST-05.

Blocks:

  1. Header. ID, title, stage badge, Waiting for, the jarvis/T-12 branch, the PR link, a link to the thread, time since start, total notional cost. Actions: Retry stage, Stop worker, Cancel task (with confirmation).
  2. Stage timeline. The stages Intake → Context → Spec Review → Implementing → Verifying → Reviewing → PR Open → Fixing → Done with entry and exit times. Repeats (for example, returning from review to Fixing) are shown as separate segments. The terminal Blocked, Failed, Cancelled carry a reason.
  3. Artifacts. Tabs context.md, spec.md, plan.md, tasks.md, result.md. Markdown is rendered, source links are clickable. For tasks.md, the checkboxes show subtask status. A file not yet created has an empty state "Not written yet — appears at stage X".
  4. PR · CI · Review. The PR link, the current commit (short SHA). The list of this commit's CI checks: name, status (queued, running, passed, failed, skipped), duration, log link. Earlier commits are collapsed under Earlier commits. Review state: Pending, Changes requested, Approved, reviewer comments (author, text, whether Jarvis has handled them). Round counters: CI fixes 1/2, Review rounds 0/3.
  5. Runs. A table of the task's CLI runs: role (dispatcher, worker, reviewer, plan verifier), stage, start, duration, status (running, completed, failed, stopped, limit reached), tokens, notional $. Clicking opens the Session console at that run.
  6. Journal. A chronological journal of the task's events (ST-03): stage changes, messages, CI and review events, owner actions from the admin panel (ADM-06) with a by owner marker.

States: the task does not exist (Not found); the task is active (blocks update live); Failed (the reason at the top, the latest attempts, a Retry stage button); Cancelled (actions disabled, the branch and PR remain links).

Session console — /sessions/:sessionId ​

Goal. A live, structured view of a Claude session: what the agent writes, which tools it calls, what they return. An analog of the Agent console and Session Log from Agent Ops Center, but on real stream-json events. Covers ADM-03, ADM-04, ADM-06.

Blocks:

  1. Header. The session's role, task or thread, model, status (Running, Idle, Waiting for permission, Stopped, Error), the CLI session ID, the number of runs.
  2. Run selector. The list of the session's runs; by default the current or the latest one.
  3. Run summary. Tokens (input, output, cache read, cache write), total_cost_usd as notional $, duration, number of turns relative to max turns per run.
  4. Event stream. Events in order:
    • agent text (Markdown);
    • a tool call: name, input data (collapsed), result (first lines, Show more), ok / error status, duration;
    • a permission request and the decision on it;
    • system events (process start, resume, end of turn, process exit with a code);
    • CLI errors. While a run is in progress, new events are appended at the bottom. If the owner scrolls up, autoscroll turns off and a Jump to latest button appears.
  5. Filters and search. All · Messages · Tool calls · Errors · System, text search, jumping between errors.
  6. Control panel (ADM-06):
    • Send message — an input field. The message is queued and goes into the session on the next turn (--resume). In the feed it shows as queued, then as delivered.
    • Stop run — stops the current CLI process, with confirmation.
    • Retry stage — restarts the task's current stage from the artifacts.

States: a session with no runs yet; a run finished with an error (the reason at the top); the process is stuck (no events for over 10 minutes, a warning); the session is stopped; budget exhausted (Send message and Retry stage disabled with an explanation).

Config & limits — /config ​

Goal. Show which rules Jarvis works by and how much of the limit has already been spent. Read-only: values are changed in the config file. Covers ADM-05, PRF-01…PRF-04, NFR-03.

Blocks:

  1. Usage. notional $X.XX of $Y.YY today, a bar, the reset time, a breakdown by role (dispatcher, worker, reviewer, plan verifier) and by task. A warning at 80% and the Paused state at 100%.
  2. Limits. A "parameter — value — what it means" table: maxConcurrentWorkers, checkRetries, ciFixRounds, reviewRounds, taskTimeout, maxTurnsPerRun, dailyBudgetUsd, watcherPollInterval, the models for each role. The path to the config file and the time it was last read.
  3. Repository. The working repository, the default branch, the check and dev-server commands from the repository's AGENTS.md (CON-04). If AGENTS.md lacks the needed commands, a warning.
  4. Profile. Read-only contents of SOUL.md and USER.md, the file paths, the time of the last change (PRF-03).
  5. Allowlists. Reviewers whose comments are processed (CI-06); commands allowed without a prompt (SEC-01).

States: the config cannot be read or is invalid (an error with the line and field; Jarvis does not start tasks).

Connections — /connections ​

Goal. Verify that everything needed is connected, and that Jarvis is not paying for the API. Covers CTX-01…CTX-05, SEC-04.

A row per connection: name, status (Connected, Not configured, Error), details, check time, Check again.

ConnectionWhat we show
Claude CLIVersion, subscription login (Logged in · Max), or Not logged in with a claude login instruction. A red warning if ANTHROPIC_API_KEY is set: in that case the CLI pays for the API instead of using the subscription
GitHubThe bot account Jarvis pushes and opens PRs from; access to the working repository; token permissions (contents, pull requests, checks/actions read); token expiry. The token itself is never shown (SEC-04)
NotionAccess to the root page from the config
Google DocsAccess to the folder or document from the config
Claude DesignWhether the design handoff is available (CTX-01)
SlackIteration 2, the row is inactive

States: a check in progress; a check failed with the reason text; everything connected.

Shared components ​

ComponentWhere it is usedWhat it must do
Message bubbleChatAuthor, time, Markdown, queued / delivered / failed state
Status cardChatUpdate in place, a list of steps with checkmarks, attempt counters, links
Decision buttonsDecision card, Question cardPrimary and secondary action, inactive state after an answer with a caption of who and when
Permission cardChat, Session console, OverviewWho is asking, the tool, description, collapsed input data, Allow / Deny, a summary after the decision
Stage badgeEverywhere a task appearsAll Task Stage values; terminal states differ not only by color but also by a symbol or a word. A task in PR Open whose worker is running (it answers the owner — a question, a retro) shows … Thinking: the stage stays PR Open and the PR stays watched; Fixing is shown only when the code is being changed (a failed CI run, a review comment, a push the owner asked for)
Stage stepperOverview, Task detailThe current stage, completed ones, upcoming ones; repeats
CI check rowTask detail, OverviewName, status, duration, log link
Run event rowSession consoleThe event types from the list above, collapsing long output
Usage meterShell, Overview, ConfigCompact and full variants, warnings, Paused
Artifact viewerTask detail, links from chatMarkdown, checkboxes, a "not created yet" empty state
Connection rowConnectionsStatus, details, Check again
Empty stateAll listsAn explanation and the next action
Connection bannerShellReconnecting… and Offline with the time of last contact

Global states ​

  • Live updates. Data arrives over SSE. New messages, stage changes and console events appear without a reload.
  • Disconnected. If the connection to the engine is lost, the shell shows Reconnecting… and data-changing actions are disabled. After reconnecting, the UI catches up on missed events.
  • Budget paused. When the daily limit is exhausted: a banner in the shell, workers Paused, new tasks queued, launch buttons (Retry stage, Send message in the console) disabled with an explanation and the reset time. Chat stays available.
  • Loading and Error for every screen and block separately: one block's error does not break the page.

Edge cases ​

CaseWhat the UI showsRequirement
Two simultaneous permission requests from different workersTwo separate cards in the corresponding threads; the "waiting for you" counter = 2SLK-05, DSP-09
The owner clicked Allow twice or in two tabsThe second click does nothing; the card shows the first decisionSLK-05
An answer to a question arrives when the task is already CancelledThe card is inactive with a "Task cancelled" explanationDSP-06
A third task while the slots are busyA System message "Queued — position N", the task appears in Overview → QueueDSP-08
A worker is silent for over 10 minutesA warning on the worker card and in the threadDSP-09
Very long tool output (thousands of lines)The first lines, Show more, no page freezeADM-04
A run ended due to max turnsA limit reached status and an explanation of what Jarvis does nextWRK-11
CI rerun on the same commitCheck rows update in place, the old result goes under Earlier attemptsCI-07
A PR comment from a non-allowlist author or a botShown with an ignored markerCI-06
An artifact changed while openIt updates with an Updated just now markerADM-02
Text from Notion or a PR contains HTML or "instructions"Shown as text, without executing markup or scriptsSEC-03
ANTHROPIC_API_KEY in the environmentA red warning on Connections and in the shellCON-01
The config is invalidConfig shows the error; Chat explains that tasks do not start—

Visual language ​

Superseded by web-ui-graphite.md (GR-15…23) on branch feat/graphite-ui; the text below describes the T-3 look and stays only as history. Values live in web/src/styles/tokens.css.

Decided in T-3 with the owner (2026-11-10, revised 2026-11-11 towards a calmer "liquid glass" interface); the design system was picked with the ui-ux-pro-max skill (dark mode, glassmorphism with ambient light). Values live only in web/src/styles/tokens.css.

  • Theme. Dark only (color-scheme: dark). No light theme or switch.
  • Glass. Panels are frosted glass: translucent surface / surface-raised fills, --glass-blur (backdrop-filter), a faint top highlight (--glass-highlight), a hairline white edge and a soft shadow, 18 px corners. The header and navigation float as glass panels over the page; chat, task and overview panels follow the same recipe.
  • Ambient light. The page is deep slate lit by three soft, low-alpha pools (indigo, violet, sky) and a faint central glow, so the glass has something to refract. Kept low so text contrast holds everywhere.
  • Accent. Indigo (--color-accent), with dark text on accent buttons: the primary action, the active nav item, the current thread and focus.
  • Status colours. Desaturated green, amber, red and blue on dark tints, and a separate hue per task stage. Colour never carries meaning alone: the stage badge, check status, connection state and session status keep their symbol and word.
  • Contrast. Text and status text ≥ 4.5:1 and indicators ≥ 3:1 (WCAG 2.1 AA), checked against the glass composited over the brightest ambient point.
  • Type. Inter (interface) and JetBrains Mono (IDs, SHAs, code), self-hosted as variable woff2 (Latin + Cyrillic) under web/public/fonts; tabular figures in tables; calm weights (600 for titles).
  • Space. Page padding scales with the viewport (--page-pad); larger gaps between sections and roomier panels.
  • Icons. One set: Lucide outlines (ISC) in web/src/components/Icon.tsx, 1.75 stroke, 14/16/20 px. Every nav item has an icon and its name; icons are decorative unless given a label.
  • Motion. 120–180 ms ease-out on hover, focus and state changes; a small entrance for message cards and dialogs; everything is cut to near zero under prefers-reduced-motion.

Open design questions ​

  • [ ] Are Chat and Overview separate screens, or is Chat paired with a right-hand worker status panel? This determines whether the owner sees progress without switching.
  • [ ] Does the Session console open as a separate page or as a side panel over Chat and Task detail?
  • [ ] Should the thread show the agent's intermediate messages, or only the Status card and decision cards (less noise, but less visibility)?
  • [ ] How to mark the dispatcher session in the thread list: a separate service thread or only a link from each thread?
  • [x] Is a dark theme needed in iteration 1? — Yes: the UI is dark only (T-3, 2026-11-10); see "Visual language".
  • [ ] Is a global Stop all needed for the case when the agent is doing something wrong?