A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
prepare v0.4.0 release (#570)
Seth Karten7568e1141139
diff --git a/package-lock.json b/package-lock.jsonindex 2e4e4b2563..afc7d54e2a 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "prime-agent",- "version": "0.3.3",+ "version": "0.4.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "prime-agent",- "version": "0.3.3",+ "version": "0.4.0","workspaces": ["packages/*","packages/coding-agent/examples/extensions/with-deps",@@ -15,7 +15,7 @@"packages/coding-agent/examples/extensions/sandbox"],"dependencies": {- "@earendil-works/pi-coding-agent": "^0.3.3",+ "@earendil-works/pi-coding-agent": "^0.4.0","get-east-asian-width": "^1.6.0"},"devDependencies": {@@ -5268,10 +5268,10 @@},"packages/agent": {"name": "@earendil-works/pi-agent-core",- "version": "0.3.3",+ "version": "0.4.0","license": "MIT","dependencies": {- "@earendil-works/pi-ai": "^0.3.3",+ "@earendil-works/pi-ai": "^0.4.0","typebox": "^1.1.24"},"devDependencies": {@@ -5298,7 +5298,7 @@},"packages/ai": {"name": "@earendil-works/pi-ai",- "version": "0.3.3",+ "version": "0.4.0","license": "MIT","dependencies": {"@anthropic-ai/sdk": "^0.91.1",@@ -5306,7 +5306,7 @@"@google/genai": "^1.40.0","@mistralai/mistralai": "^2.2.0","chalk": "^5.6.2",- "openai": "^6.47.0",+ "openai": "6.47.0","partial-json": "^0.1.7","proxy-agent": "^6.5.0","typebox": "^1.1.24",@@ -5340,13 +5340,13 @@},"packages/coding-agent": {"name": "@earendil-works/pi-coding-agent",- "version": "0.3.3",+ "version": "0.4.0","hasInstallScript": true,"license": "MIT","dependencies": {- "@earendil-works/pi-agent-core": "^0.3.3",- "@earendil-works/pi-ai": "^0.3.3",- "@earendil-works/pi-tui": "^0.3.3",+ "@earendil-works/pi-agent-core": "^0.4.0",+ "@earendil-works/pi-ai": "^0.4.0",+ "@earendil-works/pi-tui": "^0.4.0","@silvia-odwyer/photon-node": "^0.3.4","chalk": "^5.5.0","cli-highlight": "^2.1.11",@@ -5489,7 +5489,7 @@},"packages/tui": {"name": "@earendil-works/pi-tui",- "version": "0.3.3",+ "version": "0.4.0","license": "MIT","dependencies": {"@types/mime-types": "^3.0.1",diff --git a/package.json b/package.jsonindex 037c4834a1..67513c90d4 100644--- a/package.json+++ b/package.json@@ -48,9 +48,9 @@"engines": {"node": ">=22.8.0"},- "version": "0.3.3",+ "version": "0.4.0","dependencies": {- "@earendil-works/pi-coding-agent": "^0.3.3",+ "@earendil-works/pi-coding-agent": "^0.4.0","get-east-asian-width": "^1.6.0"},"overrides": {diff --git a/packages/agent/CHANGELOG.md b/packages/agent/CHANGELOG.mdindex f397558b0b..ea14c778e3 100644--- a/packages/agent/CHANGELOG.md+++ b/packages/agent/CHANGELOG.md@@ -2,6 +2,12 @@## [Unreleased]+## [0.4.0] - 2026-08-01++### Added++- Added the synchronous `shouldStopBeforeTurn` agent-loop hook, allowing hosts to end after a completed turn without starting another provider call.+## [0.3.3] - 2026-07-23- Fixed recovery event listener failures replacing the original agent lifecycle failure.diff --git a/packages/agent/package.json b/packages/agent/package.jsonindex 07be22e355..c3c0730416 100644--- a/packages/agent/package.json+++ b/packages/agent/package.json@@ -1,6 +1,6 @@{"name": "@earendil-works/pi-agent-core",- "version": "0.3.3",+ "version": "0.4.0","description": "General-purpose agent with transport abstraction, state management, and attachment support","type": "module","main": "./dist/index.js",@@ -17,7 +17,7 @@"prepublishOnly": "npm run clean && npm run build"},"dependencies": {- "@earendil-works/pi-ai": "^0.3.3",+ "@earendil-works/pi-ai": "^0.4.0","typebox": "^1.1.24"},"keywords": [diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.mdindex 37fb917014..27ee2f462c 100644--- a/packages/ai/CHANGELOG.md+++ b/packages/ai/CHANGELOG.md@@ -2,7 +2,12 @@## [Unreleased]-- Changed the model catalog snapshot to the current upstream catalogs: added Claude Opus 5 (Anthropic direct, Bedrock, OpenRouter, Vercel AI Gateway, Copilot, Prime Inference), Gemini 3.5/3.6 flash models, Kimi K3 variants, refreshed Prime Inference to the live catalog (103 models), and removed the discontinued `gpt-5-chat`, `gpt-5-codex`, and `laguna-m.1` routes.+## [0.4.0] - 2026-08-01++### Changed++- Updated the model catalog snapshot with Claude Opus 5 across supported providers, Gemini 3.5/3.6 Flash models, Kimi K3 variants, and the current 103-model Prime Inference catalog; removed the discontinued `gpt-5-chat`, `gpt-5-codex`, and `laguna-m.1` routes.+- Corrected generated catalog metadata for Opus 5 adaptive thinking, Copilot Claude routing, gateway reasoning tags, Kimi K3 variants, and unsupported Google and batch routes; excluded Gemini Live, Deep Research, and Computer Use models.## [0.3.3] - 2026-07-23diff --git a/packages/ai/package.json b/packages/ai/package.jsonindex 1bf11cd6ae..ed8f93dd85 100644--- a/packages/ai/package.json+++ b/packages/ai/package.json@@ -1,6 +1,6 @@{"name": "@earendil-works/pi-ai",- "version": "0.3.3",+ "version": "0.4.0","description": "Unified LLM API with automatic model discovery and provider configuration","type": "module","main": "./dist/index.js",diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.mdindex f70a541d76..55f5f64b9a 100644--- a/packages/coding-agent/CHANGELOG.md+++ b/packages/coding-agent/CHANGELOG.md@@ -2,22 +2,34 @@## [Unreleased]-- Fixed `/tree` overflowing the daemon serializer on very deep sessions by transferring a flat session tree.--- Added starting a new session directly from the agents view with `ctrl+n`.-- Added queueing a reply as a follow-up with `alt+enter` in the agents-view reply composer; plain Enter now steers a streaming agent.-- Added session-owned slash commands (`/compact`, `/refine`, `/goal`, `/autonomous`) with autocomplete to the agents-view reply composer; other built-in commands are rejected with guidance instead of being sent as prompt text.-- Added `/name` and `/kill` view commands to the agents view reply composer, acting on its armed target; the search bar stays pure search.-- Added `/new` support for an optional stable session name and initial prompt.-- Removed the `/resume` command and bare `--resume`; browse sessions with left-arrow from a chat (daemon view), and use `--resume <session-id|path>` for direct resumes.-- Fixed `prime-agent agents` opening a new chat when running with a process-local session.-- Changed collapsed edit and IPython tool calls to show compact per-file line-change summaries while keeping full diffs available when expanded.-- Changed bare `/effort` to open a selector for the current model's supported reasoning levels.-- Changed session search to rank exact name and first-message matches before prefix, substring, and stricter transcript fuzzy matches.-- Fixed daemon startup failing when an interrupted supervisor left an empty ownership directory.-- Fixed `/effort xhigh` and `/effort max` being rejected as unknown levels when no model was active yet.-- Fixed selected rows in the agents view, child agent panel, and selectors being nearly invisible on terminals whose background closely matches the `selectedBg` theme color; the selection highlight now adapts to keep a minimum contrast against the detected terminal background.-- Fixed startup blocking on a private Prime Inference model authorization request; the authorization is now cached next to `models.json` and stale entries refresh in the background.+## [0.4.0] - 2026-08-01++### Breaking Changes++- Replaced the recursive daemon `get_session_tree` response with flat nodes linked by `parentId` (protocol 6); clients must support the new response shape.+- Removed `/resume` and bare `--resume`; browse sessions with left-arrow from a daemon chat, or use `--resume <session-id|path>` for a direct resume.++### Added++- Added `ctrl+n` to start a session from Agents View, and `alt+enter` to queue a reply as a follow-up while Enter steers a streaming session.+- Added session-owned `/compact`, `/refine`, `/goal`, and `/autonomous` commands with autocomplete to the Agents View reply composer, plus target-scoped `/name` and `/kill` commands.+- Added optional stable session names and initial prompts to `/new`.++### Changed++- Changed collapsed edit and IPython calls to show compact per-file line-change summaries while retaining full expanded diffs.+- Changed bare `/effort` to open a selector of the current model's supported reasoning levels, and removed token estimates from reasoning-effort displays.+- Improved session search ranking to prefer exact session-name and first-message matches before prefix, substring, and transcript fuzzy matches.++### Fixed++- Fixed deeply nested `/tree` sessions overflowing the daemon serializer by transferring and rebuilding the session tree iteratively.+- Fixed `prime-agent agents` opening a new chat for a process-local session.+- Fixed daemon startup after an interrupted supervisor leaves an empty ownership directory.+- Fixed `/effort xhigh` and `/effort max` being rejected before a model is active.+- Fixed IPython tracebacks emitting ANSI color codes.+- Fixed selected rows and selectors becoming nearly invisible on terminals whose background matches the selected theme color.+- Fixed startup waiting on private Prime Inference model authorization by caching authorization locally and refreshing stale entries in the background.## [0.3.3] - 2026-07-23diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.jsonindex 3d687e6aa5..8564bfae3d 100644--- a/packages/coding-agent/package.json+++ b/packages/coding-agent/package.json@@ -1,6 +1,6 @@{"name": "@earendil-works/pi-coding-agent",- "version": "0.3.3",+ "version": "0.4.0","description": "Coding agent CLI with IPython-backed tools and session management","type": "module","piConfig": {@@ -46,9 +46,9 @@"bundle": "node scripts/bundle.mjs"},"dependencies": {- "@earendil-works/pi-agent-core": "^0.3.3",- "@earendil-works/pi-ai": "^0.3.3",- "@earendil-works/pi-tui": "^0.3.3",+ "@earendil-works/pi-agent-core": "^0.4.0",+ "@earendil-works/pi-ai": "^0.4.0",+ "@earendil-works/pi-tui": "^0.4.0","@silvia-odwyer/photon-node": "^0.3.4","chalk": "^5.5.0","cli-highlight": "^2.1.11",diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.mdindex 26fade3061..fc2a218c56 100644--- a/packages/tui/CHANGELOG.md+++ b/packages/tui/CHANGELOG.md@@ -2,6 +2,8 @@## [Unreleased]+## [0.4.0] - 2026-08-01+## [0.3.3] - 2026-07-23- Changed `SelectList` selection cursor from `→` to `›` for consistency with tree and user-message selectors.diff --git a/packages/tui/package.json b/packages/tui/package.jsonindex aeff8273fb..f2101ce1a7 100644--- a/packages/tui/package.json+++ b/packages/tui/package.json@@ -1,6 +1,6 @@{"name": "@earendil-works/pi-tui",- "version": "0.3.3",+ "version": "0.4.0","description": "Terminal User Interface library with differential rendering for efficient text-based applications","type": "module","main": "dist/index.js",