Repository navigation
Releases
pi-harness 0.0.13
Changed
AGENTS.mdrole definitions now use the three-level agentLeader / subLeader / Worker model (2026-11-25). Why: the team redefined the roles — agentLeader is the main worktree of an agent project, subLeader the main worktree of a subproject, Worker any worktree on a non-main branch — while the old wording treated a subproject's main worktree as a Worker and conflicted with the global rules. What changed: the role section now decides by "is this checkout on main", spells out that subLeader owns local-main fast-forwards plus worktree creation/removal for its own project, and points the test-authorship flow at the agentLeader. The rule index and changelog were updated with it; no project hard rules or test contracts changed.
Fixed
- Tests and default models realigned with the 2026-11-25 upstream model catalog. Why:
packages/airebuildsproviders/data/from models.dev on every build, and upstream retireddevstral-medium-latest,pixtral-12b, OpenCode'skimi-k2.6, Together'sMiniMaxAI/MiniMax-M3and Copilot'sclaude-opus-5, which broke the requiredbuild-check-testcheck for every pull request. What changed: Mistral tests usemistral-medium-latest/ministral-14b-latest, OpenCode's Kimi test useskimi-k3(the dead Kimi K2.6 thinking special case is gone), Together usesMiniMaxAI/MiniMax-M3.1-Flash, Copilot usesclaude-opus-5.5, the Copilot assertions now point atgpt-5.6-sol/claude-fable-5, and the qwen-token-plan model list tracks today's catalog. The built-in default models for Mistral and OpenCode moved tomistral-medium-latestandkimi-k3.
pi-harness 0.0.12
Added
- Cursor color is now configurable, so
pi-altcan stand out with a blue bar againstpi's green one (#79, 2026-11-23). Why: both identities run on the same harness, butpiusescursorStyle: "hardware"and therefore the terminal's own caret (configured locally as a 300%-thick bar), whilepi-altfell back to the default"block"reverse-video cell — different shape and different color, so you could not tell at a glance which identity a pane belonged to. What changed: a newcursorColorsetting (#rgb/#rrggbb, invalid values ignored). The renderer sets the terminal cursor color with OSC 12 and restores it on exit (or when the setting is cleared) with OSC 112; it re-emits the color every time it positions the hardware caret so a terminal-side theme sync cannot drop it. Thepi-altidentity only changes its ownsettings.json(cursorStyle: "hardware"pluscursorColor);pibehavior is unchanged.
pi-harness 0.0.11
Fixed
pi-altno longer replays the inherited changelog on every start (#75, 2026-11-23). Why: this fork'spackages/coding-agent/CHANGELOG.mdkeeps the history inherited from upstream (0.86.0 … 0.10.0), whose version numbers sit far above the fork's own 0.0.x line.getNewEntries()compared entries against the last seen version only, so withlastChangelogVersionat0.0.10every inherited entry counted as new and the second identity,pi-alt, re-printed the whole history on each start. What changed:getNewEntries(entries, lastVersion, currentVersion)now also takes the running version as an upper bound and returns only the entries that are newer thanlastVersionand not newer thancurrentVersion(both comparisons go throughcompareVersions); the single call site,getChangelogForDisplay(), passesVERSION. The/changelogcommand is unchanged and still shows the full history on demand. Regression tests:packages/coding-agent/test/changelog.test.tspins three cases — entries above the running version are never new, only entries between the two versions are returned, and a last seen version above the running version yields nothing.
pi-harness 0.0.10
Fixed
-
Build Binariescan publish a GitHub Release on this fork again (job graph narrowed; release notes cover the whole repository) (#52, 2026-11-16). Why: the fork neither owns the unscoped npm names (pi-agent-core/pi-ai/pi-coding-agent) nor has any pi.dev or R2 credentials, yet it inherited the upstreampublish-npm->announce-pi-dev-releasechain.publish-npmcould only ever fail with a 404, and the failure cleanup then deleted the draft that had just been staged (v0.0.8, run 41995780660: build, three-platform smoke tests and stage all green, all eleven assets uploaded, still deleted), so every release had to be recovered by hand from the Actions artifact. Secondary problem:scripts/release-notes.mjs extractread onlypackages/coding-agent/CHANGELOG.md, so entries recorded in the rootCHANGELOG.md(the fork's version authority) never reached the notes, and the v0.0.8 notes were taken from the root file by hand. What changed: thepublish-npmandannounce-pi-dev-releasejobs are gone,publish-github-releasewaits only onstage-github-release, andcleanup-draft-github-releasereacts only to real failures (build,smoke-test-binaries,stage-github-release,publish-github-release) instead of deleting the draft because an unavailable step "failed". The "never mutate a published release" guard and thegh release edit --draft=falsestep are unchanged.release-notes.mjs extractnow walks several sources in order, the rootCHANGELOG.mdfirst andpackages/coding-agent/CHANGELOG.mdas fallback, takes the first non-empty section for the version, and resolves relative links against that source's directory. Regression tests:scripts/build-binaries-workflow.test.mjsandscripts/release-notes.test.mjs, run bynpm run test:scripts. -
Generated brand directories no longer count as workspace packages (#67, 2026-11-15). Why:
pi-altcreatespackages/coding-agent/brands/pi-alt/package.jsonat runtime, andscripts/package-workspaces.mjswalks every directory underpackages/looking for manifests, so any version script (npm run version:patch|minor|major,release:*) failed with "Not all non-private packages have the same version" as soon as the repository had runpi-altonce. What changed:brandsjoineddistandnode_modulesinSKIPPED_DIRECTORIES, and a newscripts/package-workspaces.test.mjspins the skip list while confirming that nested workspace packages (for examplecoding-agent/examples/...) are still discovered.
Changed
-
OpenCode's DeepSeek routes no longer claim long cache retention after the upstream model rename (#42, in
pi-ai). Why:packages/ai/src/providers/data/is regenerated from the live catalog during the package build, so model ids drift. Upstream renameddeepseek-v4-flashtodeepseek-v4.1-flash; the generator's long-cache-retention list still matched the old id, stopped matching anything, and the route silently went back to advertising 24-hour cache retention that it rejects, with no error anywhere. What changed: the list entry is renamed, the generator now prints a warning listing entries that no longer match any model (exit code unchanged, so an upstream rename does not turn every pull request red), and a new rule-based test asserts that every OpenCode DeepSeek route on the OpenAI Completions API opts out. -
Catalog metadata in tests is asserted by shape instead of exact values (2026-11-16). Why: Fireworks moved
accounts/fireworks/routers/kimi-latestfrom input 3 / output 15 to 2 / 10, andfireworks-models.test.tshardcoded the old numbers, which turned the requiredbuild-check-testred for every pull request. Context window, token limits and prices are upstream data. What changed: those assertions now require positive numbers andmaxTokens <= contextWindowinstead of exact values; a mapping bug still fails, a third-party price update no longer does.
Tests
- A regression net for streamed fenced code blocks (#61): eight cases assert that a streamed render ends up identical to a single-pass render of the same text, including shrink-then-grow frames and a closing fence arriving character by character. The underlying rendering artefact is still unreproduced and the issue stays open.
pi-harness 0.0.9
Added
- A second runtime identity,
pi-alt, inside the same installed package (#64). Why: one machine needs two fully separate Pi setups (rules, skills, extensions, sessions, credentials), and the earlier routes all leaked somewhere — a second full copy ofdistdrifts in version and has to be upgraded twice, while simply overridingPI_CODING_AGENT_DIRleaves both identities reading the same project-level.pi/. What changed:bin/pi-alt.jsis shipped source (not a build artifact); on every start it idempotently provisions<package root>/brands/pi-alt/with a realpackage.json(piConfig: { name: "pi-alt", configDir: ".pi-alt" },name/versionsynced from the main package) plus relative symlinks todist,docs,examples,README.md, andCHANGELOG.md, setsPI_PACKAGE_DIRto that directory, and imports the shareddist/bundle/cli.jsin the same process. Both identities therefore run one build andpi update --selfupgrades both.pi-altkeeps global config in~/.pi-alt/agent/and project resources in<repo>/.pi-alt/, never touching~/.pi; the rebranding mechanism now derives environment variable names by replacing every non-alphanumeric character with_, sopi-altgets the shell-usablePI_ALT_CODING_AGENT_DIR/PI_ALT_CODING_AGENT_SESSION_DIRinstead ofPI-ALT_....
Changed
- Repository standards: contribution terms and the copyright holder line (2026-11-15). Why: the repository had no
CONTRIBUTING.md/CONTRIBUTING_cn.md, so contributors had no written statement of what happens to their copyright, and the copyright line still used the retiredAll Contributorswording, which names no legal person and therefore carries no presumption of authorship. What changed: both CONTRIBUTING files now state that contributors keep their copyright (a pull request is not a transfer) and that contributions are licensed to the project under its MIT licence;LICENSE.md,README.md, andREADME_cn.mdnow name the forks copyright holder asxhqing and contributors, keeping the upstream authors line untouched.
v0.0.8
Added
ARCHITECTURE.md: a plain-language guide to how pi is put together (2026-11-02). Why: the repository had no project-level document explaining the overall architecture —DEVELOPMENT.mdis the maintenance rulebook for this fork, and the user-facing pages underpackages/coding-agent/docs/document how to use pi one feature at a time, so anyone (including the agent itself, in a fresh session) had to reconstruct the layering, the message flow, and the experimental/stable split by reading source. What it contains: the layer map across packages and their responsibilities; the full journey of one prompt (startup assembly → system-prompt composition → the agent turn loop → tool execution → retry/compaction/persistence); the four load-bearing designs (two message vocabularies, the session JSONL tree, compaction, event-driven modes); the extension/skill/template/theme/package distinction with discovery order and trust boundary; the TUI rendering approach; an honest inventory of the experimental line (AgentHarness,experimental/,chord, CBOR protocol,pi-durable) and the design trade-offs each choice costs; plus a file map for anyone about to edit code. Both READMEs link to it (the guide itself is written in Chinese, matchingTODO.md/DEVELOPMENT.md).
Changed
- Sub-project
.pimigrated from a symlink to a real directory with resource references (2026-10-30 global rule revision). Why: the previous setup symlinked this repo's.piwholesale to~/Developer/FullStackEngineerAgent/.pi, which conflated sharing with ownership — any file written into.pihere landed directly in the Agent project, polluting every sibling sub-project and showing up in that project's git history. Copying the resources instead was never an option either:AGENTS.mdhas no include mechanism, so a copy-based superset inevitably drifts from the Agent side. What changed: (1) the.pi → ../FullStackEngineerAgent/.pisymlink is gone, replaced by a real.pi/directory owned by this repo; (2) a new.pi/settings.jsonreferences the Agent project'sextensions/skills/prompts/themesdirectories by path and keeps the same-named local directories (local resources are auto-discovered, so they need no settings entry); (3) theAGENTS.md → ../FullStackEngineerAgent/AGENTS.mdsymlink is unchanged, keeping the identity layer aligned rather than forked. Rule: this repo's.pi/is append-only (own resource directories,.pi/APPEND_SYSTEM.md); it must not restate or override the base rules, and project-specific rules go intoAPPEND_SYSTEM.md— neverSYSTEM.md, which replaces the whole system prompt and would wipe out the agent identity. See~/.pi/agent/docs/agents-registry.md, section “智能体专属文件归属与子项目映射(2026-10-30 修订)”.
pi-harness 0.0.7
Highlights
- Unscoped package names (#12): every workspace package dropped the
@earendil-works/scope (pi-coding-agent,pi-ai,pi-tui,pi-agent-core,chord, and the rest). Distribution stays on GitHub Releases (self-contained tarball and binaries); thepicommand,.piconfig directory,PI_*environment variables, and release asset names are unchanged. Existing extensions that import the old scoped names keep working through the loader compatibility aliases. - Editor select-all (#10):
Cmd+A(super+a) selects the whole prompt;backspace/deleteclears it, typing replaces it, and cursor movement, a mouse click, orescapecancels the selection. Terminal pass-through setup is documented for Ghostty, iTerm2, kitty, WezTerm, and the VS Code integrated terminal. - Subscription marker for API-key plans (#9): the footer shows
(sub)for providers that declareApiKeyAuth.isSubscription, including extension-registered plans such asvolcengine-agent-plan; thekimi-codingprovider-name special case is gone. - Startup model race fixed (#11):
ModelRuntimeavailability refreshes now publish in publication order instead of start order, so a fresh session no longer occasionally ignoresdefaultProvider/defaultModeland falls back to another provider's default model. - Upstream model catalog alignment: test model references, runtime assertions, and the
github-copilotdefault model (gpt-6.1-sol) were refreshed for the current upstream catalog.
Install
- npm-layout tarball: https://github.com/xhqing/pi-harness/releases/download/v0.0.7/pi-coding-agent-0.0.7.tgz
- Prebuilt binaries for macOS (arm64 / x64), Linux (x64 / arm64), and Windows (x64 / arm64) are attached below. Verify them with
SHA256SUMS.
pi 0.0.6
The [Extensions] startup listing is grouped by source scope (like [Skills]), and the build and test suite now follows the refreshed upstream model catalog.
Added
- The default (collapsed)
[Extensions]startup listing now groups extensions by source scope — one line per non-empty scope (project:/user:/path:), names sorted alphabetically, package-sourced extensions shown under their scope with plain names — matching the existing[Skills]grouping; the expanded (Ctrl+O /--verbose) per-path listing and the other sections' compact lists are unchanged (#28).
Fixed
- Build and tests are aligned with the refreshed upstream model catalog: the OpenCode Go provider now supports
google-generative-aimodels,defaultModelPerProvider.nvidiapoints atnvidia/nemotron-3-ultra-550b-a55b, and stale test model references were updated (#30).
pi 0.0.5
Agent-exclusive files removed; the project guide and upstream development rules moved to DEVELOPMENT.md.
Changed
- Per the 2026-10-12 policy,
CLAUDE.mdand the project-level.pi/directory are removed; the project guide, the upstream development rules and the former.pi/skillsdocs now live inDEVELOPMENT.md.
pi 0.0.4
On-demand prereleases, the grouped [Skills] startup listing, and model-catalog fixture fixes.
Added
- The default (collapsed)
[Skills]startup listing now groups skills by source scope — one line per non-empty scope (project:/user:/path:), names sorted alphabetically, package-sourced (npm:/git:) skills shown under their scope with plain names; the expanded (Ctrl+O /--verbose) per-path listing and the other sections' compact lists are unchanged (#22).
Changed
.github/workflows/auto-rc.yml→.github/workflows/prerelease.yml: prereleases are now cut on demand (workflow_dispatch) instead of automatically whenever main CI went green; the pipeline was renamed and kept rather than deleted, and it builds the same six-platform binary set on request. Theworkflow_run-specific steps (skip-superseded-runs, docs-only skip) were dropped.scripts/build-binaries.shand.github/workflows/build-binaries.yml: comments no longer reference the removed auto-rc pipeline.TODO.md/TODO-archive.md: T4 archived as updated (the v0.0.3 release resolved thereleases/latestpollution half), T5 registered for the remaining update-chain gaps, T1 archived as completed (the chordspliceItemschunk-size fix restored the delta test suite to green).CLAUDE.md: the attached Atlas sub-project list synced twice — mp4-player registered as a new sub-project, then zcode-cli / cmux-launcher marked as short-term shelved (2026-10-09).
Fixed
- Stale model-catalog test fixtures updated after a models.dev refresh: the Together
deepseek-ai/DeepSeek-V4-Proreference now targetsdeepseek-ai/DeepSeek-V4-Pro-0813, and the moonshotai / moonshotai-cn Kimi K3cacheWriteprice fixture is now3(#19).