agent-bios 0.20.0 → 0.21.0

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 (38) hide show
  1. package/DEPENDENCIES.md +3 -2
  2. package/README.md +25 -9
  3. package/claude/guides/cli-multi-model-workflow.md +6 -6
  4. package/claude/guides/gpt-prompting.md +151 -75
  5. package/codex/agents/frontier.toml +1 -1
  6. package/codex/agents/reviewer.toml +1 -1
  7. package/codex/agents/workhorse.toml +1 -1
  8. package/codex/guides/cli-multi-model-workflow.md +6 -6
  9. package/codex/guides/gpt-prompting.md +151 -75
  10. package/compose/app_bridge/scripts/bridge.py +8 -0
  11. package/compose/instructions_app.py +20 -2
  12. package/compose/instructions_install.py +34 -8
  13. package/compose/instructions_setup.py +4 -1
  14. package/docs/advanced-launch.md +1 -1
  15. package/docs/macos-linux.md +92 -0
  16. package/docs/recovery.md +1 -1
  17. package/docs/releases/0.20.1.md +76 -0
  18. package/docs/releases/0.21.0.md +101 -0
  19. package/docs/setup.md +7 -3
  20. package/docs/windows.md +23 -14
  21. package/install.sh +72 -41
  22. package/launch/agent-launch.toml +11 -9
  23. package/launch/provision-venv.sh +3 -2
  24. package/package.json +3 -2
  25. package/provenance.json +1 -1
  26. package/session-distill/distill.py +22 -2
  27. package/session-distill/runlib/declare.py +70 -3
  28. package/session-distill/runlib/dispatch.py +26 -20
  29. package/session-distill/runlib/gate.py +149 -11
  30. package/session-distill/runlib/packet.py +3 -2
  31. package/session-distill/runlib/stage_form.py +1 -1
  32. package/session-distill/runlib/stage_judge.py +8 -4
  33. package/session-distill/runlib/views.py +1 -1
  34. package/session-distill/schemas/run.schema.json +10 -1
  35. package/session-distill/seats.json +35 -60
  36. package/wrappers/claude-run.sh +10 -7
  37. package/wrappers/codex-helm.sh +8 -8
  38. package/wrappers/codex-run.sh +9 -6
@@ -9,57 +9,68 @@ use_when:
9
9
  - porting a prompt written for an older gpt model
10
10
  - deciding a reasoning-effort level for gpt work
11
11
  core_rules:
12
- - apply the shared recipe plus the section for the target model's family — GPT-5.6 and GPT-6 have different prompting needs, and the GPT-6 advice is observed on Astra and a starting point for the other GPT-6 models
12
+ - apply the shared recipe plus the section for the target model's family — GPT-5.6, GPT-6 and GPT-6.2 have different prompting needs; the GPT-6 advice is observed on GPT-6 Astra, the GPT-6.2 advice on GPT-6.2 Astra and Sol, and each is a starting point for the rest of its family
13
13
  - describe the destination, not the route — state outcome, success bar, real constraints, and available evidence
14
14
  - keep only what changes behavior; cut repeated statements, style rules, and examples that do not
15
15
  - replace blanket ALWAYS/NEVER with decision rules naming the condition each choice applies under
16
16
  - fix the prompt before raising effort — first check for a missing success criterion, dependency rule, tool-routing rule, or verification loop
17
17
  - prompting habits carried from older gpt models cost tokens and can cost accuracy
18
- derived_at: 2026-10-21
18
+ derived_at: 2026-11-24
19
19
  source_pins:
20
+ - doc: model-guidance-gpt-6p2
21
+ sha256: d51a271ccee79b94428bc1d1a1591f9f98c424f2d9d084a37ccc4358dada40c0
22
+ pinned_at: 2026-11-24
20
23
  - doc: prompt-guidance-gpt-5p6
21
- sha256: 46181efec9fd1160ef537b0379282a14c1ba32380f2f8149a805128253c1115a
22
- pinned_at: 2026-10-21
24
+ sha256: fbf38652350fee866f46d888e6a0e83537cf5a5a148818271332260cd3e439f7
25
+ pinned_at: 2026-11-24
23
26
  - doc: model-guidance-gpt-5p6
24
27
  sha256: bcbc002991e3ff6491ba5c4d38d8f5c497fa785c0b11ea27d92c9d34676ab460
25
- pinned_at: 2026-10-21
28
+ pinned_at: 2026-11-24
26
29
  - doc: upgrading-to-gpt-5p6-sol
27
- sha256: d4d2494240bc124bde81d96a9a389f3ed7122deabc4b508c18d26a3ebd20c74f
28
- pinned_at: 2026-10-21
30
+ sha256: 59484b7370078d3482d972dfeb7f79fe862e410571881f9983e1bca7dea89ebe
31
+ pinned_at: 2026-11-24
32
+ - doc: model-gpt-6p2-astra
33
+ sha256: b12e61471fed60c843626fdee3dea09c86babae84ea779a5f5eb9193cb62720f
34
+ pinned_at: 2026-11-24
35
+ - doc: model-gpt-6p2-sol
36
+ sha256: 551d09dbb7e6f64a1af314446b8d5a72ab9bf66daa4407060007d11ce54acf43
37
+ pinned_at: 2026-11-24
29
38
  - doc: model-guidance-gpt-6-astra
30
- sha256: ad1aeb3d87e2e61a91233447f7c54b7b18ebfecc4315eeefab15bf5861b3a5c7
31
- pinned_at: 2026-10-21
39
+ sha256: b12f5dde985df0ac1e03ea5eaa40dfcdb0e4620a1bf1ae4d78cdd81f8c7f4c3a
40
+ pinned_at: 2026-11-24
32
41
  - doc: model-gpt-6-astra
33
- sha256: b7c19b3bb89e87a392a0f3f8b732c5e7c9f0bf558cbe3022c491575a947fcef8
34
- pinned_at: 2026-10-21
42
+ sha256: 31d55873985379d2b4e129fd41f974e8511b9de1a5105dc4e0692b53b504a8cb
43
+ pinned_at: 2026-11-24
35
44
  - doc: model-gpt-6p1-sol
