Zum Inhalt springen

A tour of the host web UI

The local web UI brings together workspaces, analysis results and running commands. This tour explains sign-in and navigation.

The local web UI brings together work from the CLI, MCP clients and UI actions. It supports following runs, investigating analysis results and starting further checks on a workspace. All views belong to the host connected to the browser.

Open the web UI

The shared host processes CLI commands and MCP calls. Its web UI opens from the terminal:

codecharter ui

The command starts the host if needed, prints a sign-in link and opens the default browser.

First path through the UI:

  1. Check whether the intended workspace is listed under Recent workspaces — Show in screenshot on Overview — Show in screenshot. If it is absent, run codecharter analyze once in its repository folder.
  2. Select the workspace in the header. Subsequent pages use this selection.
  3. Open Findings — Show in screenshot and check the displayed branch. A message leads to its location and the runs that reported it.
  4. Use Analyze for a new check of the current checkout. The run bar follows execution; the run detail shows the result and any errors.

For another browser, the link can be printed without opening one:

codecharter ui --no-browser

The link normally opens in a browser on the same machine. Remote access can use a browser on the host machine or a private port forward, as described in Troubleshooting. The UI listens on 127.0.0.1; the operating system assigns its port. A manually started host can use a fixed port.

Exit code 1 means the host could not be started or reached. Exit code 0 confirms the connection to the host, even if the browser fails to open. See The UI does not open for help.

Sign-in and session length

The sign-in link grants access to the UI and should remain private. codecharter ui obtains it through the private connection to the host.

Limit Meaning
60 seconds A new sign-in link remains valid for this long. It can be used exactly once.
1 hour without activity The browser session then ends. Live updates do not count as activity.
8 hours The session ends after this period even during continued use.

Running codecharter ui again creates a fresh link. Without a valid sign-in, the browser shows Session ended. Requests using hostnames other than 127.0.0.1 or localhost are refused.

On shared machines, codecharter ui --no-browser followed by pasting the link into a local browser avoids exposing it in the command line of an automatically launched browser. Additional protection depends on the operating system:

Environment Sign-in behaviour
Linux The host accepts connections owned by the host user or root. Other connections, including those with an unknown owner, receive 403 Forbidden. Rejection leaves the link unused; the host log records the reason.
Windows and macOS The host does not check the connection owner. On macOS, automatic browser launch passes the link without a browser command-line argument.
WSL2 with mirrored networking A Windows browser may have no identifiable owner. A browser inside WSL or networkingMode=nat provides an alternative.
WSL2 with NAT Connections reaching the host from Windows appear as root. The owner check only protects against other Linux users here.
Environment without readable socket tables, such as WSL1 The owner check provides no protection.

A port relay or open proxy running as the host user or root can defeat this protection: connections through it appear authorized. Such forwarding should not be openly accessible on shared machines.

Occupied connection slots can also prevent browser access. Linux reserves slots for connections identified as the host user or root. Windows and macOS refuse further connections once 128 slots are occupied. The host log records a warning; codecharter ui does not report this case separately.

UI layout

Area Purpose
Sidebar Opens the areas in the navigation groups.
Header Names the page and offers workspace selection and available actions.
Breadcrumb Shows the position within the UI.
(i) help Explains the purpose of the current page.
Status notice Distinguishes live data from completed results and gives their age. Not loaded — Show in screenshot identifies a required analysis in memory.
Run bar Shows active commands above the page content.

Pages use three kinds of data:

Data Use in the UI
Active requests Overview and the run bar follow CLI, MCP and UI runs while the host processes them.
Loaded analysis Architecture graphs and type neighbourhoods query the analysis cache. Load — Show in screenshot makes this state available in memory.
Stored results Findings, coverage, verdicts and history read the insights store. They remain available after unloading and refer to the stated analyses and measurements.

An automatic refresh reads new host data. Results for changed code require a new analysis or the corresponding check.

