Skip to content
Scopwis
Workflows

Scopwis clients

Scopwis has a Rust core with a HTTP API, and two UI clients that talk to it. Both clients share the same protocol, authorization and capability contracts. An empty list reads as a heading over a one-line description, and an empty directory, a query nothing matches and a list that failed to load are three different messages — a failure is reported by name with a retry, never shown as empty.

Native Shell client (target)

The cross-platform client is built with Native Shell and one Rust app. It targets iOS, Android, macOS, Windows, Linux, the web, and embeds in GPUI applications on desktop.

macOS, web and Android packages are built and verified. The iOS app builds once scripts/nsh-ios-workaround.sh works around the upstream nsh-platform-ios release defect, but it is unsigned, so it cannot be installed on a device without Apple signing credentials. Windows and Linux packages need their own hosts. Those three are documented as unverified rather than claimed.

The GPUI host lives in apps/scopwis_gpui and runs the same Rust root through nsh-platform-gpui, so a GPUI or GPUI Kit app can put Scopwis inside its own element tree with AppView. nsh run --target gpui only serves TypeScript entries and refuses a Rust root, so the host is an ordinary Cargo binary: make nsh-gpui. It enables runtime-shaders to build without Apple's Metal toolchain; drop that feature where the toolchain is installed to ship precompiled shaders.

Running modes

ModePlatformsServer
EmbeddedmacOS, Windows, Linux, GPUIThe app starts a loopback scopwis-server and connects to it
RemoteiOS, Android, web, and desktop on requestThe app connects to a server you configure

On platforms that cannot run a server — iOS, Android and the web — only the remote mode is offered, and an embedded choice stored by another platform is normalized to remote at startup. When the configured server cannot be reached, the error state offers the endpoint field itself there, because the settings page sits behind a working connection.

When nothing is configured, the web app uses the origin it was served from — so a deployment serving the UI and the API from one host needs no setup — and falls back to the local development default on a loopback or opaque origin. Android reaches a desktop server through the emulator's host alias, and every other platform starts from the local development default.

On the desktop the client discovers scopwis-server next to the app bundle (in Contents/Resources/ on macOS), reuses a healthy server it finds, waits for its /health endpoint, and terminates it on a clean exit. No environment variables are required for a packaged desktop build. Widths without the sidebar keep the conversation history reachable from the compact bar, and the history is searchable in place by title or ID. Opening a conversation is guarded by its own request version, so a late reply cannot replace the one you are reading; a failed open keeps the session and the draft, and only a missing record is reported as gone.

When the server runs work as a task, the reader starts it that way: it follows the task on the server's polling interval, draws the stages as they arrive, and offers Stop, which cancels the task, and a finished task can be deleted from the list behind the same confirmation as the other destructive actions. A server without tasks, or one that cannot take a task, falls back to the synchronous run without a stop control.

While a task runs, its stage events and the artifacts it has produced so far appear as they arrive.

A new run clears the previous run's stage events and artifacts, so nothing from an earlier answer is presented as this run's own; while a run is going, the status line says so.

The composer takes several lines: Return adds one, Ctrl/Cmd+Enter submits, and the Send button stays the touch path. A run in progress refuses another send without discarding the draft.

The reading surface scrolls: a long history or transcript is reachable, and new content follows only while you are at the end. Opening a history, or switching to another one, starts at its real end; reading an older part is never pulled along. The history closes behind the conversation it opened, and a back gesture leaves an open conversation for the run's own transcript.

Every transcript message carries its own actions: copy and quote for both roles, edit-and-resend for a question, regenerate for an answer, retry for a run that failed, and helpful / needs-improvement where the run recorded a trace the server accepts feedback for. Edit, regenerate and retry wait for a running analysis to finish; copy and quote never do. Every one of those actions keeps a 46pt touch target and shows its own name as a pointer hint.

A run that delivers a report closes the transcript with that report as a deliverable: its title and description, the revision and the widget, dataset and evidence counts it declares, and three actions. Open shows the report on the Reports surface. Refine with AI and Explain only prepare a question about that report and revision in the composer — nothing runs until you send it. A draft you were already writing is kept, and the composer says so until you edit it.