36
- sha256: acfe91d19882aaf7bb52877898684614035a947de02f2955c9de905a7efb1362
37
- pinned_at: 2026-10-21
45
+ sha256: 02dff9ef937bbc97fb24ba7c936269a549563cfb8a49b91a6ba1c1575d2b77c0
46
+ pinned_at: 2026-11-24
38
47
  - doc: model-gpt-6-sol
39
- sha256: 3dcb62c16386c40e52438e7fa7fb46b979d13cbfc324d0807246e24ce43345bb
40
- pinned_at: 2026-10-21
48
+ sha256: 8e3cd3378f0686313dd489ed37347d481d24d4b791e7bd28b1538c4df7762fc4
49
+ pinned_at: 2026-11-24
41
50
  - doc: model-gpt-6-luna
42
- sha256: 2e4861582095740f5ea84b14bb18fa476a49c426b397b779b964bc144397b451
43
- pinned_at: 2026-10-21
51
+ sha256: dacc9870e67c0d68e4272f8394d4296ffe7cf70f18d3f4675ee6bd4c666966b7
52
+ pinned_at: 2026-11-24
44
53
  - doc: reasoning
45
- sha256: 18edc294a66c8eb442c5d0049b9e9d31af2b8e830ca6e41d6bf8798c902f4e14
46
- pinned_at: 2026-10-21
54
+ sha256: f0c480788b035a289f34aef88a58cb48abead8abd82194ae8f68b110d5971bfa
55
+ pinned_at: 2026-11-24
47
56
  - doc: codex-models
48
- sha256: 77779d7adf13e05df5bf7fa82088ebbaa647d16682a91cea5cd3cad043474f8e
49
- pinned_at: 2026-10-21
57
+ sha256: 2ca411d02af5e803e25d60eedcac752c7a6153c2c6dffafdbd854aff61f4277c
58
+ pinned_at: 2026-11-24
50
59
  - doc: prompt-caching
51
- sha256: 715eacd5f0fe6bd7b238b74b770a6eb5b9a5260f464b5d54066b0bf580d3e995
52
- pinned_at: 2026-10-21
60
+ sha256: 41fd5ad72dc74045ffb0fbe33e8213a879cc018a473b1e022b7be8fa04057625
61
+ pinned_at: 2026-11-24
53
62
  - doc: responses-multi-agent
54
- sha256: b16d53b38bc957a790d39d2a736531addfed88a2c806e2be11aac190ea817a3e
55
- pinned_at: 2026-10-21
63
+ sha256: 1bb6554687059202a4c92486d39fb2ea42730fb20a85880c33258186872012f8
64
+ pinned_at: 2026-11-24
56
65
  - doc: structured-outputs
57
- sha256: 09aa3814251cf168070294ace79d677091de04b330055048392548d604aa7104
58
- pinned_at: 2026-10-21
66
+ sha256: fbabb4598029cba47f3b19e173371da9950e6c9050b5380460b0256b8a08d9fe
67
+ pinned_at: 2026-11-24
59
68
  - doc: tools-programmatic-tool-calling
60
- sha256: fc459e1947d9fd4506c54c2a4f3e202d483a3a12a3488f06b974dbf98c787630
61
- pinned_at: 2026-10-21
69
+ sha256: cd5027c76f0d5c9473c0333b69dc89af27bf45c356760e2b1628172ef54923a9
70
+ pinned_at: 2026-11-24
62
71
  targets:
72
+ - gpt-6.2-astra
73
+ - gpt-6.2-sol
63
74
  - gpt-6-astra
64
75
  - gpt-6.1-sol
65
76
  - gpt-6-sol
@@ -90,6 +101,7 @@ permission policy; they do not change tool permissions or approval requirements.
90
101
  | --- | --- | --- |
91
102
  | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` | GPT-5.6 | `prompt-guidance-gpt-5p6`, `model-guidance-gpt-5p6` |
92
103
  | `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna` | GPT-6 family | `model-guidance-gpt-6-astra` plus the model's own page |
104
+ | `gpt-6.2-astra`, `gpt-6.2-sol` | GPT-6.2 | `model-guidance-gpt-6p2` plus the model's own page |
93
105
 
94
106
  ## Per-model facts
95
107
 
@@ -99,8 +111,9 @@ family guide. An omitted effort takes the documented default.
99
111
  | Model | `reasoning.effort` | Tool calling | Vendor positioning |
100
112
  | --- | --- | --- | --- |
101
113
  | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` | `none`, `low`, `medium` (default), `high`, `xhigh`, `max` | Responses API for reasoning with tools; Chat Completions function tools only with effective `none` — an omitted effort is `medium` and breaks that combination | Sol flagship capability; Terra intelligence/cost balance; Luna efficient, high-volume work |
114
+ | `gpt-6.2-astra`, `gpt-6.2-sol` | the API rejects `none` and documents no list or default; the vendor starts a new integration at `medium` and moves `none` or `minimal` to `low`; the Codex catalogue offers `low` through `max` and `ultra` | Responses API; Chat Completions only without tools; no Flex processing | Astra the most demanding tasks; Sol complex work at lower cost, Codex's everyday model |
102
115
  | `gpt-6-astra` | `low`, `medium`, `high`, `xhigh`, `max`; no `none`; no documented default | Responses API; Chat Completions only without tools | the most demanding reasoning, coding, computer use, and professional work |
103
- | `gpt-6.1-sol` | `low`, `medium` (default), `high`, `xhigh`, `max`; no `none` or `minimal` | Responses API; Chat Completions only without tools | near-Astra performance at lower cost; compare with Astra on your tasks |
116
+ | `gpt-6.1-sol` | `low`, `medium` (default), `high`, `xhigh`, `max`; no `none` or `minimal` | Responses API; Chat Completions only without tools | near-Astra performance at lower cost |
104
117
  | `gpt-6-sol` | `none`, `low`, `medium` (default), `high`, `xhigh`, `max` | Responses API for reasoning with tools; Chat Completions function calling only with `none` | complex coding and agentic workflows; its page points to 6.1 Sol as the newer Sol |
