agent-bios 0.19.3 → 0.20.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 (172) hide show
  1. package/DEPENDENCIES.md +62 -20
  2. package/INSTALL.md +1 -1
  3. package/README.md +16 -21
  4. package/claude/agents/frontier.md +1 -1
  5. package/claude/agents/sweep.md +2 -1
  6. package/claude/agents/workhorse.md +2 -2
  7. package/claude/guides/claude-prompting.md +494 -167
  8. package/claude/guides/cli-multi-model-workflow.md +8 -7
  9. package/claude/guides/gpt-prompting.md +241 -111
  10. package/claude/guides/session-distill-workflow.md +93 -43
  11. package/claude/guides/tooling-gotchas.md +3 -1
  12. package/codex/agents/reviewer.toml +2 -2
  13. package/codex/agents/sweep.toml +1 -1
  14. package/codex/agents/workhorse.toml +2 -2
  15. package/codex/guides/claude-prompting.md +494 -167
  16. package/codex/guides/cli-multi-model-workflow.md +8 -7
  17. package/codex/guides/gpt-prompting.md +241 -111
  18. package/codex/guides/session-distill-workflow.md +93 -43
  19. package/codex/guides/tooling-gotchas.md +3 -1
  20. package/compose/assemble.py +4 -1
  21. package/compose/canary.sh +8 -6
  22. package/compose/host_platform.py +158 -15
  23. package/compose/instructions-state.py +183 -41
  24. package/compose/instructions_app.py +2 -2
  25. package/compose/instructions_install.py +222 -27
  26. package/compose/instructions_session.py +250 -75
  27. package/compose/instructions_setup.py +6 -6
  28. package/compose/instructions_setup_cli.py +2 -36
  29. package/compose/instructions_setup_i18n.py +3 -3
  30. package/compose/instructions_store.py +160 -3
  31. package/compose/instructions_transaction.py +29 -5
  32. package/compose/instructions_ui_runtime.py +2 -2
  33. package/compose/setup/START.md +1 -1
  34. package/docs/advanced-launch.md +4 -0
  35. package/docs/releases/0.19.4.md +99 -0
  36. package/docs/releases/0.20.0.md +102 -0
  37. package/docs/setup.md +4 -4
  38. package/install.sh +54 -20
  39. package/launch/agent-launch.py +171 -22
  40. package/launch/agent-launch.toml +64 -29
  41. package/launch/agent-launch.zsh +104 -13
  42. package/launch/claude_subcommands.py +179 -0
  43. package/launch/provision-venv.sh +1 -1
  44. package/launch/shell_integration.py +7 -1
  45. package/learn/collect-learning.py +60 -9
  46. package/learn/migrate-learnings.py +70 -4
  47. package/learn/redact.py +2 -1
  48. package/package.json +37 -4
  49. package/provenance.json +1 -1
  50. package/session-cost.py +141 -18
  51. package/session-distill/coverage.json +6 -0
  52. package/session-distill/distill.py +2575 -0
  53. package/session-distill/grammar/__init__.py +0 -0
  54. package/session-distill/grammar/owner_lines.py +874 -0
  55. package/session-distill/originators.json +9 -0
  56. package/session-distill/packets/cross_review.md +31 -0
  57. package/session-distill/packets/form.md +86 -0
  58. package/session-distill/packets/judge.md +81 -0
  59. package/session-distill/packets/placement_contract.md +90 -0
  60. package/session-distill/packets/propose.md +124 -0
  61. package/session-distill/packets/read.md +57 -0
  62. package/session-distill/packets/reconsider.md +53 -0
  63. package/session-distill/packets/s7b.md +65 -0
  64. package/session-distill/packets/s9b.md +39 -0
  65. package/session-distill/packets/stitch.md +35 -0
  66. package/session-distill/packets/sweep.md +33 -0
  67. package/session-distill/runlib/__init__.py +0 -0
  68. package/session-distill/runlib/bound.py +1102 -0
  69. package/session-distill/runlib/breaker.py +467 -0
  70. package/session-distill/runlib/census.py +2347 -0
  71. package/session-distill/runlib/claims.py +420 -0
  72. package/session-distill/runlib/controls.py +902 -0
  73. package/session-distill/runlib/coverage.py +881 -0
  74. package/session-distill/runlib/declare.py +888 -0
  75. package/session-distill/runlib/delivery_evidence.py +1145 -0
  76. package/session-distill/runlib/derive.py +812 -0
  77. package/session-distill/runlib/destinations.py +3072 -0
  78. package/session-distill/runlib/dispatch.py +7939 -0
  79. package/session-distill/runlib/drift.py +1077 -0
  80. package/session-distill/runlib/entry.py +401 -0
  81. package/session-distill/runlib/evidence.py +890 -0
  82. package/session-distill/runlib/exposure.py +1162 -0
  83. package/session-distill/runlib/gate.py +2727 -0
  84. package/session-distill/runlib/gitread.py +79 -0
  85. package/session-distill/runlib/inventory.py +19624 -0
  86. package/session-distill/runlib/journal.py +1919 -0
  87. package/session-distill/runlib/ledger.py +3210 -0
  88. package/session-distill/runlib/ledger_compat.py +101 -0
  89. package/session-distill/runlib/ledger_migration.py +190 -0
  90. package/session-distill/runlib/lifecycle_intake.py +693 -0
  91. package/session-distill/runlib/lineage.py +454 -0
  92. package/session-distill/runlib/measures.py +249 -0
  93. package/session-distill/runlib/monitor.py +1180 -0
  94. package/session-distill/runlib/operations.py +522 -0
  95. package/session-distill/runlib/packet.py +838 -0
  96. package/session-distill/runlib/placement.py +1769 -0
  97. package/session-distill/runlib/projection.py +4090 -0
  98. package/session-distill/runlib/ranking.py +740 -0
  99. package/session-distill/runlib/receipts.py +200 -0
  100. package/session-distill/runlib/records.py +1965 -0
  101. package/session-distill/runlib/search.py +249 -0
  102. package/session-distill/runlib/sequencing.py +829 -0
  103. package/session-distill/runlib/sources.py +641 -0
  104. package/session-distill/runlib/stage_adjudicate.py +845 -0
  105. package/session-distill/runlib/stage_apply.py +1378 -0
  106. package/session-distill/runlib/stage_approvals.py +758 -0
  107. package/session-distill/runlib/stage_close.py +1220 -0
  108. package/session-distill/runlib/stage_confirm.py +929 -0
  109. package/session-distill/runlib/stage_delivery.py +3080 -0
  110. package/session-distill/runlib/stage_form.py +2576 -0
  111. package/session-distill/runlib/stage_judge.py +4248 -0
  112. package/session-distill/runlib/stage_propose.py +3307 -0
  113. package/session-distill/runlib/stage_read.py +5179 -0
  114. package/session-distill/runlib/stage_render.py +2739 -0
  115. package/session-distill/runlib/stage_retrieve.py +924 -0
  116. package/session-distill/runlib/stage_review_korean.py +1002 -0
  117. package/session-distill/runlib/stage_review_proposals.py +1292 -0
  118. package/session-distill/runlib/stagelock.py +412 -0
  119. package/session-distill/runlib/stop.py +1061 -0
  120. package/session-distill/runlib/targets.py +809 -0
  121. package/session-distill/runlib/usage.py +280 -0
  122. package/session-distill/runlib/validate.py +319 -0
  123. package/session-distill/runlib/views.py +4327 -0
  124. package/session-distill/schemas/adjudication.schema.json +35 -0
  125. package/session-distill/schemas/approval.schema.json +35 -0
  126. package/session-distill/schemas/census.schema.json +128 -0
  127. package/session-distill/schemas/checks.schema.json +207 -0
  128. package/session-distill/schemas/claim.schema.json +16 -0
  129. package/session-distill/schemas/confirmation.schema.json +24 -0
  130. package/session-distill/schemas/coverage.schema.json +66 -0
  131. package/session-distill/schemas/cross_review.schema.json +24 -0
  132. package/session-distill/schemas/event.schema.json +20 -0
  133. package/session-distill/schemas/evidence.schema.json +20 -0
  134. package/session-distill/schemas/expected_observation.schema.json +18 -0
  135. package/session-distill/schemas/form.schema.json +103 -0
  136. package/session-distill/schemas/intake.schema.json +71 -0
  137. package/session-distill/schemas/inventory.schema.json +872 -0
  138. package/session-distill/schemas/judge.schema.json +77 -0
  139. package/session-distill/schemas/ledger.schema.json +313 -0
  140. package/session-distill/schemas/observation.schema.json +16 -0
  141. package/session-distill/schemas/propose.schema.json +555 -0
  142. package/session-distill/schemas/read.schema.json +76 -0
  143. package/session-distill/schemas/reconsider.schema.json +122 -0
  144. package/session-distill/schemas/run.schema.json +150 -0
  145. package/session-distill/schemas/s7b.schema.json +200 -0
  146. package/session-distill/schemas/s9b.schema.json +28 -0
  147. package/session-distill/schemas/stitch.schema.json +25 -0
  148. package/session-distill/schemas/sweep.schema.json +25 -0
  149. package/session-distill/seats.json +149 -0
  150. package/session-distill/tables/allowed_pairs.json +257 -0
  151. package/session-distill/tables/controls.json +30 -0
  152. package/session-distill/tables/delivery_evidence.json +36 -0
  153. package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
  154. package/session-distill/tables/destinations.json +684 -0
  155. package/session-distill/tables/drift_layers.json +68 -0
  156. package/session-distill/tables/exposure_rules.json +192 -0
  157. package/session-distill/tables/placement_rules.json +148 -0
  158. package/session-distill/tables/propose_fixtures.json +154 -0
  159. package/session-distill/tables/ranking.json +194 -0
  160. package/session-distill/tables/redundancy.json +10 -0
  161. package/session-distill/tables/structural_rules.json +44 -0
  162. package/session-distill/tables/transition_fixtures.json +398 -0
  163. package/session-distill/tables/transitions.json +69 -0
  164. package/session-distill/tables/unit_outcome.json +67 -0
  165. package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
  166. package/wrappers/claude-run.sh +481 -33
  167. package/wrappers/claude_hermetic_evidence.py +1423 -0
  168. package/wrappers/codex-helm.sh +44 -13
  169. package/wrappers/codex-run.sh +183 -20
  170. package/wrappers/codex_frame_filter.py +1199 -0
  171. package/wrappers/codex_protocol.py +737 -0
  172. package/wrappers/jsonl_lines.py +65 -0
