@bastani/atomic 0.9.64-alpha.1 → 0.9.65-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/README.md +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/subagent/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +267 -90
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/core/agent-session-state.d.ts.map +1 -1
- package/dist/core/agent-session-state.js +26 -0
- package/dist/core/agent-session-state.js.map +1 -1
- package/dist/core/model-routing-constraints.js +1 -1
- package/dist/core/model-routing-constraints.js.map +1 -1
- package/dist/core/tasks/completion.d.ts +9 -2
- package/dist/core/tasks/completion.d.ts.map +1 -1
- package/dist/core/tasks/completion.js +16 -0
- package/dist/core/tasks/completion.js.map +1 -1
- package/dist/core/tasks/contracts.d.ts +8 -1
- package/dist/core/tasks/contracts.d.ts.map +1 -1
- package/dist/core/tasks/contracts.js.map +1 -1
- package/dist/core/tasks/heartbeat-notice.d.ts +2 -0
- package/dist/core/tasks/heartbeat-notice.d.ts.map +1 -1
- package/dist/core/tasks/heartbeat-notice.js +4 -1
- package/dist/core/tasks/heartbeat-notice.js.map +1 -1
- package/dist/core/tasks/heartbeat.d.ts.map +1 -1
- package/dist/core/tasks/heartbeat.js +1 -0
- package/dist/core/tasks/heartbeat.js.map +1 -1
- package/dist/core/tasks/supervisor.d.ts.map +1 -1
- package/dist/core/tasks/supervisor.js +6 -0
- package/dist/core/tasks/supervisor.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/docs/subagents/reference.md +8 -2
- package/docs/subagents.md +1 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.65] - 2026-11-02
|
|
6
|
+
|
|
7
|
+
Subagents launched on a named model stay on that model or fail clearly, and every report names the model a subagent actually ran on.
|
|
8
|
+
|
|
9
|
+
- **A named model stays named:** a subagent launched on a concrete model no longer moves to your chat model or to another family's fallback when that model fails at the start, partway through or on a context overflow. It runs only on that model and its agent's own fallbacks that its `modelConstraints` allow, and otherwise fails with an error naming the model and the reason ([#4194](https://github.com/bastani-inc/atomic/pull/4194))
|
|
10
|
+
- **Truthful model reports:** a session that falls back tells the new model its own name and keeps the subagent's prompt, role and tools, and a subagent's result, completion notice, run status and task heartbeat name the model it ran on beside the one it asked for ([#4194](https://github.com/bastani-inc/atomic/pull/4194))
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- A subagent launched on a concrete model, such as `model: "openai/gpt-5.5:high"`, no longer moves to a model the launch did not choose when that model fails. Before, a provider error at the start, a transient error partway through the task, or a context overflow that compaction could not resolve moved the child to your chat model or to a settings `fallbackModels` entry of another family, even one its `modelConstraints.allowedModels` excluded. The child now runs only that model and its agent's own `fallbackModels` that its `modelConstraints` allow. When none is left, it fails with an error that names the model and the provider's reason and says no other model was used. A named model that is not available fails the launch the same way instead of starting the child on your chat model, and a child restored after a restart keeps the model its launch named, continuing on a fallback only while its constraints still allow it. `modelConstraints` from the call and the agent definition also apply to the model a child that names none starts on, to a fallback that starts in place of an unavailable model at the effort it would run at, and to the settings chain. A child whose last turn ended in a model error is now reported as failed, not as completed with empty output ([#4188](https://github.com/bastani-inc/atomic/issues/4188))
|
|
15
|
+
- A session that falls back to another model now tells that model its own name. Before, the system prompt kept the name of the model the turn started on when a subagent's prompt was transformed or a `before_agent_start` extension had built the prompt, so a subagent that fell back reported the model it was launched on. The child keeps its own prompt, role and tools. A subagent's result, its completion notice, run status and the task heartbeat also name the model it ran on beside the one its launch asked for, for example `Model: ran on anthropic/claude-opus-4-8, not the requested openai/gpt-5.5:high.` ([#4188](https://github.com/bastani-inc/atomic/issues/4188))
|
|
16
|
+
|
|
17
|
+
## [0.9.65-alpha.1] - 2026-11-02
|
|
18
|
+
|
|
19
|
+
Subagents launched on a named model stay on that model or fail clearly, and every report names the model a subagent actually ran on.
|
|
20
|
+
|
|
21
|
+
- **A named model stays named:** a subagent launched on a concrete model no longer moves to your chat model or to another family's fallback when that model fails at the start, partway through or on a context overflow. It runs only on that model and its agent's own fallbacks that its `modelConstraints` allow, and otherwise fails with an error naming the model and the reason ([#4194](https://github.com/bastani-inc/atomic/pull/4194))
|
|
22
|
+
- **Truthful model reports:** a session that falls back tells the new model its own name and keeps the subagent's prompt, role and tools, and a subagent's result, completion notice, run status and task heartbeat name the model it ran on beside the one it asked for ([#4194](https://github.com/bastani-inc/atomic/pull/4194))
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- A subagent launched on a concrete model, such as `model: "openai/gpt-5.5:high"`, no longer moves to a model the launch did not choose when that model fails. Before, a provider error at the start, a transient error partway through the task, or a context overflow that compaction could not resolve moved the child to your chat model or to a settings `fallbackModels` entry of another family, even one its `modelConstraints.allowedModels` excluded. The child now runs only that model and its agent's own `fallbackModels` that its `modelConstraints` allow. When none is left, it fails with an error that names the model and the provider's reason and says no other model was used. A named model that is not available fails the launch the same way instead of starting the child on your chat model, and a child restored after a restart keeps the model its launch named, continuing on a fallback only while its constraints still allow it. `modelConstraints` from the call and the agent definition also apply to the model a child that names none starts on, to a fallback that starts in place of an unavailable model at the effort it would run at, and to the settings chain. A child whose last turn ended in a model error is now reported as failed, not as completed with empty output ([#4188](https://github.com/bastani-inc/atomic/issues/4188))
|
|
27
|
+
- A session that falls back to another model now tells that model its own name. Before, the system prompt kept the name of the model the turn started on when a subagent's prompt was transformed or a `before_agent_start` extension had built the prompt, so a subagent that fell back reported the model it was launched on. The child keeps its own prompt, role and tools. A subagent's result, its completion notice, run status and the task heartbeat also name the model it ran on beside the one its launch asked for, for example `Model: ran on anthropic/claude-opus-4-8, not the requested openai/gpt-5.5:high.` ([#4188](https://github.com/bastani-inc/atomic/issues/4188))
|
|
28
|
+
|
|
5
29
|
## [0.9.64] - 2026-11-02
|
|
6
30
|
|
|
7
31
|
A quiet chat when workflows log or are quit in the terminal UI, and Claude sessions that survive a cross-provider fallback.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.65-alpha.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -355,7 +355,7 @@ Important fields:
|
|
|
355
355
|
| `tools` | Builtin tool allowlist, comma-separated (`tools: read, bash`) or YAML array-form (`tools: [read, bash]`, or a `tools:` block list) — both spellings produce the same tool set. `mcp:` entries select direct MCP tools when `pi-mcp-adapter` is installed. |
|
|
356
356
|
| `extensions` | Omitted means normal extensions; empty means no optional extensions; comma-separated values allowlist specific optional extensions. Atomic still loads mandatory ordinary Intercom. |
|
|
357
357
|
| `model` | Default model. Bare ids prefer the current provider when possible, then unique registry matches. When omitted — with no `fallbackModels` and no per-call model override — the subagent inherits the dispatching session's active model and thinking level; a declared `thinking` still takes precedence over the inherited level. |
|
|
358
|
-
| `fallbackModels` | Ordered backup models for provider/model failures such as quota, auth, timeout, or unavailable model.
|
|
358
|
+
| `fallbackModels` | Ordered backup models for provider/model failures such as quota, auth, timeout, or unavailable model. A child that runs a concrete model, this agent's `model` or a call's `model`, falls back only to these entries that its `modelConstraints` allow. Otherwise the current user-selected model is appended as the last fallback and de-duplicated. Ordinary task failures do not trigger fallback. |
|
|
359
359
|
| `thinking` | Appended as a `:level` suffix at runtime unless a suffix is already present. |
|
|
360
360
|
| `systemPromptMode` | `replace` by default; `append` keeps Pi’s base prompt. |
|
|
361
361
|
| `inheritProjectContext` | Keeps or strips inherited project instruction blocks. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.65-alpha.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
|
|
6
6
|
"contributors": [
|
|
@@ -77,7 +77,7 @@ Builtin agents load at the lowest priority. Project agents override user agents,
|
|
|
77
77
|
| `debugger` | Reproduce, diagnose, and fix failing behavior | read, edit, write, search, find, ls, bash, web_search, fetch_content, get_search_content, intercom, contact_supervisor, todo | **Writer.** Has the `tdd`, `agent-browser`, and `tmux` skills. Can coordinate with the parent; inspect-only mode requires an explicit instruction. |
|
|
78
78
|
| `worker` | Implement normal tasks and approved orchestrator handoffs | read, edit, write, search, find, ls, bash, web_search, fetch_content, get_search_content, intercom, contact_supervisor, todo | **Writer.** Has the `tdd`, `agent-browser`, and `tmux` skills. Defaults to forked context; escalates unapproved decisions instead of guessing. |
|
|
79
79
|
|
|
80
|
-
Each builtin defaults to `model: "auto"`, with no pinned fallback chain. The router selects a model and effort before launch. Inspect effective configuration with `subagent({ action: "get", agent: "debugger" })`. Normal execution fallback remains subject to routing constraints and does not change the main-chat model. Override per run with a concrete model:
|
|
80
|
+
Each builtin defaults to `model: "auto"`, with no pinned fallback chain. The router selects a model and effort before launch. Inspect effective configuration with `subagent({ action: "get", agent: "debugger" })`. Normal execution fallback remains subject to routing constraints and does not change the main-chat model. A concrete model runs as named: its child falls back only to the agent's own `fallbackModels` that `modelConstraints` allow, never to your chat model or the settings chain, and fails with an error naming the model when none is left. A result that ran on another model says `Model: ran on <model>, not the requested <model>`. Override per run with a concrete model:
|
|
81
81
|
|
|
82
82
|
```typescript
|
|
83
83
|
subagent({ agent: "codebase-analyzer", task: "Trace the auth flow", model: "anthropic/claude-sonnet-4" })
|