@bastani/atomic 0.9.20-alpha.6 → 0.9.20-alpha.7
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 +32 -0
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +3 -3
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +18 -8
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +21 -0
- package/dist/builtin/workflows/README.md +5 -19
- package/dist/builtin/workflows/builtin/{chunk-deq63d9p.js → chunk-7bzcersz.js} +30 -19
- package/dist/builtin/workflows/builtin/goal.js +1 -1
- package/dist/builtin/workflows/builtin/index.js +1 -1
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/skills/prompt-engineer/SKILL.md +10 -9
- package/dist/builtin/workflows/skills/prompt-engineer/references/advanced_patterns.md +4 -4
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5.md +96 -23
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_1.md +75 -27
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_4_8.md +72 -26
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5.md +58 -22
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +118 -0
- package/dist/builtin/workflows/skills/prompt-engineer/references/claude_sonnet_5.md +70 -29
- package/dist/builtin/workflows/skills/prompt-engineer/references/core_prompting.md +1 -1
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_5.md +95 -32
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_6.md +79 -30
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +139 -0
- package/dist/builtin/workflows/skills/prompt-engineer/references/quality_improvement.md +4 -4
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +247 -603
- package/dist/builtin/workflows/src/index.js +17 -7
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +3 -1
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +3 -0
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +4 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +6 -0
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-tasks.d.ts +9 -0
- package/dist/core/agent-session-tasks.d.ts.map +1 -1
- package/dist/core/agent-session-tasks.js +68 -16
- package/dist/core/agent-session-tasks.js.map +1 -1
- package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
- package/dist/core/agent-session-tool-registry.js +9 -21
- package/dist/core/agent-session-tool-registry.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +2 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -2
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/execution-model-router.d.ts +14 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +67 -21
- package/dist/core/execution-model-router.js.map +1 -1
- package/dist/core/fast-model-variants.d.ts +16 -0
- package/dist/core/fast-model-variants.d.ts.map +1 -1
- package/dist/core/fast-model-variants.js +27 -0
- package/dist/core/fast-model-variants.js.map +1 -1
- package/dist/core/model-runtime.d.ts +13 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +16 -1
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/sdk-types.d.ts +5 -0
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +4 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-types.js.map +1 -1
- package/dist/core/structured-output/index.d.ts +1 -0
- package/dist/core/structured-output/index.d.ts.map +1 -1
- package/dist/core/structured-output/index.js +34 -26
- package/dist/core/structured-output/index.js.map +1 -1
- package/dist/core/structured-output/jev-client.d.ts +9 -0
- package/dist/core/structured-output/jev-client.d.ts.map +1 -1
- package/dist/core/structured-output/jev-client.js +57 -3
- package/dist/core/structured-output/jev-client.js.map +1 -1
- package/dist/core/structured-output/jev.d.ts.map +1 -1
- package/dist/core/structured-output/jev.js +35 -53
- package/dist/core/structured-output/jev.js.map +1 -1
- package/dist/core/structured-output/resolver.d.ts +32 -24
- package/dist/core/structured-output/resolver.d.ts.map +1 -1
- package/dist/core/structured-output/resolver.js +57 -9
- package/dist/core/structured-output/resolver.js.map +1 -1
- package/dist/core/structured-output/types.d.ts +8 -4
- package/dist/core/structured-output/types.d.ts.map +1 -1
- package/dist/core/structured-output/types.js.map +1 -1
- package/dist/core/tasks/child-command-owner.d.ts +34 -0
- package/dist/core/tasks/child-command-owner.d.ts.map +1 -0
- package/dist/core/tasks/child-command-owner.js +70 -0
- package/dist/core/tasks/child-command-owner.js.map +1 -0
- package/dist/core/tools/bash-pty-native.d.ts +5 -1
- package/dist/core/tools/bash-pty-native.d.ts.map +1 -1
- package/dist/core/tools/bash-pty-native.js +15 -7
- package/dist/core/tools/bash-pty-native.js.map +1 -1
- package/dist/core/tools/kill.d.ts +2 -2
- package/dist/core/tools/kill.d.ts.map +1 -1
- package/dist/core/tools/kill.js +3 -4
- package/dist/core/tools/kill.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/modes/interactive/interactive-auth-login.js +2 -4
- package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-auth.d.ts +16 -0
- package/dist/modes/interactive-engine/isolated-auth.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-auth.js +27 -0
- package/dist/modes/interactive-engine/isolated-auth.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -0
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +4 -1
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +2 -1
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +7 -2
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +3 -1
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.d.ts +2 -1
- package/dist/modes/rpc/rpc-provider-auth.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.js +2 -2
- package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/background-tasks.md +11 -2
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/first-session.md +2 -2
- package/docs/llama-cpp.md +2 -2
- package/docs/models/evals.md +47 -43
- package/docs/models/reference.md +1 -1
- package/docs/providers.md +11 -4
- package/docs/reference/cli.md +2 -2
- package/docs/rpc/examples.md +2 -0
- package/docs/sdk/reference.md +1 -1
- package/docs/sdk/structured-decisions.md +20 -14
- package/docs/settings.md +8 -8
- package/docs/skills.md +5 -1
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +1 -1
- package/docs/workflows/api-reference.md +5 -34
- package/docs/workflows/builtins.md +1 -1
- package/docs/workflows/operations.md +11 -77
- package/docs/workflows/reliable-design.md +14 -29
- package/docs/workflows.md +8 -7
- package/examples/rpc-client.ts +38 -0
- package/examples/rpc-extension-ui.ts +19 -5
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +65 -65
- package/package.json +7 -7
- package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.20-alpha.7] - 2026-09-22
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- The model-facing workflow tool no longer has a route action or a routing classifier step: the agent decides whether a workflow fits and runs a registered workflow by name. The router model setting now applies only to automatic workflow-stage and subagent model selection.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added inherited Claude Opus 5.5, GPT-6 Sol, and GPT-6 Luna support for GitHub Copilot.
|
|
14
|
+
- Added inherited GPT-6 Sol and GPT-6 Luna support for OpenAI API keys and OpenAI Codex subscriptions, including the `openai/gpt-6-sol-fast`, `openai/gpt-6-luna-fast`, `openai-codex/gpt-6-sol-fast`, and `openai-codex/gpt-6-luna-fast` Fast-mode choices.
|
|
15
|
+
- Recorded Artificial Analysis Intelligence Index and Cognition FrontierCode 1.1 results for GPT-6 Sol and GPT-6 Luna in the model evals used by automatic routing.
|
|
16
|
+
- Added Vercel AI Gateway and OpenCode Zen as Jev structured-decision providers (`vercel-ai-gateway/typesafe-ai/jev`, `opencode/jev-1.13`, `opencode/jev-1.13-free`) for the router model setting and SDK decisions, reusing each gateway's existing login or its AI_GATEWAY_API_KEY / OPENCODE_API_KEY environment key. Gateway model IDs, limits, and prices come from the models.dev decision catalog, and `getStructuredOutputProviders()` entries now carry the published context window and price.
|
|
17
|
+
- Added inherited Claude Opus 5.5 support for Anthropic with adaptive thinking and a 1M context window.
|
|
18
|
+
- Added Anthropic fast mode as selectable fast models: `anthropic/claude-opus-5-5-fast`, `anthropic/claude-opus-5-fast`, and `anthropic/claude-opus-4-8-fast`. Each sends the base model with Anthropic's `speed: "fast"` request field and fast-mode beta, for up to 2.5x faster output at twice the standard token rates, and works with both API keys and Claude subscription logins.
|
|
19
|
+
- Subagents can now run background `bash` and `powershell` commands instead of being refused with "Background bash observation requires a supported task owner". These shells appear in the parent's `/tasks` (the main chat's, or the current workflow stage's) and keep running after the subagent finishes. The subagent can wait on and `kill` only the shells it launched. Completion notices go to the subagent while it runs, then to the parent. Subagents still cannot launch other subagents.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Structured-decision requests (router and generic) now retry transient provider failures — connection errors and HTTP 408, 429 and 5xx — up to three times with exponential backoff, for both Jev and chat decision models, matching ordinary chat-provider retry defaults. Cancellation is never retried ([#3206](https://github.com/bastani-inc/atomic/issues/3206)).
|
|
24
|
+
- Any Jev routing failure now falls back to the current chat model when one exists, including explicitly pinned Jev router selections, missing or unresolvable Jev credentials, context-budget rejections, and oversized response bodies. Cancellation still never falls back ([#3206](https://github.com/bastani-inc/atomic/issues/3206)).
|
|
25
|
+
- Jev structured-decision responses are now accepted whenever every question names a known Choice option; reported model, usage, probabilities, confidence and answer types are advisory instead of grounds for rejection ([#3206](https://github.com/bastani-inc/atomic/issues/3206)).
|
|
26
|
+
- Recorded Artificial Analysis Intelligence Index and Cognition FrontierCode 1.1 results for Claude Opus 5.5 in the evals snapshot used by automatic model routing.
|
|
27
|
+
- Updated the inherited Pi runtime dependencies (`pi-agent-core`, `pi-client`, `pi-protocol`, `pi-tui`, `pi-telemetry`, and transitive `chord`) to 0.87.1.
|
|
28
|
+
- The Windows installer extracts the release archive with the native .NET `ZipFile` API instead of `Expand-Archive`, which processed the archive's ~19,000 entries at script speed under Windows PowerShell 5.1. Extraction is now several times faster; `Expand-Archive` remains only as a fallback when the compression assembly cannot load.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Fixed an API key saved with `/login` in an interactive session not reaching the running engine, so workflow routing and other engine-side work kept reporting `requires an API key` until Atomic was restarted. API-key logins are now persisted by the engine, like OAuth logins and `/logout`, and both sides report the provider consistently ([#3193](https://github.com/bastani-inc/atomic/issues/3193)).
|
|
33
|
+
- Fixed the RPC extension UI example to disable extensions with the supported `--no-extensions` flag and safely frame split UTF-8 output.
|
|
34
|
+
- The Windows installer now retries removing the previous version backup with a bounded backoff when a file inside it is briefly locked (for example by Defender or the search indexer), instead of leaving a `.backup-*` directory behind in the install root.
|
|
35
|
+
- Fixed a subagent launched from a workflow stage taking over the stage's task owner when it inspected its tasks, which could send the stage's background task completions to that subagent.
|
|
36
|
+
|
|
5
37
|
## [0.9.20-alpha.6] - 2026-09-22
|
|
6
38
|
|
|
7
39
|
### Breaking Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.7",
|
|
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": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@bastani/atomic": "*",
|
|
47
|
-
"@earendil-works/pi-tui": "^0.87.
|
|
47
|
+
"@earendil-works/pi-tui": "^0.87.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@bastani/atomic": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/mcp",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.7",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension that adapts MCP (Model Context Protocol) servers into the coding agent. Fork of: https://github.com/nicobailon/pi-mcp-adapter",
|
|
6
6
|
"contributors": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@bastani/atomic": "*",
|
|
35
35
|
"@bastani/pi-ai": "*",
|
|
36
|
-
"@earendil-works/pi-tui": "^0.87.
|
|
36
|
+
"@earendil-works/pi-tui": "^0.87.1",
|
|
37
37
|
"zod": "^3.25.0 || ^4.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.20-alpha.7] - 2026-09-22
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A subagent with `model: "auto"` no longer fails to launch when routing inference fails completely (Jev and the chat structured-output fallback both). The child now runs on the current chat model with a reported warning when that model is available and satisfies every routing constraint; validation and conflicting-constraint failures and cancellation still stop the launch ([#3206](https://github.com/bastani-inc/atomic/issues/3206)).
|
|
10
|
+
|
|
5
11
|
## [0.9.20-alpha.6] - 2026-09-22
|
|
6
12
|
|
|
7
13
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.7",
|
|
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": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@bastani/atomic": "*",
|
|
37
37
|
"@bastani/pi-ai": "*",
|
|
38
|
-
"@earendil-works/pi-agent-core": "^0.87.
|
|
39
|
-
"@earendil-works/pi-tui": "^0.87.
|
|
38
|
+
"@earendil-works/pi-agent-core": "^0.87.1",
|
|
39
|
+
"@earendil-works/pi-tui": "^0.87.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@bastani/atomic": {
|
|
@@ -12575,6 +12575,7 @@ function currentModelFullId(model) {
|
|
|
12575
12575
|
|
|
12576
12576
|
// dist/builtin/subagents/src/runs/shared/model-router.ts
|
|
12577
12577
|
import {
|
|
12578
|
+
AutoRoutingInferenceError,
|
|
12578
12579
|
parseModelConstraints as parseModelConstraints2,
|
|
12579
12580
|
routeExecutionModel
|
|
12580
12581
|
} from "@bastani/atomic";
|
|
@@ -12582,13 +12583,22 @@ async function routeSubagentModel(input) {
|
|
|
12582
12583
|
const { ctx, agent } = input;
|
|
12583
12584
|
const constraints = structuredClone([parseModelConstraints2(agent.modelConstraints), parseModelConstraints2(input.modelConstraints)].filter((c) => c !== undefined));
|
|
12584
12585
|
const effortOverride = agent.source === "builtin" && agent.thinking !== "" ? agent.thinking : undefined;
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12586
|
+
let route;
|
|
12587
|
+
try {
|
|
12588
|
+
route = await routeExecutionModel({
|
|
12589
|
+
ctx,
|
|
12590
|
+
task: input.task?.trim() ? input.task : agent.systemPrompt,
|
|
12591
|
+
agent: { name: agent.name, description: agent.description },
|
|
12592
|
+
constraints: effortOverride === undefined ? constraints : [...constraints, { allowedEfforts: [effortOverride] }],
|
|
12593
|
+
signal: input.signal
|
|
12594
|
+
});
|
|
12595
|
+
} catch (error) {
|
|
12596
|
+
input.signal?.throwIfAborted();
|
|
12597
|
+
if (!(error instanceof AutoRoutingInferenceError) || error.currentModelRoute === undefined)
|
|
12598
|
+
throw error;
|
|
12599
|
+
route = error.currentModelRoute;
|
|
12600
|
+
console.warn(`Subagent auto routing failed; running "${agent.name}" on the current chat model ${route.modelOverride}.`);
|
|
12601
|
+
}
|
|
12592
12602
|
const fallbackRoute = effortOverride === undefined ? route : await routeExecutionModel({
|
|
12593
12603
|
ctx,
|
|
12594
12604
|
task: input.task?.trim() ? input.task : agent.systemPrompt,
|
|
@@ -17326,7 +17336,7 @@ function parseSubagentNotifyContent(content) {
|
|
|
17326
17336
|
// dist/builtin/subagents/src/extension/prompt-guidance.ts
|
|
17327
17337
|
var DEFAULT_PROMPT_GUIDANCE = [
|
|
17328
17338
|
`**Subagent orchestration**: Use subagents for focused specialist work inside workflows or as bounded delegation when a workflow would be unnecessary overhead.
|
|
17329
|
-
- When workflow is available,
|
|
17339
|
+
- When the workflow tool is available, decide yourself whether a workflow fits. Prefer one for well-defined work that benefits from durable stages, review loops, recovery or approval gates, and let its stages delegate specialists; work inline for discussion, unclear goals, simple bounded work, or when the user asks to work inline or quickly. Launch with workflow run using the registered workflow name and inputs matching its contract.
|
|
17330
17340
|
- Honor the user's task-scoped execution preferences without hidden/nested workflows or pressure to reapprove. Preserve appropriate testing, review and evidence inline, and unrelated safety and authorization constraints.
|
|
17331
17341
|
- On a switch from an active workflow to inline, notify the controlling session to safely hold/stop the affected run, reconcile completed work and in-flight side effects, then continue inline without duplicate execution. Do not claim completed work was undone.
|
|
17332
17342
|
- Use a single subagent for a focused specialty or parallel tasks for independent work. Keep substantial-overlap tasks together rather than duplicating investigation across agents.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.7",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction. Fork of: https://github.com/nicobailon/pi-web-access",
|
|
6
6
|
"contributors": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@bastani/atomic": "*",
|
|
34
|
-
"@earendil-works/pi-tui": "^0.87.
|
|
34
|
+
"@earendil-works/pi-tui": "^0.87.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@bastani/atomic": {
|
|
@@ -6,6 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.20-alpha.7] - 2026-09-22
|
|
10
|
+
|
|
11
|
+
### Breaking Changes
|
|
12
|
+
|
|
13
|
+
- Removed the `workflow` tool's `route` action and its router classifier. The agent now decides itself whether a workflow fits and launches with `workflow({ action: "run", workflow: "<name>", inputs, budget? })`. The `workflowId` reservation, `state` parameter, `routerDecision`, `estimatedDuration` labels, and `needs_input`/`not_launched`/`reserved` statuses are gone; `run` validates inputs and fails without launching when they are invalid. Runs launched through the model tool still belong to the launching session.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Generalized the prompt-engineering GPT-6 guide (`references/gpt_6.md`, formerly `gpt_6_astra.md`) to cover GPT-6 Sol and Luna, and replaced its paraphrased snippets with OpenAI's official GPT-6 prompt templates for follow-through, approval timing, skill-instruction priority, writing style, delegation, and verification.
|
|
18
|
+
- Focused every prompt-engineering model guide on prompts: removed API request settings such as beta headers, output-token limits, sampling parameters, tool-choice values, API paths, and pricing, while keeping prompt-ordering and caching guidance.
|
|
19
|
+
- Added source-attributed Claude Opus 5.5 guidance to the prompt-engineering skill, covering effort calibration, always-on thinking, progress visibility, bounded unattended completion, and API migration checks.
|
|
20
|
+
- Reworked all nine prompt-engineering model guides around observed behaviors, practical prompt adjustments, adaptable examples, and caveats, with API details kept secondary.
|
|
21
|
+
- `/new`, `/fork`, and `/resume` now quit running workflows instead of leaving them detached from the session that launched them, where their next stage would later fail. When workflows are running, Atomic first asks "Quit N running workflows and …?" and explains that each stops at its last checkpoint and can be resumed with `/workflow resume`; declining cancels the command and the runs keep going. Without an interactive UI the switch proceeds and the runs are quit the same way. `/reload` still keeps runs executing ([#3203](https://github.com/bastani-inc/atomic/issues/3203)).
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- A workflow run that stays in flight across a preserving host `/reload` can now create stages after the reload. Stage session creation and the stage model catalog resolve the newest live extension generation instead of the retired launch `pi` and command ctx, so the next stage no longer fails with `This extension ctx is stale after session replacement or reload` and no longer falls back to `workflows: model catalog unavailable` ([#3201](https://github.com/bastani-inc/atomic/issues/3201)).
|
|
26
|
+
- A Goal run with `create_pr=true` could never be resumed after its `pull-request` stage failed with a recoverable error. Every resume failed with `insufficient_state: replay topology mismatch for stage "pull-request"` yet still reported `resumable: true`. On resume, Goal reloads its persisted ledger, which already recorded the approving review round as `complete`, so the turn loop was skipped and `pull-request` ran without its reviewer parents. Goal now replays the turns recorded in a reloaded ledger from their durable checkpoints, so the resume re-executes only the failed stage ([#3207](https://github.com/bastani-inc/atomic/issues/3207)).
|
|
27
|
+
- Resuming a Goal run no longer duplicates its ledger history. A replayed turn (one the reloaded ledger already recorded) appended another reducer decision, lifecycle events, a convergence record and reverification entries for the same turn, so the ledger and the final PR report showed repeated history after a resume. Replayed turns are now read-only for the ledger; only live turns append and persist new outcomes ([#3207](https://github.com/bastani-inc/atomic/issues/3207)).
|
|
28
|
+
- A workflow stage with `model: "auto"` no longer fails when routing inference fails completely (Jev and the chat structured-output fallback both). The stage now runs on the current chat model with a recorded warning, on fresh runs and resumes alike, when that model is available and satisfies every routing constraint; validation, eligibility, credential-screening failures and cancellation still fail the stage ([#3206](https://github.com/bastani-inc/atomic/issues/3206)).
|
|
29
|
+
|
|
9
30
|
## [0.9.20-alpha.6] - 2026-09-22
|
|
10
31
|
|
|
11
32
|
### Changed
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
An open-source Atomic workflow extension: install it, author workflows in TypeScript, run them from chat.
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The agent decides whether a workflow fits. Well-defined, authorized work that benefits from durable stages, checkpoints, dependencies, recovery, review loops or approval gates runs as a workflow; brainstorming, discussion, unclear goals, simple bounded work, or an explicit request to work inline, quickly or without a workflow stays inline. To launch, inspect the input contract with `workflow inputs`, then call `workflow run` with the registered workflow name and inputs. Ask only for genuinely missing information.
|
|
9
9
|
|
|
10
10
|
Atomic can author custom TypeScript `workflow({...})` definitions inline, import reusable project/package workflows or builtins from `@bastani/atomic/workflows/builtin`, and nest them with `ctx.workflow(...)`. Imported children may nest further workflows within `maxDepth`, so compose proven research, implementation, design, verification, and approval graphs rather than copying them. Custom parents can also use runtime classification, dynamic fan-out and synthesis, adversarial verification, candidate tournaments, HIL gates, and bounded convergence.
|
|
11
11
|
|
|
@@ -689,26 +689,12 @@ Raw stage-chat prompt answer replay is live-memory only. `StageSnapshot.promptAn
|
|
|
689
689
|
|
|
690
690
|
### `workflow` tool (LLM-callable)
|
|
691
691
|
|
|
692
|
-
The route-then-run contract above applies to model-tool launches:
|
|
693
|
-
|
|
694
692
|
```ts
|
|
695
|
-
workflow({
|
|
696
|
-
|
|
697
|
-
state: {
|
|
698
|
-
task: "Map session persistence by subsystem and synthesize cited findings. Do not change code.",
|
|
699
|
-
conversation: [{ role: "user", text: "Read-only research; cite concrete repository paths." }],
|
|
700
|
-
documents: [{ source: "research brief", content: "Reconcile conflicting findings in the synthesis." }],
|
|
701
|
-
},
|
|
702
|
-
})
|
|
703
|
-
// After inspecting the returned inputSchema, use its workflowId:
|
|
704
|
-
workflow({ action: "run", workflowId: "returned-execution-id", inputs: { prompt: "Map session persistence" } })
|
|
693
|
+
workflow({ action: "inputs", workflow: "deep-research-codebase" })
|
|
694
|
+
workflow({ action: "run", workflow: "deep-research-codebase", inputs: { prompt: "Map session persistence" } })
|
|
705
695
|
```
|
|
706
696
|
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
Run resolves only the registered selection, without another routing/extraction call. Invalid inputs return `needs_input`, the same ID and exact `inputContract`; correct inputs and retry. IDs bind their owner/session, definition/schema and constraints. Unknown/foreign/stale IDs, name overrides, omitted actions and legacy run state are rejected. Reservations expire with their owning tool/session and invalidate on registry changes. They are not executing runs. Use the same UUID as lifecycle `runId`; duplicate/concurrent requests cannot create a second instance. Resume continues checkpoints under that identity. Terminal IDs remain inspectable but cannot relaunch; distinct route IDs can execute independently.
|
|
710
|
-
|
|
711
|
-
Both Jev native questions and other models' structured output use the same public contract. Report canonical 15-minute duration labels directly: `15min`, `30min`, `45min`, `1hr`, `1hr15min`, through `23hr45min`, `1d`, plus `>1d`. Positive estimates round up; exactly 24 elapsed hours is `1d`, anything greater is `>1d`. The router gives its best estimate from available context. Wall-clock estimates include overhead and estimable human waits, including inline work. Granularity is not accuracy, and estimates are neither guarantees nor budgets. Supply `state.userBudget` only for explicit user limits with exact provenance. Omission inherits; zero disables only its field. Preserve approval gates and existing authorization.
|
|
697
|
+
Run starts the named workflow and returns its `runId`; invalid inputs fail without launching. Pass `budget` only for limits the user stated; omission inherits and zero disables only its field.
|
|
712
698
|
|
|
713
699
|
User `/workflow` commands launch directly and authored `ctx.workflow(...)` remains internal composition. Discovery (`list`, `get`, `inputs`, `models`), inspection (`status`, `stages`, `stage`, `transcript`), controls (`answer`, `pause`, `resume`, `quit`) and `reload` remain available. See [operations](../coding-agent/docs/workflows/operations.md) for parameters and lifecycle details.
|
|
714
700
|
|
|
@@ -765,7 +751,7 @@ export default workflow({
|
|
|
765
751
|
});
|
|
766
752
|
```
|
|
767
753
|
|
|
768
|
-
The `workflow` tool accepts
|
|
754
|
+
The `workflow` tool accepts direct workflow execution (`run` with workflow name and `inputs`), discovery, inspection, pending-prompt answers, run control, and reload. Author stage graphs with `ctx.task`, `ctx.chain`, and `ctx.parallel` inside workflow definitions.
|
|
769
755
|
|
|
770
756
|
For large handoffs, prefer artifact paths over prompt injection: write stage output to `output`, set `outputMode: "file-only"` when the parent only needs the path, pass paths with `reads`, and instruct downstream agents explicitly with wording like `Read the file at <path>...`. Reserve `previous`/`{previous}` for compact summaries; avoid passing full session histories, all prior stage outputs, or every review round directly into the next model prompt. In review loops, save JSON review artifacts and pass only the latest review-round artifact, with a ledger or index file linking older rounds when needed.
|
|
771
757
|
|
|
@@ -810,9 +810,13 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
810
810
|
let latestReviewReportPath;
|
|
811
811
|
let terminalRemainingWork;
|
|
812
812
|
let previousOrchestratorSessionFile;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
813
|
+
const recordedTurns = ledger.turns;
|
|
814
|
+
for (let turn = 1;turn <= maxTurns && (ledger.status === "active" || turn <= recordedTurns); turn += 1) {
|
|
815
|
+
const replayingRecordedTurn = turn <= recordedTurns;
|
|
816
|
+
if (!replayingRecordedTurn) {
|
|
817
|
+
appendLifecycleEvent(ledger, "work_turn_started", "Orchestrator started.", turn);
|
|
818
|
+
await writeGoalLedger(ledgerPath, ledger);
|
|
819
|
+
}
|
|
816
820
|
const orchestratorReceiptPath = join3(artifactDir, "orchestrator-receipt.md");
|
|
817
821
|
const orchestratorForkOptions = forkContinuationOptions(previousOrchestratorSessionFile);
|
|
818
822
|
const orchestratorPrompt = orchestratorForkOptions.forkFromSessionFile === undefined ? renderGoalOrchestratorPrompt({
|
|
@@ -841,7 +845,7 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
841
845
|
latestReviews = [];
|
|
842
846
|
latestReviewArtifactPaths = [];
|
|
843
847
|
latestReviewReportPath = undefined;
|
|
844
|
-
ledger.turns = turn;
|
|
848
|
+
ledger.turns = Math.max(ledger.turns, turn);
|
|
845
849
|
ledger.status = "needs_human";
|
|
846
850
|
ledger.decisions.push({
|
|
847
851
|
turn,
|
|
@@ -861,18 +865,20 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
861
865
|
break;
|
|
862
866
|
}
|
|
863
867
|
previousOrchestratorSessionFile = orchestrator.sessionFile;
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
868
|
+
if (!replayingRecordedTurn) {
|
|
869
|
+
ledger.turns = turn;
|
|
870
|
+
const receiptAlreadyRecorded = ledger.receipts.some((receipt) => receipt.turn === turn && receipt.artifact_path === orchestratorReceiptPath);
|
|
871
|
+
if (!receiptAlreadyRecorded) {
|
|
872
|
+
ledger.receipts.push({
|
|
873
|
+
turn,
|
|
874
|
+
stage: orchestrator.name ?? orchestrator.stageName,
|
|
875
|
+
artifact_path: orchestratorReceiptPath,
|
|
876
|
+
summary: `Orchestrator receipt artifact: ${orchestratorReceiptPath}`
|
|
877
|
+
});
|
|
878
|
+
appendLifecycleEvent(ledger, "receipt_recorded", "Orchestrator receipt recorded.", turn);
|
|
879
|
+
}
|
|
880
|
+
await writeGoalLedger(ledgerPath, ledger);
|
|
874
881
|
}
|
|
875
|
-
await writeGoalLedger(ledgerPath, ledger);
|
|
876
882
|
const reviewerStep = (name, reviewerRole, focus) => ({
|
|
877
883
|
name,
|
|
878
884
|
task: renderReviewerPrompt({
|
|
@@ -957,14 +963,14 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
957
963
|
}
|
|
958
964
|
});
|
|
959
965
|
latestReviewReportPath = await writeReviewRoundArtifact(artifactDir, latestReviews, reverified.batch, reverified.audits);
|
|
960
|
-
if (reverified.audits.length > 0) {
|
|
966
|
+
if (!replayingRecordedTurn && reverified.audits.length > 0) {
|
|
961
967
|
ledger.reverification ??= [];
|
|
962
968
|
ledger.reverification.push(...reverified.audits);
|
|
963
969
|
}
|
|
964
970
|
const findings = latestReviews.flatMap((review) => review.findings);
|
|
965
971
|
const traceability = latestReviews.flatMap((review) => review.requirements_traceability);
|
|
966
972
|
ledger.convergence ??= [];
|
|
967
|
-
if (!reviewerBatchFailed && roundProducedDecisions) {
|
|
973
|
+
if (!replayingRecordedTurn && !reviewerBatchFailed && roundProducedDecisions) {
|
|
968
974
|
ledger.convergence.push(record_convergence({
|
|
969
975
|
unresolvedBlockingCount: reverified.batch.filter((entry) => entry.blocking).length,
|
|
970
976
|
meanFindingConfidence: findings.length === 0 ? null : findings.reduce((total, finding) => total + finding.confidence_score, 0) / findings.length,
|
|
@@ -974,9 +980,12 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
974
980
|
}));
|
|
975
981
|
}
|
|
976
982
|
const newReviews = latestReviews.filter((review) => !ledger.reviews.some((recorded) => recorded.turn === review.turn && recorded.reviewer === review.reviewer));
|
|
977
|
-
|
|
983
|
+
if (!replayingRecordedTurn)
|
|
984
|
+
ledger.reviews.push(...newReviews);
|
|
978
985
|
latestReviewArtifactPaths = [latestReviewReportPath, ...latestReviews.map((review) => review.artifact_path)];
|
|
979
|
-
|
|
986
|
+
if (!replayingRecordedTurn) {
|
|
987
|
+
appendLifecycleEvent(ledger, "reviews_recorded", `Recorded ${latestReviews.length} reviewer decisions.`, turn);
|
|
988
|
+
}
|
|
980
989
|
if (reviewerBatchFailed) {
|
|
981
990
|
terminalRemainingWork = collectRemainingWork(latestReviews);
|
|
982
991
|
const reason = `Reviewer execution failed before quorum could be established. Remaining work: ${terminalRemainingWork}`;
|
|
@@ -993,6 +1002,8 @@ async function runGoalWorkflow(ctx, options) {
|
|
|
993
1002
|
await writeGoalLedger(ledgerPath, ledger);
|
|
994
1003
|
break;
|
|
995
1004
|
}
|
|
1005
|
+
if (replayingRecordedTurn)
|
|
1006
|
+
continue;
|
|
996
1007
|
const reducerOutcome = reduceGoalDecision(ledger, latestReviews, {
|
|
997
1008
|
turn,
|
|
998
1009
|
maxTurns,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/workflows",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.7",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for multi-stage workflow authoring and execution.",
|
|
6
6
|
"contributors": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@bastani/atomic": "*",
|
|
89
|
-
"@earendil-works/pi-tui": "^0.87.
|
|
89
|
+
"@earendil-works/pi-tui": "^0.87.1"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@bastani/atomic": {
|
|
@@ -5,7 +5,7 @@ description: Write, evaluate, migrate, or troubleshoot prompts for GPT and Claud
|
|
|
5
5
|
|
|
6
6
|
# Prompt engineering
|
|
7
7
|
|
|
8
|
-
Create or revise prompts for the user's target model. Keep the common prompt portable and load only the relevant model guide. Each
|
|
8
|
+
Create or revise prompts for the user's target model. Keep the common prompt portable and load only the relevant model guide. Each page connects an observed behavior to a prompt adjustment, prompt wording, and caveats. Use the matching patterns rather than pasting the whole guide into a prompt. The guides cover prompts, not API request settings; behavior does not transfer automatically between models.
|
|
9
9
|
|
|
10
10
|
## Workflow
|
|
11
11
|
|
|
@@ -28,14 +28,15 @@ Create or revise prompts for the user's target model. Keep the common prompt por
|
|
|
28
28
|
|
|
29
29
|
| Target | Read | Main distinctions |
|
|
30
30
|
| --- | --- | --- |
|
|
31
|
-
| GPT-6 Astra | `references/
|
|
32
|
-
| GPT-5.6
|
|
33
|
-
| GPT-5.5 | `references/gpt_5_5.md` | Outcome-first baseline, retrieval limits,
|
|
34
|
-
| Claude Fable 5.1 | `references/claude_fable_5_1.md` | Progress visibility, batching,
|
|
31
|
+
| GPT-6 Astra, Sol, Luna | `references/gpt_6.md` | OpenAI's official templates for approval pauses, skill-instruction conflicts, writing style, delegation, and verification; Sol/Luna effort sensitivity |
|
|
32
|
+
| GPT-5.6 Sol, Terra, Luna | `references/gpt_5_6.md` | Lean prompts, concise defaults, high-effort and pro-mode prompts, programmatic tool stages, cache-friendly ordering |
|
|
33
|
+
| GPT-5.5 | `references/gpt_5_5.md` | Outcome-first baseline, retrieval limits, grounded drafts, explicit validation |
|
|
34
|
+
| Claude Fable 5.1 | `references/claude_fable_5_1.md` | Progress visibility, batching, append-only reminders, completion within the output allowance |
|
|
35
35
|
| Claude Fable 5 | `references/claude_fable_5.md` | Long-run completion, grounded progress, task-sized independent verification, refusal handling |
|
|
36
|
+
| Claude Opus 5.5 | `references/claude_opus_5_5.md` | Always-on thinking, progress cadence, bounded unattended continuation, pasted-content boundaries |
|
|
36
37
|
| Claude Opus 5 | `references/claude_opus_5.md` | Separate response length from effort, remove redundant verification, bound delegation |
|
|
37
|
-
| Claude Opus 4.8 | `references/claude_opus_4_8.md` |
|
|
38
|
-
| Claude Sonnet 5 | `references/claude_sonnet_5.md` |
|
|
38
|
+
| Claude Opus 4.8 | `references/claude_opus_4_8.md` | Steerable thinking, literal scope, tool triggering, design alternatives |
|
|
39
|
+
| Claude Sonnet 5 | `references/claude_sonnet_5.md` | Thinking on by default, variety through prompts instead of sampling, literal scope and review recall |
|
|
39
40
|
|
|
40
41
|
For a migration, read both source and target pages when both are listed. For a cross-model prompt, keep common requirements in the main contract and isolate only the differences that affect behavior. Do not load every page for a single-model task.
|
|
41
42
|
|
|
@@ -44,12 +45,12 @@ For a migration, read both source and target pages when both are listed. For a c
|
|
|
44
45
|
- State the result and completion bar; leave routine path selection to the model.
|
|
45
46
|
- Give relevant context and a short reason for important constraints.
|
|
46
47
|
- Reserve absolute language for true invariants such as safety, permission, required fields, and forbidden actions. Use conditional rules for judgment calls.
|
|
47
|
-
- Specify output length, sections, format, and validation when the user or a parser depends on them. Use schemas for machine output
|
|
48
|
+
- Specify output length, sections, format, and validation when the user or a parser depends on them. Use schemas for machine output when the host enforces them.
|
|
48
49
|
- Use descriptive XML tags to separate mixed instructions, context, examples, and untrusted documents when helpful. Simple prompts need no markup.
|
|
49
50
|
- Keep examples only when they improve measured behavior. Ensure they obey the written contract.
|
|
50
51
|
- Require evidence for consequential claims, permit uncertainty, and define what happens when evidence is missing.
|
|
51
52
|
- Request conclusions, evidence, observed behavior, and validation results. Do not ask the model to reconstruct private reasoning in response text.
|
|
52
53
|
- Calibrate verification and delegation to the model and task. Preserve required checks, real approval gates, and the harness's concurrency and execution rules.
|
|
53
|
-
-
|
|
54
|
+
- Mentioning a tool or capability in a prompt does not provide it. Write prompts only for tools the host actually exposes.
|
|
54
55
|
|
|
55
56
|
Prompting reduces errors but does not eliminate them. Preserve safety, business, evidence, permission, and downstream parser constraints while optimizing.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Advanced Prompting Patterns
|
|
2
2
|
|
|
3
|
-
Use these patterns for agents, tools, long context, multi-stage work, or model-specific tuning. Keep the common prompt portable; add a model-specific branch only when behavior
|
|
3
|
+
Use these patterns for agents, tools, long context, multi-stage work, or model-specific tuning. Keep the common prompt portable; add a model-specific branch only when behavior differs.
|
|
4
4
|
|
|
5
5
|
## Choose model-specific guidance separately
|
|
6
6
|
|
|
7
|
-
The [skill's model table](../SKILL.md#model-guides) routes to one page per model, each linked to its official source. Read the target page before
|
|
7
|
+
The [skill's model table](../SKILL.md#model-guides) routes to one page per model, each linked to its official source. Read the target page before tuning effort, verification cadence, or delegation. Keep those differences out of a shared prompt unless the application deliberately branches by model.
|
|
8
8
|
|
|
9
9
|
## Agentic Prompt Structure
|
|
10
10
|
|
|
@@ -72,11 +72,11 @@ Quote grounding can focus retrieval in noisy inputs. Require only quotes that su
|
|
|
72
72
|
|
|
73
73
|
## Adaptive Thinking and Effort
|
|
74
74
|
|
|
75
|
-
Check the target model's thinking
|
|
75
|
+
Check the target model's thinking behavior before tuning. Effort names do not guarantee equal reasoning volume across versions. Where thinking shares the output allowance with the visible response, leave room for both. Change effort separately from prompt wording to identify the cause of regressions.
|
|
76
76
|
|
|
77
77
|
Do not use visible chain-of-thought instructions or private-deliberation tags as a prompting technique. They are obsolete and can trigger Fable 5 safeguards. Ask for an answer supported by evidence, calculations, test results, or a concise decision rationale that does not solicit private deliberation.
|
|
78
78
|
|
|
79
|
-
Keep earlier conversation items intact when replaying state. Caching and
|
|
79
|
+
Keep earlier conversation items intact when replaying state. Caching and history-replay rules differ by model; read the model page before changing effort, system instructions, or the replayed prefix.
|
|
80
80
|
|
|
81
81
|
## Prompt Chaining and Examples
|
|
82
82
|
|