@@ -80,7 +80,7 @@ Instruction/config reach is per invocation. A rule in AGENTS.md cannot bind a he
80
80
  | Profile | Reach | Use |
81
81
  |---|---|---|
82
82
  | inherit | real `CODEX_HOME`, project cwd | full global/project AGENTS.md and user config |
83
- | hermetic | temporary home, auth only, user config ignored | independent lens with prompt-owned criteria |
83
+ | hermetic | temporary `CODEX_HOME` and empty `HOME`, auth only; user config, user skills, and global or project AGENTS.md excluded, even with `--cd` into a repository | independent lens with prompt-owned criteria |
84
84
  | custom | caller-populated home | exact curated instructions/config |
85
85
 
86
86
  - Control instruction home, working directory, config overrides, task prompt, and output schema independently. The repo wrapper owns setup and teardown.
@@ -235,15 +235,15 @@ Write for the next agent and re-verification, not narrative. Required content:
235
235
 
236
236
  This is the human-readable projection of concrete models/tools; `launch/agent-launch.toml` is the machine launch authority and parity checks keep them aligned. Re-probe when the binding is older than ~8 weeks or a newer observable model/tool changes the surface. Edit shipped defaults in the source repository; keep personal launch bindings in user-owned launcher configuration. Private installation stores an immutable release and preserves personal state. A new configured session resolves its bindings; existing session pins retain theirs.
