Skip to content

Releases

pi-harness 0.0.13

Choose a tag to compare

@github-actions github-actions released this 25 Nov 08:07
6c4bf8b

Changed

  • AGENTS.md role 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/ai rebuilds providers/data/ from models.dev on every build, and upstream retired devstral-medium-latest, pixtral-12b, OpenCode's kimi-k2.6, Together's MiniMaxAI/MiniMax-M3 and Copilot's claude-opus-5, which broke the required build-check-test check for every pull request. What changed: Mistral tests use mistral-medium-latest / ministral-14b-latest, OpenCode's Kimi test uses kimi-k3 (the dead Kimi K2.6 thinking special case is gone), Together uses MiniMaxAI/MiniMax-M3.1-Flash, Copilot uses claude-opus-5.5, the Copilot assertions now point at gpt-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 to mistral-medium-latest and kimi-k3.

pi-harness 0.0.12

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:25
1e6c0fb

Added

  • Cursor color is now configurable, so pi-alt can stand out with a blue bar against pi's green one (#79, 2026-11-23). Why: both identities run on the same harness, but pi uses cursorStyle: "hardware" and therefore the terminal's own caret (configured locally as a 300%-thick bar), while pi-alt fell 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 new cursorColor setting (#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. The pi-alt identity only changes its own settings.json (cursorStyle: "hardware" plus cursorColor); pi behavior is unchanged.

pi-harness 0.0.11

Choose a tag to compare

@github-actions github-actions released this 23 Nov 07:39
ede97c5

Fixed

  • pi-alt no longer replays the inherited changelog on every start (#75, 2026-11-23). Why: this fork's packages/coding-agent/CHANGELOG.md keeps 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 with lastChangelogVersion at 0.0.10 every 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 than lastVersion and not newer than currentVersion (both comparisons go through compareVersions); the single call site, getChangelogForDisplay(), passes VERSION. The /changelog command is unchanged and still shows the full history on demand. Regression tests: packages/coding-agent/test/changelog.test.ts pins 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

Choose a tag to compare

@github-actions github-actions released this 16 Nov 09:26
7477065

Fixed

  • Build Binaries can 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 upstream publish-npm -> announce-pi-dev-release chain. publish-npm could 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 extract read only packages/coding-agent/CHANGELOG.md, so entries recorded in the root CHANGELOG.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: the publish-npm and announce-pi-dev-release jobs are gone, publish-github-release waits only on stage-github-release, and cleanup-draft-github-release reacts 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 the gh release edit --draft=false step are unchanged. release-notes.mjs extract now walks several sources in order, the root CHANGELOG.md first and packages/coding-agent/CHANGELOG.md as 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.mjs and scripts/release-notes.test.mjs, run by npm run test:scripts.

  • Generated brand directories no longer count as workspace packages (#67, 2026-11-15). Why: pi-alt creates packages/coding-agent/brands/pi-alt/package.json at runtime, and scripts/package-workspaces.mjs walks every directory under packages/ 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 run pi-alt once. What changed: brands joined dist and node_modules in SKIPPED_DIRECTORIES, and a new scripts/package-workspaces.test.mjs pins the skip list while confirming that nested workspace packages (for example coding-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 renamed deepseek-v4-flash to deepseek-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-latest from input 3 / output 15 to 2 / 10, and fireworks-models.test.ts hardcoded the old numbers, which turned the required build-check-test red for every pull request. Context window, token limits and prices are upstream data. What changed: those assertions now require positive numbers and maxTokens <= contextWindow instead 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

Choose a tag to compare

@xhqing xhqing released this 15 Nov 12:54
bb259e8

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 of dist drifts in version and has to be upgraded twice, while simply overriding PI_CODING_AGENT_DIR leaves both identities reading the same project-level .pi/. What changed: bin/pi-alt.js is shipped source (not a build artifact); on every start it idempotently provisions <package root>/brands/pi-alt/ with a real package.json (piConfig: { name: "pi-alt", configDir: ".pi-alt" }, name / version synced from the main package) plus relative symlinks to dist, docs, examples, README.md, and CHANGELOG.md, sets PI_PACKAGE_DIR to that directory, and imports the shared dist/bundle/cli.js in the same process. Both identities therefore run one build and pi update --self upgrades both. pi-alt keeps 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 _, so pi-alt gets the shell-usable PI_ALT_CODING_AGENT_DIR / PI_ALT_CODING_AGENT_SESSION_DIR instead of PI-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 retired All Contributors wording, 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, and README_cn.md now name the forks copyright holder as xhqing and contributors, keeping the upstream authors line untouched.

v0.0.8

Choose a tag to compare

@xhqing xhqing released this 05 Nov 09:10
83f5f40

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.md is the maintenance rulebook for this fork, and the user-facing pages under packages/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, matching TODO.md / DEVELOPMENT.md).

Changed

  • Sub-project .pi migrated from a symlink to a real directory with resource references (2026-10-30 global rule revision). Why: the previous setup symlinked this repo's .pi wholesale to ~/Developer/FullStackEngineerAgent/.pi, which conflated sharing with ownership — any file written into .pi here 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.md has no include mechanism, so a copy-based superset inevitably drifts from the Agent side. What changed: (1) the .pi → ../FullStackEngineerAgent/.pi symlink is gone, replaced by a real .pi/ directory owned by this repo; (2) a new .pi/settings.json references the Agent project's extensions / skills / prompts / themes directories by path and keeps the same-named local directories (local resources are auto-discovered, so they need no settings entry); (3) the AGENTS.md → ../FullStackEngineerAgent/AGENTS.md symlink 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 into APPEND_SYSTEM.md — never SYSTEM.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

Choose a tag to compare

@xhqing xhqing released this 23 Oct 07:20
0ff99f3

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); the pi command, .pi config 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 / delete clears it, typing replaces it, and cursor movement, a mouse click, or escape cancels 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 declare ApiKeyAuth.isSubscription, including extension-registered plans such as volcengine-agent-plan; the kimi-coding provider-name special case is gone.
  • Startup model race fixed (#11): ModelRuntime availability refreshes now publish in publication order instead of start order, so a fresh session no longer occasionally ignores defaultProvider / defaultModel and falls back to another provider's default model.
  • Upstream model catalog alignment: test model references, runtime assertions, and the github-copilot default model (gpt-6.1-sol) were refreshed for the current upstream catalog.

Install

pi 0.0.6

Choose a tag to compare

@xhqing xhqing released this 15 Oct 14:44
0aa48b3

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-ai models, defaultModelPerProvider.nvidia points at nvidia/nemotron-3-ultra-550b-a55b, and stale test model references were updated (#30).

pi 0.0.5

Choose a tag to compare

@xhqing xhqing released this 12 Oct 15:27
726f290

Agent-exclusive files removed; the project guide and upstream development rules moved to DEVELOPMENT.md.

Changed

  • Per the 2026-10-12 policy, CLAUDE.md and the project-level .pi/ directory are removed; the project guide, the upstream development rules and the former .pi/skills docs now live in DEVELOPMENT.md.

pi 0.0.4

Choose a tag to compare

@xhqing xhqing released this 09 Oct 14:05
e4ec201

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. The workflow_run-specific steps (skip-superseded-runs, docs-only skip) were dropped.
  • scripts/build-binaries.sh and .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 the releases/latest pollution half), T5 registered for the remaining update-chain gaps, T1 archived as completed (the chord spliceItems chunk-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-Pro reference now targets deepseek-ai/DeepSeek-V4-Pro-0813, and the moonshotai / moonshotai-cn Kimi K3 cacheWrite price fixture is now 3 (#19).