Skip to content

pi-python v0.6.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 09:41
· 126 commits to main since this release
5f73e07

This release makes zypi ask the Python agent for sessions, and it adds an optional package that connects MCP servers. Changed says how --continue, --resume and --session-id work now, and that a session in which nobody typed has no file. pi-mcp-py (Added) connects the MCP servers that an editor such as Zed passes to the agent; without it, the agent still has no MCP client. Fixed has the Zed thread that did not open again after a restart. Removed lists the TUI code that read session files, and other dead code. Known issues says what does not work yet. Changed also has the new version numbers: the extension packages need the new core.

Added

  • Tools that find tests which share process-wide state, and a helper that keeps such a test apart (TUI tests): scripts/tui_envspy/ and in_own_process. All tests of one Rust test binary run as threads of one process, so they share the environment variables, the working directory and every static. The vendored tests were written for cargo nextest (one process per test), so their locks are partial, and a test that changes such state can break another test in some runs only. envspy.sh runs cargo test with an LD_PRELOAD shim over getenv, setenv, unsetenv, putenv and chdir, and analyze.py lists the tests that change a variable while another test runs, leave it changed, or read what another test has changed. stress.sh runs the lib tests of one package many times, each time in a random order (--shuffle-seed, so a failing run can be repeated) and with many test threads. It can also run a few named tests (a suspect pair, or a victim beside all tests of one module), and with ENVSPY_TAG it runs the tests through the spy. Linux only. 10 new pytest tests cover the analyzer. crate::test_util::in_own_process(|| { … }) in pi-pager runs the body of a test in a child process (the same test binary, --exact, one test thread), and the test fails when the child fails; 57 tests use it, directly or through with_rtl_bidi, with_theme_test_env and with_test_env, and 2 new tests check it. The README of scripts/tui_envspy/ has the rules for a test that changes process-wide state, and what the tools do not find. Numbers: section 3.4 of docs/baselines/tui.md.
  • Extensions can take over the MCP servers a client passes, tell the user something, and hold a turn back (pi-agent-core, pi-agent-harness, pi-agent-cli): the agent still has no MCP client, and it still does not read mcp.json. What a client passes in mcp_servers now goes to the harness as data: ClientMcpServer (name, transport, command, args, env, url, headers; its repr shows only name and transport, because the other fields can hold tokens), AgentHarness.set_client_mcp_servers() (before the extensions load), and ExtensionAPI.client_mcp_servers with claim_client_mcp_servers(names). Three general entry points come with it. ExtensionAPI.notify(text) shows one line to the user (a NoticeEvent, which is an agent message in ACP; the model does not see it, the session does not save it, and the agent holds it until the client knows the session). ExtensionAPI.register_cleanup(callback) is the public name of what the bridge already had. ExtensionAPI.add_turn_barrier(wait) makes the harness await wait before it builds the tool list of a turn; session/cancel, closing the session and opening it again end that wait in the CLI. initialize says that the agent takes http and sse MCP servers only when the pi-mcp extension entry point is installed. The extension that uses these entry points is pi-mcp-py (next entry). Design: docs/specs/2026-10-23-mcp-extension-design.md.
  • pi-mcp-py: an optional extension that connects the MCP servers an ACP client passes (new package packages/pi-mcp, version 0.1.0): an editor such as Zed passes its MCP servers in session/new. With this package installed, the agent connects them (stdio, Streamable HTTP and SSE) and gives their tools to the model. The core, the harness and the CLI still have no MCP client, and the agent still reads no mcp.json; the extension takes the servers from pi.client_mcp_servers and claims them, so the notice "its tools are not available" does not appear. Without the package, nothing changes. Tools: each tool is named mcp__<server>__<tool> (letters, digits, _ and -; at most 64 characters, cut with a hash; a repeated name gets _2, _3). The prefix is needed: a tool of an extension that has the name of a built-in tool replaces it, and an MCP tool named bash would take over bash. The permission mode ask asks about every MCP tool call unless the server declares the tool harmless (readOnlyHint, or neither destructive nor open-world), as for all tools. A result is text; text over 50 KB is cut with a note, a result with only structuredContent is sent as JSON text, and an MCP error result becomes an error tool result. One task for each server: the MCP SDK uses anyio cancel scopes, which must end in the task that began them. session_start starts the servers and returns at once; a turn waits at most 10 s for servers that are still starting (session/cancel ends the wait) and then goes on without them. A server that is slower sends one notice, and its tools join in a later turn. Limits (environment variables): PI_MCP_STARTUP_TIMEOUT (60 s) and PI_MCP_CALL_TIMEOUT (120 s); a call also ends when the user cancels the turn. When a server stops: the user gets one notice for each server and kind of event (did not start, stopped, cannot reconnect), and a good start gets none, so a thread without MCP trouble stays blank. The next tool call connects the server again, at most 3 times in a row (a call that gets an answer starts the count again). A call that was already sent when the server died is not repeated, because the server may have run it. /mcp lists the servers (name, transport, state, number of tools), and /mcp reconnect <name> connects one again with no limit. Secrets: env, headers, args and url hold tokens. Notices, /mcp, errors and logs show only the server name, the name of the executable, or the host; the values of env, the values of headers and the URL are masked in error text. Environment of a stdio server: the default list of the MCP SDK, the proxy, certificate, locale and time zone variables, and the env of the client. ${VAR} is not expanded (langchain-mcp-adapters would expand it from the environment of the agent, which has the LLM key, so the extension starts stdio servers itself), and the keys of the LLM provider are not passed. stderr of a server goes to <home>/logs/mcp/<name>.log, not to the stderr of the agent, where a full pipe would stop it. Servers on this machine are reached without the proxy of the system: httpx reads the proxy settings of Windows and does not skip loopback addresses. End: when the session closes, each server gets its stdin closed first, and then its process tree is stopped; a test checks that no process stays, on Windows and on Linux. Not supported: OAuth (it works only if the editor passes a token in headers; not verified), MCP resources, prompts, sampling and elicitation, a server shared by two sessions (each session starts its own), and a configuration file. A legacy SSE server whose POST fails ends a call only with the call timeout (the SDK hides the error). Limits of the package: it needs pi-agent-core-lc 0.6.0 or later; an older core makes it log a warning and do nothing. The Release workflow installs the package for its pre-release tests and builds it with the other packages, so the upload to PyPI has it (pip install pi-mcp-py). Tests: 192 in packages/pi-mcp/tests with real child processes (stdio, HTTP, SSE), the real AgentHarness, and the real PiAcpAgent over ACP, run on Windows and WSL. Design: docs/specs/2026-10-23-mcp-extension-design.md.