237
237
 
238
- Binding (2026-09-08):
238
+ Binding (2026-10-21):
239
239
 
240
240
  | Slot | Binding | Notes |
241
241
  |---|---|---|
242
- | FRONTIER | Claude Fable 5.1 · GPT-6 Astra (read-only; max default; launcher may explicitly select Ultra) | bounded hardest decisions and verdicts |
243
- | HELM | Claude Opus 5 (xhigh) · GPT-5.6 Sol (xhigh main; main Ultra requires explicit selection; bounded FRONTIER Ultra allowed) | standing main; Codex defaults bypass, explicit sandbox narrows |
244
- | WORKHORSE | Claude Sonnet 5 (xhigh) · GPT-5.6 Terra (xhigh) | implementation and per-item judgment |
245
- | SWEEP | Claude Haiku 4.5 (effort omitted) · GPT-5.6 Luna (max) | read-only; one explicit rule per item; not a rebind candidate |
246
- | VERIFIER-A | plain `codex exec` deep pass — GPT-5.6 Sol at ultra effort, packet on stdin (`-c service_tier="fast"` as explicit fast opt-in) | strongest single reader; cross-family from a Claude main |
242
+ | FRONTIER | Claude Fable 5.2 · GPT-6 Astra (read-only; max default; launcher may explicitly select Ultra) | bounded hardest decisions and verdicts |
243
+ | HELM | Claude Opus 5.5 (high) · GPT-6.1 Sol (xhigh) — main Ultra requires explicit selection; bounded FRONTIER Ultra allowed | standing main; Codex defaults bypass, explicit sandbox narrows |
244
+ | WORKHORSE | Claude Sonnet 5.5 (high) · GPT-6.1 Sol (high) | implementation and per-item judgment; the Codex seat shares HELM's model, so it differs by effort alone and buys no cross-model perspective |
245
+ | SWEEP | Claude Haiku 5.5 (medium) · GPT-6 Luna (max) | read-only; one explicit rule per item; not a rebind candidate |
246
+ | VERIFIER-A | plain `codex exec` deep pass — GPT-6.1 Sol at ultra effort, packet on stdin (`-c service_tier="fast"` as explicit fast opt-in) | strongest single reader; cross-family from a Claude main |
247
247
  | VERIFIER-B | Claude Code ultracode workflow (keyword-opened, many-agent) | code/execution kind; fan-out counterpart |
248
248
  | INDEPENDENT-PR-REVIEWER | Codex CLI | adversarial `gh pr diff` review |
249
249
  | Claude relocation | EnterWorktree, `/cd`, `--worktree`; resume is directory-scoped | verified 2.1.207 |
@@ -258,6 +258,7 @@ Codex direct-drive (verified 0.144.1, 2026-07-12):
258
258
  - This is an instruction-backed, live-E2E-verified default, not a security boundary: main bypass and arbitrary expert `-c` remain available by design. `frontier.toml` pins the direct native FRONTIER default to max; launcher projections overwrite it from the selected tier.
259
259
  - `codex-run` owns reach, stdin, schema, profiles, expert `-c`, channel preservation, and exit status. Keep it internal.
260
260
  - `claude-run` is its Claude-side twin and the command a composable review contract names for a panel dispatch on that host. Same shape: prompt on stdin, final message on stdout, exit status mirrored, `--model`/`--effort` pinning the seat, everything it does not recognise forwarded to `claude`. It denies the mutating tools by default, which is not the OS-level sandbox `codex-run` gets — do not read the two defaults as equivalent guarantees. Dispatch whatever command the contract names rather than the bare CLI: only the adapter can report what the dispatch actually did, and a review with no receipt stays PROPOSED.