105
118
  | `gpt-6-luna` | `none`, `low`, `medium` (default), `high`, `xhigh`, `max` | as `gpt-6-sol` | focused, high-volume tasks |
106
119
 
@@ -128,9 +141,10 @@ family guide. An omitted effort takes the documented default.
128
141
 
129
142
  ## GPT-6 family
130
143
 
131
- OpenAI publishes one prompting document for GPT-6. Its best practices address
132
- behavior observed with GPT-6 Astra and are offered as a starting point across the
133
- family, to be evaluated with the chosen model and workload. The five behavior bullets
144
+ OpenAI's GPT-6 prompting document ("Using GPT-6") predates GPT-6.2, which has its own
145
+ (the next section). Its best practices address behavior observed with GPT-6 Astra and
146
+ are offered as a starting point across the family, to be evaluated with the chosen
147
+ model and workload. The five behavior bullets
134
148
  below are therefore Astra observations; for `gpt-6.1-sol`, `gpt-6-sol`, and
135
149
  `gpt-6-luna` the vendor states no model-specific prompting behavior, and what differs
136
150
  per model is the API facts in the table above, taken from each model page. Re-derive
@@ -158,9 +172,7 @@ this section when a GPT-6 model other than Astra gets a prompting document of it
158
172
  For plain prose, request concise paragraphs, familiar words, active verbs, and the
159
173
  main point first, with lists only for parallel, sequential, or comparable content.
160
174
  Retain the technical detail needed to assess the result; name unwanted stock
161
- phrases and contrastive framing when they recur. In several vendor evaluations Astra
162
- reached stronger results with substantially fewer output tokens, so re-measure
163
- brevity pressure written for GPT-5.6 before carrying it over.
175
+ phrases and contrastive framing when they recur.
164
176
  - **Subagent delegation.** Astra may delegate less often than a workflow needs and
165
177
  responds well to prompting for how and when to delegate. State when independent
166
178
  work is delegated, the intended parallelism, each subagent's scope, and when to keep
@@ -179,29 +191,95 @@ this section when a GPT-6 model other than Astra gets a prompting document of it
179
191
  `low` and is compared on representative tasks. When effort is not `none`, drop
180
192
  `temperature`, `top_p`, and the log-probability options (`top_logprobs`; `logprobs`
181
193
  in Chat Completions; `message.output_text.logprobs` in a Responses `include`). To
182
- change effort between responses, add a `configuration_update` item (GPT-6 only;
183
- standard single-agent requests; effort only) and leave the request-level effort
184
- unchanged so the cached prefix survives. Such a history cannot use automatic
185
- compaction or truncation, and `/responses/compact` rejects it; compact it with a
186
- `compaction_trigger` item in a `/responses` request, then add a fresh
187
- `configuration_update` before the next user message. Fix a missing success
188
- criterion, dependency rule, or verification loop before raising effort: effort is a
189
- tuning knob, not the primary way to recover quality.
194
+ change effort between responses, add a `configuration_update` item (GPT-6 and later;
195
+ standard single-agent requests; it updates the effort and the response format,
196
+ `json_schema` or `text`) and leave the request-level effort unchanged so the cached
197
+ prefix survives; the response keeps reporting the request-level effort. Such a
198
+ history can use automatic compaction through `context_management`, but automatic
199
+ truncation and `/responses/compact` reject it; to compact it explicitly, add a
200
+ `compaction_trigger` item in a `/responses` request, then a fresh
201
+ `configuration_update` restating every changed setting, format included, before the
202
+ next user message. Fix a missing success criterion, dependency rule, or verification
203
+ loop before raising effort (the GPT-5.6 guidance): effort is a tuning knob, not the
204
+ primary way to recover quality.
190
205
  - **Under Codex.** `ultra` is a Codex effort, not an API value — the API's effort list
191
206
  ends at `max`. It is a different mode, not the next rung: the client catalog
192
207
  describes it as maximum reasoning with automatic task delegation, it runs the task
193
208
  with subagents, and it suits work that divides into meaningful parts. The catalog