Changed

  • zypi --continue, --resume and --session-id ask the agent which session is meant (TUI): zypi used to look for the session in the session files of the old Rust agent. The Python agent writes another layout, so --resume <title> found no session, an unknown id failed only after the UI had started, a used --session-id left the UI open with Session creation failed: Invalid params, and --continue took the session that was created last (the first of the Known issues of 0.5.0). Now zypi starts the agent first and then asks it over ACP, with session/list (page after page) and session/load. It reads no session file for this. A session that does not exist ends the run before the event loop starts: the terminal is restored, the agent is stopped, the message is printed, and the exit status is 1. Behaviour changes: --continue and --resume without a value take the session of this directory with the latest activity (the time of its last write), not the one that was created last. --resume <id> finds the id in every directory and loads the session in the directory it belongs to. --resume <title> matches the title, which is the first message of the session, among the sessions of this directory, without regard to letter case and to spaces at the ends; two sessions with the same title are an error that lists their ids and last activity. --session-id <id> reads every page of the session list and refuses an id that any session has (Session ID <id> is already in use., exit status 1); that costs one pass through the list (scripts/session_list_bench.py prints it as walk all), and an agent that offers no session/list skips the check and refuses a used id itself. The lookup stops after 30 s, the limit of the connect (GROK_CONNECT_UI_TIMEOUT_SECS). A session in which nobody typed has no file now, so --continue cannot take it (see the next entry). Not solved, and left as it is: the agent lists its session directory again for each page, so reading all pages costs pages × directory size, which grows faster than the number of sessions. scripts/session_list_bench.py (median of 3, Linux / Windows): --session-id takes 1.3 s / 1.8 s at 1,000 sessions and 28 s / 34 s at 5,000, which is over the 30 s limit on Windows; --continue takes 0.6 s / 0.8 s at 1,000 and 10 s / 12 s at 5,000. The owner decided that this is fine below 1,000 sessions (plan decision 18). Tests: 25 unit tests of the lookup against a scripted agent, 4 of the time limit and of a cancel, 3 end-to-end tests against the real agent, and scripts/tui_pty/resume_matrix.py --strict (13 of 13 pass; cases 5 and 11 were known gaps, and case 8 now needs exit status 1).
  • The agent writes the file of a session with its first message (pi-agent-cli, pi-agent-harness): the agent used to write the file of a session when it answered session/new. A run in which nobody typed a message left a file with the title (no messages). That file stayed in the /resume list, and zypi --continue took it when it was the latest session of the directory. Now session/new makes the session in memory only. The file is written with the first message of the user, in one write: the header, the entries that were made before the message (for example a model change), and the message. A session in which nobody typed has no file. session/list does not show it. session/load and session/resume open its id again, empty (see the entry in Fixed). A client that has the session open can keep using it. Behaviour changes: zypi with no flag starts no session until the first message; zypi --session-id <id> and /new start one at once, with no file. An id that a client chose (_meta.sessionId) stays reserved while its session is open in the agent, so a second session/new with that id is refused (invalid_params) although no file has it. If another agent process saves a session with that id first, the first prompt of the session is refused (a session with this id already exists). This narrows the gap between two agent processes. It does not close it. Files that earlier versions wrote keep the title (no messages). For library users: JsonlSessionRepo.create({"deferred": True}) returns a DeferredJsonlSessionStorage, and its written property says whether the file exists. create without deferred, and fork, write at once as before. Tests: 10 for the storage (what is written and in which order, a failed write and its retry, two first messages at once), 6 new ones for the agent (the ACP contract and the chosen ids), and the older tests that expect a session in the list now send a message first. scripts/tui_pty/resume_matrix.py --strict has 16 cases (13 before). Two of the three new ones fail against an agent that writes at once: --session-id and /new, each left with no message. The third types a message after /new.
  • A resumed session no longer takes the sandbox profile it was created with (TUI): the old Rust agent saved the sandbox profile in the files of a session. zypi --continue and --resume read it back before the sandbox was applied, so a resumed session kept its sandbox, and --sandbox X on a session that was saved with Y was refused (cannot resume this session under sandbox profile ...). The Python agent never saved a profile, so for its sessions nothing changes. The profile now comes from --sandbox, from GROK_SANDBOX and from the configuration, as it does for a new session. The code that read it is gone (decision 2 of the plan).
  • TUI CI and scripts/tui_baseline.py run the Rust tests with cargo nextest (TUI): cargo nextest runs each test in a process of its own. cargo test runs all tests of a test binary as threads of one process, where they share the environment variables, the working directory and every static. The vendored tests were written for nextest, and some of them are reliable only under it. So the failures of this class cannot occur in CI now, also for a test that someone writes later. scripts/tui_baseline.toml has [test] runner = "nextest", and the option --runner cargo takes libtest back. The runner reads the output of nextest (the Summary line, and the list of the tests that did not pass), so CI installs a pinned version (nextest@0.9.148, with taiki-e/install-action); the job is now named cargo nextest (Linux x86_64). Three differences to know. nextest counts the #[ignore] tests and the tests that a --skip filter removes together as skipped (22 for the whole list, where cargo test printed 21 ignored). nextest does not run doctests, and these suites never ran them (the runner selects explicit --lib, --test and --bin targets). A suite that hangs is stopped with SIGTERM first and with SIGKILL after 20 s: nextest puts each test in a process group of its own, so SIGKILL alone left the hanging test running. 21 new pytest tests cover the parser, the commands, the choice of the runner and the stop signals. CI result: the first run of the whole tree under nextest passed: 8,490 passed, 0 failed, 22 skipped, and every suite equals its reference number (the 14 tests of python_agent_e2e ran too). The tests take about 130 s (the Summary times of nextest, added up), where cargo test took about 65 s for the same code. The job took 36 min 17 s, against 33 min 56 s for a cargo test job that started 4 minutes earlier. The time of the job varies from 17 to 34 min between runs of cargo test, so the added test time (about 65 s) is the cost that this change causes.
  • The notice about MCP servers names only the servers that nobody took over (pi-agent-cli): it said "This agent does not connect to MCP servers, so the 1 MCP server the client passed (...) were ignored", which was wrong in number, and it counted every server. Now it says "The client passed 1 MCP server (...). This agent does not connect to MCP servers by itself, so its tools are not available in this session. To use it, install the pi-mcp-py package.", with "it" and "its" for one server and "them" and "their" for more. When the pi-mcp entry point is installed but no extension claimed a server, the notice says that no extension took the server over, and it does not tell the user to install anything. The log line is the same as before (names only). The 0.5.0 notes call the decision "a Phase 4 non-goal". Phase 4 did not discuss MCP; the decision is from Phase 6.
  • HarnessBridge has four more members (pi-agent-core): client_mcp_servers, claim_client_mcp_servers, notify and add_turn_barrier. HarnessBridge is a runtime-checkable protocol, so a custom bridge (a test double, say) must add them to pass isinstance. AgentHarness is the only bridge in this repository.
  • New version numbers (all Python packages, TUI): pi-agent-core-lc, pi-agent-harness-lc and pi-agent-cli-lc go from 0.5.0 to 0.6.0. The three pin each other with ==, so install them at one version. zypi --version and the agentInfo of the agent show 0.6.0 (the Cargo.toml files of pi-pager-bin and pi-version and tui/Cargo.lock carry the version of pi-agent-cli-lc, and a test checks it). The extension packages are released with the core, so all four now require pi-agent-core-lc>=0.6.0, and pi-dynamic-workflows-py also requires pi-agent-harness-lc>=0.6.0. pi-web-access-py, pi-goal-x-py and pi-dynamic-workflows-py go from 0.2.0 to 0.3.0. Their code has not changed since 0.2.0; only the requirement is new. The publish step skips a version that is on PyPI already, so a new requirement needs a new version number. pi-mcp-py is new and stays at 0.1.0.