261
+ - `claude-run --profile hermetic` is the isolated Claude route: one call per fresh cell (`HOME`, `CLAUDE_CONFIG_DIR`, working directory) outside your `HOME`, an environment built from scratch with the subscription token, and `--safe-mode --setting-sources "" --strict-mcp-config --disable-slash-commands --tools ""`. It denies your and the working directory's (and its ancestors') `CLAUDE.md`, skills, memory, MCP servers, hooks and settings; declared instructions enter only through `--append-system-prompt-file` with their sha256, and `REVIEW_CAPTURE_DIR` receives the host's record of what loaded. `--use producing` grants `Read` inside `--manifest` only.
261
262
 
262
263
  Dispatch packets:
263
264
 
@@ -9,30 +9,69 @@ 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 and only the section for the actual target model — GPT-5.6 and GPT-6 Astra have different prompting needs
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
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
- - fix the prompt before raising effort — weak output usually means a missing success criterion, dependency rule, tool-routing rule, or verification loop
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-09-07
18
+ derived_at: 2026-10-21
19
19
  source_pins:
20
20
  - doc: prompt-guidance-gpt-5p6
21
21
  sha256: 46181efec9fd1160ef537b0379282a14c1ba32380f2f8149a805128253c1115a
22
- pinned_at: 2026-09-07
22
+ pinned_at: 2026-10-21
23
+ - doc: model-guidance-gpt-5p6
24
+ sha256: bcbc002991e3ff6491ba5c4d38d8f5c497fa785c0b11ea27d92c9d34676ab460
25
+ pinned_at: 2026-10-21
26
+ - doc: upgrading-to-gpt-5p6-sol
27
+ sha256: d4d2494240bc124bde81d96a9a389f3ed7122deabc4b508c18d26a3ebd20c74f
28
+ pinned_at: 2026-10-21
23
29
  - doc: model-guidance-gpt-6-astra
24
- sha256: 2a59b26078e001a4e4e3da10693e80ad5ee1c02cbe472afa6b682308f27b8b22
25
- pinned_at: 2026-09-07
30
+ sha256: ad1aeb3d87e2e61a91233447f7c54b7b18ebfecc4315eeefab15bf5861b3a5c7
31
+ pinned_at: 2026-10-21
32
+ - doc: model-gpt-6-astra
33
+ sha256: b7c19b3bb89e87a392a0f3f8b732c5e7c9f0bf558cbe3022c491575a947fcef8
34
+ pinned_at: 2026-10-21
35
+ - doc: model-gpt-6p1-sol
36
+ sha256: acfe91d19882aaf7bb52877898684614035a947de02f2955c9de905a7efb1362
37
+ pinned_at: 2026-10-21
38
+ - doc: model-gpt-6-sol
39
+ sha256: 3dcb62c16386c40e52438e7fa7fb46b979d13cbfc324d0807246e24ce43345bb
40
+ pinned_at: 2026-10-21
41
+ - doc: model-gpt-6-luna
42
+ sha256: 2e4861582095740f5ea84b14bb18fa476a49c426b397b779b964bc144397b451
43
+ pinned_at: 2026-10-21
44
+ - doc: reasoning
45
+ sha256: 18edc294a66c8eb442c5d0049b9e9d31af2b8e830ca6e41d6bf8798c902f4e14
46
+ pinned_at: 2026-10-21
47
+ - doc: codex-models
48
+ sha256: 77779d7adf13e05df5bf7fa82088ebbaa647d16682a91cea5cd3cad043474f8e
49
+ pinned_at: 2026-10-21
50
+ - doc: prompt-caching
51
+ sha256: 715eacd5f0fe6bd7b238b74b770a6eb5b9a5260f464b5d54066b0bf580d3e995
52
+ pinned_at: 2026-10-21
53
+ - doc: responses-multi-agent
54
+ sha256: b16d53b38bc957a790d39d2a736531addfed88a2c806e2be11aac190ea817a3e
55
+ pinned_at: 2026-10-21
56
+ - doc: structured-outputs
57
+ sha256: 09aa3814251cf168070294ace79d677091de04b330055048392548d604aa7104
58
+ pinned_at: 2026-10-21
59
+ - doc: tools-programmatic-tool-calling
60
+ sha256: fc459e1947d9fd4506c54c2a4f3e202d483a3a12a3488f06b974dbf98c787630
61
+ pinned_at: 2026-10-21
26
62
  targets:
27
63
  - gpt-6-astra
64
+ - gpt-6.1-sol
65
+ - gpt-6-sol
66
+ - gpt-6-luna
28
67
  - gpt-5.6-sol
29
68
  - gpt-5.6-terra
30
69
  - gpt-5.6-luna
31
70
  verification_focus:
32
71
  - prompt changes are validated by re-running the same evals, not by inspection
33
72
  - removals are tested one group at a time so the cause of a delta is known
34
- - effort changes use settings the target model supports and are compared against the baseline
35
- - model-specific advice is checked against its own pinned source, including autonomy, writing style, delegation, and verification
73
+ - effort changes use values the target model accepts and are compared against the baseline
74
+ - family-level advice is checked against the family document, per-model facts against each model page, and Codex-only values against the Codex documents
36
75
  ---
