Repository navigation
2.6.5a2 — three tools load with the session in Claude Code, and every tool description fits what Claude Code shows
Pre-releaseCPersona 2.6.5a2
A pre-release of the 2.6 line, based on 2.6.5a1. Opt-in only: install it by exact version (pip install 'cpersona==2.6.5a2'). It is a pre-release because it changes what a client receives at session start. Nothing changes in the schema, the dependencies, the settings, or what any tool returns.
Three tools load with the session in Claude Code
Claude Code defers MCP tool definitions. At session start an agent sees only the tool names and the server instructions, and a definition is loaded through tool search the first time it is needed (Claude Code MCP documentation). reconstruct, store and archive_episode now carry "anthropic/alwaysLoad": true in their _meta, so Claude Code loads them with the session (#417). Other clients ignore the key.
- Every session carries these three definitions, whether or not it calls them.
- Startup waits for the server's tools, up to Claude Code's 5-second connect timeout.
Every tool description fits what Claude Code shows
Claude Code cuts each tool description and the server instructions at 2,048 characters. Five descriptions were longer, and an agent saw only their first 2,048 characters:
| Tool | Before | After |
|---|---|---|
reconstruct |
9,189 | 1,968 |
check_health |
2,421 | 1,719 |
pause_persistence |
2,328 | 1,726 |
recall |
2,208 | 1,738 |
get_session_findings |
2,179 | 1,658 |
What a caller acts on comes first. The details the descriptions dropped are in the design documents they name, chiefly the reconstruction section of the 2.6 line page. A new test keeps every description within the limit.
The server says when to use CPersona
The initialize instructions open with CPersona's own guidance on when to use its tools (524 characters): reconstruct at the start of a session and for anything from before the conversation, store for what should outlive it, archive_episode at its end, and get_contents to read further. An operating context's summary follows when one is configured. Without one, the instructions used to be empty (operating context design).
When you upgrade
- No schema change and no recalibration: the scoring version is unchanged. Going back to 2.6.5a1 works on the same database.
- An operating context's summary keeps its text and now follows the guidance. Keep it at or under 1,500 characters, as the design asks, so the instructions stay within the 2,048 characters Claude Code shows.
Cost, measured against 2.6.5a1
When sessions follow each other closely, a development task costs about 10% less with 2.6.5a2. With an hour or more between sessions, no difference can be shown.
The task: in Claude Code 2.1.288 with Claude Sonnet 5.5, an agent builds a small web app over six sessions and uses CPersona to carry decisions from one session to the next. Hidden acceptance tests score the result. Each version ran ten times in each condition, and no run could read another run's prompt cache. Cost is the API-equivalent price of the tokens used, at Claude Sonnet 5.5 rates. The interval is a 95% bootstrap interval for the ratio of the means (10,000 resamples). The decision rule was registered before the runs.
| Sessions | 2.6.5a1 | 2.6.5a2 | 2.6.5a2 / 2.6.5a1 | 95% interval | Runs completed |
|---|---|---|---|---|---|
| Back to back | $1.627 | $1.467 | 0.901 | 0.836 to 0.968 | 9 and 9 of 10 |
| An hour or more apart | $1.641 | $1.671 | 1.018 | 0.941 to 1.095 | 9 and 10 of 10 |
- Back to back: almost all of the difference is in the tool definitions. With 2.6.5a1, every session loaded the CPersona definitions it needed through tool search and wrote them to the prompt cache again. With 2.6.5a2, the three always-loaded definitions sit in the prefix that the next session reads from the cache.
- An hour or more apart: the prompt cache expires between sessions, so every session writes that prefix again, definitions included. The saving that remains is smaller than the variation from run to run.
Validation
3,775 tests pass, with the same five skips as before. The blocking mutation-proof gate passed on both PRs. It carries four new mutations (M338–M341), one per behaviour, and it caught every one.