194
- offers it for `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6-sol`, `gpt-5.6-sol`, and
195
- `gpt-5.6-terra`; GPT-6 Luna goes up to Max and refuses Ultra, and most tasks need
196
- neither. Take the supported levels for a seat from the host's catalog, not from the
197
- API ladder: the two disagree. Efforts do not map exactly between model generations,
198
- so try a familiar task one setting lower and adjust. A run that omits effort inherits
199
- the client's default, which can differ from the API default (the client catalog sets
200
- `gpt-6.1-sol` to `low`; the API default is `medium`) — pin it in the launch config. The client's model catalog also places per-model base
201
- instructions under your prompt: Astra, 6.1 Sol, and 6 Sol carry the testing
202
- calibration above, while GPT-6 Luna is told not to add or run tests unless asked, so
203
- a Luna run that must verify needs its checks named in the prompt (Codex client
204
- catalog, codex-cli 0.163.0, read 2026-10-21; not a published document).
209
+ offers it for every listed Astra, Sol and Terra model, GPT-6.2 included; Luna goes up
210
+ to Max and refuses Ultra, and most tasks need neither. Take the supported levels for
211
+ a seat from the host's catalog, not from the API ladder: the two disagree, and for
212
+ GPT-6.2 only the catalog lists them. A run that omits effort inherits the client's
213
+ default, which can differ from the API default (the client catalog sets
214
+ `gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6-astra` and `gpt-6.1-sol` to `low`; the API
215
+ default for 6.1 Sol is `medium`) — pin it in the launch config. The client's model
216
+ catalog also places per-model instructions under your prompt: GPT-6.2 Astra and Sol
217
+ carry the vendor's GPT-6.2 coding sample, which skips new tests unless they are
218
+ requested, required by the repository, or needed for a regression the existing tests
219
+ would miss, so a 6.2 run that must add tests needs that requirement named; GPT-6
220
+ Astra, 6.1 Sol and 6 Sol carry the GPT-6 testing calibration above; and GPT-6 Luna is
221
+ told not to add or run tests unless asked, so a Luna run that must verify needs its
222
+ checks named in the prompt (Codex client catalog, codex-cli 0.171.0, read 2026-11-24;
223
+ not a published document).
224
+
225
+ ## GPT-6.2
226
+
227
+ OpenAI's GPT-6.2 document ("Using GPT-6.2") offers its prompts as a starting point
228
+ across the GPT-6.2 family; its examples address behavior seen with GPT-6.2 Astra and
229
+ Sol. It says nothing about delegation or skill sensitivity: for those, the GPT-6
230
+ bullets above are an Astra 6 starting point to evaluate, not a 6.2 observation.
231
+
232
+ - **Writing style.** More concise and direct by default than earlier models: revisit
233
+ "be concise" carried from older prompts instead of adding more brevity pressure.
234
+ Ask for the terminology the user and the sources use, the key points first, and
235
+ enough context to follow the reasoning; for material sent to an outside audience,
236
+ ask it to supply the background that audience lacks, and when editing, to keep the
237
+ author's content and wording.
238
+ - **Self-contained final answers.** Over long tasks the model can carry shorthand from
239
+ its reasoning, tool calls or subagent briefs into the final answer. Ask for a final
240
+ answer that a reader who skipped the progress updates can follow, written anew for
241
+ that reader.
242
+ - **Task completion.** When intent is unclear the model may propose a next step and
243
+ wait. For work that can proceed unsupervised, state the outcome to complete and which
244
+ decisions need the user; let it make reasonable, reversible assumptions within scope,
245
+ state them, and keep working, stopping only for a significant scope change, a concrete
246
+ block, a decision the user must make, or an irreversible or destructive action. Ask
247
+ it to check that every part of the request is done before it finishes; higher effort
248
+ can help it persist through those final checks. These tune behavior within the
249
+ existing approval rules, which stay as they are.
250
+ - **Coding style.** It writes more efficient code by default. Describe the codebase's
251
+ conventions and the behavior callers rely on: when to reuse existing logic, how
252
+ narrowly to scope a change, and when a test is wanted. The vendor's coding sample
253
+ asks for readable code over the shortest code and warns against indirection that adds
254
+ no value; its test rule is above, under Codex. Required repository gates stay in force.
255
+ - **Visual work.** For a particular look, name the imagery and typography; give it a
256
+ reference to render against and refine.
257
+
258
+ What changes in the API from GPT-6.2 on:
259
+
260
+ - **An edited prefix drops reasoning.** The Responses API drops reasoning items after an
261
+ edit to earlier history (rewriting an earlier developer message or tool result), some
262
+ model changes (downgrades among them), or a different end user or organization
263
+ (`safety_identifier`); answers can degrade and the model repeats work. Deleting whole
264
+ items or appending new ones is not such an edit. Change settings between responses
265
+ with `configuration_update` rather than by rewriting the prefix, and read
266
+ `input_transformations` in the response to see a removal.
267
+ - **Top-level `instructions` move after `input`.** They sit past every cache breakpoint,
268
+ bill at the uncached rate even on a cache hit, and do not carry over with
269
+ `previous_response_id`. Put reusable instructions in the first `developer` message of
270
+ `input`; keep top-level `instructions` for guidance meant for the current request only.
271
+ - **Caching parameters.** `prompt_cache_options.ttl` replaces `prompt_cache_retention`:
272
+ `"30m"` by default, `"12h"` in the Responses API. Cache writes bill at 1.25× the
273
+ uncached input rate for 30 minutes and 2.5× for 12 hours, and reads on 6.2 Astra and
274
+ Sol at 0.05×.
275
+ - **Processing.** No Flex processing; background mode offers discounted two- and
276
+ eight-hour completion windows for long requests.
277
+ - **Multi-agent beta.** Available on 6.2 Astra and Sol (and 6.1 Sol and GPT-5.6). With it
278
+ on, `/responses/compact` is unavailable, automatic compaction is on, `reasoning.summary`
279
+ and `max_tool_calls` are not supported, and three subagents run at once by default.
280
+ - **Under Codex.** The client's default context is 272,000 tokens for 6.2 Astra and
281
+ 500,000 for 6.2 Sol (client catalog); the Codex documents list both models for the
282
+ Codex app and CLI and not for the IDE extension.
205
283
 
206
284
  ## Shared prompt recipe
207
285
 
@@ -241,15 +319,6 @@ checklist below); omit any block that would not change the artifact.
241
319
  - Implementation plans: requirements, named resources, state transitions,
242
320
  validation checks, failure behavior, privacy/security, open questions.
243
321
 
244
- > **Carried from the 2026-09-07 derivation; the pinned `prompt-guidance-gpt-5p6` (the same
245
- > bytes then and now) does not state these. Re-derive or remove at the next
246
- > re-derivation.**
247
- >
248
- > - The success-criteria block is the one most worth its tokens.
249
- > - A reviewer with no stated bar defaults to plausible-sounding findings.
250
- > - Weak output usually means a missing success criterion, dependency rule, tool-routing
251
- > rule, or verification loop.
252
-
253
322
  ## How to choose prompt shape
254
323
 
255
324
  - A bounded review packet runs as one self-contained run with no inherited
@@ -269,16 +338,19 @@ checklist below); omit any block that would not change the artifact.
269
338
  caching writes through a changing suffix, so on GPT-5.6 and later mark the stable
270
339
  boundary with an explicit breakpoint where the implicit one misses it; check the
271
340
  reported `cached_tokens` and the cost before and after, and keep the breakpoint only
272
- where it improves them. Continuing a multi-turn task, keep earlier messages and tool
273
- results so later turns reuse the full prefix. Starting a new bounded task, send a
341
+ where it improves them. On GPT-6.2 the stable instructions belong in the first
342
+ `developer` message, not top-level `instructions` (the GPT-6.2 section). Continuing a
343
+ multi-turn task, keep earlier messages and tool results unedited so later turns
344
+ reuse the full prefix. Starting a new bounded task, send a
274
345
  self-contained packet rather than resuming a long history that holds context the task