37
76
 
38
77
  # GPT Prompting Guide
@@ -49,8 +88,21 @@ permission policy; they do not change tool permissions or approval requirements.
49
88
 
50
89
  | Target | Apply | Pinned source |
51
90
  | --- | --- | --- |
52
- | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` | GPT-5.6 | `prompt-guidance-gpt-5p6` |
53
- | `gpt-6-astra` | GPT-6 Astra | `model-guidance-gpt-6-astra` |
91
+ | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` | GPT-5.6 | `prompt-guidance-gpt-5p6`, `model-guidance-gpt-5p6` |
92
+ | `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 |
93
+
94
+ ## Per-model facts
95
+
96
+ Accepted `reasoning.effort` values and tool-calling routes, from each model's page or
97
+ family guide. An omitted effort takes the documented default.
98
+
99
+ | Model | `reasoning.effort` | Tool calling | Vendor positioning |
100
+ | --- | --- | --- | --- |
101
+ | `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 |
102
+ | `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 |
104
+ | `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
+ | `gpt-6-luna` | `none`, `low`, `medium` (default), `high`, `xhigh`, `max` | as `gpt-6-sol` | focused, high-volume tasks |
54
106
 
55
107
  ## GPT-5.6
56
108
 
@@ -59,8 +111,8 @@ permission policy; they do not change tool permissions or approval requirements.
59
111
  one group of repeated instructions, examples, or irrelevant tools at a time and
60
112
  re-run the same evals. Keep a process instruction when it changes behavior.
61
113
  - **Calibrate brevity.** GPT-5.6 tends to be more concise than GPT-5.5. Re-test broad
62
- brevity instructions before carrying them over; they can make answers too thin.
63
- Keep them when they produce the required result. Where the API exposes
114
+ brevity instructions before carrying them over; they can make answers too thin, and
115
+ stay only when they produce the required result. Where the API exposes
64
116
  `text.verbosity`, use it for the default detail level and the prompt for the
65
117
  task's length, structure, and required content. Shorten repetition before evidence,
66
118
  decisions, caveats, or next actions.
@@ -71,90 +123,156 @@ permission policy; they do not change tool permissions or approval requirements.
71
123
  - **Tune effort after the prompt.** Preserve the current effective effort as the
72
124
  baseline, then compare it and one supported level lower on representative tasks.
73
125
  Use `low` when latency matters and quality holds; `medium` is a balanced starting
74
- point. Use `high`/`xhigh` when evals show a gain, and reserve `max` for the hardest
75
- quality-first work. Verify availability against the active model and host.
76
-
77
- ## GPT-6 Astra
78
-
79
- - **Initiative and follow-through.** Astra is more likely to ask a question when
80
- input could materially change the result. For action requests, prompt it to infer
81
- routine details from context and complete authorized work, including validation,
82
- before answering. A plan or an offer to continue does not complete an action
83
- request. Ask when missing information changes the outcome; continue independent
84
- authorized work while waiting. If approval is required for a later step, prepare
85
- the concrete, reviewable result first. Keep existing permission boundaries and
86
- avoid adding approval steps based only on hypothetical risk.
87
- - **Instruction and skill sensitivity.** Audit the loaded skills and instruction
88
- files for unclear or conflicting guidance. Make explicit user instructions take
89
- precedence over skill workflow preferences within higher-priority instructions
90
- and permission constraints. When a skill causes a pause, an approval request, or
91
- unfinished work, identify and link the exact skill file, quote the relevant rule,
92
- and explain whether it is explicit or an interpretation. Do not turn an optional
93
- guideline into a new requirement.
126
+ point; use `high`/`xhigh` when evals show a gain and reserve `max` for the hardest
127
+ quality-first work. The table above lists the accepted values; verify the host.
128
+
129
+ ## GPT-6 family
130
+
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
134
+ below are therefore Astra observations; for `gpt-6.1-sol`, `gpt-6-sol`, and
135
+ `gpt-6-luna` the vendor states no model-specific prompting behavior, and what differs
136
+ per model is the API facts in the table above, taken from each model page. Re-derive
137
+ this section when a GPT-6 model other than Astra gets a prompting document of its own.
138
+
139
+ - **Initiative and follow-through.** Astra is more likely to ask when input could
140
+ materially change the result, and asks non-blocking questions while working. For
141
+ action requests, prompt it to infer routine details from context and complete
142
+ authorized work, including validation, before answering; a plan or an offer to
143
+ continue does not complete an action request. Ask when missing information changes
144
+ the outcome and continue independent authorized work while waiting. If a later step
145
+ needs approval, prepare the concrete, reviewable result first. Keep existing
146
+ permission boundaries; add no approval steps on hypothetical risk alone. Astra stays
147
+ coherent over long tasks better than GPT-5.6 Sol and earlier models.
148
+ - **Instruction and skill sensitivity.** Astra follows longer instructions better and
149
+ is more sensitive to context: unclear or conflicting guidance in a skill file can
150
+ make it pause and block work early. Audit the loaded skills and instruction files,
151
+ and make explicit user instructions outrank skill workflow preferences within
152
+ higher-priority instructions and permission constraints. When a skill causes a
153
+ pause, an approval request, or unfinished work, require it to name and link the
154
+ exact skill file, quote the rule, and say whether that rule is explicit or inferred;
155
+ an inferred reading of an optional guideline is not a requirement.
94
156
  - **Writing style.** Astra tends toward detailed responses, lists, tables, and
