Repository navigation
Releases: zy1233/pi-python
Releases · zy1233/pi-python
Release list
pi-python v0.4.0
Added
- Phase 6 (git context):
pi_agent_cliinjects a bounded, read-only<git_status>block into the system prompt on every turn. Disable with[git] enabled = falseor headless--no-git-context. Non-repos, timeouts, and git failures omit the section. MCP stays out of the product path; callers still adaptlangchain-mcp-adapterstools withfrom_langchain_tool(). - Provider matrix: opt-in live tests for OpenAI, Anthropic, DeepSeek, and SiliconFlow (
pytest -m real_llm pi_agent_core/tests/test_provider_matrix.py). Manual workflow.github/workflows/provider-matrix.yml(workflow_dispatchonly; missing secrets skip). - Phase 7 extension packages are built and published with the release:
pi-web-access-py,pi-goal-x-py,pi-dynamic-workflows-py. CI and the pre-release test job install all three.
Changed
pi-agent-core-lc,pi-agent-harness-lc, andpi-agent-cli-lcare version0.4.0.
pi-python v0.3.0
Added
- TUI binary in GitHub Releases (beta): prebuilt
zypiLinux x86_64 binary is now included in GitHub Releases alongside Python wheels. Downloadzypi-linux-x86_64from the release assets page. Build from source for other platforms. - Phase 5 (Coding Agent prompt engine): pi-aligned
build_system_prompt()/build_coding_agent_harness_system_prompt()inpi_agent_cli; toolprompt_snippet/prompt_guidelinescontributions;AGENTS.md/CLAUDE.md/SYSTEM.md/APPEND_SYSTEM.mdcontext files;<available_skills>XML format; bashPI_*env. - FrontierHarness 30-task evaluation:
scripts/run_eval.pyCLI with 21 Terminal-Bench + 9 DeepSWE industrial tasks; dual runtime (Windows local NTFS junctions + WSL2 Docker sandbox); v2ray proxy integration; full report indocs/benchmarks/FRONTIER-HARNESS-30-EVAL-REPORT.md. - TUI & Code-Agent guide: new
docs/TUI-AND-CODE-AGENT.mdcovering installation, configuration, and usage for bothzypiTUI andpi_agent_cli. - Release workflow:
build-tuijob builds the Rust TUI binary (cargo build --profile release-dist -p pi-pager-bin) and uploadszypi-linux-x86_64to GitHub Releases.
Changed
- TUI
x.ai/residual cleanup (P4P5-1 resolution): systematic purge of 680x.ai/references across 115 files intui/crates/codegen/pi-pager/src/. Newacp/vendor.rscentralises vendor-prefix constants and helpers; 4 inbound filter sites usevendor::is_vendor_ext_method()as defensive guards; doc comments, test fixtures, views/dispatch literals all scrubbed. Onlyvendor.rs(4 constants) andworktree_cmd/mod.rs(20, deferred) retainx.ai/strings. - Test regression fixes: fixed 5 x.ai cleanup regressions where test data was over-renamed to
pi/while handler code still used original constant names (TITLE_IS_MANUAL_META_KEY,PI_SESSION_UPDATE_METHOD,is_vendor_meta_key). - Grok-specific tests marked
#[ignore]: 62 tests for features removed from pi-python (grok slash commands,/loopscheduler,/share, dashboard,~/.grokpath,agentsubcommand) annotated with#[ignore = "pi-python: grok-specific feature not supported"]. - TUI test result:
8880 passed, 0 failed, 72 ignored. - TUI and code-agent marked as beta in README.
- README restructured: added Status table, TUI install section, and updated roadmap.
pi-python v0.2.0
Added
- Phase 4 P0–P4 (Coding Agent CLI): vendored grok-build TUI under
tui/(Apache-2.0, excluded from wheels);packages/pi-agent-clistandard ACP agent overAgentHarness(nox.ai/*); TUI spawnpython -m pi_agent_cli, skip xAI login, drop vendor extension RPCs, home~/.pi-python, product binaryzypi. TUI Cargo crates renamedxai-*→pi-*, then P5 de-grok:pi-grok-*→pi-*, grok CLI subcommands removed, auth/prefetch startup skipped whenauth_methodsis empty./new→session/new,/resume→session/list+session/load;@is in-process directory listing;zypi -p/python -m pi_agent_cli -pis Python headless. P4:config.toml(model, permission, skills,[agent].command), coding system prompt + skills XML, Windows notes indocs/WINDOWS.md. - Pelican-on-a-bicycle foundation benchmark:
pi_agent_cli.benchmarks.pelican,scripts/smoke_pelican.py,docs/benchmarks/PELCAN-BICYCLE.md— structural SVG smoke test for the pi TUI agent path. - PyPI:
pi-agent-cli-lcincluded in the release workflow (tagv*builds and publishes core, harness, and cli wheels/sdists; Rust TUI excluded).
pi-python v0.1.0
Initial public release.
Added
pi-agent-core
- Core runtime (Phase 1):
Agentwith steering/follow-up queues, abort,subscribe()event barrier;agent_loopwith pi-compatible event protocol, parallel/sequential tool execution,terminatesemantics. - LangChain adapter:
StreamFnoverastream()for OpenAI / Anthropic / DeepSeek / anyinit_chat_modelprovider; mock stream for tests (no API keys needed). - Production hardening (Phase 2/2.5):
- Cross-provider message replay (
transform_messages: tool-call id normalization, thinking downgrade, image stripping). - Usage & cost tracking with
CostCalculator. - Thinking/reasoning: provider param mapping, streamed
thinking_deltaevents, Anthropic signature replay, DeepSeek-stylereasoning_content. - Stream-level retries with exponential backoff + jitter,
Retry-Afteraware. - Runaway protection:
max_turns/tool_timeout. - Guardrail hooks:
before_llm_call(withContextBudget),after_llm_call,on_agent_end. - Observability:
on_payload/on_responsehooks;run_id/turn_idon every event. - Granular stream events:
text_start/end,thinking_start/end,toolcall_start/end. - Structured output:
response_schema(Pydantic model or JSON schema). - Tool-result images: Anthropic native blocks, user-message fallback elsewhere.
- OpenAI-compatible gateways via
Model.base_url.
- Cross-provider message replay (
- Tool ecosystem (P6):
- 7 built-in coding tools:
read,bash,edit,write,grep,find,ls. - Group factories:
create_coding_tools()/create_read_only_tools(). - LangChain
BaseTool→AgentTooladapter (from_langchain_tool).
- 7 built-in coding tools:
pi-agent-harness
- Session tree (H1):
SessionRepowith filesystem storage,uuid7IDs, branch/fork semantics, message append/list. - AgentHarness runtime (H2): orchestration layer over
Agent, queue rollback, abort aggregation, event-based idle wait. - Compaction & tree navigation (H3): token-based compaction with branch summaries,
navigate_treefor branch exploration. - Skills, templates & env (H4): skill discovery, prompt templates, system prompt injection,
LocalExecutionEnvfor sandboxed execution.