Zum Inhalt springen

Load, unload and manage workspaces

Workspace views connect load state and memory estimates with findings, coverage and architecture. Actions manage loaded and stored data.

Host — Show in screenshot → Workspaces lists known workspaces with their load state and previous results. A workspace belongs to a local folder containing a solution or project. Its detail page connects loading actions with findings, coverage and architecture.

The workspace list

The list includes workspaces in memory and in the insights store. Loaded entries appear first, then those active most recently. A workspace appears after its first CLI command, MCP call or UI run in that folder.

The workspaces list with each workspace's load state and badges The workspaces list with each workspace's load state and badges

Name or folder — Show in screenshot filters the list. More entries can be loaded for longer lists. No workspace matches identifies a search without matches; No workspace yet identifies an empty data set.

Field Meaning
Workspace name Opens the detail page once the insights store knows the workspace. The tooltip shows the full path.
Branch beside the name Branch of the last recorded analysis.
Load state Shows whether an analysis is ready in memory. Additional badges explain limitations.
Memory — Show in screenshot Estimates memory requirements from the last load.
Last activity — Show in screenshot Links to the latest run.
Runs (30 days) — Show in screenshot Shows use during the period.
Open findings — Show in screenshot Shows the current open count.
Change (30 days) — Show in screenshot Introduced findings minus fixed findings. The tooltip gives both counts.
Action Load — Show in screenshot or Unload — Show in screenshot according to state; Remove where applicable for an outdated folder.

Without an available insights store, the list only shows workspaces in memory and omits historical metrics. A failed refresh leaves the last successful read visible.

Loaded and not loaded

Loaded — Show in screenshot means the analysis of the solution or project and the evaluated rules are ready in memory for further runs to reuse. An unloaded workspace must load before its next analysis; stored results remain available.

A value such as “≈ 1.8 GB at load” measures the host's memory growth during the last load. It indicates the cost of loading. It does not describe the workspace's current memory use, because workspaces share data. A dash means no measurement is available yet.

Task Appropriate action
Read existing findings or coverage Open the detail page or the relevant results view. An available insights store is sufficient.
Investigate dependencies in the graph Load the workspace, then open Architecture — Show in screenshot or a type’s neighbourhood.
Check the current code for findings Run Analyze. The host discards the previous analysis and reads the files on disk.
Release an analysis from memory Use Unload — Show in screenshot. Stored results remain available; the next request can load again.

Load and unload

Action Effect
Load — Show in screenshot Runs codecharter host warm. A dialog first shows estimated memory requirements or not measured yet.
Unload — Show in screenshot Runs codecharter host evict without confirmation and removes the analysis from the cache.

Both actions appear as runs with progress information. See Start commands from the UI for details.

With several solutions and no loaded selection, Load — Show in screenshot remains disabled. A specific solution can be loaded with codecharter host warm and its path. A load still in progress must be cancelled before unloading. A command is rejected lists other causes.

Workspace load confirmation showing the target path, estimated memory and actions to start or cancel Workspace load confirmation showing the target path, estimated memory and actions to start or cancel

The dialog identifies the command, target path and estimated memory requirement. Confirm starts loading; Cancel closes the dialog.

Reasons for unloading

Last unloaded — Show in screenshot on the detail page gives the time and reason. The host retains this information from its latest start.

Reason Effect
Idle timeout exceeded By default, a workspace unloads after 20 minutes without use.
Too many loaded workspaces By default, at most four stay loaded. The least recently used workspace unloads.
Memory budget exceeded The host unloads the least recently used workspace to release memory.
Unloaded on request Unload — Show in screenshot or codecharter host evict removed the cached analysis.
Fresh analysis requested Analyze discards the previous analysis and reads the current files on disk.
Files, rules or configuration changed The analysis is outdated. The next request analyses again.
Configuration changed through MCP config_mutate discarded the loaded workspaces.

CODECHARTER_MCP_MAX_WORKSPACES changes the maximum number of loaded workspaces. The host settings section explains the idle-timeout and memory-budget variables. For those two limits, 0 disables idle unloading or the memory budget respectively.

The default budget is 2 GB, bounded by a minimum of half and a maximum of three quarters of the memory available to the process.

The settings page shows the effective values. Changes take effect after codecharter host restart.

Workspace badges

Additional badges explain limitations. Their tooltips contain the full message.

Badge Meaning and remedy
No solution found The folder no longer contains a discoverable solution or project. An outdated entry can be removed.
Folder not reachable A drive or permission may be missing, or the folder may be too large to check. Loading, analysis and removal become available once access is restored.
Without insights insights: off disables recording for this repository. Runs are visible only while active.
Config unreadable The last readable recording setting still applies. Without a previous value, the host records nothing.

CODECHARTER_INSIGHTS=off applies to the whole host. A notice above the table then explains that no new data is recorded, and existing figures come from earlier recordings.

Remove a workspace

Remove is available only for stored workspaces whose folders are confirmed to contain no solution or project. A temporarily unreadable folder is insufficient.

Removal permanently deletes all recorded insights for this workspace. The folder itself remains unchanged. A dialog requires confirmation.

The host checks the folder again before deletion. A rediscovered solution or a read failure prevents removal. A store failure allows another attempt. If the same workspace is recorded later, it receives a new ID.

One workspace in detail

The detail page brings together a workspace's status, results and actions. The header offers analysis and loading or unloading when the folder is usable.

The page of one workspace with the "Next step" card and its runs The page of one workspace with the "Next step" card and its runs

Next step — Show in screenshot leads from missing prerequisites to an initial analysis and coverage measurement. Notices about a failed analysis or one without rules appear immediately above it.

Status: Load state, badges, memory, branch and last activity have the same meanings as in the workspace list. For an unloaded workspace, Last unloaded — Show in screenshot adds the time and reason.

Metric Scope and meaning
Runs — Show in screenshot Run count over the last 30 days.
Open findings — Show in screenshot Open findings on the most recently analysed branch.
Line coverage — Show in screenshot Measurement from the latest full coverage run.
Architecture — Show in screenshot Namespace cycle count.
Lines — Show in screenshot Code size, with the project count.

The first four tiles open the corresponding view with this workspace selected. Further links lead to other areas.

Trend or table Contents
Open findings over time — Show in screenshot Changes in the open finding count.
Branches — Show in screenshot Analyses, open findings and latest analysis time per branch. The branch name opens its findings; the funnel opens its run list.
Projects on — Show in screenshot the last branch Type count, open findings, median complexity and coverage per project. A project name opens its type table.
Last runs — Show in screenshot Recent requests, with a link to the full history.

Workspace not found means the insights store does not know the ID. When the store is unavailable, the workspace list remains usable for loaded workspaces.

The workspace switcher

The header switcher sets the workspace for the current view. Pinned entries come first, then recently used workspaces, followed by the rest in order of activity.

State Meaning
Loaded — Show in screenshot The analysis is in memory.
Not loaded — Show in screenshot The workspace is known, but its analysis is not in memory.
Stored, not loaded The entry comes from the insights store.
Choose a solution The folder cannot be resolved to one loaded solution. An explicit selection is required.
Unknown workspace The address names a workspace the host does not know.

A folder address selects its sole loaded solution. Several loaded solutions require a selection. The choice remains as ?ws= in the address, as described under Choose a workspace.

The browser remembers the last eight selected workspaces. With no selection in the address, it restores the last known one. A workspace confirmed absent by a successful store read, or unknown to the host, is not retained.