95
- recurring phrases. Specify the desired length and structure for the audience.
96
- For plain prose, request concise paragraphs, familiar words, active verbs, and
97
- the main point first. Use lists when comparison or sequence benefits; retain
98
- technical detail needed to assess the result. Name unwanted stock phrases or
99
- formulaic contrasts when they recur rather than assuming GPT-5.6's brevity bias.
100
- - **Subagent delegation.** Astra may delegate less often than a workflow needs.
101
- State when independent work should be delegated, the intended amount of
102
- parallelism, each subagent's scope, and when to keep work local. Use the existing
103
- spawn gates, available seats, and budget; a generic instruction to be proactive
104
- does not specify delegation. Require readable inter-agent messages with correct
105
- spacing.
157
+ recurring phrases across sessions. Specify length and structure for the audience.
158
+ For plain prose, request concise paragraphs, familiar words, active verbs, and the
159
+ main point first, with lists only for parallel, sequential, or comparable content.
160
+ 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.
164
+ - **Subagent delegation.** Astra may delegate less often than a workflow needs and
165
+ responds well to prompting for how and when to delegate. State when independent
166
+ work is delegated, the intended parallelism, each subagent's scope, and when to keep
167
+ work local, within the existing spawn gates, seats, and budget; "be proactive" does
168
+ not specify delegation. Require legible inter-agent messages with proper spacing.
106
169
  - **Testing and verification.** Astra can over-test small coding changes. Name the
107
- relevant checks and completion bar. Avoid tests that only mirror a reversible,
108
- low-impact implementation. Complete required checks; broaden or repeat them only
109
- when a new edit, a failure, or an unresolved concern warrants it. This calibration
110
- preserves required repository gates and validation of the actual changed behavior.
111
- - **Reasoning effort.** Astra does not support `none`. When migrating a prompt from
112
- `none` or `minimal`, begin with `low` and compare results; otherwise preserve the
113
- current effective effort. Check the active model and host for supported settings
114
- instead of reusing a family-wide effort ladder. Fix a missing success criterion,
115
- dependency rule, or verification loop before increasing effort.
170
+ relevant checks and the completion bar; avoid tests that only mirror a reversible,
171
+ low-impact implementation. Complete required checks, and broaden or repeat them only
172
+ when a new edit, a failure, or an unresolved concern warrants it. Required
173
+ repository gates and validation of the changed behavior stay in force.
174
+
175
+ ### Reasoning effort
176
+
177
+ - Preserve the current effective effort where the model accepts it: a prompt that ran
178
+ at `none` moves to `low` on Astra or 6.1 Sol, and one that ran at `minimal` starts at
179
+ `low` and is compared on representative tasks. When effort is not `none`, drop
180
+ `temperature`, `top_p`, and the log-probability options (`top_logprobs`; `logprobs`
181
+ 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.
190
+ - **Under Codex.** `ultra` is a Codex effort, not an API value — the API's effort list
191
+ ends at `max`. It is a different mode, not the next rung: the client catalog
192
+ describes it as maximum reasoning with automatic task delegation, it runs the task
193
+ 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).
116
205
 
117
206
  ## Shared prompt recipe
118
207
 
119
- Compose in this order; omit any block that would not change the artifact.
208
+ Arrange the finished prompt in this order; draft the success criteria first (the
209
+ checklist below); omit any block that would not change the artifact.
120
210
 
121
211
  - `Role` and `Personality` — who is acting and in what register. Omit
122
212
  personality when it does not change the output.
123
213
  - `Goal` and `Success criteria` — the outcome, and the bar that decides done.
124
- This is the block most worth its tokens; write it first. If you cannot state
125
- the bar, the prompt is not ready.
214
+ Draft them before the rest; if you cannot state the bar, the prompt is not ready.
126
215
  - `Constraints` — safety, business, and scope limits that must hold. Real
127
216
  constraints only; preferences belong in output shape or nowhere.
128
217
  - `Tools` — only task-relevant ones. Each description states what it does, when
129
218
  to use it, its important return fields, and its error behavior.
130
- - `Output` — the artifact shape. `Stop rules` — when to stop looping and answer.
219
+ - `Output` — the artifact shape. Under a forced schema the model writes fields in the
220
+ schema's key order and every field is required; this repository therefore puts
221
+ evidence fields before the verdict they justify (a design choice to confirm on your
222
+ evals) and gives an explicit way to report an incompatible input instead of forcing
223
+ a value. `Stop rules` — when to stop looping and answer.
131
224
 
132
225
  ## When to add blocks
133
226
 
134
227
  - Coding and debugging: name the validation to run after changes — targeted