275
346
  does not need.
276
347
 
277
348
  ## Programmatic tool calling
278
349
 
279
350
  A bounded stage where code processes several tool results and returns a much smaller
280
- structured result. The qualifier is **reduction**, not parallelism: multiple, parallel,
281
- or dependent calls alone do not justify it.
351
+ structured result. The qualifier is **reduction**, not parallelism: multiple or parallel
352
+ calls alone do not justify it, and dependent calls qualify only when code can derive the
353
+ later arguments and the limits and failure behavior are explicit.
282
354
 
283
355
  - Use it for filtering, joining, sorting, ranking, deduplication and aggregation,
284
356
  batching across many similar records, repeated deterministic validation, and large
@@ -312,7 +384,8 @@ or dependent calls alone do not justify it.
312
384
  - Persisted reasoning is not a free optimization. It helps while the objective and
313
385
  priorities hold; once they move, stale reasoning adds tokens and anchors the model to
314
386
  a superseded approach. Where the model supports `reasoning.context` (the GPT-5.6
315
- family, which defaults to `all_turns`, and GPT-6.1 Sol), set `current_turn` when
387
+ family, which defaults to `all_turns`, and GPT-6.1 Sol; not documented for GPT-6.2),
388
+ set `current_turn` when
316
389
  earlier reasoning is no longer relevant. Compact at milestones, not every turn, and
317
390
  treat compacted items as opaque.
318
391
  - Preserve explicit user values. Where the right value is implicit, give decision
@@ -346,16 +419,19 @@ GPT-6 measurements or promised gains on another workload.
346
419
 
347
420
  The GPT-5.6 section is derived from `prompt-guidance-gpt-5p6`, its facts row from
348
421
  `model-guidance-gpt-5p6` and `upgrading-to-gpt-5p6-sol`. The GPT-6 family section is
349
- derived from `model-guidance-gpt-6-astra` — the one GPT-6 prompting document, "Using
422
+ derived from `model-guidance-gpt-6-astra` — the GPT-6 prompting document, "Using
350
423
  GPT-6", which the Astra URL serves — with per-model facts from `model-gpt-6-astra`,
351
424
  `model-gpt-6p1-sol`, `model-gpt-6-sol`, and `model-gpt-6-luna` — the document calls its
352
425
  prompts a starting point across the GPT-6 family, so the section is not limited to
353
- Astra — effort semantics and
354
- `configuration_update` limits from `reasoning`, and Codex-only effort values from
355
- `codex-models`; the base-instruction note comes from the Codex client's local model
356
- catalog, which no URL serves and no pin tracks. The shared recipe keeps the GPT-5.6
426
+ Astra — effort semantics, `configuration_update` limits and the reasoning-item removal
427
+ rules from `reasoning`, and Codex-only effort values from `codex-models`. The GPT-6.2
428
+ section is derived from `model-guidance-gpt-6p2` ("Using GPT-6.2") with facts from
429
+ `model-gpt-6p2-astra` and `model-gpt-6p2-sol`, the caching changes from
430
+ `prompt-caching`, and the multi-agent limits from `responses-multi-agent`. The
431
+ per-model instruction notes, the default efforts and the 6.2 context sizes come from
432
+ the Codex client's local model catalog, which no URL serves and no pin tracks. The shared recipe keeps the GPT-5.6
357
433
  guidance's task, evidence, tool, and validation practices and applies them to the
358
- GPT-6 targets as this repository's choice, with prompt placement from `prompt-caching`,
434
+ GPT-6 and GPT-6.2 targets as this repository's choice, with prompt placement from `prompt-caching`,
359
435
  run shape from `responses-multi-agent`, schema-forced output from `structured-outputs`,
360
436
  and the programmatic-stage prerequisite from `tools-programmatic-tool-calling`. Model
361
437
  behavior claims belong only to their own section; `source_pins` records the exact
@@ -58,6 +58,14 @@ def main() -> int:
58
58
  if not isinstance(value, str) or (value and not Path(value).is_absolute()):
59
59
  raise RuntimeError("registered bridge has an invalid managed runtime path")
60
60
  env["AGENT_LAUNCH_VENV"] = value
61
+ if "python" in config:
62
+ # Registered by a bound command: install.sh runs its Python steps as
63
+ # $AGENT_BIOS_PYTHON, and the app starts this bridge without that variable,
64
+ # so the binding travels in the registration instead.
65
+ value = config["python"]
66
+ if not isinstance(value, str) or not Path(value).is_absolute():
67
+ raise RuntimeError("registered bridge has an invalid bound Python")
68
+ env["AGENT_BIOS_PYTHON"] = value
61
69
  if "python_binding" in config:
62
70
  bound = config["python_binding"]
63
71
  if not isinstance(bound, dict):
@@ -133,6 +133,20 @@ class AppBridge:
133
133
  config["launch_venv"] = saved["launch_venv"]
134
134
  if "python_binding" in saved:
135
135
  config["python_binding"] = saved["python_binding"]
136
+ if "AGENT_BIOS_PYTHON" in self.env:
137
+ # A registration made by a bound command (the standalone route) keeps that
138
+ # interpreter, so the bridge's install.sh children run under it; unbound
139
+ # registrations carry nothing and keep resolving python3 as before.
140
+ value = self.env["AGENT_BIOS_PYTHON"]
141
+ if value:
142
+ if not Path(value).is_absolute():
143
+ raise AppError("AGENT_BIOS_PYTHON must be an absolute interpreter path")
144
+ config["python"] = value
145
+ else:
146
+ current = self._owned_target()
147
+ saved = _read_json(current / "bridge.json") if current is not None else {}
148
+ if isinstance(saved.get("python"), str):
149
+ config["python"] = saved["python"]
136
150
  binding = runtime_environment(self.env)
137
151
  if binding:
138
152
  config["python_binding"] = binding
@@ -193,7 +207,9 @@ class AppBridge:
193
207
  config = _read_json(raw / "bridge.json")
194
208
  base = self._base_config()