Removed

  • The code in the TUI that read session files: materialize_startup and its helpers, the pin of --resume <title> before the sandbox (pin_local_resume_target), the saved sandbox profile (SandboxStartup, saved_resume_profile), the check that a --session-id is free before session/new, the first-prompt fallback of the resume picker (it read chat_history.jsonl), the check of the session files in the picker's load, and the read of <home>/sessions/.../plan.md for the plan preview. scripts/tui_baseline.py gates has a new gate (gates.session_disk_reads): it fails when production code in pi-pager or pi-pager-bin calls the readers of the session store again.
  • The session store of pi-shell, and the code that only it used (TUI): pi-shell still held the code that wrote and read the session files of the old Rust agent (session::storage and session::persistence). Since the change above, no code in zypi calls it. It is deleted. The code that only it used goes with it: the session signals, the plan-mode snapshot, the announcement state, the state types of goals and workflows, the wire tags for replay, the image checks of the load path, fork_filter_chat, and the tests of all of these. The compiler found this second group: after the first deletion it gave 41 dead_code warnings, and the ceiling is 0. Two helpers that clean a session title stay, because the pager uses them (session::title, with 8 unit tests). 14,166 lines go and 190 come, in 53 files under tui/. No behaviour changes. One test attribute changes (the consent test of pi-shell takes the default serial key, like the other tests that set GROK_HOME): two tests used different keys, so they could run at the same time, and the session::worktree test then failed with a SQLite I/O error. That race was already in c74cc18; after the deletion it showed in every full run of the suite. The tests of pi-shell go from 1,056 to 864, and the sum of reference_passed in scripts/tui_baseline.toml from 8,706 to 8,514. [storage] cleanup_ttl_days was left in that change (nothing read it any more); the next entry takes it out. gates.session_disk_reads stays, as a guard against writing the store back.
  • More dead code, ten unused dependencies, and the [storage] setting of pi-shell (TUI): the deletion above left more behind. The goal prompt templates and the research script deep_research.rhai are gone (15 files): no code has loaded them since the Rust agent runtime was removed in 0.5.0, and the compiler cannot see a file that no include_str! names. The modules session::helpers, session::worktree and util::config::worktree are gone: nothing in zypi reaches them. The [storage] section of the configuration is gone: cleanup_ttl_days cleaned the old session files, and nothing reads it. A config.toml that still has a [storage] section loads as before, and the section is reported as an unrecognized key, like any other unknown section. Ten dependencies of pi-shell that no source file names are removed: urlencoding, base64, pi-fast-worktree, pi-compaction-transcript, pi-workflow, tdigests, nix, and the test dependencies pretty_assertions, pi-test-utils and tokio-util. The dependency graph of zypi goes from 980 to 970 packages on Linux, and THIRD-PARTY-NOTICES loses five entries (rhai, rhai_codegen, smartstring, tdigests, thin-vec). 1,644 lines go and 13 come, in 28 files under tui/. No behaviour changes. The tests of pi-shell go from 864 to 838 (27 tests go with the deleted code, and one is new). The ceilings in scripts/tui_baseline.toml go down with the code: leader 245 to 243, x.ai 304 to 297, the dependency graph 980 to 970, and the sum of reference_passed 8,514 to 8,488. pi-workflow is still a member of the workspace, but no other crate depends on it now.

