Settings: Agents
Last reviewed November 15, 2026 (checked against the app).
These settings are on the Agents, Agent access & safety and Fleet health pages of Settings, and the Compliance Ledger page under Security, on desktop and web. All settings lists every page.
How do I configure the Utility Model?
Open Settings -> Utility models -> Utility Model in the desktop app or the web dashboard. See Utility Models for every background model in one place. Typing "utility" in the Settings search or the Ctrl+K palette jumps to it.
The Utility Model is the model CPLai uses for its own small jobs: conversation titles, message summaries, preference extraction, the Terminal Supervisor, ticket decomposition, subagent dispatch, skill evaluation, and prompt improvement. Agents cannot change it, because it decides where terminal output, ticket text and message summaries are sent; change it from the Settings page.
| Choice | What happens |
|---|---|
| Automatic (default) | Each helper uses its own default model when that provider's key is present. Otherwise it falls back to a model your keys can reach (Anthropic, then OpenAI, then OpenRouter). |
| A model from the list | Every internal helper runs on that model. The list has your local Ollama and vLLM models, OpenRouter, Ollama Cloud and the provider models, shown by name. |
| Other model ID... | Type any model ID CPLai can call, for example vllm:<model>, ollama:<model> or openrouter/<provider>/<model>. A value saved before this picker existed that the list does not offer shows here. |
Automatic is the right choice for most users.
Tip: Automatic works with just a single OpenRouter key. Each helper finds a usable model through the fallback chain without any setup.
A provider model needs that provider's key in Settings -> Providers & keys -> API Keys. The Terminal Supervisor and agent debriefs have their own model settings in the cards next to this one; a model picked there applies to that job only.
When CPLai detects that the machine is offline, server-side utility features on a cloud model route through the offline model you picked in Settings -> Utility models, a model installed on one of your own Ollama or vLLM servers; with none picked they wait. Features on a model on your own servers keep it. This path is keyless and recorded at zero API cost. See Status and Offline Mode for the connectivity behavior.
Separately, desktop Settings -> Utility models -> Vault librarian offers discovered Ollama models and a vLLM (Local) group when that provider is enabled and reachable. Selecting a local Librarian changes its synthesis work, not the Utility Model. See Local Models.
How do I control agent behavior?
Agent settings sit on three Settings pages in the Workspaces group: Agents (how agents run), Agent access & safety (what they may reach and how they sign in) and Fleet health. The managed instruction files are on Agent memory, under Knowledge.
| Card | Page | Use it for |
|---|---|---|
| Spectate Links | Agents | Issue, audit, and disable read-only spectate links for a company |
| Claude Code | Agents | The master "agents run on my Claude subscription" switch: with Use Claude Code CLI on, Claude agent runs, agent chat, and one-shot internal tasks authenticate through the Claude Code CLI (Max/Pro plan), record $0 actual cost as subscription-covered, and never receive the ANTHROPIC_API_KEY. Off routes them through API-key billing. The same card holds Agent SDK transport (off by default): on, Claude agents run through the Agent SDK instead of the interactive terminal. Check Anthropic's current billing policy to confirm whether SDK usage is covered by your subscription or billed as API usage. Applies to the next session or run. Other engines are unaffected. |
| Agent access | Agent access & safety | Let agents use everything your account can, or only the folders and drives you list. The folder list covers agents the always-on service starts (see below) |
| Agent logins | Agent access & safety | The Claude Code and Codex accounts agents sign in with instead of yours, with optional per-company overrides (see below) |
| Agent Memory | Agent memory | Managed CLAUDE.md / AGENTS.md / GEMINI.md generation for project CLIs (see below). Desktop only. |
| Agentic Capabilities | Agents | Agent Autonomy Default, the concurrency cap, Memory protection (on by default, see below), and Compact command output (off by default): on, the output of common shell commands such as git status, test runs and directory listings is shortened before agents read it, so long runs use fewer tokens. Failed commands keep their full output. It covers Claude agents, and Codex agents when they run autonomously (a Codex agent that asks before acting keeps full output). Turning it on downloads a small helper first (about 5 MB) and shows an error instead of turning on if the download fails. Applies to agent runs and agent chat that start after the change. |
| Warden Guardrails | Agent access & safety | Record agent CLI tool calls and optionally enforce each agent's autonomy policy before a tool runs |
| Fleet Doctor | Fleet health | Cluster recurring run failures and optionally create or reopen bug tickets |
| Agent maintenance | Fleet health | Find, repair, or delete damaged agent records |
| Permission Profiles | Agent access & safety | Review and manage platform permission profiles. Assign one to an agent in its Edit panel; see How do I assign a profile to an agent? |
Agent access with Agents use my full access off covers the agents the always-on service starts, such as scheduled runs and runs started from the web app. Agents the desktop app starts itself (Run, agent chat in the desktop app and agent terminals) still use everything your account can, and the header's Folder list (service) chip means the same.
Deleting an agent also removes its workspace folder. The cleanup runs on the CPLai host through the same API for the desktop app and the web dashboard, and only ever touches a folder that ends in the agent's id inside an agents/ scratch root.
Deleting an agent removes its working state: memory, chats, team memberships, browser sessions, channel and messaging bindings, access grants, email identity and agent-specific hooks. Approvals still waiting on the agent are marked expired. Its history stays: runs, run steps, usage and cost records, logs and the audit trail, so spend reports and audits still add up after the agent is gone.
How do I give agents their own Claude and Codex login?
By default, agents sign in with the same Claude Code and Codex accounts you use, so they share your usage limits. Settings -> Agent access & safety -> Agent logins gives them their own.
- Claude Code: click Set up, then Open sign-in console (web: run
claude setup-tokenin a Terminal tab). Sign in as the account agents should use. The browser shows a sign-in code: paste that into the console, not into CPLai. The console then prints the token, which starts withsk-ant-oat01-. Paste the token into CPLai and save. The token lasts one year. CPLai notifies you 30 days before it expires and again when it does. - Codex: click Set up and save, then Sign in and complete the ChatGPT sign-in in the console that opens (web: run the command shown in a Terminal tab). Check confirms the sign-in.
- Per company: under Company overrides, pick a company and a CLI to give that company's agents a different account. Every other company keeps the default.
Your own terminals and chats keep your login. Changes apply on each agent's next run. An agent's own environment variables still win over these logins.
Your global Codex rules follow the agents' login. Codex reads its global instructions from an AGENTS.md file in its home folder, and the agents' Codex login has a home folder of its own. Each time CPLai starts Codex on that login, it copies your own .codex\AGENTS.md into it, and replaces its earlier copy when your file has changed. If you wrote or edited the AGENTS.md in a login folder yourself, CPLai leaves that file alone.
What does Memory protection do?
Settings -> Agents -> Agentic Capabilities -> Memory protection stops a runaway program before it uses up your computer's memory. It is on by default and covers everything CPLai starts: terminals, agent runs, chats and the tools they run.
- One program may use up to half of your computer's memory. On a 64 GB computer that is 32 GB. A program that reaches it is stopped; the terminal or agent that started it keeps running.
- When the computer is about to run out, CPLai stops the largest program it started, but only one using at least a quarter of your memory. If your computer is low because of a browser or a game, CPLai stops nothing.
- Programs CPLai did not start are never touched.
Each stop shows up as a notification naming the program and how much memory it was using. Turning the switch off lifts the limit right away, including for programs already running. Memory protection is available on Windows.
How do agents know people's names?
The names agents may use are kept in Business Integrations -> People, next to Agent mailboxes. See People for where names come from and how to review, merge and add people.
How do I enable Smart Context?
- Open Settings -> Chat -> Chat tools on desktop, or Settings -> Agents -> Agentic Capabilities on web.
- Toggle Smart context engine.
Both locations change the same setting. Smart Context retrieves relevant context before each message, using the embeddings provider chosen in knowledge retrieval settings: local Ollama, OpenAI, or OpenRouter. No cloud key is needed when local embeddings are selected.
How do I enable Warden guardrails?
Open Settings -> Agent access & safety -> Warden Guardrails. The desktop app and web dashboard expose the same controls.
| Setting | What it does |
|---|---|
| Ledger Recording | Records in-scope agent CLI tool calls and supported network egress in the hash-chained Warden audit ledger. This is log-only and never blocks a call. |
| Pre-Execution Enforcement | Checks Bash and file-edit calls against the agent's autonomy policy before the call runs. |
| Refuse Keychain variables that change which programs run or which servers are trusted | Keeps a Keychain entry from steering an agent's or a terminal's programs or connections. Off by default. See below. |
Pre-execution enforcement does not automatically block every agent. Agents without an autonomy policy are unaffected. A policy with Enforce off stays log-only and records would-be denials as escalations. Only an agent whose policy has Enforce on can be blocked.
Supported network-egress records cover Firecrawl scrape logs, semantic code-search embedding requests to OpenAI or OpenRouter, and company-linked web_search requests to Perplexity or OpenRouter. Warden appends an allow record only when Ledger Recording is enabled. A server-side web search without company scope is not recorded. The ledger stores a digest of the destination host and path, excluding query strings, fragments, credentials, ports, code-search text, and web-search queries. Ledger errors are best-effort and never fail the network request.
These are operator controls. Agent processes cannot enable either setting for themselves.
Tip: Enable Ledger Recording first to review real tool-call patterns before turning on enforcement.
What does "Refuse Keychain variables that change which programs run or which servers are trusted" do?
It is in Settings -> Agent access & safety -> Warden Guardrails on desktop and web. It is off by default, and only you can turn it on or off: agents and API keys cannot change it. If CPLai cannot read the setting, it treats it as on.
| Position | What a Keychain entry can no longer give |
|---|---|
| On | Agents: a variable that decides which programs run or where they are found (the program search path, Node, Python, Java and .NET start-up settings, Git's SSH and configuration overrides, home and profile folders and the like), a variable that changes which servers they trust or connect through (proxies, extra certificate files, switched-off TLS checks), and a name with anything but letters, digits and underscores. Terminal tabs: the proxy and certificate variables too. A terminal tab never takes the program and path variables, whatever this switch says. |
| Off | Agents get those variables from an entry, and terminal tabs get the proxy and certificate ones. |
An entry that sets one of them is left out whole, with every other variable it sets, and the agent or tab goes on without it. The agent's run output names each entry left out and why, never with a value, and so does the CPL_KEYCHAIN_NOTE variable of the agent or tab. A proxy or certificate set for your whole computer or your Windows account is not a Keychain entry, so this switch does not touch it.
Whatever the switch says, an agent never takes from an entry the variables CPLai sets for it: where its CPLai service is, its CPLai key, its agent, company and run, its workspace, its browser credential, and the names of the values CPLai hides. Agents keep getting your entries' own names, including ones that start with CPL_, such as an agents' GitHub login.
How do I inspect or export the Warden ledger?
Stay in Settings -> Agent access & safety -> Warden Guardrails. The Compliance Ledger panel is available on desktop and web to administrators.
- Select the company whose ledger you want to review.
- Review the latest 50 rows. Each row shows its sequence, time, agent, tool, verdict, and reason.
- Choose Refresh to reload the preview.
- Choose Verify to recompute the full hash chain. CPLai reports how many rows passed or identifies the first broken sequence.
- Choose CSV or JSON to export the complete company ledger. CPLai loads older pages before saving the file, so the export is not limited to the 50-row preview.
Desktop asks where to save the export. Web downloads a dated file named for the selected company.
Tip: A company with Ledger Recording turned off may have no rows to preview or export.
Which model runs the Terminal Supervisor?
Availability: The separate model picker described here is available from 26.11.22. In 26.11.21 and earlier, Supervisor follows the Utility Model. Check your version in Settings -> About & updates if the card is missing.
The Terminal Supervisor reads your open terminals and summarizes what each one is doing. Choose the model it uses in Settings -> Utility models -> Terminal Supervisor:
| Choice | What happens |
|---|---|
| Same as the Utility Model (default) | The supervisor uses the model your other internal helpers use. See the Utility Model, in the card above it. |
| A model from the list | Only the supervisor runs on that model. The list has your local Ollama and vLLM models, OpenRouter, Ollama Cloud and the provider models. |
| Other model ID... | Type any model ID CPLai can call, for example vllm:<model>, ollama:<model> or openrouter/<provider>/<model>. |
A local model keeps terminal output on your own network. A provider model needs that provider's key in Settings -> Providers & keys; without it, or while the machine is offline, the supervisor falls back to the Utility Model. When a model you pick stops answering, the supervisor uses the Utility Model instead (and if that can't be reached either, it follows its row's choice in Settings -> Utility models); CPLai tries your model again every five minutes and goes back to it once it answers. The setting is the same on the desktop app and the web. Agents cannot change it, because it decides where terminal output is sent.
For the session checkboxes, summary button and Watch mode, see Supervising multiple terminals.
Which model runs agent debriefs?
After each run, a debrief reads the run's summary and saves what the agent learned to its memory, learnings and working context. Choose the model it uses in Settings -> Utility models -> Debriefs:
| Choice | What happens |
|---|---|
| Same as the agent (default) | The debrief runs on the agent's own CLI and model, and counts against that agent's plan like any other run. |
| A model from the list | Every debrief sends its prompt to that model in one call: no CLI run and no plan usage. The list has your local Ollama and vLLM models, OpenRouter, Ollama Cloud and the provider models. |
| Other model ID... | Type any model ID CPLai can call, for example vllm:<model>, ollama:<model> or openrouter/<provider>/<model>. |
A local model keeps run summaries on your own hardware. A provider model needs that provider's key in Settings -> Providers & keys. The setting covers debriefs from both the always-on service and the desktop app. Agents cannot change it, because it decides where run summaries are sent.
The same page has Ask every run for a reflection, at the top of the Jobs with their own kind of model group, on by default. Every agent run is then asked to end with a short note on what it did and learned. The run's summary and the knowledge vault are made from that note instead of an extra model call, and the run view keeps it folded under What the agent reported. The note is never sent in a Telegram or email reply, a notification, a channel message or a client outcome. Turn it off to stop asking. Agents cannot change it.
How do I use Fleet Doctor?
Open Settings -> Fleet health -> Fleet Doctor.
| Setting | What it does |
|---|---|
| Failure clustering sweep | Every six hours, groups failed, errored, timed-out, rate-limited, and classified failure runs into named recurring issues. Each issue keeps counts, affected agents, and sample runs. |
| File bug tickets | Files one bug ticket for a new eligible issue and reopens the same ticket if that failure signature returns after the ticket was marked done. Provider plan limits are excluded. Requires the clustering sweep. |
| Send defect reports automatically | Sends CloudPeakLabs defect reports without asking you to approve each one. Off by default. Agents cannot change it. Every report is still recorded with exactly what was sent. See How does Peak report a CPLai platform defect?. |
The clustering sweep is deterministic and does not use a model. Ticket filing is a separate toggle, so you can collect failure evidence without creating work items.
Provider plan limits, such as a Claude session limit, are capacity observations rather than bugs to fix. Fleet Doctor keeps the issue and its observed run evidence, including any provider reset message, but does not file or reopen a bug ticket or wake an owner for it. These observations can still appear in Fleet Health. Their history covers runs the sweep has observed, not every run in the system.
New tickets go to an enabled agent in the affected project. Fleet Doctor prefers platform, codebase, deployment, or DevOps roles, then backend or other developers, then an affected non-executive agent. Company-wide issues use the Company-wide project and its eligible agents. If no eligible owner exists, the issue remains visible without a new ticket. Assignment does not resume paused agents.
When a completed ticket reopens, Fleet Doctor preserves an existing non-executive owner in that ticket's project. An old CEO, founder, or out-of-project assignment is replaced with an eligible owner from the same project; if none exists, the ticket stays closed while the issue remains available in Fleet Health.
When a librarian model is configured, a newly filed Fleet Doctor ticket can also receive a Fleet Doctor root-cause hypothesis comment. The librarian reviews the cluster, affected agent role and prompt, assigned skill, and up to three sample errors, then suggests one likely cause and fix with a low, medium, or high confidence level. This comment is advisory. It is skipped when no librarian model is configured, and a model or provider failure never blocks ticket filing. Reopened tickets receive the recurrence comment without running enrichment again.
Note: Automatic ticket filing is available in current builds. Both Fleet Doctor toggles must be on for bugs to be created or reopened.
When the sweep has produced open or watching issues, Fleet Health appears on the company Overview. It stays hidden for companies with no recorded issues. Select the filed-ticket marker on an issue to open that bug's ticket detail on desktop or web.
Each sweep also moves issues through their lifecycle:
- Open: the failure is recent; it may have a ticket or remain an observation without one.
- Watching: its ticket was marked done or cancelled, and the sweep keeps checking for the failure.
- Closed: there has been no matching failure for seven days. This also happens when the affected agents are paused, because a paused agent does not run.
Closed issues leave Fleet Health. If the same failure happens again, the issue reopens. Eligible bug tickets reopen with a recurrence comment; provider plan-limit observations do not reopen tickets.
Fleet Doctor also watches for scheduled agents that go quiet. When an enabled, scheduled agent has started no run for twice the longest gap its schedule allows, it files a monitoring liveness ticket. Time the agent spent paused does not count, at any level: the whole scheduler, its company, a team, a group, or the agent itself. So resuming a team after a week does not report a week of silence. The ticket says how much paused time it already left out, and it closes on its own once the agent runs again or is paused.
How does Fleet Doctor check an issue before filing a ticket?
A cluster's label comes from a failure type and the first part of its error text, which can be wrong. Before an issue is ticketed, each sweep re-reads the stored transcripts of up to three of its newest sample runs and checks that they show the failure the label claims:
| Label | A sampled run confirms it when |
|---|---|
| Spawn wedge | The model never produced a reply |
| Timed out | The model never replied, or a tool was still running after 15 minutes when the transcript ended. A run that kept working until its time limit was a long run, not a wedge. |
| Rate limit or plan cap | The run's own closing text carries that provider message. A run that ended with only an exit code does not count. |
| Any other failure | The closing text does not show that the run actually hit a provider limit |
The issue then gets one verification result:
| Verification | Meaning | Ticket |
|---|---|---|
| verified | More than half of the readable sampled transcripts confirm the label | Filed or reopened if eligible; provider plan limits remain observations |
| dropped | The readable transcripts do not support the label | None. The issue leaves Fleet Health and keeps its one-line reason. If the failure happens again, a later sweep checks it again. |
| unverified | No sampled transcript could be read | Eligible issues are filed anyway; provider plan limits remain observations |
| pending | This sweep's transcript budget ran out | Waits for the next sweep, which checks pending issues before new ones |
Each sweep reads at most 30 transcripts, which keeps its cost fixed. To change the budget, set the fleet_doctor_verify_sample_cap settings row to a number from 1 to 200. There is no on-screen control for it.
Every issue also gets a stable fingerprint, fd- followed by 16 characters. Error messages that differ only by a clock time, duration, or time zone, such as a session-limit message with different reset times, share one fingerprint and count as one issue. A filed ticket lists the fingerprint, a lifecycle label, and the verification result with its reason:
- NEW: the first sweep that saw this failure.
- RECURRING: seen in an earlier sweep and still happening, or back after being resolved.
- RESOLVED: quiet for the full seven-day window, so the issue closed.
When a resolved issue eligible for bug ticketing returns, Fleet Doctor reopens its original ticket instead of filing a new one. The reopen comment names the fingerprint and the change from RESOLVED to RECURRING. Provider plan-limit observations keep their issue history without reopening an old ticket.
How does Peak report a CPLai platform defect?
Fleet Doctor classifies recurring issues as platform, config, or unknown. Configuration and unknown issues remain work for the company's agents. A platform issue is a defect in CPLai's compiled application, so Peak prepares an upstream diagnostic report instead of asking tenant agents to patch it.
The default flow is consent-first:
- Peak comments on the local issue and creates a pending approval.
- The approval shows the exact pretty-printed JSON payload that would leave the machine.
- Approve sends that exact payload to CloudPeakLabs through the licensing service and records the receipt in the local report ledger.
- Deny or let the approval expire and no report bytes are sent for that issue.
- Peak comments again when delivery succeeds; the local ticket remains the audit record.
Reports include the failure signature and class, counts and timing, redacted run metadata, affected-agent role/CLI/model, CPLai version, operating system, instance mode, and reporting identity. They permanently exclude prompts, skill bodies, memories, ticket text, workspace paths, raw error text, and model-generated hypotheses. A final secret-shape check refuses the upload if the payload still resembles a live credential.
Agents can also report a CloudPeakLabs defect they find in their own work, from the ticket that tracks it; those reports use the same approval.
To skip the approval, turn on Settings -> Fleet health -> Fleet Doctor -> Send defect reports automatically. It is off by default, agents cannot turn it on, and every exact payload is still recorded in the report ledger. Failed deliveries retry no more than once per day.
How do I limit concurrent autonomous runs?
Open Settings -> Agents -> Agentic Capabilities and set the Max Concurrent Auto-Runs number (1-32).
The cap counts every autonomous agent run: scheduled runs, runs you start from the app, runs an agent starts (a ticket wake, a handoff), and runs a terminal session starts. Agent chats and interactive terminal sessions don't count.
| Scenario | Recommended value |
|---|---|
| Working at the machine (save CPU/memory) | 4-6 |
| Overnight or unattended | 12+ |
| Full fleet stress test | 32 |
When the cap is reached, a run you or an agent starts waits in line instead of failing:
- It shows Waiting for a free slot (2nd in line) on the run and at the top of Mission Control, with Cancel.
- First come, first served: when a run finishes, the run at the front of the line starts on its own within a few seconds.
- Scheduled runs keep their slot (see Scheduling) but never start ahead of a run that is already waiting.
- Raising the number starts waiting runs right away. Lowering it never stops a running agent; new runs wait until the count drops below it.
- If CPLai closes while a run waits, that run is cancelled with a note saying so, and it never starts.
What does Agent Autonomy Default control?
Open Settings -> Agents -> Agentic Capabilities and find Agent Autonomy Default. This is the operator-level default for agents you hire and for agent runs that carry no autonomy decision of their own.
- ON: agents run with full permissions and no tool prompts.
- OFF: agents run without full permissions, and what that allows depends on the engine.
It does not cover races or workflow steps. Race lanes always run without asking, because nobody can approve a lane's steps while a race runs. A workflow step follows the setting of the agent that runs it.
Precedence, highest first: a per-agent permission profile always wins; then the agent's own Autonomous setting; then this global default. Newly hired agents inherit this default at creation.
Fresh installs start with this OFF, so a new operator's agents are constrained until autonomy is explicitly turned on. Installs that already had hired agents when this setting shipped were seeded ON, so existing fleets keep running unchanged.
Note: the Chat page's own tool-confirmation toggle now lives under Settings -> Chat -> Chat tools ("Chat: skip tool confirmations"), alongside Extended thinking, Tool calling, and Diff review mode. Settings are grouped by surface: Chat and Agents sit under a "Surfaces" heading, with platform-wide sections under "System". None of the Chat toggles affect spawned agents.
How do I control agent memory size?
Open Settings -> Agent memory -> Memory limits (Knowledge group). Four controls manage how much memory agents carry and when the janitor steps in:
| Setting | Default | What it does |
|---|---|---|
| Enforce Agent Memory Budget | Off | When on, each agent's persistent memory is capped at its budget. Writes that exceed the cap are rejected. When off, agents store memory freely. |
| Default memory budget | 2,200 chars | The cap for every agent that has no budget of its own. Range 200-1,000,000. |
| Memory Snapshot Inject Limit | 12,000 chars | Maximum characters of an agent's memory injected into each prompt. Highest-priority and pinned entries are included first. The rest stays in the database and is retrievable on demand. |
| Memory Janitor Threshold | 100,000 chars | Non-pinned memory characters above which the nightly memory janitor files a consolidation-flag ticket for an agent. Raise it for agents whose large memory is intentional (e.g. a security reviewer's heuristics). Flag-only - the janitor never deletes memory. Range 10,000-10,000,000. |
The inject limit controls prompt size without deleting data. Agents whose memory exceeds the limit can still search their full memory store using the retrieval API. Only the automatic injection is bounded.
To give one agent a different cap, open its Edit panel and set Memory budget (characters) (desktop: Organization tab; web: Budget section). Leave it blank to follow the default again. Number fields here save when you leave the field or press Enter.
The budget toggle is useful when agents run on metered API billing and you want to cap per-prompt token cost. Leave it off when agents run on Max or paid subscription plans where token cost is flat.
Tip: The inject limit range is 1,000 to 200,000 characters. Adjust in increments of 1,000 to tune the tradeoff between context richness and prompt size.
How do I review memory usage by agent?
Open Settings -> Fleet health -> Agent maintenance.
- Maintenance scope shows how many agents are over the current snapshot inject limit.
- Each agent row shows its memory note count and total stored characters.
- A memory chip turns amber when that agent's non-pinned memory exceeds the snapshot inject limit. Lower-priority notes remain stored but are omitted from the automatic prompt snapshot.
The desktop and web dashboard show equivalent memory chips. The web memory-stat request is administrator-only, so non-admin users do not see these counts. Uncheck Show only flagged agents when you want to inspect memory for otherwise healthy agents; workspace and identity problems drive that filter, not memory size.
How do I respond to an automatic memory maintenance ticket?
CPLai runs a flag-only memory sweep shortly after the service starts and then once per day. When an agent exceeds the default maintenance threshold of 100,000 non-pinned characters, CPLai files one low-priority ticket with review instructions. It does not file another ticket for that agent while the earlier one remains open.
The maintenance ticket is advisory. The sweep never deletes, rewrites, or compacts memory. Review the ticket's dry-run consolidation report before applying any proposal, then verify the agent's next run. The amber Settings chip and the automatic ticket use different thresholds: the chip compares memory with the prompt inject limit, while the ticket uses the higher maintenance threshold.
How do I configure Agent Memory Files?
Open Settings -> Agent memory -> Agent Memory. This card controls the managed CLAUDE.md, AGENTS.md, and GEMINI.md blocks generated for project CLIs.
On desktop, use the wizard to write the files. Web controls (from 26.11.22): the web dashboard has the same settings card. Text fields save when you leave them; saving settings alone does not update project files. Click Check to preview changes, then Update all projects to have the always-on service write the files even with the desktop app closed. A single project's web controls are in its Git -> Memory files panel. See web rule updates and availability.
| Setting | What it controls |
|---|---|
| Generate CLAUDE.md / AGENTS.md / GEMINI.md | Which CLI instruction files CPLai writes |
| Session handoff folder | Base folder for handoff notes; CPLai appends the project name |
| Artifacts folder | Base folder for finished reports, decks, generated HTML, and exports; CPLai appends the project name |
| Bearer token env file | Where the generated instructions tell CLIs to find CPL_Bear_Token |
| Extra instructions | Markdown copied into every generated managed block |
| Update all projects | Opens the bulk wizard and refreshes every configured project and attached Git worktree |
CPLai creates the per-project handoff and artifacts folders when it writes the memory files. Handoff recall searches the living documents in that folder; deliverable discovery is described separately with its release status. See Agent Memory Files for generation, managed-block, worktree, and troubleshooting details, and finding handoffs and deliverables for search examples.
How do I repair broken agents?
- Open Settings -> Fleet health -> Agent maintenance.
- Search for the agent or enable Show only flagged agents.
- Click Repair for one agent, or Repair all flagged in the desktop app.
Repair is safer than delete when the agent has useful history.