ade
(alias: console)v1.10.0Web console for iii — bundles the React UI and proxies the engine WebSocket on a single port.
Install
iii trigger compose::add worker=ade@1.10.0Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
skill doc
ade
The ADE worker is a single Rust binary that serves the React SPA and proxies the
engine WebSocket on one port (http_port, 3113 by default; ade::status
returns the actual url). It renders the
chat (on the harness turn loop), the OpenTelemetry trace explorer, the worker
catalog, and a tabbed workspace of floating panels the operator arranges. It is
also the delivery host for injectable UI: any worker observes
ade::ui::asset with args { kind: 'script' | 'style', path } naming an
asset and its content function as the target that serves the bytes, and every
open tab imports the module, calls its setup(host), and hot-reloads it when
the asset changes. No console rebuild, no iframe.
Reach for this worker in two situations. First, when a worker needs a face in the console — a page, a function-call or observer-activity renderer, a settings form — build it against the three companion skills below rather than inventing markup. Second, when an agent should change what the operator is looking at: open a worker page beside the conversation, pin a chat, close a screen, or propose that the session follow a project created elsewhere.
Prerequisites: the configuration worker (the ADE worker stores its own settings
and every worker's configuration entry there). Chat needs harness and its
stack; traces need the engine's OpenTelemetry export.
When to Use
- A worker must ship a console page, renderer, or configuration form — read
ade/injectable-ui(the delivery contract) first, thenade/design-console-ui(responsive UX and forms), withade/design-systemopen for every visual rule and number. - A worker's records should be mentionable in chat (
@calendar(id="…"): composer autocomplete, pills with a hover preview, agents receiving the record resolved): readade/mentions— two functions and a metadata descriptor, no console change. - You changed a worker's UI and must prove it is loadable: read
ade::ui-manifestand require an emptywarningsarray. - The user should watch something in the console:
ade::workspace::openwithext:<page>,workers,traces, or a pinnedchat. - You created or cloned a project in another directory and the user asked to
continue there:
ade::working-directory::propose(never just to inspect a file). - You need to know what the operator currently sees:
ade::workspace::list.
Chat-owned Context tracking
Users can ask in chat to pin release progress, a goal, a status summary or a checklist.
Use ade::context::list, ade::context::save and ade::context::remove.
Discover the contracts before calling; Harness stamps the current session_id.
A save stores a structured snapshot, not executable code, an extension or a monitor.
Default to conversation; use project only when the user explicitly asks. Project
identity is the session's canonical metadata.fs_scope.root; other conversations
using that directory see the same project snapshots. List first and use an existing
id to edit or move scope. Save replaces the whole snapshot: preserve the fields not
being edited. Include a source label/HTTP(S) URL when available, and read the source
before saving numeric progress. Update relevant snapshots when consulting their source
or changing the tracked work. Do not poll or fetch unrelated sources. If refresh fails,
keep the previous snapshot and tell the user it is stale. Confirm the saved scope.
Users may edit, change scope, refresh or remove through chat. The Context panel's
Tracking section shows the saved progress, checklist, source and last-updated time;
its Update/Remove actions prepare a chat draft, never send or mutate silently.
Snapshots persist in <data_dir>/context-tracking.json, with atomic writes.
Boundaries
- The console renders; it does not own domain data. Injected UI acts by
calling its own worker's functions over
host.iii, and configuration values live in theconfigurationworker. ade::ui::on-assets-changedis the tab-side live-update feed. Workers never observe it; they observeade::ui::assetonly.- Injected styles are scoped under
[data-iii-ui="<worker>"]; an unscoped rule restyles the whole console and is reported as a manifest warning. - Observe
ade::ui::assetover the worker's own connection: its observers leave with the worker, and the console drops the asset. workspace::openreuses a tab that already shows the screen; it never duplicates panels. Selection of the active tab is per browser tab and only follows a function-driven activation, which every activatingopenstamps. A page that asks for a panel of its own passesrelative_towith its own screen id, so the panel lands beside the page, in whichever tab shows it, instead of beside the chat.- An injected page placing a screen for the operator in front of it calls
host.panels.openScreen({ screen, relativeTo?, direction?, sizes? })(built-in screens liketracesincluded): local and optimistic, no bus round trip. Feature-detect it and fall back toade::workspace::open. - Native console UI (
ade/web) and worker UI change in separate pull requests; the shared component surface is@iii-dev/console-ui(packages/console-ui) and itsindex.d.tsis the only API contract.
Functions
ade::status— runtime knobs:url,http_port,engine_url,version; use for liveness and readiness, and open ADE pages on this machine (browser sessions, curl) aturl(<url>/#/worker/<scope>/<page-id>) instead of assuming port 3113.urlis loopback when the ADE worker listens on every interface: to show the operator a page, useade::workspace::open, not a pasted link.ade::ui-manifest— every injected asset currently loadable, with path, kind, content hash, and style-lint warnings; the authoritative check after registering UI.ade::workspace::list— the operator's workspace: tabs, columns, screens, column widths, and the active tab.ade::workspace::open— show a screen next to the conversation (ext:<page>,workers,traces, or a pinnedchatbysession_id). It lands right of the chat panel;relative_tonames another mounted screen to sit beside anddirection(right/left) picks the side.sizessets the tab's column widths in the same write — readworkspace::listfirst for the widths that are up.ade::workspace::close— remove a screen wherever it is shown; idempotent.ade::working-directory::propose— ask the operator to move the session (chat and paired shell) to a directory created or cloned elsewhere.ade::ui-content— the ADE worker's own content function for its injected catalog pages; internal.ade::on-config-change,ade::working-directory::inject-guidance,ade::working-directory::stamp-session— internal wiring; never call directly.ade::mentions::trace::search,ade::mentions::trace::get— the@trace(id="<trace_id>")chat mention provider overengine::traces::list; internal. Agents read a mentioned trace throughengine::traces::tree(seeade/mentions).
Observable functions
The ADE worker hosts four private functions others observe. One is the injectable-UI contract a worker observes to ship UI; one is tab-internal; two report changes.
ade::ui::asset— one asset per observer. Args{ kind: 'script' | 'style' | 'module', path };pathis the identity (<worker>/page.js, at most 512 bytes) and the observer's target is the worker's content function, returning{ content, content_type? }for{ path }. Once the observer is active the ADE worker calls the function with{ path }for that observer alone, and its deliver hook calls the content function through the observer. A later observer of the same path supersedes the earlier one (UI_ASSET_SUPERSEDED); a content fetch that fails rejects the observer (UI_ASSET_FETCH_FAILED).ade::ui::on-assets-changed— a tab's live-update feed, no args. Each new observer gets one call of its own once it is accepted,{ op: 'sync', assets }; every later change is{ op: 'set', asset }or{ op: 'delete', path }. iii delivers each like every call, so a tab receives every event in one shape. The console's tabs observe it themselves.ade::workspace::on-changed— called after every workspace layout write (open,close, a browser's own edit), and once for each new observer alone when it is accepted. No args, empty event: a page that watches the layout observes it and re-readsade::workspace::list.ade::compose::on-changed— called when the Compose daemon writesstate.jsonor the compose file changes. No args; filter oninput.kind,input.fileorinput.namespace.
Observe ade::ui::asset once per asset at worker startup, after the
content function is registered. To change an asset, observe it again and
dispose the old observer: different bytes hot-swap the asset in every open
tab; identical bytes are a no-op. Rust workers use the iii-console-ui crate
(ConsoleUi::new("<worker>").script(..).style(..).register(&iii)), which also
wires the III_<WORKER>_UI_WATCH development watcher; Node workers register
the content function and observe ade::ui::asset directly:
iii.observe(
{ function_id: 'ade::ui::asset', args: { kind: 'script', path: 'my-worker/page.js' } },
'my-worker::ui-content',
)Skills shipped with this worker
ade/injectable-ui— the delivery contract for worker UI: project layout,setup(host)and every slot, the wire contract, Rust and Node registration, the shared build driver and its lint, scoped CSS, the hooks/format/icon packages, hot reload, debugging, and the definition of done.ade/design-console-ui— responsive UX and forms: archetypes, pane-width (not viewport) behavior, phone drill-in and bottom sheets, state integrity, configuration and provider forms, and the validation matrix.ade/design-system— the iii Schematic design system: tokens, surface ramp, typography, radius, elevation, motion, the canonical components, and the one numbers table the other two skills link to.
The migration of the remaining worker UIs onto the shared package is tracked
in docs/plans/2026-09-16-worker-ui-migration.md.