Fixed

  • TUI tests that failed in some runs, and five that left environment variables changed: stress runs (random order, 32 test threads) found 19 tests of pi-shell and pi-pager that fail in some runs, and 5 tests that leave environment variables changed. All are fixed in the tests. No product code changes. Four causes were defects of the tests. Two locks that do not keep each other out protected GROK_SUBAGENTS (config::tests::subagents_config_models_with_env_var_enables); the locks are now shared. A test that does not hold the lock of the process-wide trace sink wrote a line into it (memory_trace::tests::sample_events_are_valid_jsonl_and_rotate); the test now checks the sample lines only. A child process that another test forks keeps a copy of the lock's file descriptor until it calls exec, so the lock was still busy after the guard dropped (auth::manager::lock::tests::dropping_the_guard_silences_the_heartbeat_before_anyone_else_can_hold_the_lock); the test now retries for up to 5 s (a fork-storm experiment: 363 of 1,500 rounds busy with a forking test beside it, 0 of 1,500 without). Four persist_permission_mode_* tests and trust_folder_grants_and_resolves set GROK_HOME (the last one GROK_TEST_VERSION too) and did not put the old value back, so the later tests of the process read a deleted directory or saw a simulated release build (the spy counted about 12,900 such reads in one run); they put the values back now. The other 16 tests failed because of process-wide statics: the colour level and the native palette, the minimal-mode flag, the bidi latch, the embedded-modal flag, the voice gate and the theme. Hundreds of tests read these without a lock, so a lock cannot keep a writer away from them. The 57 tests that change them now run in a process of their own (in_own_process). Failed runs of the lib tests of pi-pager (random order, 32 test threads): 6 of 32 before, 0 of 60 after, and 0 of 32 with new seeds; pi-shell: 2 of 20 before, 0 of 20 after. Not explained: blank_quote_line_survives_drag_copy_as_blank failed once and command_palette_search_bar_cursor_only_when_focused failed in 1 of 60 runs; neither failed again after the change (the second one probably reads the vim-mode setting that 15 tests write). About 140 tests write other settings of the appearance cache (set_show_thinking_blocks, set_group_tool_verbs and others). They are not isolated, and no test is known to fail because of them. The sum of reference_passed is 8,490 (it was 8,488; the two new tests check in_own_process).
  • The release workflow no longer fails at Install protoc when the GitHub API limit is used up (CI): arduino/setup-protoc@v3 asks the GitHub API which version of protoc to install. The two steps in release.yml did not pass repo-token, so these requests were not logged in, and the macOS runners share their outgoing address with many other jobs. In the run for v0.5.0 the macOS arm64 build stopped at this step two times (API rate limit exceeded) and passed at the third try. Both steps now pass repo-token: ${{ secrets.GITHUB_TOKEN }}, as the three steps in tui-ci.yml already did. No file that a release ships changes.
  • cargo rebuilt pi-tools-api in every run when protoc was on PATH (TUI build): find_protoc() in pi-proto-build returned the bare name protoc, and the build script of pi-tools-api printed it as cargo:rerun-if-changed=protoc. That path is not a file in the package directory, and cargo treats a path that does not exist as changed in every run (stale: missing ".../pi-tools-api/protoc"). So each cargo run started the build script again and rebuilt pi-tools-api, and then the crates above it. CI has protoc on PATH (arduino/setup-protoc) and no PROTOC variable, so CI had the fault. A PROTOC variable with an absolute path hid it, so a developer who sets it did not see it. find_protoc() now looks for the file in the directories of PATH and returns its absolute path (the first file with an execute bit that runs). WSL2, protoc on PATH, PROTOC unset, nothing changed between the runs: the third cargo check -p pi-tools-api compiled pi-tools-api again before the change (2.2 s), and prints only Finished after it (0.3 s). The file that the build script generates is byte for byte the same (sha256). The gain in TUI CI is small. The Gates + cargo check job runs two cargo commands with the same packages: it compiled pi-tools-api twice before this change and once after it (the job took 3 min 17 s; 3 min 19 s to 4 min 27 s in the runs for #28). The cargo test job runs one cargo command for each suite, and each command builds the dependencies with the features of its own packages. So pi-tools-api is compiled once in each of the 7 suites that use it, with or without this change (pi-shell 4 times and pi-pager 3 times in all; the same suites before and after), and that job took 22 min 08 s (22 min 04 s to 22 min 43 s in the runs for #28). One difference: for a protoc that is found on PATH, pi-proto-build now also passes -I<prefix>/include to protoc (the directory next to the bin directory of protoc, if it exists), as it already did for an absolute PROTOC. 8 new unit tests; the regression test fails with the old code (`protoc` is not a file).
  • A thread in which nobody typed opens again after Zed restarts (pi-agent-cli): Zed showed Failed to Launch with Resource not found: { "uri": "<session id>" }, and Retry failed in the same way. A session in which nobody typed has no file (see Changed). Zed saves the id of every thread that shows something, and a notice of the agent counts: for example the notice that the MCP servers of the client were ignored, or the question about the project. When Zed starts again, it asks for the thread with session/load, and the agent answered resource_not_found. The same error came when Zed opened such a thread from its history, also while the agent still had it open (checked with Zed 1.25.2). Now session/load and session/resume open the id as an empty session when no file has it. This applies to an id of the agent's own kind: a UUID in lower case, with hyphens. The session has no file until its first message, and session/list does not show it. Any other id (for example no-such-session, or a UUID in capital letters) is still resource_not_found. A session that is open in the same process stays as it is. Behaviour changes: (1) A UUID that no session ever had also opens, empty, because the agent cannot tell it from the id of a blank session. zypi export <uuid> of such an id now says that the session "has no conversation content to export", and not "not found". (2) A blank session that a client opens again keeps its id taken, like a chosen id, until the session is closed. When another agent process saved the session first, the first message of this process is refused (a session with this id already exists). The limit of the check for chosen ids holds here too: two agent processes on one home are not fully covered. In particular, the process that made the session does not look at the first message, because that look costs a directory listing for every session (0.07 s at 1,000 sessions, 0.3 s at 5,000). The case needs a client that holds the same blank thread in two agent processes at the same time. Tests: test_blank_session_reopen.py (restart, resume, the directory of the client, a session that is open or closed, ids of other kinds, a second process, a failed open) and 2 new tests over stdio in test_acp_stdio_contract.py. They fail against the old agent, except those that pin what did not change (ids of other kinds, a session that has a file). Each of two one-line changes of the new code (take any id; do not recognise a session that is already open) is caught by a test.
  • A session that the client opened again left its old harness running (pi-agent-cli): session/load or session/resume for a session that is open already (Zed's Retry does it) built a new harness and dropped the old one without close(). The cleanup callbacks of its extensions never ran, and what they had started (a running workflow, for example) went on. _bind_session now puts the new harness in place and closes the replaced one (close() stops its turn and runs the callbacks).

Known issues

  • Some flags and settings have no effect: in the interactive UI, --system-prompt-override and --rules do nothing, and --allow and --deny do not reach the agent. zypi --help still lists flags from the upstream project that nobody has checked one by one. On the settings page, the items other than the permission mode may have no effect with the Python agent. remember_tool_approvals and default_selected_permission were not tested.
  • [ui.status_line] has no context or cost items with the Python agent: the agent does not tell zypi the size of the context window, the tokens in use or a cost, so these items stay empty, and a script gets no context_window.*, cost.total_cost_usd, workspace.branch or workspace.repo_root. The rest of the row is drawn.
  • The user guide has no way to open it: the 7 pages are in the binary, but nothing in the UI opens them.
  • --session-id and --continue get slow with thousands of sessions (TUI, pi-agent-cli): the agent lists its session directory again for each page of session/list, so reading all pages costs pages × directory size. --session-id reads all pages. At 1,000 sessions it takes 1.3 s on Linux and 1.8 s on Windows. At 5,000 sessions it takes 28 s and 34 s, and the lookup stops after 30 s. --continue takes 0.6 s and 0.8 s at 1,000 sessions, and 10 s and 12 s at 5,000. Below 1,000 sessions this is fine, and the owner decided to leave it (plan decision 18).
  • Two agent processes that use one home can still make two sessions with the same id (pi-agent-cli): inside one agent process, an id that a client chose is reserved while its session is open, so a second session/new with that id is refused. Two processes do not see each other's reservations. Both can make the session; the first to write its file wins, and the first message of the other is refused (a session with this id already exists).
  • An id that no session ever had also opens with session/load (pi-agent-cli): the agent cannot tell such a UUID from the id of a blank session (a session with no file), so it opens an empty session. zypi export <uuid> of such an id says that the session has no conversation content, and not "not found".
  • pi-mcp-py is Alpha (0.1.0): it has no OAuth, MCP resources, prompts, sampling, roots, elicitation or tools/list_changed. The MCP SDK hides the error of a failed POST request of a legacy SSE server, so a call to a dead SSE server ends only after the call limit of 120 s. A thread that Zed creates before the first worktree of the project has loaded gets an empty mcpServers list (zed#64611). The agent cannot tell this from "no servers", so such a thread has no MCP tools and no notice; a new thread works. zypi has no setting for MCP servers, so only an editor can pass them. The package takes the annotations of a server as given: in the ask mode, a tool that its server marks as read-only runs without a question. Nobody has used the package in the real Zed window; its tests use real child processes, the real agent and ACP over stdio.
  • Tested on Linux only for the latest changes: the end-to-end and pseudo-terminal scripts run on Linux (WSL2); the tests of pi-mcp-py also run on Windows. Nobody has started the macOS binary (CI builds it). There is no Windows binary. The Landlock layer of the sandbox was not tested: the kernel of the test machine (5.10) has none.
  • Open findings in the Python packages: the low-risk findings F7-02 to F7-09 of the Phase 6 and Phase 7 audit have no fix yet (small defects in the extension API, and notes for the specs). See docs/AUDIT/AUDIT-PHASE6-PHASE7-2026-09-30.md, section 8.