Documentation

Web Workbench

AgentHub Web is the Hub-backed collaboration surface. Here a team can see projects, shared sessions, run history, review state, and integration-created tasks, without giving the browser direct access to a developer's local filesystem or local CLI processes.

Current status

The Web workbench is an active development surface. It can be previewed locally with Hub-backed product concepts, but full production Web + Hub + Edge routing, database-backed workbench views, and remote execution proof are still in development.

When To Use Web

Use AgentHub Web when the workflow needs shared visibility rather than direct local execution:

ScenarioUse Web forUse Desktop / Edge for
Team reviewShared transcript, review state, audit trailLocal file preview and local diff approval
Project overviewProject context, tasks, agents, devices, run historyWorkspace allowlist and runtime process control
IM-created workHub task created from Feishu/Lark or an automationRuntime execution after Hub authorization
Remote target planningTarget selection, authorization state, degraded stateActual workspace access through an approved Edge

Web should never silently start a local CLI, read local files, or bypass Hub authorization to reach Local Edge. Local execution belongs to Desktop plus Edge.

Surface Model

A complete Web workbench organizes the following surfaces without turning the page into a generic chat app:

SurfacePurposeCurrent public wording
Project listEntry point for team-owned workIn progress
Project detailContext, files, runs, agents, tasks, membersIn progress
Shared sessionTranscript, selected agent, target, events, approvalsIn progress
Review viewDiff, artifacts, comments, approve/reject actionsIn progress
Target/device viewOnline state, authorization, last seen, capabilitiesIn development
Audit/status viewProduct events, degraded state, failure reasonIn progress

The public site may describe the intended shape, but it should not claim that a database-backed Web workbench is production-ready until screenshots, route evidence, Hub API evidence, and Edge routing evidence exist.

Hub Contract

Web talks to Hub. Hub owns identity, product sessions, project membership, device routing, task creation, shared state, and audit.

A minimum useful Hub-backed Web session includes:

  • TokenDance ID subject and AgentHub product session.
  • Project id, role, and membership state.
  • Task or run id.
  • Selected Agent Profile and target Edge.
  • Transcript events and run lifecycle events.
  • Review state for artifacts, diffs, approvals, and failures.
  • Audit events for who requested, approved, rejected, cancelled, or escalated work.

Web can render local execution state only after Hub has authorized the target and Edge has emitted safe events.

Local File Boundary

The most important Web rule is simple: Web does not own the local filesystem.

RequestCorrect behavior
User asks Web to inspect local filesCreate a Hub task and route it to an authorized Edge target
User opens a diff produced by EdgeRender normalized artifact or diff data, not arbitrary local paths
User clicks approveSend a Hub/Edge approval action with audit context
User asks for a terminal commandRequire explicit policy and route through Edge approval
Edge is offlineShow unavailable or degraded state, not a fake success

Public screenshots should avoid private absolute paths, secrets, provider keys, internal hostnames, and real user data.

Interaction States

Web should expose stable product states that read clearly across desktop and mobile layouts:

StateMeaningUI expectation
EmptyNo project or run selectedCompact prompt to pick or create a task
ReadyHub session and project context are loadedClear primary action, visible target state
RunningEdge has accepted the run and streams eventsEvent stream, progress, cancel affordance
Needs approvalEdge is waiting on user or reviewer actionDiff/artifact visible, decision controls clear
CompletedRun finished with result and artifactsSummary, artifacts, next action
FailedRuntime, policy, schema, auth, or network failureStable error code and recovery path
DegradedTarget, Hub, or integration is partially unavailableHonest status, no hidden retries that change meaning

Avoid jumpy layouts, heavy hover shadows, old purple accents, black footer blocks, and browser-default blue focus outlines in product mocks. Real controls still need accessible focus states, but purely decorative mock controls should not look like selected DOM.

Review Flow

A Web review flow should make the decision chain visible:

  1. A user, integration, or automation creates a Hub task.
  2. Hub resolves project membership, product authorization, Agent Profile, and target policy.
  3. Edge starts the runtime only after authorization and workspace policy pass.
  4. Edge streams normalized events and candidate artifacts.
  5. Web renders transcript, artifact, diff, and approval state.
  6. A reviewer approves, rejects, comments, escalates, or cancels.
  7. Hub records audit events and exposes final state.

Do not describe a Web review as complete unless it has evidence for task creation, event streaming, diff/artifact rendering, approval action, final state, and audit trail.

Design Requirements

Web should follow the same product direction as AgentHub Desktop and the public website:

  • Light-first TokenDance Blue surfaces.
  • Dense but readable tool layouts.
  • Small radii and restrained glass effects.
  • Icon-first controls where the meaning is familiar.
  • No marketing cards inside tool panes.
  • Tables and panels that do not overflow on mobile.
  • zh/en text that describes the same capability and status.
  • Motion that supports continuity without changing layout after hydration.

Evidence Checklist

Before promoting Web copy from "in progress" to a stronger claim, capture:

EvidenceWhat to prove
Route screenshotProject/session/review route renders in desktop and mobile
Hub API traceWeb reads Hub state through product session boundaries
Edge routing traceTarget selection and Edge events are authorized through Hub
Artifact/diff screenshotReview surface is visible and does not expose private paths
Approval auditApprove/reject/cancel actions produce recorded events
Failure screenshotOffline target, unauthorized target, runtime unavailable, and timeout are readable