135
- tests for the changed behavior, type/lint checks, build, a minimal smoke test.
136
- Require prerequisite lookups before edits.
137
- - Review: carry the general rules and be explicit about the evidence bar and the verdict shape; a
138
- reviewer with no stated bar defaults to plausible-sounding findings.
228
+ tests for the changed behavior, type/lint checks, build, a minimal smoke test, a
229
+ render of any visual artifact. Require prerequisite lookups before edits. If
230
+ validation cannot run, require the reason and the next best check.
231
+ - Review: carry the general rules and state the evidence bar and the verdict shape
232
+ explicitly.
139
233
  - Research and grounded work: cite only retrieved sources, attach citations to
140
234
  the claims they support, and label inference separately from supported fact.
141
- Say to narrow the answer or report missing evidence rather than guess.
142
- - Write-capable work: name the safe actions explicitly (read files, edit code,
143
- run tests) and require confirmation for external writes, destructive actions,
144
- or scope expansion.
235
+ Say to narrow the answer or report missing evidence rather than guess; absence
236
+ of evidence is not a factual no.
237
+ - Write-capable work: name the safe actions explicitly (read files, edit code, run
238
+ tests). Require confirmation only for external writes, destructive actions, or scope
239
+ expansion the session has not already authorized, and ask for it as the final step,
240
+ after the work is prepared; earlier or strongly implied authorization stays in force.
145
241
  - Implementation plans: requirements, named resources, state transitions,
146
242
  validation checks, failure behavior, privacy/security, open questions.
147
243
 
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
+
148
253
  ## How to choose prompt shape
149
254
 
150
- - One bounded question with a self-contained packet → a single hermetic run.
151
- This is the default for review.
152
- - Work that divides into independent workstreams → fan-out. Parallelize
153
- independent reads; keep dependent steps sequential.
154
- - Choose reasoning effort using the target model's section above and the settings
155
- the active model and host actually support.
156
- - Prefer a self-contained packet over resuming a long history: it is cheaper to
157
- reason about and cheaper to cache.
255
+ - A bounded review packet runs as one self-contained run with no inherited
256
+ instructions — the hermetic profile — by default (repository practice).
257
+ - One run when each step depends on the previous one, the task finishes in one short
258
+ run, or agents would contend over the same mutable state. Fan out when the work
259
+ splits into independent bounded tasks, separate context improves focus, or parallel
260
+ exploration cuts wall-clock time; subagents add token usage, so the split has to earn
261
+ it. Within a run, parallelize independent reads and keep dependent steps sequential.
262
+ - Choose reasoning effort from the table and the target model's section. In an API
263
+ dispatch, reasoning and visible output share the output limit and reasoning can
264
+ exhaust it before any visible output appears: budget output capacity for reasoning
265
+ plus the deliverable, and count such exhausted runs when comparing effort levels.
266
+ - Put stable instructions and shared reference material first, changing per-request
267
+ content last, and keep that prefix free of churn. Ordering alone caches nothing: the
268
+ prefix must reach the minimum cacheable length and end at a breakpoint, and implicit
269
+ caching writes through a changing suffix, so on GPT-5.6 and later mark the stable
270
+ boundary with an explicit breakpoint where the implicit one misses it; check the
271
+ 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
274
+ self-contained packet rather than resuming a long history that holds context the task
275
+ does not need.
158
276
 
159
277
  ## Programmatic tool calling
160
278
 
@@ -162,48 +280,51 @@ A bounded stage where code processes several tool results and returns a much sma
162
280
  structured result. The qualifier is **reduction**, not parallelism: multiple, parallel,
163
281
  or dependent calls alone do not justify it.
164
282
 
165
- - Use it for filtering, joining, sorting, ranking, deduplication and aggregation;
166
- batching across many similar records; repeated deterministic validation; and large
167
- structured results reducible to a compact schema.
168
- - Prefer direct calls when one call suffices, when intermediate outputs are already
169
- small, when each result may change the next decision, when an action needs approval,
170
- when the answer must preserve citations or native artifacts, or when semantic
171
- judgment sits between calls.
283
+ - Use it for filtering, joining, sorting, ranking, deduplication and aggregation,
284
+ batching across many similar records, repeated deterministic validation, and large
285
+ structured results reducible to a compact schema. Prefer direct calls when one call
286
+ suffices, intermediate outputs are already small, each result may change the next
287
+ decision, an action needs approval, the answer must preserve citations or native
288
+ artifacts, or semantic judgment sits between calls.
172
289
  - A generic "use programmatic tool calling efficiently" does nothing. State the bounded
173
290
  stage, the eligible tools, the output schema, the retry limit, the stop condition, and
174
- the handoff back to direct judgment. If both routes are needed, define one handoff and
175
- say not to switch routes or repeat completed work.
291
+ the handoff back to direct judgment; if both routes are needed, define one handoff
292
+ and say not to switch routes or repeat completed work. A running program cannot
293
+ invoke tool search, so require any deferred tool the stage needs to be discovered
294
+ and loaded before the program starts.
176
295
  - **Test both outputs.** The program's result and the final assistant message are
177
296
  separate; a program can return the right records while the message drops a required
178
- field, citation, or caveat.
179
- - Compare the two routes on the same tasks, and count lower token/latency/cost as an
180
- improvement only when the response still passes the existing evals.
297
+ field, citation, or caveat. Compare the two routes on the same tasks, and count lower
298
+ token/latency/cost as an improvement only when the response still passes the evals.
181
299
 
