Under Host — Show in screenshot, Logs supports investigating failed runs and host problems. Settings shows effective host limits and manages appearance, stored insights and rule profiles. The link from a run to its log lines supports focused troubleshooting without searching the entire host log.
The host log
The log records host starts and stops, commands with their working directory, exit code and duration, plus warnings and errors. Files are written daily and retained for 14 days.
The view initially shows all six levels from Trace to Critical and follows new entries. It loads 200 lines at a time. Exceptions have an expandable stack trace.
In the terminal, codecharter host logs provides the same host log.
Follow and filter the log
Level buttons and Search logs — Show in screenshot narrow the entries. Search covers the entire retention period. For troubleshooting, the view can be limited to Warn, Error and Critical, for example.
| Action | Effect |
|---|---|
| Follow — Show in screenshot | Keeps the latest entry visible. |
| Scroll up | Pauses following so older lines remain readable. Incoming entries are counted. |
| Jump to newest | Returns to the latest entry and resumes following. |
| Load older | Loads the next 200 older entries. |
When the display is limited, the page identifies omitted older or newer entries. Narrower search and level selection help load the relevant section. A read failure offers Retry.
The log of one run
The run detail page shows recent associated messages under Log lines of this run — Show in screenshot. All in log — Show in screenshot opens the logs page filtered to the run ID.
The filter appears as a chip and as ?run=<id> in the address. Removing the chip restores the complete log. Attributed log lines link back to their run.
No log lines for this run. — Show in screenshot may mean no messages were written, or they are older than 14 days. Failed file access is reported separately.
Language and appearance
Display — Show in screenshot offers German and English, alongside System, Light and Dark. System follows the operating system's colour scheme.
The selection takes effect immediately and is stored per browser. Each browser retains its own appearance settings.
Change host settings
Settings shows the values read at host startup:
| Area | Contents |
|---|---|
| Storage — Show in screenshot | Data directory, log files and run history. |
| Analysis cache — Show in screenshot | Idle timeout before unloading, 20 minutes by default, and memory budget. |
| Limits — Show in screenshot | Concurrent commands, time before stopping without clients and MCP sessions. |
| Retention — Show in screenshot | Simple run history: up to 500 runs over 30 days. Log files: 14 days. |
Configurable values identify their environment variable under Set with — Show in screenshot:
| Variable | Setting |
|---|---|
CODECHARTER_MCP_IDLE_EVICT_MINUTES |
Minutes without use before the host unloads a workspace. |
CODECHARTER_MCP_MEMORY_BUDGET_MB |
Memory budget for loaded workspaces in MB. Unload reasons explains what happens when it is exceeded. |
CODECHARTER_MAX_CONCURRENT_COMMANDS |
Maximum number of commands executed concurrently. Further requests wait for a free slot. |
The page displays the values. Changes belong in the host's startup environment and require a restart. Settings without Set with — Show in screenshot have no associated environment variable.
Example: Keep unused workspaces loaded for an hour.
Check the current value and Set with — Show in screenshot under Analysis cache — Show in screenshot.
Change the variable in the host’s startup environment and restart it, for example in Bash:
export CODECHARTER_MCP_IDLE_EVICT_MINUTES=60 codecharter host restartReopen the UI with
codecharter uiand check Analysis cache — Show in screenshot to confirm that the new value is in effect.
A restart ends open MCP sessions of editors and agents. The host documentation explains individual limits.
Stored insights
Insights record runs, tool calls, sessions, analyses, findings, coverage and verdicts locally. Historical results therefore remain available with an unloaded workspace. The file resides in the user account's protected data area; Location — Show in screenshot and Size — Show in screenshot identify it.
| Capture state | Meaning |
|---|---|
| On — Show in screenshot | New results are being recorded. |
| Starting | The store is being prepared after host startup. |
| Off | CODECHARTER_INSIGHTS disables recording with off, false, 0, no or disabled. Removing the variable and running codecharter host restart enables it again. |
| Not available | The card explains the cause, such as a store file that cannot be opened. Details appear in the host log. |
With recording disabled, the host still opens an existing insights file for reading and deletion. Views then show previously recorded data. Without an existing file, reports from the insights store are unavailable.
Retention depends on the data type:
| Data | Retention |
|---|---|
| Runs, tool calls and sessions | 30 days. |
| Findings, analyses, coverage and verdicts | 180 days. |
| Daily rollups | 365 days. |
If the displayed size cap is exceeded, 1 GB by default, the oldest records are removed first.
Source code, file contents and environment variable values are not stored. Tokens, passwords and credentials are masked in arguments and messages. Tool responses retain their size and outcome status.
insights: off in .codecharter/config.yml excludes one repository from recording. Opted-out repositories — Show in screenshot lists these exceptions. They carry Without insights in the workspace list.
Writes since the host started — Show in screenshot helps investigate missing recordings:
| Counter | Meaning |
|---|---|
| Queued — Show in screenshot | Records waiting to be stored. |
| Written — Show in screenshot | Records stored successfully. |
| Dropped — Show in screenshot | Records not accepted, for example because the queue was full, the host was stopping, or the store was not ready. An earlier deletion can also cause records to be dropped. |
| Failed — Show in screenshot | Accepted records that could not be stored. |
| Excluded | Records from opted-out repositories. |
Delete insights
Under Delete stored data — Show in screenshot, a workspace can be found and cleared through Delete data... — Show in screenshot. Delete all insights... — Show in screenshot affects every workspace. Both actions state their scope in a confirmation dialog.
Deletion is permanent and cannot be undone. The store removes records and overwrites the freed space in the file. The simple run history is not imported again afterwards. The page confirms deletion or reports an error with an option to retry.
Enabled recording continues after deletion, so new analyses can create data again. Recording can be disabled persistently with CODECHARTER_INSIGHTS=off for the host or insights: off for one repository.
Update and restore profiles
The Profiles — Show in screenshot card provides two actions for the selected workspace:
| Action | Appropriate use |
|---|---|
Update profiles — Show in screenshot (codecharter update) |
After changing profiles in .codecharter/config.yml. Profiles are resolved again and the lockfile is rewritten. |
Restore profiles — Show in screenshot (codecharter restore) |
When rule bundles are missing. Bundles pinned in the lockfile are downloaded into the local cache. |
Both actions require a workspace selection and confirmation. The resulting run can be followed in the run bar and its detail page. See Start commands from the UI for further details.