@bastani/atomic 0.9.38-alpha.7 → 0.9.38-alpha.9

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/builtin/intercom/package.json +1 -1
  3. package/dist/builtin/mcp/package.json +1 -1
  4. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  5. package/dist/builtin/subagents/README.md +9 -4
  6. package/dist/builtin/subagents/package.json +1 -1
  7. package/dist/builtin/subagents/src/extension/index.bundle.mjs +23 -13
  8. package/dist/builtin/web-access/package.json +1 -1
  9. package/dist/builtin/workflows/CHANGELOG.md +6 -0
  10. package/dist/builtin/workflows/package.json +1 -1
  11. package/dist/builtin/workflows/src/durable/journal/legacy-journal-tables.d.ts +42 -0
  12. package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +3 -0
  13. package/dist/builtin/workflows/src/extension/index.bundle.mjs +204 -51
  14. package/dist/builtin/workflows/src/index.js +170 -17
  15. package/dist/core/session-manager-storage.d.ts +1 -1
  16. package/dist/core/session-manager-storage.d.ts.map +1 -1
  17. package/dist/core/session-manager-storage.js +2 -3
  18. package/dist/core/session-manager-storage.js.map +1 -1
  19. package/dist/core/session-storage.d.ts.map +1 -1
  20. package/dist/core/session-storage.js +20 -4
  21. package/dist/core/session-storage.js.map +1 -1
  22. package/dist/core/storage/session/jsonl-session-store.d.ts +7 -1
  23. package/dist/core/storage/session/jsonl-session-store.d.ts.map +1 -1
  24. package/dist/core/storage/session/jsonl-session-store.js +29 -20
  25. package/dist/core/storage/session/jsonl-session-store.js.map +1 -1
  26. package/dist/core/storage/session/legacy-format.d.ts +2 -0
  27. package/dist/core/storage/session/legacy-format.d.ts.map +1 -1
  28. package/dist/core/storage/session/legacy-format.js +55 -29
  29. package/dist/core/storage/session/legacy-format.js.map +1 -1
  30. package/dist/core/storage/session/legacy-session-store.d.ts +63 -0
  31. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -0
  32. package/dist/core/storage/session/legacy-session-store.js +239 -0
  33. package/dist/core/storage/session/legacy-session-store.js.map +1 -0
  34. package/dist/core/storage/session/legacy-session-summary.d.ts +11 -0
  35. package/dist/core/storage/session/legacy-session-summary.d.ts.map +1 -0
  36. package/dist/core/storage/session/legacy-session-summary.js +103 -0
  37. package/dist/core/storage/session/legacy-session-summary.js.map +1 -0
  38. package/dist/main-session.d.ts.map +1 -1
  39. package/dist/main-session.js +4 -1
  40. package/dist/main-session.js.map +1 -1
  41. package/docs/docs.json +5 -2
  42. package/docs/llama-cpp.md +94 -1
  43. package/docs/session-format.md +1 -1
  44. package/docs/sessions.md +4 -2
  45. package/docs/subagents.md +19 -6
  46. package/npm-shrinkwrap.json +32 -32
  47. package/package.json +3 -3
  48. package/docs/nvidia-rtx-llama-cpp.md +0 -101
package/docs/llama-cpp.md CHANGED
@@ -32,7 +32,7 @@ llama-server \
32
32
 