195
209
  if (any(config.get(key) != value for key, value in base.items())
196
- or set(config) - set(base) - {"launch_venv", "python_binding"}
210
+ or set(config) - set(base) - {"launch_venv", "python_binding", "python"}
211
+ or ("python" in config and (not isinstance(config["python"], str)
212
+ or not Path(config["python"]).is_absolute()))
197
213
  or ("launch_venv" in config and (not isinstance(config["launch_venv"], str)
198
214
  or (config["launch_venv"] and not Path(config["launch_venv"]).is_absolute())))):
199
215
  raise AppError(f"app skill belongs to different private root settings: {self.target}")
@@ -434,10 +450,12 @@ class AppSessions:
434
450
  "AGENT_BIOS_PRIVATE_INSTRUCTIONS": "1", "AGENT_BIOS_LEGACY_INSTALL": "0"}}
435
451
  result["environment"].update(runtime_environment())
436
452
  registered = bridge.managed_status().get("registered")
437
- if "AGENT_LAUNCH_VENV" in self.env or registered:
453
+ if "AGENT_LAUNCH_VENV" in self.env or "AGENT_BIOS_PYTHON" in self.env or registered:
438
454
  config = bridge._config()
439
455
  if "launch_venv" in config:
440
456
  result["environment"]["AGENT_LAUNCH_VENV"] = config["launch_venv"]
457
+ if "python" in config:
458
+ result["environment"]["AGENT_BIOS_PYTHON"] = config["python"]
441
459
  if registered:
442
460
  result["bridge_learn_argv"] = python_argv(bridge.target / "scripts/bridge.py", "learn")
443
461
  return result
@@ -669,22 +669,34 @@ class InstructionsInstaller:
669
669
 
670
670
  def _current_launcher_runtime(self):
671
671
  if not WINDOWS:
672
- return None
672
+ # A POSIX launcher names an interpreter only when the command that ran this
673
+ # install was bound to one (the standalone route exports AGENT_BIOS_PYTHON).
674
+ # Unbound, it stays the PATH-resolved launcher every earlier receipt recorded.
675
+ python = self.env.get('AGENT_BIOS_PYTHON')
676
+ if not python:
677
+ return None
678
+ if not Path(python).is_absolute():
679
+ raise InstallError('AGENT_BIOS_PYTHON must be an absolute interpreter path')
680
+ return {'schema_version': 1, 'python': python, 'environment': {}}
673
681
  env = runtime_environment(self.env)
674
682
  return {'schema_version': 1, 'python': env.get('AGENT_BIOS_PYTHON_EXECUTABLE', str(Path(sys.executable).resolve())),
675
683
  'environment': env}
676
684
 
685
+ @staticmethod
686
+ def _checked_launcher_runtime(spec) -> dict[str, Any]:
687
+ if (not isinstance(spec, dict) or set(spec) != {'schema_version', 'python', 'environment'}
688
+ or spec['schema_version'] != 1 or not isinstance(spec['python'], str)
689
+ or not Path(spec['python']).is_absolute() or not isinstance(spec['environment'], dict)):
690
+ raise InstallError('invalid recorded launcher runtime')
691
+ return spec
692
+
677
693
  def _launcher_body(self, package_root: Path, *, launcher_runtime=None, current=True) -> bytes:
678
694
  if WINDOWS:
679
695
  spec = self._current_launcher_runtime() if current else launcher_runtime
680
696
  if spec is None:
681
697
  # Exact pre-binding Windows source format, for existing receipts.
682
698
  return ('@echo off\r\n"' + sys.executable + '" "' + str(package_root / "compose/native_cli.py") + '" launch %*\r\n').encode("utf-8")
683
- if (not isinstance(spec, dict) or set(spec) != {'schema_version', 'python', 'environment'}
684
- or spec['schema_version'] != 1 or not isinstance(spec['python'], str)
685
- or not Path(spec['python']).is_absolute() or not isinstance(spec['environment'], dict)):
686
- raise InstallError('invalid recorded launcher runtime')
687
- env = spec['environment']
699
+ env = self._checked_launcher_runtime(spec)['environment']
688
700
  allowed = {'AGENT_BIOS_PYTHON_ENTRY', 'AGENT_BIOS_PYTHON_DEPS', 'AGENT_BIOS_PYTHON_EXECUTABLE'}
689
701
  if env and (set(env) != allowed or any(not isinstance(v, str) or not Path(v).is_absolute() for v in env.values())):
690
702
  raise InstallError('invalid recorded launcher dependency binding')
@@ -701,6 +713,19 @@ class InstructionsInstaller:
701
713
  canonical = (package_root / "compose/instructions_store.py").is_file()
702
714
  activation = ("unset AGENT_BIOS_PRIVATE_CORPUS\nexport AGENT_BIOS_PRIVATE_INSTRUCTIONS=1\n"
703
715
  if canonical else "export AGENT_BIOS_PRIVATE_CORPUS=1\n")
716
+ spec = self._current_launcher_runtime() if current else launcher_runtime
717
+ if spec is not None:
718
+ # Exported as well as executed: the launcher's shell adapters run their Python
719
+ # helpers as $AGENT_BIOS_PYTHON, and a user's shell carries no such binding.
720
+ python = self._checked_launcher_runtime(spec)['python']
721
+ if spec['environment'] or any(c in python for c in '\r\n\0'):
722
+ raise InstallError('invalid recorded POSIX launcher runtime')
723
+ return ("#!/bin/sh\n"
724
+ + activation
725
+ + f"export AGENT_BIOS_PACKAGE_ROOT={quoted}\n"
726
+ + f"AGENT_BIOS_PYTHON={shlex.quote(python)}\n"
727
+ "export AGENT_BIOS_PYTHON\n"
728
+ "exec \"$AGENT_BIOS_PYTHON\" \"$AGENT_BIOS_PACKAGE_ROOT/launch/agent-launch.py\" \"$@\"\n").encode("utf-8")
704
729
  return ("#!/bin/sh\n"
705
730
  + activation
706
731
  + f"export AGENT_BIOS_PACKAGE_ROOT={quoted}\n"
@@ -946,8 +971,9 @@ class InstructionsInstaller:
946
971
  "launcher": launcher, "config_files": config, "created_at": int(time.time()),
947
972
  "mode": "private-session-scoped", "needs_action": [],
948
973
  }