Where things live

  • Analyze — a left-aligned editorial framing when empty, with recommended analysis questions laid out in as many columns as the cards' own readable width allows (a single column on a compact width), and each entry only prepares a draft in the composer rather than running on its own, the six-phase rail (Data → Plan → Query → Analysis → Report → Delivery), the plan the run recorded (its goal, the topological batches its real dependencies form, the longest critical chain and each step's own dependencies), the run's citable trace identity, the conversation transcript, the report a run delivered as its deliverable card, the run's recorded stage events as a bounded execution log, and the composer that runs the Agent. On a wide workspace, two entries under the phase rail open an inspector beside the transcript — the run's plan, metrics, trace and execution log, or the artifacts it produced — leaving the reading column free for the conversation. Choosing an artifact opens its preview in the inspector, not on another surface. On a short window, where that row has no room, the same two entries stay on the phase rail itself as icons, so the run's own detail never becomes unreachable. On a phone, where a column beside the conversation would leave the transcript a strip, the inspector opens as the surface itself: the phase rail and the two entries stay above it, and closing it brings the conversation back.

    The composer's Data objects action opens a browser over the configured data sources: pick a source, filter by path prefix, narrow by format once the listing carries more than one, read how many of the loaded objects those filters leave — and, when the listing reached the request's own ceiling, that it is bounded rather than the whole source — and send any analyzable object (CSV, Parquet, JSON, Arrow, Excel and more) straight into the Agent as the analysis subject. Selecting an object opens its detail — name, full path, format and size, the source it lives in, a copy-path action and the analysis entry — only once asked, so the list keeps the space while browsing. Choosing Analyze on an object offers a general analysis plus every mining method family the server advertises.

  • The Reports library, Activity, Data mining and the data object browser share one page-header band (about 52pt, 48 on a phone) with a single horizontal gutter, so moving between them keeps the same top rhythm.

  • On a touch device, the navigation rows, the composer's actions, the sidebar's own controls and the chip-style controls take the padding that reaches a 46pt touch target; on a desktop pointer they take the 36pt control density.

  • The desktop sidebar collapses to a 76pt icon rail and expands back. Collapsing only changes the layout: it never changes the destination, switches the session or drops a task. The rail keeps the destinations, the history entry and the account / settings / theme controls as 42pt icon actions with localized tooltips and accessible names, and the history entry expands the spine and focuses its search. The history list searches by title or ID, and clearing the search restores the list.

  • A server that does not advertise the agent capability shows the Analyze surface as unavailable — it says the capability is missing and offers no composer — rather than a home that invites a question nothing can answer.

  • Data mining — the registered method families, gated on the analysis_methods capability. The catalog narrows by category and by a search over the title, description, method id and keywords (every whitespace-separated word must match), and reports how many families are visible; a no-match state offers one action that clears every filter. Selecting a family only opens its review: the description, the method id and the request the Agent will run, editable and resettable per family. Each family keeps its own draft while you move around, and a run that fails leaves the family selected with its draft intact. Wide windows lay the rows out in two columns, sized from the width left after the sidebar and the page gutter; a phone keeps one. Starting a run still goes through the same AgentPlan, Query Safety and Analysis Artifact chain.

  • Reports — the report library, searchable in place by title or ID, and a ReportSpec document reader that renders metric (bound value_field, formatted as the report declares, with a signed comparison chip and an optional target row), table (one node per cell, paged at the report's page_size, with its conditional formats applied and a review of any row's columns), filter (bound field and control, whose values filter the report's datasets), markdown, and chart widgets. Markdown widgets render as real Markdown — headings, lists, tables and code — from the report's content, presented as the report declares: plain prose, a quoted rule, or a tinted callout or note in a semantic tone. Table rows and metrics are press targets when the report wires their select / click event: a row's field becomes a parameter's value, and a navigate / drill_down interaction highlights and scrolls its target widget into view. A refresh interaction cannot be served from the artifact the reader already holds, so it says the analysis must be re-run rather than presenting the old data as new. A chart its data cannot support refuses in words: a ratio mark over a signed column and a bubble over a negative size say so instead of drawing a false share, a mark that names a field the dataset does not carry names the missing field rather than falling back to an arbitrary column, a value column that holds no readable number says so rather than drawing nothing behind a missing-value count, and rows with no readable value are left out with the count reported. Every chart has a "Show values" toggle that swaps the visual for the exact rows behind it, naming each bound field. Chart rows are press targets only for marks with an unambiguous datum (bar, horizontal_bar, pie, donut, funnel, heatmap, scatter, bubble, line, area, sparkline); stacked, histogram, treemap, gauge and radar marks never are. A pie or donut's legend entries are its press targets, and so are a scatter or bubble's. A line family chart binds the x it declares, and its bounded list of x values is its press target. Charts bind their fields by the widget's mark — line, area, pie, donut, scatter, bubble, bar, gauge, histogram and more — and always show the report's real values. Title/description editing, AI refinement, an explicit degraded state when a widget's dataset did not arrive, and public share creation/revocation are built in; an active share also opens the same reader against the public snapshot, exactly as an external reader would see it, and a snapshot opened from the library closes again on the system back gesture. A share whose status cannot be read is reported as unknown rather than presented as private, and a share that cannot be opened shows an explicit unavailable state. Above the sections the reader states what the document is a snapshot of — its data_as_of, each dataset's loaded versus reported rows, the artifacts behind it, and a plain warning when a dataset is only partially loaded.

  • Activity — Agent task history with per-task event detail (kept current by polling the server's own interval), the artifacts each task produced, the run's own operational metrics (queue wait, model time and context, tool calls, queries, cache reuse, recoveries and guards — a counter the run never reached stays out rather than reading as zero), and artifact previews carrying each artifact's evidence stamp (kind, id, revision, producer, input count and recording time). Opening an artifact also shows its lineage: direct inputs, ancestors and descendants, with the server's truncation flags, and the preview closes again on the system back gesture.

  • Settings — searchable by section (its title and its own field terms), the account (the signed-in identity, or the guest state with a sign-in action per advertised provider, a note that none is configured, and a sign-out action once signed in), server mode and remote endpoint (with an unauthenticated verification probe that reports the server version and protocol), the server capability list (every capability the client knows, each marked available or unavailable), model configuration, the Jev model-gateway configuration (enable, base URL, model, timeout, credential, with a connection probe), data sources with a per-source analytical-read health check, each source's kind, access modes and connection profile, connection profiles (searchable in place by ID, service and field name), each profile's agent-scoped access grant (enable, TTL, source quota, source prefix, the grant's expiry — or that it has already lapsed — and one audit trail that holds both the configuration receipts and the grant's own enable/revoke events, newest first). The trail searches the source, actor, trace and call ids, filters by receipt status or grant action, and reports how many rows it shows of how many exist; rows past the first page wait behind an explicit show-more, a query with no match offers a reset, and two copy actions place the whole trail or just the filtered rows on the clipboard as JSON built from the fields the panel read. The server's receipt capacity sits beside it), installable public data presets, MCP / external integrations, the semantic governance registry (searchable by identifier, name, description or alias, narrowable by kind and governance state, with a creation form for entities, metrics, dimensions, relationships and glossary terms, and a per-record inspector that shows the whole definition, its scope, governance and provenance and owns the approve / reject / deprecate actions), the artifact lineage catalog (the server's artifacts, searchable by id, kind, producer or trace, each opening an inspector with its own facts, direct inputs, ancestors and descendants and a bounded back stack), appearance, language, and sign out. Panels whose capability the server does not advertise are not mounted.

  • GitHub SSO — the server's stored GitHub sign-in configuration: enable it, set the OAuth client and the public base URL, and read the callback URL the provider needs. Saving is guarded on the revision the client read, an empty secret keeps the stored one, and the server's own setup token is sent only as a request header.

  • MCP / external integrations — connecting one is probe-first: the client discovers the remote tools without persisting anything, lists every candidate with the effect it inferred (read, write, or credential administration), and sends only the tools you approved. A write-shaped tool is never exposed to the model by default, and a tool the classifier does not recognize is treated as a write until you choose it. A public endpoint must be HTTPS; loopback and private addresses are connected under their own scope.

Cmd+K (or Ctrl+K) opens a command palette for navigation, appearance and sign out.

Localization and appearance

The catalog ships English, Simplified Chinese, Traditional Chinese, Japanese, Korean, French, German, Spanish, Italian, Portuguese, Russian, Dutch, Polish and Turkish, and follows the platform's own language until you choose one. The language, the appearance (system / light / dark) and the server mode persist across launches.

Flutter client (legacy)

The original Flutter client remains available during the migration. It targets the same server contracts and shares the same ReportSpec, query and governance semantics. New product surfaces are added to the Native Shell client first.

Server

The server is the source of truth for authorization, query safety, analysis execution, artifacts, reports and model configuration. See Data sources, Model providers and Security, evidence, and lineage.

Type to search the English documentation.