AI sessions — Show in screenshot under Live — Show in screenshot connects an agent’s work with its recorded checks and results. For a review of an agent’s change, it shows verification status, introduced and fixed findings, and warnings. The history places changes and checks in time order.
Session attribution and duration
A session connects an agent's MCP calls with attributed CLI commands from its shell. CLI commands are attributed through CODECHARTER_SESSION or the hook pack. The MCP handshake supplies the client name.
A session ends after 30 minutes without activity, after 10 minutes when an MCP client disappears without signing out, or when repository HEAD changes. The next call then starts a new session. The detail page names the reason it ended.
The sessions list
Metrics above the list cover the last 30 days:
| Metric | Meaning |
|---|---|
| Sessions | Number of recorded AI sessions. |
| Agent runs | Number and share of runs attributed to an agent. The share is relative to all runs. |
| Clients | Distribution of sessions and runs across clients. A client tile opens its detail page. |
| Column | Meaning |
|---|---|
| Start — Show in screenshot | Session start time; opens its detail page. Ongoing sessions are identified. |
| Agent — Show in screenshot | Client that started the session. |
| Workspace and branch | Associate the work with the recorded code state. |
| Gate — Show in screenshot | Verification status of the recorded change. The gate rules explain the conditions. A session whose working directory another session shared at the same time carries the note "Working directory shared with another session". A session whose changes were not scanned carries a short reason such as "Not scanned: git timed out". |
| Red flags — Show in screenshot | Number of stored warnings. The flag table explains their causes. |
| Findings +/− — Show in screenshot | Findings introduced and fixed during the session. |
| Calls | Separate counts of MCP calls and attributed CLI commands. |
| Tokens | Estimated size of tool responses. |
Recent sessions appear first; more can be loaded. A workspace selection narrows the list. Without recordings, it shows No AI sessions yet; Record sessions explains the prerequisites. Store problems are reported explicitly.
Trace an agent’s change:
- Open the session for the intended workspace and branch.
- Read the gate and its reason. Fulfilled — Show in screenshot can also mean that no change or too little Git state was recorded.
- Inspect red flags and Effect of the session — Show in screenshot. The findings table leads to the reported changes; missing analysis or coverage is identified explicitly.
- Open the verification run in the combined MCP/shell history to inspect the order, result and possible gaps in checking.
The gate
The gate describes whether analyze_diff checked the recorded change. The detail page adds a reason to Gate fulfilled — Show in screenshot or Gate open.
| Situation | Display |
|---|---|
A complete analyze_diff ran after the latest change with no findings in changed lines. |
Gate fulfilled. |
| The working tree did not change during the session. | Gate fulfilled because there was no change to check. |
| Too little Git state was recorded to establish whether a change occurred. | Gate fulfilled with an explanatory note. This does not establish a successful check. |
No complete analyze_diff ran after the latest change. |
Gate open. An inconclusive analysis, one still preparing, one for which git did not report the working tree it checked (no answer in time, or an error), one whose findings could not be read from its response, or one that ran without a working tree the host reads (no workspace, a workspace outside a repository, or an analysis in a repository that opted out of insights or whose config cannot be read) is insufficient. The flag then says the check cannot confirm the gate, and what such a check counted still keeps the gate open; of a repository that opted out or whose config cannot be read the host records nothing but that the call ran. A session end for which git did not report the working tree counts as a change after the last check. |
The latest analyze_diff reports open findings in changed lines. |
Gate open. This includes a result larger than the MCP response budget, whose findings are counted from the totals it keeps. |
| The session's changes were not scanned: the host stopped first, git did not report the commit the session started on (no answer within 10 s, or an error), git did not answer within 30 s or failed while reading the changes, or the scan failed. | Gate open. The list names the reason in a few words, the detail page in the flag. Missing red flags then do not mean there were none. |
The open cases also appear as red flags labelled keeps the gate open.
Example of Gate fulfilled without a new verification: the working tree did not change during the session. The reason explains why no verification was required.
Red flags
Red flags identify events that merit review. Three affect the gate; others highlight changes or limits in the recording.
| Flag | Reason to review |
|---|---|
Missing analyze_diff or open findings in changed lines |
The recorded change has not met the gate. |
| Truncated result without a follow-up | A graph result was shortened. Another query with a higher max_tokens or max_nodes budget can supply missing context. |
| Suppression added | A new suppression may hide findings. |
| Public signature line changed | A public or protected declaration was changed or removed. |
baseline --write executed |
A baseline was written during the session. |
| Changes too large | Suppressions and signature changes could not be checked. Missing flags do not establish that there were none. |
| Changes not scanned | The host stopped first, or git did not answer in time or failed, so suppressions and signature changes were not checked. The flag names the reason and keeps the gate open. |
Attribution has limits: the working-tree comparison can include edits from another window. When another session worked in the same working directory at the same time, the detail page says so under the gate, and the flags read from the working tree (missing analyze_diff, open findings on the changed lines, suppression, signature change, changes too large) carry the tag may belong to another session. Agents in separate worktrees do not share a working directory. Sessions are compared by workspace folder, not by git worktree root, so sessions in nested folders of one worktree are not matched. Signature checking examines declaration lines without assessing full API semantics. At most 25 flags of each kind are stored; further flags are shown as a count. Claude Code hooks explains the details.
Session results and history
The detail page starts with the gate and flags. Its metrics describe the scope of the session:
| Metric | Meaning |
|---|---|
| Duration — Show in screenshot | Time span of the session. |
| MCP calls — Show in screenshot | Tool calls made through MCP. |
| CLI calls | Commands from the agent's shell attributed to this session. |
| Tokens | Estimated size of tool responses. |
| Loads — Show in screenshot | Number of workspace loads during the session. |
| Truncated results | Tool responses whose output was limited. A missing follow-up can also produce a red flag. |
The token count covers tool responses only. When a tool provides no token count, the host estimates it as the response size in bytes divided by four. Prompts and other model output are not included.
What changed — Show in screenshot names the commit range and file count and offers a diff command to copy. The comparison depends on the recorded Git state:
| State at session end | Comparison and file count |
|---|---|
| All changes committed | Comparison between the start and end commits. |
| Uncommitted changes present | Comparison of the start commit with the current working tree. Later changes can therefore alter the displayed file count. |
| Workspace or required Git data unavailable | The file count remains unknown. |
Effect of the session:
| Metric | Meaning |
|---|---|
| Findings introduced — Show in screenshot | New findings from the session's analyses. |
| Findings fixed — Show in screenshot | Fixes recorded by those analyses. |
| Coverage — Show in screenshot | Change in percentage points or coverage of changed lines. Without a measurement, the page states no coverage run in this session. |
| Requirements — Show in screenshot | Number of verified and broken requirements. Verdicts explains the possible states. |
Without an analysis, both finding metrics are absent. A table lists introduced and fixed findings with severity, rule, message and location. Findings of this branch — Show in screenshot opens the branch's complete findings list.
Further reports:
| Area | Meaning |
|---|---|
| Tool mix — Show in screenshot | Shows how often each tool was called. |
| What the agent looked at — Show in screenshot | Lists types queried through graph tools. Links open the current code. |
| History: MCP and shell together — Show in screenshot | Places runs in time order, oldest first. Long sessions identify any limit to the most recent runs. |
| How this session was recognised — Show in screenshot | Names the recognition method, client, MCP session, any supplied issue association, end reason and attribution limits. |
Record sessions
MCP sessions begin when an agent uses the CodeCharter MCP server. The Claude Code hook pack can be installed in the project to attribute CLI commands from the agent's shell:
codecharter mcp install --client claude-code --scope project --hooks
Alternatively, CODECHARTER_SESSION in the agent's shell supplies attribution. Without hooks or this variable, CLI commands remain outside the session. The hook documentation explains setup and limitations.
The view requires the insights store. CODECHARTER_INSIGHTS=off disables host recording.
Clients
A client is a program using the host, such as an agent, editor, CLI or web UI. Its name in the sessions list or its tile opens the client page.
Name, version and kind identify the client. Metrics cover the last 30 days:
| Metric | Meaning |
|---|---|
| Runs | Number of requests from this client. |
| Median duration | Typical duration of its requests. |
| Workspaces | Number of workspaces in which the client executed requests. |
The workspace list shows use by workspace. The run list leads to individual requests. Missing older runs can be due to the 30-day retention period.