Repository navigation
pi-python v0.8.0
This release is about the agent as a program that needs no Python. The agent can now run as a frozen (PyInstaller) executable, and the new workflow agent-binaries.yml builds one executable for each of five platforms and attaches the archives to the GitHub Release of a tag. These archives are the base of the binary entry for the ACP registry (the entry is not submitted yet). pi-agent-cli-lc now installs the OpenAI-format provider (langchain-openai) by default, so a bare uvx pi-agent-cli-lc can call a model. Changed also has two changes of zypi that you can see: it refuses 21 flags that the Python agent does not back, and its settings page has eight rows fewer. Known issues says what does not work yet, and that includes a macOS finding about the workflow sandbox.
Added
- The agent can run as a frozen executable (PyInstaller): three places in the code assumed a Python interpreter next to the agent. The
workflowsandbox started its script process withsys.executable -I -S -B -X utf8 child.py, which a frozen program refuses. A frozen build now starts a program of its own for that,child.pyfrozen alone with the standard library and nothing else, from the folderfrozen-childnext tosandbox/host.py. The layers of the sandbox do not change. The older form of the terminal login (_meta["terminal-auth"]) namedsys.executable -m pi_agent_cli --setup; a frozen build names its own program and--setup. A provider that a frozen build does not hold (anthropic,deepseek, any other) now fails with a text that says to setprovider = "openai"andbase_url, not withpip install ..., which cannot help there.--setupoffers only the providers that the build holds.PI_SANDBOX_FROZEN_CHILD=<program>runs the whole sandbox test suite against the frozen program. Tests:pi_agent_core/tests/test_frozen_providers.py,packages/pi-dynamic-workflows/tests/test_sandbox_frozen.pyandconftest.py, and additions totest_acp_auth_methods.pyandtest_setup_command.py. - A workflow builds the agent as one executable for each of five platforms (CI, packaging):
.github/workflows/agent-binaries.ymlbuilds the agent with PyInstaller (one file) onubuntu-22.04,ubuntu-22.04-arm,macos-15,macos-15-intelandwindows-2022. There is nowindows-aarch64build, becausetiktokenhas no wheel for it. Each program is tested on its own platform: a smoke test, 13 ACP contract tests against the program, and the sandbox tests against the frozen script process. The archives are namedzycode-agent-<target>-<version>.tar.gz(.zipfor Windows). The workflow starts after theReleaseworkflow succeeds for a tag push (workflow_run) and uploads the five archives to that release withgh release upload --clobber. It stops when the tag is notv<version of pi-agent-cli-lc>. A pull request that touches the agent runs it as a dry run, and by hand (workflow_dispatchwith atag) it repairs a release whose upload failed. The frozen agent holds only the OpenAI-format provider; for Anthropic or DeepSeek useprovider = "openai"withbase_url, or the Python package. Not signed. Code:packaging/agent/. Design, release steps and trial results:docs/specs/2026-10-31-agent-binaries.md. Not tried yet: thepublishjob (it runs only after a tag), the rule of GitHub that aworkflow_runworkflow uses the file on the default branch, and the first start of a program in Zed or JetBrains. - The Landlock layer of
pi-sandboxis tested on a Landlock kernel, and the flags and settings ofzypiare measured against the Python agent (TUI, tests): the new testlandlock_enforcement_e2e(workspace, read-only and strict profiles; the parent stays free; a child inherits the layer) passed on kernel 6.12 (Landlock ABI 6). The probes for flags and settings (scripts/tui_pty/) are the base of the two changes ofzypibelow. Test code only:zypidoes not change by these. (#57, #58)
Changed
-
pi-agent-cli-lcdepends on the OpenAI-format provider (langchain-openai): it asks forpi-agent-core-lc[openai]. A registry entry cannot add--with, so a bareuvx pi-agent-cli-lchad no provider and could not call a model. The other providers are extras of the package now:pi-agent-cli-lc[anthropic]andpi-agent-cli-lc[deepseek](the extras ofpi-agent-core-lcstay). Behaviour change: installingpi-agent-cli-lcnow also installslangchain-openaiand its dependencies (openai,tiktoken). -
An interactive
zypirefuses a flag that the Python agent does not back, and says why (TUI): an interactive session passes no flag to the agent, so 21 flags that came from the upstream project did nothing:--allow,--deny,--reasoning-effort,--worktree,--max-turns,--disable-web-searchand 15 more.--denywas the worst case. The agent still asked about a call that matched the rule, and it never refused the call. Nowzypiprintserror: zypi did not start., names each of these flags with its reason, and exits with status 2 before it starts the agent. 19 of the flags are no longer inzypi --help.--rulesand--system-prompt-overridestay there with the note "-p only", because-ppasses them to the agent. An interactive session reads.pi/SYSTEM.mdand.pi/APPEND_SYSTEM.mdinstead.-p, the subcommands and the hidden compatibility flags do not change. Behaviour change: a script that starts an interactivezypiwith one of these flags now fails with status 2. -
The settings page does not offer eight settings that change nothing (TUI):
remember_tool_approvals,default_selected_permission,default_model,toolset.ask_user_question.timeout_enabled,fork_secondary_model,prompt_suggestions,hunk_tracker_modeandauto_updatesteered the Rust runtime, or a feature that left with it. With the Python agent, a change on the page did nothing, or it did something other than the row said.default_modelsaved a key that the next start ignores.default_selected_permissionshowed "Always allow on all sessions" for a prompt that starts on "Allow once". The page has eight rows fewer, and the Models category is gone. The code and the keys ofconfig.tomlstay. A value that an earlier version saved is still read, anddefault_selected_permission = "reject"inconfig.tomlstill selects "Reject" in the first prompt of a session. Together with the change above, this ends the known issue of v0.7.0, "Some flags and settings have no effect", for everything that was measured. -
The
workflowsandbox on macOS has no kernel limit on memory or on the number of processes (docs, tests): measured in CI onmacos-15andmacos-15-intel. The layers that work there areprocess,rlimit-core,rlimit-cpu,rlimit-nofile,rlimit-fsizeand the audit hook.rlimit-ashas no effect (the system does not enforceRLIMIT_AS: a 1 GiB allocation succeeds under a 256 MiB limit), andrlimit-nprochas no effect (a script can start child processes). So only the audit hook stands in the way there. Before this, the design said that macOS was not tested.README.md,AGENTS.md,packages/pi-dynamic-workflows/README.mdanddocs/specs/2026-10-01-workflow-sandbox-design.mdsay it now, and the sandbox tests check what each platform has. No code of the sandbox changes. With the default permission modeask, everyworkflowcall is asked about first. -
The release workflow builds the macOS arm64 binary on
macos-15(CI): GitHub removes themacos-14runner on 2026-11-02. Only theruns-onofbuild-tui-macos-armchanges. Not run: this job runs only for a tag, so the first run is the release of 0.8.0. (#69) -
The TUI CI runs the tests of
pi-sandbox, with enforcement required (CI): the new suite is inscripts/tui_baseline.toml(105 passed, 3 skipped). The job installsbubblewrap, lifts the AppArmor block on unprivileged user namespaces ofubuntu-24.04, and setsSANDBOX_E2E_REQUIRE_ENFORCEMENT=1. A runner without Landlock or a workingbwrapnow fails the job; before, the tests returned early and counted as passed. (#59) -
New version numbers (all Python packages, TUI):
pi-agent-core-lc,pi-agent-harness-lcandpi-agent-cli-lcgo from 0.7.0 to 0.8.0. The three pin each other with==, so install them at one version. The four extension packages need the new core (pi-agent-core-lc>=0.8.0) and get new versions, because the publish step skips a version that PyPI has already:pi-web-access-py,pi-goal-x-pyandpi-dynamic-workflows-pygo from 0.4.0 to 0.5.0, andpi-mcp-pyfrom 0.2.0 to 0.3.0.zypi --versionand theagentInfoof the agent show 0.8.0 (the TUI cratespi-pager-binandpi-version, andtui/Cargo.lock, carry the same number).
Removed
- More dead code in the TUI: 16 unused modules, the MCP loaders, and the folder-trust gate that guarded them (TUI): the call graph (
scripts/tui_callgraph.py units) listed 16 modules that no live code refers to, and plan decision 10 named the MCP loaders ofpi-shellandrecent_dirsofpi-pager. All of it is gone. The modules are: inpi-hooks,dispatcher,result,runner,runner::commandandrunner::http(the hook dispatcher and the hook runners, 4,339 lines, and the crate's own integration test); inpi-shell,session::events,session::telemetry,session::unified_list,upload,upload::turn,auth::flowandconfig::reloader; andpi-workspace::publish,pi-tools::implementations::editor_infra,pi-mcp::wireandpi-agent::prompt::browser_verification. The compiler then found the code that only these called, and that is gone too: the plugin-registry and session-registry helpers ofpi-shell, the consume side of the folder-trust gate (the cache of verdicts andproject_scope_allowed; nothing calls the gate, because the loaders that it guarded are gone), the resolver of the[plugins]config, and the moduleclaude_import.pi-hooksdrops its dependenciesreqwest,url,tokioandpi-extra-ca, andpi-shelldropsdirsandpi-session-events.grant_folder_truststays: the pager calls it for--trust, and the pager's trust dialog still uses the decision side inpi-workspace.pi-tools::types::errorstays: the call graph lists it as dead, but it holds theFromimpls forToolError, and code uses such an impl without a name. No behaviour changes: the whole workspace, with its tests, compiles without the removed code, so nothing refers to it, and the build that ships (pi-pager-bin,pi-pager-minimal,pi-update) has 0 warnings. Two tests change what they check.session_new_and_load_send_no_mcp_servers(pi-pager) no longer calls the removed loader to show that its fixture is a real one.project_config_never_sources_feedback_user(pi-shell) usesfind_project_configsto show that the project config is found, because the function that it used before is gone. 9,067 lines go and 65 come, in 47 files undertui/. The tests ofpi-shellgo from 838 to 784 (54 go with the code that they tested; none is new), and 110 test functions in crates that are not suites of the manifest go too (98 inpi-hooks, 9 inpi-workspace, 3 inpi-tools). The ceilings inscripts/tui_baseline.tomlgo down:leader243 to 239,x.ai297 to 282, and the floor ofpi-shell820 to 766. The dependency graph stays at 970 packages.docs/baselines/tui-support.mdis generated again: the support crates now have one dead unit left,pi-tools::types::error. - The test-support crate of the TUI loses its unused half: seven modules and eleven dependencies (TUI): plan phase D.5.
pi-test-supportheld a mock inference server (mock_server,inference_override,scripted,sse), two ACP stdio clients (acp_client), a runner for-p(headless) and a counting server (counting_server): 5,443 lines and 47 test functions, for the tests of the Rust agent runtime that is gone. The workspace builds with its tests without them, so nothing used them. The lookup of the pager binary (grok_binary) andgit_workdirgo too: only the removed modules called the first, and nothing called the second. The crate keeps what tests use:EnvGuard,env_parse,scaled,TestSandbox,TestProcess, andResourceSnapshotwith its sampler. Eleven dependencies go:agent-client-protocol,anyhow,async-trait,axum,futures-util,pi-acp-lib,serde,serde_json,tokio-util,tracing, and the dev-dependencyreqwest;tui/Cargo.lockloses 11 lines and no package. TheREADME.mdof the crate is written again. No behaviour changes: the crate is a dev-dependency ofpi-shell,pi-pagerandpi-tools(publish = false), sozypidoes not change. The suites have the numbers of before (pi-shell838,pi-pager5,651), the 23 tests that remain in the crate pass, andtui_baseline.py checkis green (warnings 0, graph 970, residue unchanged). 5,646 lines go and 27 come, in 12 files.
Fixed
- The
/resumepicker shows sessions that are more than 30 days old (TUI): the picker left out every session that was last updated more than 30 days ago. A Python session that nobody touched for a month was gone from/resume, and only--resume <id>could still open it. The picker now shows every session that the agent lists. The agent sends the list in pages of 50, and the picker reads up to 100 pages. A session with noupdatedAtthat parses is still left out. - A flaky test of the pager no longer fails by chance (TUI, test only):
needs_animation_gates_prompt_history_tick_deliverynow waits for a fresh result of the daemon. (#65)
Known issues
Carried over from 0.7.0 where they still hold. The one about flags and settings is gone: 21 flags are refused and eight settings are hidden (see Changed), for everything that was measured.
- The
allowlistegress mode of the benchmark runner does not filter (pi-agent-cli): the Terminal-Bench tasks use it. The runner passes only proxy variables to the container, andEgressPolicy.allowed_hostsgoes intorun.jsonand nowhere else. A test on 2026-10-16 reachedexample.org,huggingface.coandhttpbin.orgthrough the proxy. The official list itself hasgithub.com. One agent used this to download the reference solution of its own task, so that run does not count.--egress-mode no-networkrules this out (a task that needsapt-getthen fails).--no-dockerruns share the file system with the agent. Use them for smoke tests only. - The
workflowsandbox has no memory or process limit on macOS: see Changed. A script that runs on macOS can allocate memory without a kernel limit and can start child processes. Only the audit hook (a speed bump, not a boundary) stands in the way. - The agent executables are new and have run only in CI: nobody has started one in Zed or JetBrains, the
publishjob has not run, the registry entry is not submitted, and the programs are not signed (macOS and Windows may warn at the first start). The Linux x86_64 program is built onubuntu-22.04; its glibc floor was not measured here. The frozen agent holds only the OpenAI-format provider. [ui.status_line]has nocontextorcostitems with the Python agent: the agent does not tellzypithe size of the context window, the tokens in use or a cost, so these items stay empty, and a script gets nocontext_window.*,cost.total_cost_usd,workspace.branchorworkspace.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-idand--continueget slow with thousands of sessions (TUI,pi-agent-cli): the agent lists its session directory again for each page ofsession/list, so reading all pages costs pages x directory size.--session-idreads 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.--continuetakes 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 secondsession/newwith 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-pyis Alpha (0.3.0): it has no OAuth, MCP resources, prompts, sampling, roots, elicitation ortools/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 emptymcpServerslist (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.zypihas no setting for MCP servers, so only an editor can pass them. The package takes theannotationsof a server as given: in theaskmode, 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 of the TUI: the end-to-end and pseudo-terminal scripts run on Linux (WSL2); the tests of
pi-mcp-pyalso run on Windows. Nobody has started the macOSzypibinary (CI builds it). There is no Windowszypibinary. The Landlock layer of the sandbox was tested only on kernel 6.12; the behaviour on kernels 5.13 to 6.11 was not tested.