182
300
  ## Working rules
183
301
 
184
302
  - One clear task per run, with an explicit output contract.
185
- - **Read the assembled prompt for contradictions.** This tier follows a prompt contract
186
- closely, so two rules that disagree destabilize it more than a missing rule does —
187
- the opposite of the intuition that more instruction is safer.
188
- - State each authority rule once. Repeating "ask first", "do not mutate", or "wait for
189
- approval" produces approval requests for safe, expected actions.
303
+ - **Read the assembled prompt for contradictions, and state each authority rule
304
+ once.** The GPT-5.6 guidance reports that GPT-5-class models follow prompt contracts
305
+ closely, so conflicting rules create more instability than missing detail, and that
306
+ repeating "ask first", "do not mutate", or "wait for approval" causes approval
307
+ requests for safe, expected actions. This guide applies both checks to every target
308
+ as repository practice.
190
309
  - Name the current layer of work — research, design, implementation, review, external
191
310
  coordination — on long-running tasks, so the model does not move between layers
192
311
  silently.
193
312
  - Persisted reasoning is not a free optimization. It helps while the objective and
194
313
  priorities hold; once they move, stale reasoning adds tokens and anchors the model to
195
- a superseded approach. Compact at milestones, not every turn, and treat compacted
196
- items as opaque.
314
+ 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
316
+ earlier reasoning is no longer relevant. Compact at milestones, not every turn, and
317
+ treat compacted items as opaque.
197
318
  - Preserve explicit user values. Where the right value is implicit, give decision
198
319
  criteria and let the model reason from context or schema rather than installing
199
320
  universal defaults or keyword maps.
200
- - Keep reusable prefixes stable and avoid churn in large system prompts. Add
201
- explicit cache breakpoints only where they measurably improve cache behavior —
202
- inspect the active model's cache usage and cost before adding one.
203
- - After each tool result, ask whether the core request can now be answered with
204
- useful evidence. If yes, answer.
205
- - Render any visual artifact before finalizing; inspect layout, clipping,
206
- spacing, and missing content.
321
+ - Render any visual artifact before finalizing, inspect its layout, clipping, spacing,
322
+ missing content, and visual consistency, and revise until the render meets the
323
+ requirements.
324
+ - After each tool result, ask whether the success criteria — required actions and
325
+ validation included — are now met with useful evidence; if yes, answer. Loop
326
+ minimization never outranks correctness, required evidence, calculations, or
327
+ required citations.
207
328
 
208
329
  ## Prompt assembly checklist
209
330
 
@@ -218,21 +339,30 @@ or dependent calls alone do not justify it.
218
339
 
219
340
  The vendor's GPT-5.6 coding-agent sample reported roughly +10–15% eval score,
220
341
  41–66% fewer total tokens, and 33–67% lower cost with leaner system prompts
221
- (`prompt-guidance-gpt-5p6`, pinned 2026-09-07). These are directional results for
222
- that sample, not Astra measurements or promised gains on another workload.
342
+ (`prompt-guidance-gpt-5p6`). These are directional results for that sample, not
343
+ GPT-6 measurements or promised gains on another workload.
223
344
 
224
345
  ## Sources
225
346
 
226
- The GPT-5.6 section is derived from `prompt-guidance-gpt-5p6`; the GPT-6 Astra
227
- section from `model-guidance-gpt-6-astra`. The shared recipe retains task, evidence,
228
- tool, and validation practices from the GPT-5.6 guidance and the instructions; model
229
- behavior claims belong only to their matching section. `source_pins` records the
230
- exact bytes used for this derivation so later vendor edits can be detected.
347
+ The GPT-5.6 section is derived from `prompt-guidance-gpt-5p6`, its facts row from
348
+ `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
350
+ GPT-6", which the Astra URL serves — with per-model facts from `model-gpt-6-astra`,
351
+ `model-gpt-6p1-sol`, `model-gpt-6-sol`, and `model-gpt-6-luna` — the document calls its
352
+ 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
357
+ 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`,
359
+ run shape from `responses-multi-agent`, schema-forced output from `structured-outputs`,
360
+ and the programmatic-stage prerequisite from `tools-programmatic-tool-calling`. Model
361
+ behavior claims belong only to their own section; `source_pins` records the exact
362
+ bytes used so later vendor edits can be detected.
231
363
 
232
364
  When a `targets` model changes, re-derive its section from the matching current
233
- document, check the shared rules for contradictions, and re-run representative
234
- evals rather than extending another model's behavior claims to it.
235
- `launch/check-prompting-targets.sh` fails when the launch config binds a model
236
- this guide does not list; that check is about **naming**, and a model added to
237
- `targets:` satisfies it forever. Whether the guidance was actually re-derived is
238
- not decidable and is gated nowhere.
365
+ document, check the shared rules for contradictions, and re-run representative evals
366
+ rather than extending another model's behavior claims to it.
367
+ `launch/check-prompting-targets.sh` only checks that every bound model is **named** in
368
+ `targets:`; whether the guidance was re-derived is not decidable and is gated nowhere.