949
- if WINDOWS:
950
- record["launcher_runtime"] = self._current_launcher_runtime()
974
+ launcher_runtime = self._current_launcher_runtime()
975
+ if WINDOWS or launcher_runtime is not None:
976
+ record["launcher_runtime"] = launcher_runtime
951
977
  if selection_mode is not None:
952
978
  record["selection_mode"] = selection_mode
953
979
  paths = [{"path": str(path), "before": self._file_version(path),
@@ -89,7 +89,10 @@ def dependency_inventory(repo: Path, environ: dict[str, str] | None = None, *,
89
89
  add("bash", "Bash", "runtime", "Runs the package entry point and bundled shell tools.",
90
90
  path=paths["bash"], argv=[paths["bash"], "--version"] if paths["bash"] else None,
91
91
  action=formula("bash"), scope="Homebrew prefix", reason="Install Bash using your operating system package manager.")
92
- py = sys.executable if system == "Windows" else paths["python3"]
92
+ # A bound installation (AGENT_BIOS_PYTHON, set by the standalone command) runs every Python
93
+ # step under that interpreter, so it is the one to report, not whatever python3 PATH finds.
94
+ bound = env.get("AGENT_BIOS_PYTHON")
95
+ py = sys.executable if system == "Windows" else (bound if bound and Path(bound).is_absolute() else paths["python3"])
93
96
  add("python3", "Python 3.12+", "runtime", "Runs installation, instructions storage, and terminal interfaces.", path=py,
94
97
  argv=[py, "-c", "import sys; print(sys.version.split()[0]); raise SystemExit(sys.version_info < (3,12))"] if py else None,
95
98
  action=formula("python"), scope="Homebrew prefix", reason="Install Python 3.12+ and ensure python3 resolves to it.")
@@ -120,7 +120,7 @@ Review runs cross-family by default (`review_family`, default `cross`; `same` se
120
120
 
121
121
  ## Internal adapters and permission boundaries
122
122
 
123
- When the internal Codex wrappers are available to a configured route, `codex-helm` follows the local CLI default and launches the HELM main with `--dangerously-bypass-approvals-and-sandbox`; an explicit `--sandbox MODE` disables bypass for that run regardless of flag order. `AGENTS.md` gives root/main local Codex sessions standing ordinary-subagent authorization when the delegation gates fire. A non-Ultra HELM main sets native multi-agent off by default and instructs HELM to send tiered dispatch through the internal `codex-run` adapter, where the selected model, effort, and sandbox are pinned; native multi-agent defaults on only when the HELM main itself is explicitly Ultra. FRONTIER is instructed to run as a separate `gpt-6-astra` root that is always read-only, at max by default, Ultra for genuinely divisible complex work, or a lower supported effort when cost or latency dominates. Because the HELM main has bypass authority and arbitrary expert `-c` by design, this dispatch route is an instruction-backed, live-E2E-verified default rather than a security boundary. Keep `codex-run` as the low-level internal adapter, not as a user-facing policy boundary. Both wrappers accept `-c key=value` as an expert override, and that override may intentionally change wrapper defaults for a single run. The private installer keeps wrapper files in its immutable release rather than populating `$CODEX_HOME/bin`; a route that still names a native-home wrapper is unavailable until its adapter path is resolved.
123
+ When the internal Codex wrappers are available to a configured route, `codex-helm` follows the local CLI default and launches the HELM main with `--dangerously-bypass-approvals-and-sandbox`; an explicit `--sandbox MODE` disables bypass for that run regardless of flag order. `AGENTS.md` gives root/main local Codex sessions standing ordinary-subagent authorization when the delegation gates fire. A non-Ultra HELM main sets native multi-agent off by default and instructs HELM to send tiered dispatch through the internal `codex-run` adapter, where the selected model, effort, and sandbox are pinned; native multi-agent defaults on only when the HELM main itself is explicitly Ultra. FRONTIER is instructed to run as a separate `gpt-6.2-astra` root that is always read-only, at max by default, Ultra for genuinely divisible complex work, or a lower supported effort when cost or latency dominates. Because the HELM main has bypass authority and arbitrary expert `-c` by design, this dispatch route is an instruction-backed, live-E2E-verified default rather than a security boundary. Keep `codex-run` as the low-level internal adapter, not as a user-facing policy boundary. Both wrappers accept `-c key=value` as an expert override, and that override may intentionally change wrapper defaults for a single run. The private installer keeps wrapper files in its immutable release rather than populating `$CODEX_HOME/bin`; a route that still names a native-home wrapper is unavailable until its adapter path is resolved.
124
124
 
125
125
  `claude-run` is the Claude-side review adapter carried by the release, and it takes `--model` and `--effort` to pin the seat. Omitting either warns and dispatches anyway, matching `codex-run`: refusing outright turned "the review ran unpinned" into "the review did not run", which is the worse of the two. The honest signal is downstream instead — an unpinned dispatch can name no seat, so it emits no receipt and the method adjudicates to UNKNOWN rather than to a clean pass. Its default denies the mutating tools, which is not the OS-level sandbox its Codex twin gets — do not read the two defaults as equivalent guarantees.
126
126
 
@@ -0,0 +1,92 @@
1
+ # macOS and Linux installation
2
+
3
+ The one-line `curl ... | bash` command in the [README](../README.md#in-a-terminal)
4
+ installs agent-bios on macOS and Linux. It is the installation page's command and
5
+ appears there verbatim.
6
+
7
+ The command needs `curl`, `tar` and `bash`, which macOS and the usual Linux
8
+ distributions already have. It does not need npm, Node.js or a preinstalled Python.
9
+ Model host CLIs such as Claude Code and Codex remain separate programs, which setup
10
+ offers to install.
11
+
12
+ ## What the command does
13
+
14
+ 1. It finds a Python. An existing `python3` that is CPython 3.12 or newer, and not a
15
+ virtual environment, is used. Otherwise a pinned CPython 3.13 build from
16
+ python-build-standalone is downloaded into agent-bios's own folder, after its size
17
+ and SHA-256 match the values pinned in the script. Builds are pinned for Apple
18
+ silicon and Intel Macs and for x86_64 and ARM64 Linux with glibc; on musl Linux
19
+ (Alpine), install CPython 3.12+ with the package manager first.
20
+ 2. It reads the latest release from the npm registry and downloads that package. The
21
+ package is extracted only if it matches the registry's SHA-512, the same check npm
22
+ makes.
23
+ 3. It writes the `agent-bios` command to `~/.local/bin`, the folder where agent-bios
24
+ also puts `agent-launch`. The command runs every later Python step under the
25
+ interpreter from step 1, so a different or missing `python3` on PATH does not
26
+ matter afterwards.
27
+ 4. When `~/.local/bin` is not on PATH, it appends one marked block to your shell's
28
+ startup file: `~/.zshrc` for zsh, `~/.bash_profile` on macOS or `~/.bashrc` on
29
+ Linux for bash, a file in `~/.config/fish/conf.d` for fish, otherwise `~/.profile`.
30
+ New terminals then find `agent-bios`. The terminal that ran the command keeps its
31
+ old PATH; the command prints the line that updates it.
32
+ 5. It opens first-time setup. When a work environment already exists, it refreshes
33
+ it instead, keeping saved choices and personal instructions.
34
+
35
+ Releases up to 0.20.1 predate this route. For those, the command installs with npm
36
+ as before when npm and `python3` 3.12+ are present, and otherwise says which of them
37
+ is missing.
38
+
39
+ ## Options
40
+
41
+ `curl | bash` passes no arguments, so options are environment variables placed in
42
+ front of `bash`: replace the final `bash` of the command with, for example,
43
+ `AGENT_BIOS_NO_MODIFY_PATH=1 bash`.
44
+
45
+ | Variable | Effect |
46
+ | --- | --- |
47
+ | `AGENT_BIOS_VERSION=x.y.z` | install that release instead of the latest |
48
+ | `AGENT_BIOS_PYTHON=/path/to/python3` | use this interpreter (CPython 3.12+) |
49
+ | `AGENT_BIOS_PRIVATE_PYTHON=1` | use the pinned Python even when one is installed |
50
+ | `AGENT_BIOS_NO_PYTHON_DOWNLOAD=1` | stop instead of downloading a Python |
51
+ | `AGENT_BIOS_NO_MODIFY_PATH=1` | print the PATH line instead of adding it |
52
+ | `AGENT_BIOS_NO_LAUNCH=1` | do not open setup afterwards |
53
+ | `AGENT_BIOS_INSTALL_ROOT=/path` | program folder (default `~/.local/share/agent-bios-standalone`) |
54
+ | `AGENT_BIOS_REGISTRY=<HTTPS address>` | npm registry to read (default: the public npm registry) |
55
+
56
+ ## Update and removal
57
+
58
+ Running the install command again is the update. It installs the latest release beside the
59
+ current one, switches the command to it and refreshes the work environment.
60
+ `agent-bios update` prints the command.
61
+
62
+ `agent-bios uninstall` removes the deployed work environment, as on every route.
63
+ To remove the program as well:
64
+
65
+ ```bash
66
+ sh ~/.local/share/agent-bios-standalone/uninstall.sh
67
+ ```
68
+
69
+ It runs `agent-bios uninstall` first (`--program-only` skips that), then removes
70
+ the `agent-bios` command if it is unchanged, the PATH block it added, and the
71
+ program folder with its private Python. Personal instructions, learning records,
72
+ session records and any Python installed outside that folder are kept.
73
+
74
+ ## Existing installations and limits
75
+
76
+ An `agent-bios` command in `~/.local/bin` that this command did not write, such as
77
+ an npm installation whose prefix is `~/.local`, is left untouched and the run stops.
78
+ An npm installation elsewhere stays installed, and the command says which of the two
79
+ `agent-bios` a terminal now runs: when it adds `~/.local/bin` to PATH, new terminals
80
+ run this installation, and when `~/.local/bin` is already on PATH behind npm's folder,
81
+ the npm one keeps running. Keep one of them, for example with
82
+ `npm uninstall -g agent-bios`, so updates reach the one you use.
83
+
84
+ The zsh shell connection reads `claude`'s subcommands with the `python3` your
85
+ terminal finds. On a Mac with no Python of its own it says so and starts `claude`
86
+ without the permission flag.
87
+
88
+ The install-site workflow runs this command on Linux x86_64 and ARM64 and on Apple
89
+ silicon and Intel macOS runners, from a PATH without python, node or npm, before and
90
+ after each deployment. Machines whose management software restricts which programs
91
+ run are not covered by those runners; there, `AGENT_BIOS_PYTHON` selects an approved
92
+ interpreter instead of the downloaded one.
package/docs/recovery.md CHANGED
@@ -33,7 +33,7 @@ wiring. Neither activates instructions in a task.
33
33
  | `agent-bios reset` | preview reset; keep sources, snapshots, and pins |
34
34
  | `agent-bios reset --apply --yes --expected-revision REV` | use the revision returned by preview |
35
35
  | `agent-bios migrate` | preview legacy global cleanup; --apply --yes performs it |
36
- | `agent-bios update` | git pull + reinstall (clone), or print the npm update line |
36
+ | `agent-bios update` | git pull + reinstall (clone), or print the npm or install-command update line |
37
37
  | `agent-bios uninstall` | remove owned runtime entries; retain user instructions and pinned sessions |
38
38
 
39
39
  `agent-launch` examples assume `~/.local/bin` is on `PATH`; otherwise use `"$HOME/.local/bin/agent-launch"`. From a checkout, deploy with `bash install.sh install` at its root, not the globally installed CLI. A blocked npm postinstall message does not deploy the instructions; the explicit `install` command remains necessary.