v0.3.0 - 2025-12-16
Release Notes
Added
pctx_session_servercrate implements CodeMode sessions using HTTP endpoints for session management and websockets for code execution with callbacks to user-defined tools.pctx_corecrate created as the primary code mode library via theCodeModestruct. With support for MCP servers and callback functions.pctx_executor/pctx_code_execution_runtime/pctx_type_check_runtimesupports callbacks to arbitrary rust callablespctx-client(Python) package with@tooldecorator andAsyncTool/Toolbase class for registering/interacting with the pctx session server. Users can export the CodeMode tools to popular agent frameworks like langchain.
Changed
- Breaking Change:
pctx startnow starts the pctx session server, all previous commands have been migrated topctx mcp <subcommand>. codegencreate extended to include genericToolandToolSetstructs and all code generation functions migrated to be methods of these structs.
Fixed
[additionalProperty: string]: ...not included whenadditionalProperties: falsein schema.- Comments above
[additionalProperty: string]: ...now correctly document the expected additional property types.
Install pctx 0.3.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/portofcontext/pctx/releases/download/v0.3.0/pctx-installer.sh | shInstall prebuilt binaries via Homebrew
brew install portofcontext/tap/pctxInstall prebuilt binaries into your npm project
npm install @portofcontext/pctx@0.3.0Download pctx 0.3.0
| File | Platform | Checksum |
|---|---|---|
| pctx-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | checksum |
| pctx-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| pctx-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | checksum |
| pctx-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo portofcontext/pctxYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>