The host web UI with the navigation, the header and the overview of a workspace The host web UI with the navigation, the header and the overview of a workspace

Language and colour scheme can be changed under Settings.

Planned: A Help entry at the foot of the sidebar opens this tour.

Group Purpose
Live — Show in screenshot Overview, runs and AI sessions show current and recently completed work.
Code — Show in screenshot Findings, architecture, rules, risk hotspots, tests and requirements help assess the code.
Evaluation — Show in screenshot Statistics and explorer summarize results across runs.
Host — Show in screenshot Workspaces, logs and settings provide host management.

Detail pages open through links in tables and cards. Navigation retains the selected workspace.

Host box

The Host running — Show in screenshot box at the bottom of the sidebar identifies the connected host. It refreshes every 30 seconds.

Field Meaning
Version Version of the running host; allows comparison with the installed CLI.
Process ID Associates the UI with the host process, for example when checking the process list.
Uptime Time since this host process started.
Address Local connection to the host, including the HTTP address and port.

Different CLI and host versions can indicate an older host still running. The shared CodeCharter host explains how to check and restart it.

Choose a workspace

The workspace switcher in the header limits result views to one workspace. Its list is searchable; the clear button removes the selection. Many pages then show all workspaces.

The workspace list, host log and host settings still cover the entire host. Actions such as profile management use the selected workspace on those pages as well.

The selection appears as ?ws= in the address. Links, bookmarks and the back button retain it. Other filters survive a workspace change. When an address has no workspace, the browser restores the last selection if the host still knows it.

Pinned workspaces appear first, followed by the last eight used in this browser and then the rest by activity. The list includes loaded workspaces and entries from the insights store. The workspace switcher explains Not loaded — Show in screenshot, Stored, not loaded, Unknown workspace and Choose a solution.

Loading, empty and error states

Display Meaning and next step
Reading … The first response is still pending.
Not loaded — Show in screenshot The view needs the workspace in memory. The load action shows an estimated memory requirement before starting.
Stored insights are off No readable insights store is available for this view. Disabling recording alone leaves existing data readable. Troubleshooting distinguishes these states.
The store did not answer Reading failed. The page retries automatically; the message does not assess analysis results.
A notice about the last successful read A refresh failed. The visible data comes from the last successful response.
No runs yet or No workspace yet The view has no data yet. The accompanying text names the appropriate first action.
No run matches Active filters exclude all runs. Removing a filter may reveal entries again.

The glossary explains further terms.

Start commands from the UI

Actions such as Analyze, Load — Show in screenshot and Measure coverage start a command on the selected workspace. Without a selection, the action remains disabled.

Action CLI command Confirmation
Analyze codecharter analyze When the workspace is not loaded.
Load codecharter host warm When the workspace is not loaded.
Unload codecharter host evict None.
Measure coverage codecharter coverage Always, because tests run.
Start comparison codecharter graph diff Always, because a second revision is loaded.
Update or restore profiles codecharter update or codecharter restore Always, because rule profiles are fetched.

The confirmation dialog names the command and workspace. For Load — Show in screenshot and Analyze on an unloaded workspace, it adds the estimated memory requirement. Without a previous measurement, it shows not measured yet. A rejected command displays its reason beside the action; A command is rejected lists possible causes.

A started command appears as a run with source UI. The run bar shows progress, any reason for waiting and a link to the run. Successful runs leave the bar after a few seconds; failed runs remain with their error. If the same command already runs on the same workspace, the bar follows that run.

Queued and running commands can be cancelled. UI runs use the host's environment. Variables such as Configuration or DOTNET_ROOT may therefore differ from those in an open terminal.

Sign in after the session ends

Session ended appears when sign-in has expired or is invalid. The page shows codecharter ui in German and English, with the browser's preferred language first.

Running the command again in the terminal or IDE provides a new sign-in link. Signing out leaves the host, active runs and stored insights intact.