Repository navigation
pi-python v1.1.0
This is a minor release. It introduces code mode (pi-codemode-py) with deferred tool_search, shared sandbox v2, and runtime Auto gating, adds the built-in skill-creator skill, adds a live thinking_level session option saved and restored on load, makes zypi consume ACP usage_update, and fixes bash late output-limit detection, cross-chunk <thought> leading whitespace, and edit diff persistence. All eight Python packages and the TUI move to 1.1.0.
Added
- Code mode (
pi-codemode-py), deferredtool_search, shared sandbox v2, and runtime Auto gating (pi-agent-core,pi-agent-harness,pi-agent-cli,pi-codemode,pi-mcp): newpi-codemode-pyextension exposingcodemode(async Python orchestration in the promotedpi_agent_core.sandboxprotocol v2 child process),tool_search, and/codemode [status|on|hybrid|only|off]; deferred tool loading (activate_tools/deactivate_tools,deferred_tool_names) and gatedAgentHarness.invoke_tool(origin={"kind": "codemode", ...}); home[codemode]configuration table inagent.toml(enabled,mode,defer_mcp,require_approval = trueby default so outer calls still prompt inask/autowhile innertools.*calls go individually through permission and Auto gating); deferred MCP tool exposure inpi-mcp-py(PI_MCP_EXPOSURE); bundled intozycode-agentand covered bypackaging/agent/smoke.py(#147). - Built-in
skill-creatorskill (pi-agent-cli): bundledskill-creator(builtin_skills/skill-creator/SKILL.mdwithreferences/installing-skills.mdandreferences/authoring-guide.md) guiding agents through installing, auditing, creating, validating, and configuring Agent Skills. Enabled by default via[skills] include_builtin = trueat lowest precedence (configured[skills].pathsoverride by name, later wins; does not require project trust) and verified inpackaging/agent/smoke.py. - A live
thinking_leveloption, saved in the chat and restored on load (pi-agent-cli):session/new,session/loadandsession/resumereturn athinking_levelselect (categorythought_level; the levelsmax,xhigh,high,medium,low,minimal,off) unlessagent.tomlsaysreasoning = false.session/set_config_optionchanges the level of the open session with no restart: an unknown level, and any level butoffwhenreasoning = false, areinvalid_params. Whenreasoningis not set,Model.reasoningfollows the level, also after a change of model. The harness saves each change in the chat file as athinking_level_changeentry.session/loadandsession/resumestart the chat at the latest saved level, as they start it with the saved model, and write nothing to the chat file. The saved level is used only whenreasoningis notfalseand the option offers it. A new chat, and a chat with no saved level, start atthinking_levelofagent.toml. Agents up to 1.0.1 have none of this: the level lives inagent.tomlonly (#144, #146). zypiconsumes ACPusage_update(TUI):zypinow reads incomingusage_updatenotifications (used,size, and USDcostwhen sent) and updates its context bar and status line (#144, #146).
Changed
- New version numbers (all eight Python packages, TUI):
pi-agent-core-lc,pi-agent-harness-lc,pi-agent-cli-lc,pi-web-access-py,pi-goal-x-py,pi-dynamic-workflows-py,pi-mcp-py, and newpi-codemode-py(first PyPI release at1.1.0), plus the TUI crates (pi-pager-bin,pi-version, andtui/Cargo.lock), move to1.1.0.pi-agent-core-lc,pi-agent-harness-lcandpi-agent-cli-lcpin each other with==1.1.0, and all five extension packages raise their workspace floors to>=1.1.0.
Fixed
- The output limit of
bashcould miss a command that ended first (pi-agent-core): abashcall that has an output limit (Auto sets one) and prints more than the limit could pass when the command ended before the tool counted its output, which happens on a loaded machine. The tool now counts the output after the command ended too, and fails the call with the same message. When the command had already ended, the message adds that fact and its exit code (or the signal that killed it). In one run on one machine, with 12 busy processes on 4 cores, 145 of 300 calls passed the limit before and 0 of 300 after; the share changes from run to run (#146). - Cross-chunk
<thought>leading whitespace & workflow subagentthinking_format(pi-agent-core,pi-dynamic-workflows): bounded leading-whitespace buffering inThoughtTagSplitterpreserves<thought>tags split across streamed chunks, and workflow sub-agents preservethinking_format(#144). edittool keepsoldText/newTextout of persisted session details (pi-agent-core,pi-agent-cli): full before/after texts travel only on liveAgentToolResult.event_details(not persisteddetails), and replayed edits emit plain text without a diff block (#144).
Known issues
- The count in
usage_updateis partly an estimate (pi-agent-cli): the tool results of a turn, and the whole count after a compaction, are estimates (4 characters for 1 token, which is too low for CJK text). The next model call gives an exact number. A window that is too small can show more than 100 %. A change to a model with no window leaves the old numbers on the client, because ACP cannot clear them. - Gemini
thinking_formatand<thought>streaming were not verified against live Google Gemini or Vertex AI APIs (pi-agent-core,pi-agent-cli): verified with local HTTP/mock-transport tests only (#138). maxwas not sent to a real provider (pi-agent-core): verified with scripted models and a fake OpenAI-format server only; Anthropic adaptive thinking witheffortis not built.- Nobody ran
zypifor Linux aarch64 or macOS arm64 by hand: CI builds them; the macOS binary is not signed or notarized, and the Linuxzypibinary requires glibc 2.39 or newer. - macOS weaker sandbox limits (
pi-dynamic-workflows,pi-codemode): on macOS the script child process has no kernel limit on memory (RLIMIT_AS) or process count (RLIMIT_NPROC), relying on the audit hook as a speed bump; keepask(orauto, which also prompts before outerworkflow/codemodecalls) and run inside a container or VM for untrusted code.