33
33
  Single-file models can sit directly in the model directory. Put multimodal and multi-shard models in separate subdirectories with their projection or shard files. Restart the router after manually adding files. Per-model context sizes and other options can be set with [model presets](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md#model-presets).
34
34
 
35
- For settings tuned to a specific NVIDIA GPU and model, see [Run Atomic with NVIDIA RTX and llama.cpp](/nvidia-rtx-llama-cpp).
35
+ For settings tuned to a specific NVIDIA GPU and model, see [NVIDIA RTX recipes](#nvidia-rtx-recipes).
36
36
 
37
37
  ## Configure Atomic
38
38
 
@@ -70,6 +70,99 @@ If the router disconnects, choose **Retry** to reconnect and refresh state witho
70
70
 
71
71
  Each llama model uses the router-reported loaded context (`meta.n_ctx`, then training context, otherwise Atomic's fallback) for both `contextWindow` and `maxTokens`; Atomic no longer applies a separate 16K output cap. The server remains authoritative and may impose a smaller practical generation limit.
72
72
 
73
+ ## NVIDIA RTX recipes
74
+
75
+ [NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. Convert it into a router preset so the router can serve it alongside other models. The examples below use Windows PowerShell.
76
+
77
+ ### Before you begin
78
+
79
+ 1. Open the [recipe catalog](https://nvidia.github.io/local-ai-inference-recipes/index.html), select your hardware, operating system, and model, then choose **llama.cpp**. Check the prerequisites and memory requirements. Keep the recipe's launch command for the conversion below.
80
+ 2. Install llama.cpp with the recipe's setup instructions. The recipe's settings depend on its build, for example CUDA support or speculative decoding options.
81
+ 3. Run `llama-server --help` and check that it lists `--models-preset`. Without it, the build cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
82
+ 4. Install Atomic with the [Quickstart](/quickstart). On native Windows, also see [Run Atomic on Windows](/windows).
83
+
84
+ ### Convert the recipe to a preset
85
+
86
+ A preset lists the settings for one or more models. Each section name becomes the model ID shown in Atomic. Save the preset next to `llama-server`, or pass its full path when starting the router.
87
+
88
+ Convert each option from the recipe command into one preset line:
89
+
90
+ - Remove the leading dashes: `--ctx-size 65536` becomes `ctx-size = 65536`.
91
+ - Write options without a value as `true`: `--jinja` becomes `jinja = true`.
92
+ - Remove quotes and PowerShell line-continuation backticks around values.
93
+ - Leave out `--host` and `--port`. They belong on the router command line.
94
+ - Add `load-on-startup = true` so the router loads the model when it starts.
95
+ - Replace short model-file options with their long preset keys:
96
+
97
+ | Recipe option | Preset key |
98
+ |---|---|
99
+ | `-hf` | `hf-repo` |
100
+ | `-hff` | `hf-file` |
101
+ | `-hfrd` | `hf-repo-draft` |
102
+ | `--spec-draft-model` | `spec-draft-model` |
103
+
104
+ For example, this recipe command:
105
+
106
+ ```powershell
107
+ llama-server.exe -hf "unsloth/Qwen3.8-27B-GGUF" `
108
+ -hff "Qwen3.8-27B-UD-Q4_K_M.gguf" `
109
+ -hfrd "z-lab/Qwen3.8-27B-DFlash2-GGUF" `
110
+ --spec-draft-model "Qwen3.8-27B-DFlash2-Q4_K_M.gguf" `
111
+ --no-mmproj `
112
+ --host 127.0.0.1 `
113
+ --port 9931 `
114
+ --batch-size 4096 `
115
+ --ubatch-size 1024 `
116
+ --ctx-size 65536 `
117
+ --parallel 1 `
118
+ -ngl 999 `
119
+ --jinja `
120
+ --chat-template-kwargs '{"preserve_thinking":true}' `
121
+ --spec-type draft-dflash `
122
+ --spec-draft-n-max 7 `
123
+ --spec-draft-backend-sampling
124
+ ```
125
+
126
+ becomes `qwen3.8-27b.ini`:
127
+
128
+ ```ini
129
+ version = 1
130
+
131
+ [qwen3.8-27b]
132
+ load-on-startup = true
133
+ hf-repo = unsloth/Qwen3.8-27B-GGUF
134
+ hf-file = Qwen3.8-27B-UD-Q4_K_M.gguf
135
+ hf-repo-draft = z-lab/Qwen3.8-27B-DFlash2-GGUF
136
+ spec-draft-model = Qwen3.8-27B-DFlash2-Q4_K_M.gguf
137
+ no-mmproj = true
138
+ batch-size = 4096
139
+ ubatch-size = 1024
140
+ ctx-size = 65536
141
+ parallel = 1
142
+ ngl = 999
143
+ jinja = true
144
+ chat-template-kwargs = {"preserve_thinking":true}
145
+ spec-type = draft-dflash
146
+ spec-draft-n-max = 7
147
+ spec-draft-backend-sampling = true
148
+ ```
149
+
150
+ ### Start the recipe router
151
+
152
+ Open PowerShell in the llama.cpp folder and run:
153
+
154
+ ```powershell
155
+ .\llama-server.exe --models-preset qwen3.8-27b.ini --host 127.0.0.1 --port 8080
156
+ ```
157
+
158
+ If the recipe requires a Hugging Face token, set `$env:HF_TOKEN` in the same PowerShell window before starting the router. On its first start, the router downloads the model files.
159
+
160
+ Use the [health checks](#troubleshooting) to confirm that the server is ready. In Windows PowerShell, use `curl.exe` rather than `curl`, which PowerShell maps to a different command. The model is ready when `/models` lists `qwen3.8-27b` with the status `loaded`.
161
+
162
+ Then follow [Configure Atomic](#configure-atomic) and connect to `http://127.0.0.1:8080`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
163
+
164
+ NVIDIA recipe memory settings assume that only the selected model uses the GPU. If `/llama` shows other loaded models, unload them before using the recipe model.
165
+
73
166
  ## Classification
74
167
 
75
168
  Classifier models answer typed `choice`, `bool`, and `score` questions about JSON state, like TypeSafe's Jev models, so a local model can make `model: "auto"` routing decisions. Extensions can call `ctx.modelRegistry.classify()` and codemode scripts can call `models.classify()`; see [Classifier models](/models#use-classifier-models). Atomic lists llama.cpp models as classifiers in two ways:
@@ -18,7 +18,7 @@ Delete individual sessions from `/resume`: select a session, press `CTRL+D`, the
18
18
 
19
19
  ## Session Version
20
20
 
21
- SessionManager writes version 4 headers. Sessions in formats 1, 2, and 3 are upgraded automatically when opened, resumed, imported, or forked. Reading converts older records in memory; listing sessions and looking up headers leave files unchanged. Opening an older JSONL session persists its upgrade atomically under the file lock before new entries are saved. Future versions, unrecognized version values, and structurally invalid entries remain rejected; unloadable sessions are omitted from resume listings. A complete final record without a newline is accepted; a torn final record is rejected.
21
+ SessionManager writes version 4 headers with `createdAt` and `parentSessionId`. Sessions in formats 1, 2, and 3, and early version-4 files whose header has `timestamp` and `parentSession` instead, are upgraded automatically when opened, resumed, imported, or forked. Reading converts older records in memory; listing sessions and looking up headers leave files unchanged. Opening an older JSONL session persists its upgrade atomically under the file lock before new entries are saved. Future versions, unrecognized version values, and structurally invalid entries remain rejected; unloadable sessions are omitted from resume listings. A complete final record without a newline is accepted; a torn final record is rejected.
22
22
 
23
23
  ## Source Files
24
24
 
package/docs/sessions.md CHANGED
@@ -12,6 +12,8 @@ Sessions auto-save to the local SQLite database at `~/.atomic/workflows/journal.
12
12
 
13
13
  To choose another store, set `sessions.storage` in settings. Use shared `storage` to select one database for both sessions and workflow runs. JSONL is available only when explicitly selected. Memory is available through `--no-session`, `{ "memory": true }` in settings, or an explicit SDK option; it is never a fallback for a failed persistent store.
14
14
 
15
+ When the default SQLite store is selected, sessions saved before it became the default stay in `~/.atomic/agent/sessions` and appear in `/resume` and `--continue` next to newer ones. This includes sessions in formats 1, 2, and 3 and early 0.9.38 alpha sessions. A session is copied into the database the first time you open it, with `/resume`, `--continue`, `--session`, or `--fork`, and is read from the database afterwards. The original files are never modified or deleted, unreadable files are skipped, and workflow stage sessions stay hidden from `/resume` but remain openable by session ID. Until a session larger than 32 KiB is opened, the list shows it from its first message and its most recent entries, so its message count may be understated and `/resume` search matches only that text; opening it shows the full session. Deleting one of these sessions keeps it out of the list. Selecting a store yourself, as described below, shows only that store.
16
+
15
17
  Project-local storage settings apply after you approve project trust, including on the first launch. Atomic re-selects storage before saving a new conversation; resumed conversations stay in their original store. Generated resume commands for JSONL sessions include `--session-dir`; keep that option when reopening the conversation, even if the directory was previously the default.
16
18
 
17
19
  For SQLite, resume with `atomic --session-store "/data/project A/sessions.sqlite" --session-prefix project_ --session <id>`.
@@ -44,7 +46,7 @@ Imported IDs are kept verbatim, including an empty ID. Resume an imported empty
44
46
 
45
47
  This selects JSONL under `~/.atomic/sessions`. Use `{ "path": "sessions.sqlite" }` for another local SQLite file, `{ "memory": true }` for ephemeral sessions, or an adapter selection for a user-installed database driver. The `sessionDir` setting has been removed without an alias.
46
48
 
47
- Precedence is SDK `sessionStore`, `--no-session`, `--session-dir <dir>` or `--session-store <path>` (mutually exclusive CLI selections), non-empty `ATOMIC_CODING_AGENT_SESSION_DIR`, `sessions.storage`, shared `storage`, then the default SQLite file. Each selection wins as a whole; project selections replace global ones rather than merging fields. Relative settings paths resolve against Atomic home; CLI paths and environment directories resolve against the working directory. Changing stores selects a different history without migrating sessions; keep the original store to return to it.
49
+ Precedence is SDK `sessionStore`, `--no-session`, `--session-dir <dir>` or `--session-store <path>` (mutually exclusive CLI selections), non-empty `ATOMIC_CODING_AGENT_SESSION_DIR`, `sessions.storage`, shared `storage`, then the default SQLite file. Each selection wins as a whole; project selections replace global ones rather than merging fields. Relative settings paths resolve against Atomic home; CLI paths and environment directories resolve against the working directory. Changing stores selects a different history, and only the default store shows earlier JSONL sessions; keep the original store to return to it.
48
50
 
49
51
  `--session-store` cannot be combined with `--session-dir` or `--no-session`. `--session-prefix` requires `--session-store` and defaults to empty, giving `session_` table names. A non-empty prefix is prepended to those names, must match `[A-Za-z_][A-Za-z0-9_]*`, and must not start with `sqlite_` (case-insensitive). Invalid configuration or unavailable storage raises a typed error, never a fallback to another store.
50
52
 
@@ -85,7 +87,7 @@ For the JSONL file format and SessionManager API, see [Session Format](/session-
85
87
 
86
88
  `/resume` opens an interactive session picker for the current project. `atomic -r` opens the same picker at startup.
87
89
 
88
- Sessions written in formats 1, 2, and 3 appear in the picker and upgrade automatically to format 4 when opened, including with `--continue`, `--session`, or `--fork`. Browsing the picker does not change session files. Opening an older session rewrites only that file; no flag or confirmation is needed.
90
+ Sessions written in formats 1, 2, and 3, and early 0.9.38 alpha sessions whose header uses `timestamp`, appear in the picker and upgrade automatically to format 4. In the default store this happens when you first open one. In an explicit JSONL store it happens when you open them, including with `--continue`, `--session`, or `--fork`; browsing the picker does not change session files, and opening an older session rewrites only that file. No flag or confirmation is needed.
89
91
 
90
92
  Resuming restores saved verbatim compaction without another planning request. Older sessions with retired logical-deletion compaction can bring previously hidden content back into context.
91
93
 
package/docs/subagents.md CHANGED
@@ -245,16 +245,29 @@ Observation yields do not release these worktrees. Cancelling a queued child bef
245
245
 
246
246
  Fresh children inherit the invoking session's SDK configuration, resource-discovery inputs, model/auth runtime and host callbacks. Child tool selections can narrow the parent's permissions but cannot restore disabled packages or excluded tools. Intercom has no mandatory bypass; a child without access receives no supervisor grant. Model fallback keeps the same inherited restrictions. See [SDK child configuration](/sdk#workflow-and-subagent-children).
247
247
 
248
- Top-level parallel calls support up to 50 subagents after expanding each task's optional `count`. Two settings control the set:
249
-
250
- - `parallel.maxTasks` defaults to 50 and can enforce a lower task limit.
251
- - `parallel.concurrency` defaults to 3 and controls how many children run at once. Explicit configuration overrides the default; per-call `concurrency` takes precedence over configuration.
248
+ Top-level parallel calls apply these settings from `~/.atomic/agent/extensions/subagent/config.json` after expanding each task's optional `count`:
249
+
250
+ - `parallel.maxTasks` defaults to 50 and limits the number of tasks in a parallel set. There is no hard upper cap; raise or lower it as needed.
251
+ - `parallel.concurrency` defaults to 3 and limits how many children are dispatched at once. Per-call `concurrency` takes precedence.
252
+ - `parallel.runningCapacity` defaults to 4 and limits simultaneously running child turns per parent.
253
+
254
+ To run up to 100 children at once, raise both concurrency and running capacity as well as the task limit:
255
+
256
+ ```json
257
+ {
258
+ "parallel": {
259
+ "maxTasks": 100,
260
+ "concurrency": 100,
261
+ "runningCapacity": 100
262
+ }
263
+ }
264
+ ```
252
265
 
253
- At most four turns per parent can run at once, even when a higher subagent concurrency is configured.
266
+ Running capacity is selected when a parent's first child is created. Restart Atomic after changing this setting to apply the new capacity.
254
267
 
255
268
  When one assistant response emits several sibling execution-mode `subagent` tool calls, Atomic collects that synchronous burst before starting a child and runs it as one indexed parallel set. Each original tool call still receives one result containing only the children it requested, and its live result, progress, control, and artifact updates are projected to that same route without sibling data. The TUI redraws the shared run as one aggregate parallel widget rather than retaining one widget per original call. A single call keeps its original SINGLE or PARALLEL mode, calls awaited in sequence remain separate runs, and management actions bypass collection. An execution call that arrives after a child has started still receives the existing in-progress rejection. Prefer one explicit `{ tasks: [...] }` call when planning parallel work; burst collection handles sibling calls emitted by a model.
256
269
 
257
- For a collected burst, each call contributes its top-level `agent` task first and then its `tasks` entries in array order. Atomic preserves duplicates, expands `count` in place, and applies the configured task cap after flattening and expansion; the hard maximum remains 50. Each call-level `cwd` selects that call's agent-discovery scope and child base directory. A task-level `cwd` stays relative to that call base and changes only that child's execution directory, not agent discovery. This per-origin discovery rule applies only to collected sibling calls; an ordinary explicit `{ tasks: [...] }` call keeps one discovery scope from its top-level `cwd`. Per-call and per-task `group` values also stay with their originating children. Shared run options must match across every sibling call: `concurrency`, `worktree`, `context`, `share`, `control`, `sessionDir`, `maxOutput`, `artifacts`, `includeProgress`, and `agentScope`. A mismatch rejects the whole burst before any child launches and names the incompatible field.
270
+ For a collected burst, each call contributes its top-level `agent` task first and then its `tasks` entries in array order. Atomic preserves duplicates, expands `count` in place, and applies `parallel.maxTasks` after flattening and expansion. Each call-level `cwd` selects that call's agent-discovery scope and child base directory. A task-level `cwd` stays relative to that call base and changes only that child's execution directory, not agent discovery. This per-origin discovery rule applies only to collected sibling calls; an ordinary explicit `{ tasks: [...] }` call keeps one discovery scope from its top-level `cwd`. Per-call and per-task `group` values also stay with their originating children. Shared run options must match across every sibling call: `concurrency`, `worktree`, `context`, `share`, `control`, `sessionDir`, `maxOutput`, `artifacts`, `includeProgress`, and `agentScope`. A mismatch rejects the whole burst before any child launches and names the incompatible field.
258
271
 
259
272
  For a collected `worktree: true` burst, every call-level `cwd` must resolve to the same path. That common path becomes the shared worktree root; differing origins reject the burst before launch, and any task-level `cwd` must still resolve to that root. Each projected caller result keeps shared worktree diff text and terminal control guidance while its child results and standard child-output sections remain route-local.
260
273
 
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.7",
3
+ "version": "0.9.38-alpha.9",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.9.38-alpha.7",
9
+ "version": "0.9.38-alpha.9",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.9.38-alpha.7",
13
- "@bastani/pi-ai": "0.9.38-alpha.7",
12
+ "@bastani/atomic-natives": "0.9.38-alpha.9",
13
+ "@bastani/pi-ai": "0.9.38-alpha.9",
14
14
  "@earendil-works/pi-agent-core": "1.3.0",
15
15
  "@earendil-works/pi-codemode": "1.3.0",
16
16
  "@earendil-works/pi-tui": "1.3.0",
@@ -427,18 +427,18 @@
427
427
  }
428
428
  },
429
429
  "node_modules/@bastani/atomic-natives": {
430
- "version": "0.9.38-alpha.7",
431
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38-alpha.7.tgz",
430
+ "version": "0.9.38-alpha.9",
431
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38-alpha.9.tgz",
432
432
  "license": "MIT",
433
433
  "optionalDependencies": {
434
- "@bastani/atomic-natives-darwin-arm64": "0.9.38-alpha.7",
435
- "@bastani/atomic-natives-darwin-x64": "0.9.38-alpha.7",
436
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38-alpha.7",
437
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.38-alpha.7",
438
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.38-alpha.7",
439
- "@bastani/atomic-natives-linux-x64-musl": "0.9.38-alpha.7",
440
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38-alpha.7",
441
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.38-alpha.7"
434
+ "@bastani/atomic-natives-darwin-arm64": "0.9.38-alpha.9",
435
+ "@bastani/atomic-natives-darwin-x64": "0.9.38-alpha.9",
436
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38-alpha.9",
437
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.38-alpha.9",
438
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.38-alpha.9",
439
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.38-alpha.9",
440
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38-alpha.9",
441
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.38-alpha.9"
442
442
  },
443
443
  "engines": {
444
444
  "bun": ">=1.4.2",
@@ -446,8 +446,8 @@
446
446
  }
447
447
  },
448
448
  "node_modules/@bastani/atomic-natives-darwin-arm64": {
449
- "version": "0.9.38-alpha.7",
450
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38-alpha.7.tgz",
449
+ "version": "0.9.38-alpha.9",
450
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38-alpha.9.tgz",
451
451
  "license": "MIT",
452
452
  "os": [
453
453
  "darwin"
@@ -458,8 +458,8 @@
458
458
  "optional": true
459
459
  },
460
460
  "node_modules/@bastani/atomic-natives-darwin-x64": {
461
- "version": "0.9.38-alpha.7",
462
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38-alpha.7.tgz",
461
+ "version": "0.9.38-alpha.9",
462
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38-alpha.9.tgz",
463
463
  "license": "MIT",
464
464
  "os": [
465
465
  "darwin"
@@ -470,8 +470,8 @@
470
470
  "optional": true
471
471
  },
472
472
  "node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
473
- "version": "0.9.38-alpha.7",
474
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38-alpha.7.tgz",
473
+ "version": "0.9.38-alpha.9",
474
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38-alpha.9.tgz",
475
475
  "license": "MIT",
476
476
  "os": [
477
477
  "linux"
@@ -485,8 +485,8 @@
485
485
  "optional": true
486
486
  },
487
487
  "node_modules/@bastani/atomic-natives-linux-arm64-musl": {
488
- "version": "0.9.38-alpha.7",
489
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38-alpha.7.tgz",
488
+ "version": "0.9.38-alpha.9",
489
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38-alpha.9.tgz",
490
490
  "license": "MIT",
491
491
  "os": [
492
492
  "linux"
@@ -500,8 +500,8 @@
500
500
  "optional": true
501
501
  },
502
502
  "node_modules/@bastani/atomic-natives-linux-x64-gnu": {
503
- "version": "0.9.38-alpha.7",
504
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38-alpha.7.tgz",
503
+ "version": "0.9.38-alpha.9",
504
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38-alpha.9.tgz",
505
505
  "license": "MIT",
506
506
  "os": [
507
507
  "linux"
@@ -515,8 +515,8 @@
515
515
  "optional": true
516
516
  },
517
517
  "node_modules/@bastani/atomic-natives-linux-x64-musl": {
518
- "version": "0.9.38-alpha.7",
519
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38-alpha.7.tgz",
518
+ "version": "0.9.38-alpha.9",
519
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38-alpha.9.tgz",
520
520
  "license": "MIT",
521
521
  "os": [
522
522
  "linux"
@@ -530,8 +530,8 @@
530
530
  "optional": true
531
531
  },
532
532
  "node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
533
- "version": "0.9.38-alpha.7",
534
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38-alpha.7.tgz",
533
+ "version": "0.9.38-alpha.9",
534
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38-alpha.9.tgz",
535
535
  "license": "MIT",
536
536
  "os": [
537
537
  "win32"
@@ -542,8 +542,8 @@
542
542
  "optional": true
543
543
  },
544
544
  "node_modules/@bastani/atomic-natives-win32-x64-msvc": {
545
- "version": "0.9.38-alpha.7",
546
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38-alpha.7.tgz",
545
+ "version": "0.9.38-alpha.9",
546
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38-alpha.9.tgz",
547
547
  "license": "MIT",
548
548
  "os": [
549
549
  "win32"
@@ -554,8 +554,8 @@
554
554
  "optional": true
555
555
  },
556
556
  "node_modules/@bastani/pi-ai": {
557
- "version": "0.9.38-alpha.7",
558
- "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38-alpha.7.tgz",
557
+ "version": "0.9.38-alpha.9",
558
+ "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38-alpha.9.tgz",
559
559
  "license": "MIT",
560
560
  "dependencies": {
561
561
  "@anthropic-ai/sdk": "0.129.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.7",
3
+ "version": "0.9.38-alpha.9",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -89,8 +89,8 @@
89
89
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
90
90
  },
91
91
  "dependencies": {
92
- "@bastani/atomic-natives": "0.9.38-alpha.7",
93
- "@bastani/pi-ai": "0.9.38-alpha.7",
92
+ "@bastani/atomic-natives": "0.9.38-alpha.9",
93
+ "@bastani/pi-ai": "0.9.38-alpha.9",
94
94
  "@earendil-works/pi-agent-core": "1.3.0",
95
95
  "@earendil-works/pi-codemode": "1.3.0",
96
96
  "@earendil-works/pi-tui": "1.3.0",
@@ -1,101 +0,0 @@
1
- ---
2
- title: "Local models on NVIDIA RTX"
3
- description: "Convert NVIDIA llama.cpp recipes into router presets for Atomic."
4
- ---
5
-
6
- # Run Atomic with NVIDIA RTX and llama.cpp
7
-
8
- [NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. Atomic works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset.
9
-
10
- The examples below use Windows PowerShell. See [Local Models with llama.cpp](/llama-cpp) for Atomic's complete router and model-management reference.
11
-
12
- ## Before you begin
13
-
14
- 1. Open the [recipe catalog](https://nvidia.github.io/local-ai-inference-recipes/index.html), select your hardware, operating system, and model, then choose **llama.cpp**. Check the prerequisites and memory requirements. Keep the recipe's launch command for the conversion below.
15
- 2. Install llama.cpp with the recipe's setup instructions. The recipe's settings depend on its build, for example CUDA support or speculative decoding options.
16
- 3. Run `llama-server --help` and check that it lists `--models-preset`. Without it, the build cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
17
- 4. Install Atomic with the [Quickstart](/quickstart). On native Windows, also see [Run Atomic on Windows](/windows).
18
-
19
- ## Convert the recipe to a preset
20
-
21
- A preset lists the settings for one or more models. Each section name becomes the model ID shown in Atomic. Save the preset next to `llama-server`, or pass its full path when starting the router.
22
-
23
- Convert each option from the recipe command into one preset line:
24
-
25
- - Remove the leading dashes: `--ctx-size 65536` becomes `ctx-size = 65536`.
26
- - Write options without a value as `true`: `--jinja` becomes `jinja = true`.
27
- - Remove quotes and PowerShell line-continuation backticks around values.
28
- - Leave out `--host` and `--port`. They belong on the router command line.
29
- - Add `load-on-startup = true` so the router loads the model when it starts.
30
- - Replace short model-file options with their long preset keys:
31
-
32
- | Recipe option | Preset key |
33
- |---|---|
34
- | `-hf` | `hf-repo` |
35
- | `-hff` | `hf-file` |
36
- | `-hfrd` | `hf-repo-draft` |
37
- | `--spec-draft-model` | `spec-draft-model` |
38
-
39
- For example, this recipe command:
40
-
41
- ```powershell
42
- llama-server.exe -hf "unsloth/Qwen3.8-27B-GGUF" `
43
- -hff "Qwen3.8-27B-UD-Q4_K_M.gguf" `
44
- -hfrd "z-lab/Qwen3.8-27B-DFlash2-GGUF" `
45
- --spec-draft-model "Qwen3.8-27B-DFlash2-Q4_K_M.gguf" `
46
- --no-mmproj `
47
- --host 127.0.0.1 `
48
- --port 9931 `
49
- --batch-size 4096 `
50
- --ubatch-size 1024 `
51
- --ctx-size 65536 `
52
- --parallel 1 `
53
- -ngl 999 `
54
- --jinja `
55
- --chat-template-kwargs '{"preserve_thinking":true}' `
56
- --spec-type draft-dflash `
57
- --spec-draft-n-max 7 `
58
- --spec-draft-backend-sampling
59
- ```
60
-
61
- becomes `qwen3.8-27b.ini`:
62
-
63
- ```ini
64
- version = 1
65
-
66
- [qwen3.8-27b]
67
- load-on-startup = true
68
- hf-repo = unsloth/Qwen3.8-27B-GGUF
69
- hf-file = Qwen3.8-27B-UD-Q4_K_M.gguf
70
- hf-repo-draft = z-lab/Qwen3.8-27B-DFlash2-GGUF
71
- spec-draft-model = Qwen3.8-27B-DFlash2-Q4_K_M.gguf
72
- no-mmproj = true
73
- batch-size = 4096
74
- ubatch-size = 1024
75
- ctx-size = 65536
76
- parallel = 1
77
- ngl = 999
78
- jinja = true
79
- chat-template-kwargs = {"preserve_thinking":true}
80
- spec-type = draft-dflash
81
- spec-draft-n-max = 7
82
- spec-draft-backend-sampling = true
83
- ```
84
-
85
- ## Start the router
86
-
87
- Open PowerShell in the llama.cpp folder and run:
88
-
89
- ```powershell
90
- .\llama-server.exe --models-preset qwen3.8-27b.ini --host 127.0.0.1 --port 8080
91
- ```
92
-
93
- If the recipe requires a Hugging Face token, set `$env:HF_TOKEN` in the same PowerShell window before starting the router. On its first start, the router downloads the model files.
94
-
95
- Use the [router health checks](/llama-cpp#troubleshooting) to confirm that the server is ready. In Windows PowerShell, use `curl.exe` rather than `curl`, which PowerShell maps to a different command. The model is ready when `/models` lists `qwen3.8-27b` with the status `loaded`.
96
-
97
- ## Use the model in Atomic
98
-
99
- Follow [Configure Atomic](/llama-cpp#configure-atomic) and connect to `http://127.0.0.1:8080`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
100
-
101
- NVIDIA recipe memory settings assume that only the selected model uses the GPU. If `/llama` shows other loaded models, unload them before using the recipe model.