agent-bios 0.19.2 → 0.19.4

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 (62) hide show
  1. package/DEPENDENCIES.md +76 -20
  2. package/INSTALL.md +1 -1
  3. package/README.md +55 -5
  4. package/claude/agents/sweep.md +2 -1
  5. package/claude/agents/workhorse.md +2 -2
  6. package/claude/guides/claude-prompting.md +101 -15
  7. package/claude/guides/cli-multi-model-workflow.md +5 -5
  8. package/claude/guides/coding-staged-workflow.md +17 -0
  9. package/claude/guides/gpt-prompting.md +40 -9
  10. package/claude/guides/llm-capability-boundary.md +7 -1
  11. package/claude/guides/tooling-gotchas.md +20 -1
  12. package/claude/guides/ui-design/visual-direction.md +88 -0
  13. package/claude/guides/ui-design.md +90 -0
  14. package/claude/guides/verification-discipline.md +10 -1
  15. package/claude/hooks/tooling-gotchas-hook.py +41 -0
  16. package/codex/agents/reviewer.toml +2 -2
  17. package/codex/agents/sweep.toml +1 -1
  18. package/codex/agents/workhorse.toml +2 -2
  19. package/codex/guides/claude-prompting.md +101 -15
  20. package/codex/guides/cli-multi-model-workflow.md +5 -5
  21. package/codex/guides/coding-staged-workflow.md +17 -0
  22. package/codex/guides/gpt-prompting.md +40 -9
  23. package/codex/guides/llm-capability-boundary.md +7 -1
  24. package/codex/guides/tooling-gotchas.md +20 -1
  25. package/codex/guides/ui-design/visual-direction.md +88 -0
  26. package/codex/guides/ui-design.md +90 -0
  27. package/codex/guides/verification-discipline.md +10 -1
  28. package/compose/app_bridge/scripts/bridge.py +23 -6
  29. package/compose/app_desktop/server.py +250 -0
  30. package/compose/domains.json +1 -0
  31. package/compose/host_platform.py +121 -0
  32. package/compose/instructions-state.py +5 -2
  33. package/compose/instructions_app.py +281 -48
  34. package/compose/instructions_catalog.py +2 -2
  35. package/compose/instructions_import.py +19 -11
  36. package/compose/instructions_install.py +77 -11
  37. package/compose/instructions_session.py +6 -6
  38. package/compose/instructions_setup.py +47 -10
  39. package/compose/instructions_setup_cli.py +31 -10
  40. package/compose/instructions_setup_i18n.py +6 -3
  41. package/compose/instructions_store.py +6 -6
  42. package/compose/instructions_transaction.py +8 -6
  43. package/compose/instructions_ui_runtime.py +4 -3
  44. package/compose/native_cli.py +52 -0
  45. package/compose/runtime_entry.py +58 -0
  46. package/compose/setup/START.md +1 -1
  47. package/compose/windows_deploy.py +719 -0
  48. package/docs/instructions.md +1 -0
  49. package/docs/releases/0.19.3.md +107 -0
  50. package/docs/releases/0.19.4.md +99 -0
  51. package/docs/session-model.md +8 -0
  52. package/docs/setup.md +39 -3
  53. package/docs/windows.md +99 -0
  54. package/install.sh +13 -6
  55. package/launch/agent-launch.py +31 -8
  56. package/launch/agent-launch.toml +49 -24
  57. package/launch/agent-launch.zsh +11 -1
  58. package/launch/provision-venv.sh +1 -1
  59. package/package.json +9 -4
  60. package/provenance.json +1 -1
  61. package/session-cost.py +61 -9
  62. package/wrappers/codex-helm.sh +6 -6
package/DEPENDENCIES.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Dependencies
2
2
 
3
3
  This file owns the dependency inventory, required capabilities, and the observed local
4
- versions below. Required minimums come from the code that enforces them. The Textual
4
+ versions below, including the declared Python floor stated under Runtime tools. Other
5
+ required minimums come from the code that enforces them. The Textual
5
6
  root pin and optional learning-validator pin belong to `launch/provision-venv.sh`.
6
7
  `gates/build-ui-runtime.py` derives the exact shipped wheel inventory in
7
8
  `compose/ui_runtime/manifest.json` from `TEXTUAL_PIN`; setup reads that inventory and
@@ -15,6 +16,16 @@ The verification column states the scope of each check.
15
16
 
16
17
  ## Runtime tools
17
18
 
19
+ **Python floor: 3.12** — the single owner of this value. Every shipped and author-side
20
+ Python file must parse under a real interpreter of that version, and every other
21
+ statement of the floor in this repository restates this line.
22
+ `gates/check-python-floor.py` reads the floor here, compiles both file sets with a real
23
+ floor interpreter, and fails on any declaration that disagrees. The floor is 3.12 rather
24
+ than 3.11 because shipped `launch/agent-launch.py` has used PEP 701 f-strings since
25
+ 2026-09-11, so releases from v0.19.0 already required it while every document said 3.11.
26
+ Author-side work therefore needs a 3.12 interpreter present (`uv python install 3.12`);
27
+ without one the gate blocks rather than reporting a clean judgement of nothing.
28
+
18
29
  The supported operating systems are macOS and Linux (`package.json` `os`). Private
19
30
  transactions, instruction capture and app registration use POSIX file locks, file
20
31
  descriptors and symlinks. The JSON setup protocol, machine-mode instructions operations,
@@ -26,7 +37,7 @@ have separate runtime requirements below.
26
37
 
27
38
  | Tool | Required by | Required capability | Verified |
28
39
  | --- | --- | --- | --- |
29
- | `python3` | `compose/instructions*.py`, app bridge helper, `session-cost.py`, `launch/agent-launch.py` | Python 3.11+ (`tomllib`) for the private store, offline installer UI loader, import evidence, app receipts and native session adapter | 3.14.5 · version report · 2026-09-12 |
40
+ | `python3` | `compose/instructions*.py`, app bridge helper, `session-cost.py`, `launch/agent-launch.py` | Python 3.12+ (`tomllib`) for the private store, offline installer UI loader, import evidence, app receipts and native session adapter | 3.14.5 · version report · 2026-09-12 |
30
41
  | `bash` | `install.sh`, shell adapters, provisioner and app helper command dispatch | Bash arrays and argument-preserving execution; macOS system Bash is supported | 3.2.57 · version report · 2026-09-12 |
31
42
  | `git` | conversation source acquisition, clone updates and version-control workflows | clone and detached checkout for a fixed source commit; worktrees and modern revision operations for development. No Git checkout is required to use an installed npm package | 2.50.1 · version report · 2026-09-12 |
32
43
  | `zsh` | `launch/agent-launch.zsh`, optional `launch/shell_integration.py` connection | shell functions, TTY checks and argument-preserving dispatch. Used by the explicit private shell connection as well as compatibility installation; it is not required for ordinary private storage or app context use | 5.9 · version report · 2026-09-12 |
@@ -43,7 +54,7 @@ have separate runtime requirements below.
43
54
 
44
55
  `agent-bios install` and `onboard` are interactive unless `--non-interactive` is explicit.
45
56
  Selection flags seed the UI, and a non-TTY default call fails before writes. Python
46
- 3.11+ is still required. `compose/instructions_ui_runtime.py` validates the shipped bundle
57
+ 3.12+ is still required. `compose/instructions_ui_runtime.py` validates the shipped bundle
47
58
  before UI imports and uses one process-owned temporary extraction, cleaned on normal
48
59
  exit and released by the launcher before backend `execve`. It creates no persistent UI
49
60
  package installation. Missing, damaged or conflicting bundle state produces repair
@@ -58,7 +69,7 @@ probes, not another instructions language or persisted host setting. Locale vari
58
69
  a starting choice; the user still sees the chooser. The JSON setup protocol accepts an
59
70
  explicit review language while retaining its stable field names and exact values.
60
71
 
61
- `agent-bios setup` needs Python 3.11+ and Bash, with no TTY, Textual, model SDK or new
72
+ `agent-bios setup` needs Python 3.12+ and Bash, with no TTY, Textual, model SDK or new
62
73
  server. It reuses `SetupController` for inspection, reviewed plans and fixed dependency
63
74
  actions. Only explicit Apply runs selected actions; its durable receipts use private
64
75
  state. `status` and `resume` inspect or prepare further review without executing
@@ -77,7 +88,7 @@ steps; absence of an optional route does not make the local instructions store u
77
88
  Manager recipes are offered only after their version probe succeeds. Creating a new
78
89
  managed environment requires the selected Python venv/ensurepip bootstrap; an existing
79
90
  managed interpreter does not need to bootstrap again. The provisioner checks Python
80
- 3.11+ before modifying the environment.
91
+ 3.12+ before modifying the environment.
81
92
 
82
93
  ## Host agent CLIs
83
94
 
@@ -113,7 +124,7 @@ execution evidence have narrower scope:
113
124
  by the current `--version` reports. Authenticated instructions-agent execution and post-fix
114
125
  authenticated resume remain unverified.
115
126
 
116
- ## Codex app and instruction import
127
+ ## Codex app
117
128
 
118
129
  The Codex desktop app is a separate host from the Codex CLI. Its optional bridge needs
119
130
  native skill discovery for `~/.agents/skills/agent-bios`, the explicit-invocation policy in
@@ -146,6 +157,30 @@ requires explicit selection, enables no native hooks or agents, and Off cannot r
146
157
  previously returned text. Registration is off by default and owns only its discovery
147
158
  link, preserving global instruction files and foreign entries.
148
159
 
160
+ ## Claude Desktop
161
+
162
+ Claude Desktop has no launch to project into and no skill root an installer can reach,
163
+ so it pulls through a local MCP server. `agent-bios app desktop` writes a `.mcpb` bundle
164
+ under the private state root; the user installs it through Desktop's own dialog, and
165
+ agent-bios writes nothing into Desktop's directories or `claude_desktop_config.json`.
166
+ The bundle's server (`compose/app_desktop/server.py`) is standard-library Python speaking
167
+ MCP 2025-11-25 over stdio, with no network service. Desktop resolves a bare `python3`
168
+ through the user's login-shell `PATH` and ships no Python of its own, so the manifest names
169
+ the absolute interpreter that generated it; that interpreter must stay installed, and the
170
+ bundle is regenerated after it changes. The server resolves the confirmed private release
171
+ on every call.
172
+
173
+ Desktop sends no conversation identity with a tool call, so `app session --host
174
+ claude-desktop` mints one on preview or use. Measured on Desktop 2.16120.0 (macOS,
175
+ 2026-09-30): the bundle route, protocol 2025-11-25, a 140,666-byte result delivered
176
+ inline, and delivery with end-marker confirmation in both chat and the Code tab. The Code
177
+ tab runs Claude Code on the user's own `~/.claude`, but its extension server still starts
178
+ outside the session's working directory, so project scope stays excluded there too.
179
+ Windows and `roots/list` are unverified. Local tests do not establish that a given Desktop
180
+ version loads the bundle.
181
+
182
+ ## Instruction import
183
+
149
184
  Local instruction import also needs no model SDK or parser framework. Standard-library
150
185
  code discovers fixed instruction filenames at known global and explicit project roots,
151
186
  captures redacted evidence through `learn/redact.py`, and validates source digests,
@@ -189,9 +224,12 @@ Agent-bios does not install credentials or infer a model account from dependency
189
224
  `codex-helm.sh` and `claude-run.sh` from the selected package. Their command paths,
190
225
  binding, reach and fallback are declared in the launch contract. An unavailable or
191
226
  unauthenticated opposite-family route is reported, not credited as a completed review.
192
- - **MCP servers** — user-specific; only a selected capability declaring `mcp-stdio-v1`
193
- is registered by the launcher. No shipped review method requires MCP. App instructions
194
- context delivery does not add an MCP server.
227
+ <!-- mcp-inventory:start -->
228
+ <!-- facts: {"bundlers": {"compose/app_desktop/server.py": ["compose/instructions_app.py"]}, "capabilities": [], "servers": ["compose/app_desktop/server.py"]} -->
229
+ - **MCP servers** — derived from source by `gates/check-mcp-inventory.py`.
230
+ Shipped servers: `compose/app_desktop/server.py` (bundled by `compose/instructions_app.py`).
231
+ Launch capabilities offering `mcp-stdio-v1`: none, so no shipped review method requires MCP; the launcher registers a user-specific server only through a selected capability that declares it.
232
+ <!-- mcp-inventory:end -->
195
233
  - **spreadsheet-processing** — an optional skill referenced by the spreadsheet rule
196
234
  when those instructions are selected. If unavailable, its inline plain-tools/code and real
197
235
  spreadsheet-engine validation fallback applies.
@@ -220,6 +258,7 @@ Inspect the installed private state using this checkout's runtime:
220
258
  bash install.sh verify
221
259
  bash install.sh instructions status --json
222
260
  bash install.sh app status --json
261
+ bash install.sh app desktop --dry-run --json
223
262
  ```
224
263
 
225
264
  Provision packages only when explicitly requested for learning validation, compatibility
@@ -240,17 +279,33 @@ python3 gates/build-ui-runtime.py --self-test
240
279
  ```
241
280
 
242
281
  Only the builder's explicit `--build` path fetches packages; do not hand-edit wheel
243
- archives or their manifest. The full author umbrella also exercises compatibility
244
- clients and can provision its managed test environment, so it is not a read-only
245
- machine inventory:
282
+ archives or their manifest.
283
+
284
+ Author-side work needs an interpreter of the declared floor on the machine, which is a
285
+ prerequisite of the gates rather than of the package: `gates/check-python-floor.py`
286
+ compiles every shipped and author-side Python with it, and blocks when it is absent,
287
+ because a run with no floor interpreter has judged nothing about parsing. Install one
288
+ with `uv python install 3.12`, or name an existing one in `AGENT_BIOS_FLOOR_PYTHON`; the
289
+ gate verifies that interpreter's own version against the floor before using it. A
290
+ compile under whatever `python3` resolves to is not a substitute — on a machine whose
291
+ `python3` is newer than the floor it accepts syntax the floor rejects, which is how
292
+ v0.19.0-v0.19.3 shipped code needing 3.12 under a documented 3.11.
293
+
294
+ Discovery follows `$HOME`: it looks on `PATH`, at the running interpreter, and under
295
+ `$HOME/.local/share/uv/python`. Under a substituted HOME — a sandbox, a fixture tree, an
296
+ audit harness — none of those resolve, so the gate finds no floor interpreter and blocks
297
+ instead of passing. That is the declared behavior rather than a defect, so a caller that
298
+ runs the gate with its own HOME must name the interpreter in `AGENT_BIOS_FLOOR_PYTHON`.
299
+ No umbrella path reaches that state: `gates/check-parity.sh` never sets HOME, and the one
300
+ caller that does substitute one, `gates/test-install-guides.sh`, always sets
301
+ `AGENT_BIOS_IN_INSTALL_TEST=1` alongside it, under which `install.sh`'s `cmd_verify` skips
302
+ the umbrella and announces the skip.
303
+
304
+ The full author umbrella also exercises compatibility clients and can provision its
305
+ managed test environment, so it is not a read-only machine inventory:
246
306
 
247
307
  ```bash
248
- python3 -B - <<'PY'
249
- import pathlib
250
- paths = list(pathlib.Path('compose').glob('instructions*.py')) + [pathlib.Path('launch/agent-launch.py')]
251
- for path in paths:
252
- compile(path.read_text(), str(path), 'exec')
253
- PY
308
+ python3 gates/check-python-floor.py
254
309
  bash -n install.sh launch/provision-venv.sh wrappers/codex-run.sh wrappers/codex-helm.sh wrappers/claude-run.sh
255
310
  zsh -n launch/agent-launch.zsh
256
311
  ./gates/check-parity.sh
@@ -260,12 +315,13 @@ zsh -n launch/agent-launch.zsh
260
315
 
261
316
  | Owner | Owns |
262
317
  | --- | --- |
263
- | `DEPENDENCIES.md` | required capability inventory and scoped local version observations |
318
+ | `DEPENDENCIES.md` | required capability inventory, scoped local version observations, and the declared Python floor every other statement of it restates |
319
+ | `gates/check-python-floor.py` | reading that floor, compiling both Python sets with a real interpreter of it, and the licensed asymmetries that may differ |
264
320
  | `launch/provision-venv.sh` | Textual root pin, `JSONSCHEMA_PIN` and explicit managed package installation |
265
321
  | `gates/build-ui-runtime.py` | author-side bundle generation and offline check/self-test |
266
322
  | `compose/ui_runtime/manifest.json` | generated exact UI wheel inventory, versions, hashes and licenses |
267
323
  | `compose/instructions_ui_runtime.py` | offline verification, process-lifetime extraction and release |
268
324
  | `compose/instructions_setup.py` | shared SetupController, local inventory and reviewed dependency recipes |
269
- | `package.json` and runtime validators | supported platforms and required runtime minimums |
325
+ | `package.json` and runtime validators | supported platforms, the Node minimum, and the runtime validators that enforce the Python floor stated above rather than restating it |
270
326
  | guide `Environment Binding` and launch profile | role/model bindings and feature-specific host evidence |
271
327
  | guide `Evidence Base` | measured behavior and numeric defaults |
package/INSTALL.md CHANGED
@@ -83,7 +83,7 @@ provide conversational setup. Stop this installation route and report the checke
83
83
  revision. Do not run an older `install`, enable compatibility mode, or claim that
84
84
  unpublished checkout features are available from the public repository.
85
85
 
86
- Bash and Python 3.11 or newer are required. Check them after the language choice.
86
+ Bash and Python 3.12 or newer are required. Check them after the language choice.
87
87
  If missing, explain the prerequisite and help resolve it through documented
88
88
  platform instructions within the user's authorization. This route does not need
89
89
  Codex CLI, another model login, Node/npm or Textual. Do not borrow an undocumented
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Build an instruction library you can inspect, edit, and reuse. Choose what each
6
6
  CLI session or Codex app task uses, while preserving your existing global instruction files.
7
7
 
8
- [0.19.2 release notes](docs/releases/0.19.2.md)
8
+ [0.19.4 release notes](docs/releases/0.19.4.md)
9
9
 
10
10
  ## Purpose
11
11
 
@@ -16,6 +16,10 @@ their roles within the standards and context of their team, industry, and organi
16
16
 
17
17
  A team is the basic unit for selecting, adopting, and sharing a work environment.
18
18
 
19
+ The goal is efficient work and continuity. Shared environments provide reusable
20
+ defaults that workers can adapt to their repository and personal working needs;
21
+ they are not a mechanism for enforcing uniform working methods.
22
+
19
23
  Workers should be able to select an environment appropriate to their role and
20
24
  team, collaborate from shared standards and decision context, and continue
21
25
  the work when a worker, model, session, or device changes. Shared context does
@@ -54,6 +58,16 @@ accepts that older command name. See [compatibility](docs/instructions-compatibi
54
58
  This is an instruction and launch layer, not a replacement for either host CLI.
55
59
  It does not train the model or guarantee that the model follows every instruction.
56
60
 
61
+ ## Windows native preview
62
+
63
+ A Windows x64 installer with a bundled Python runtime is built by the Windows
64
+ workflow. It provides `agent-bios.exe` and `agent-launch.exe` without npm or WSL.
65
+ The same workflow also qualifies a script distribution that uses an approved or
66
+ provisioned CPython 3.13 with signed PowerShell commands and no custom EXE.
67
+ Each Windows script release page carries the one-line PowerShell command for
68
+ that release, and the fixed address below serves an explicitly promoted one.
69
+ See [Windows installation and validation limits](docs/windows.md).
70
+
57
71
  ## Quick start
58
72
 
59
73
  Use the terminal installer or set up through a Codex app conversation. Both offer
@@ -62,11 +76,26 @@ See [setup and prerequisites](docs/setup.md).
62
76
 
63
77
  ### In a terminal
64
78
 
65
- You need **macOS or Linux**, **Bash**, **Python 3.11+**, and **Node.js 18+ with npm**
66
- for package installation. Run:
79
+ One line per platform. Each downloads from the project's installation page, which
80
+ serves an explicitly promoted release rather than a moving latest.
81
+
82
+ On **Windows** — from PowerShell, the Command Prompt or the Run box. The current
83
+ release is an unsigned preview, which is what the trailing flag accepts:
84
+
85
+ ```text
86
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr 'https://kangminlee-maker.github.io/agent-bios/install.ps1' -UseBasicParsing -OutFile (Join-Path ([IO.Path]::GetTempPath()) 'agent-bios-install.ps1') -ErrorAction Stop; & (Join-Path ([IO.Path]::GetTempPath()) 'agent-bios-install.ps1') -AcceptUnsignedPreview"
87
+ ```
88
+
89
+ On **macOS or Linux**, where **Python 3.12+** and **Node.js 18+ with npm** must
90
+ already be present:
91
+
92
+ ```text
93
+ curl -fsSL https://kangminlee-maker.github.io/agent-bios/install.sh | bash
94
+ ```
95
+
96
+ Then deploy the work environment:
67
97
 
68
98
  ```bash
69
- npm install -g agent-bios@0.19.0
70
99
  agent-bios install
71
100
  ```
72
101
 
@@ -83,6 +112,12 @@ your project:
83
112
 
84
113
  Use `codex` instead of `claude` for a Codex CLI session.
85
114
 
115
+ The full path is deliberate: `agent-bios install` deploys the launcher to
116
+ `~/.local/bin`, which your shell may not search. Add that directory to `PATH` to
117
+ type `agent-launch` directly, and run `agent-bios shell restore` to make a bare
118
+ `claude` or `codex` open the launcher (`agent-bios shell remove` undoes it).
119
+ Installation reports both when they are not in place.
120
+
86
121
  1. Choose a Builder preset or **Custom**.
87
122
  2. Review the model, review setup, and permissions. **Some presets request
88
123
  permission bypass**; select settings appropriate for your project.
@@ -102,7 +137,7 @@ source. From the obtained repository folder, run:
102
137
  bash install.sh install
103
138
  ```
104
139
 
105
- This route needs Bash and Python 3.11+; Node/npm are not acquisition prerequisites.
140
+ This route needs Bash and Python 3.12+; Node/npm are not acquisition prerequisites.
106
141
  Keep using `bash install.sh <command>` from that source for management. A global
107
142
  `agent-bios` command can belong to a different npm version.
108
143
 
@@ -132,6 +167,21 @@ To add instructions to a task, explicitly ask it to use your chosen instructions
132
167
  Installation and opening Instructions Studio do not activate task context.
133
168
  [App use, off, and personal instruction import →](docs/setup.md#use-instructions-in-a-codex-app-task)
134
169
 
170
+ ### In Claude Desktop
171
+
172
+ Claude Desktop opens conversations without a launcher, so agent-bios reaches it as a
173
+ local extension you install once. After installing agent-bios on the same Mac, run:
174
+
175
+ ```bash
176
+ agent-bios app desktop
177
+ ```
178
+
179
+ Open the `.mcpb` file it reports with Claude Desktop and confirm the installation.
180
+ In a conversation, ask for your agent-bios instructions: the extension returns your
181
+ saved selection as context for that conversation only. Nothing is added until you ask,
182
+ and a conversation already in progress receives nothing on its own.
183
+ [Desktop use, confirmation and limits →](docs/setup.md#use-instructions-in-claude-desktop)
184
+
135
185
  ## Your instruction library
136
186
 
137
187
  Open **Instructions Studio** in the launcher, or run `agent-bios instructions`.
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: sweep
3
3
  description: SWEEP tier — read-only checks applying one explicit rule to each item. Ambiguity returns as an exception, never resolved.
4
- model: claude-haiku-4-5
4
+ model: claude-haiku-5-5
5
+ effort: medium
5
6
  tools: [Read, Glob, Grep]
6
7
  disallowedTools: [Edit, Write, NotebookEdit]
7
8
  ---
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: workhorse
3
3
  description: WORKHORSE tier — bounded implementation, fixes, tests, and per-item judgment. Spawn decision-complete work with frozen scope/interfaces and a machine-checkable done-when; two or more independent items spawn in parallel.
4
- model: claude-sonnet-5
5
- effort: xhigh
4
+ model: claude-sonnet-5-5
5
+ effort: high
6
6
  ---
7
7
 
8
8
  Complete one bounded implementation, fix, or per-item judgment from a packet naming objective, frozen scope and inputs, allowed actions, output, done-when, and verification. Preserve out-of-scope behavior; batch independent reads; escalate missing decisions or authority instead of resolving them. Stage output for the main's acceptance — no external irreversible actions (push, install, credential, or remote mutation). Run the narrowest reliable changed-path check. Report: status, files_or_items_touched, evidence, verification or gap, risks_or_escalations.
@@ -9,26 +9,39 @@ use_when:
9
9
  - porting a prompt written for an older claude model
10
10
  - deciding a reasoning-effort level for claude work
11
11
  core_rules:
12
- - choose guidance by the actual target model — Fable 5.1 and Opus 5 need different progress, delegation, and verification tuning
12
+ - choose guidance by the actual target model — each bound tier has its own vendor document and they disagree on effort, initiative, and verification
13
+ - effort level names do not carry across models; after a rebind, sweep levels again instead of keeping the previous model's setting
13
14
  - state the goal, the constraints, and the reason behind the request; let the model choose the route
14
15
  - compare inherited process scaffolding on the target model before keeping or removing it
15
16
  - put the full task specification in the first turn for long-horizon work rather than revealing it across turns
16
17
  - make tool descriptions prescriptive about when to call, not only what the tool does
17
18
  - require progress claims to be audited against a tool result from the same session
18
19
  - name the boundary explicitly — what to do without asking, and what to stop and ask about
19
- derived_at: 2026-09-07
20
+ derived_at: 2026-10-21
20
21
  source_pins:
21
22
  - doc: prompting-claude-opus-5
22
- sha256: 65be3e0b437cbe23cc41bb4f9b7a5031c5a71cd49ab91ec4d19c62738762b086
23
- pinned_at: 2026-09-07
23
+ sha256: e73cd26863642596486a43f90ff9c04d13f8e4b6cd00ae83546d4d3cd93c5143
24
+ pinned_at: 2026-10-21
24
25
  - doc: claude-prompting-best-practices
25
- sha256: f98aa130a7974b2edf98f8c3babe806ab140d5cdd3933a506f5211335b431c5f
26
- pinned_at: 2026-09-07
26
+ sha256: e9bd30b6abd49cc42549387cfa7a4cd9946d79d0eb7ed2a1c12f4cf431ee04f4
27
+ pinned_at: 2026-10-21
27
28
  - doc: prompting-claude-fable-5-1
28
- sha256: 4aa645dd26fe9efebdaaff7462563bfac1f27782ce2d71dd5afffeaf02a80c62
29
- pinned_at: 2026-09-07
29
+ sha256: b921ea4d827411b3f4401fd5c92021eb7166c6c5642688321a3780297d8b5497
30
+ pinned_at: 2026-10-21
31
+ - doc: prompting-claude-opus-5-5
32
+ sha256: 3432e66ac97f77b45e1ecba014c9d6d0001be7ab47b55ebe8c70f5aa55883a14
33
+ pinned_at: 2026-10-21
34
+ - doc: prompting-claude-sonnet-5-5
35
+ sha256: 6886cdd2625b73be5bd74420e31c3a050c1c52b8073b9bebe15f4dcf33e44f91
36
+ pinned_at: 2026-10-21
37
+ - doc: prompting-claude-haiku-5-5
38
+ sha256: e871a37701e88998c5bed2e15c586048c86d3d8ab5c333a67c60ad717e0131fd
39
+ pinned_at: 2026-10-21
30
40
  targets:
31
41
  - claude-fable-5-1
42
+ - claude-opus-5-5
43
+ - claude-sonnet-5-5
44
+ - claude-haiku-5-5
32
45
  - claude-fable-5
33
46
  - claude-opus-5
34
47
  - claude-sonnet-5
@@ -54,6 +67,9 @@ tuning preserves the instructions' permission boundaries and required verificati
54
67
  | Target | Apply |
55
68
  | --- | --- |
56
69
  | `claude-fable-5-1` | Shared recipe and Claude Fable 5.1 |
70
+ | `claude-opus-5-5` | Shared recipe and Claude Opus 5.5 |
71
+ | `claude-sonnet-5-5` | Shared recipe and Claude Sonnet 5.5 |
72
+ | `claude-haiku-5-5` | Shared recipe and Claude Haiku 5.5 |
57
73
  | `claude-opus-5` | Shared recipe and Claude Opus 5 |
58
74
  | `claude-fable-5`, `claude-sonnet-5`, `claude-haiku-4-5` | Shared recipe; consult the target's own guidance before borrowing another model's tuning |
59
75
 
@@ -89,12 +105,79 @@ tuning preserves the instructions' permission boundaries and required verificati
89
105
  long outputs.
90
106
  - Give dense-image work crop and zoom tools.
91
107
 
108
+ - `medium` roughly matches Claude Fable 5 at lower cost, and `low` often beats the
109
+ smaller models on cost per task — include it wherever you would otherwise run a
110
+ smaller model at a higher level.
111
+
92
112
  These are prompt and harness tuning choices, not changes to the configured seat's
93
- effort or permissions. The Opus-specific advice below does not apply to this model.
113
+ effort or permissions. Advice in the other model sections does not transfer to this one.
114
+
115
+ ## Claude Opus 5.5
116
+
117
+ - The default is `medium`, where Claude Opus 5 defaulted to `high`. At a GIVEN level
118
+ this model thinks more per turn, so carrying an Opus 5 level forward buys longer
119
+ turns and more output tokens rather than more depth. Reserve `xhigh` and `max` for
120
+ work with a measured gain.
121
+ - Thinking is always on and `thinking: disabled` is rejected. Remove instructions that
122
+ stood in for thinking, and remove any rule telling the model not to think.
123
+ - Progress notes between tool calls arrive as progress-update thinking blocks whose
124
+ text is empty at the default display, so a client that renders only text looks silent
125
+ through a long turn.
126
+ - In unattended loops a text-only end of turn is a report, not proof of completion.
127
+ Keep the parts in a checklist, re-prompt the open items, and stop after two or three
128
+ automatic continuations rather than looping.
129
+ - Safety classifiers decline with `stop_reason: "refusal"` and a named category; the
130
+ biology safeguards are new if you are coming from Opus 5.
131
+ - It reads charts, diagrams and screenshots markedly better unaided — re-test visual
132
+ scaffolding built for earlier models before keeping it.
133
+ - In multi-agent harnesses, an elapsed-time line against a budget makes teams finish
134
+ sooner; the budget is advisory, so keep your own timeout.
135
+ - Mark text the user pasted in tagged blocks and say so in the system prompt.
136
+ - For frontend work, name the specific defaults to avoid; a general "avoid a generic
137
+ look" swaps one default for another.
138
+
139
+ ## Claude Sonnet 5.5
140
+
141
+ - Levels are recalibrated against Claude Sonnet 5, so sweep again rather than carrying
142
+ a level over. Start at `medium` for well-specified agentic work and `high` for harder
143
+ or longer tasks.
144
+ - At `low` it can report a change done without running a check, and at `low`/`medium`
145
+ it checks in before finishing a long task. Raise effort first; otherwise state
146
+ carry-through and the scope boundary in the system prompt.
147
+ - At `xhigh` and `max` it starts its own review rounds and may launch reviewer
148
+ subagents. Telling it to stop once the requested work passes its checks cut session
149
+ cost by about a third in vendor testing with no quality change.
150
+ - It adds tests, docs and supporting files that were not requested, at every level and
151
+ more at higher effort. Say so explicitly if you want changes limited to the request.
152
+ - For a JSON answer to a multi-step reasoning task, add a line asking it to think the
153
+ problem through first, or run `xhigh`. Treat `stop_reason: "max_tokens"` as failed
154
+ even when the text parses.
155
+ - It occasionally calls a tool with the wrong letter case or a near-miss parameter
156
+ name: accept an unambiguous match, or return an error naming the exact expected name.
157
+ - Never put user text inside a tool result; deliver mid-turn input as a user turn, and
158
+ keep harness notices in a separate message.
159
+
160
+ ## Claude Haiku 5.5
161
+
162
+ - The first Haiku with effort levels, replacing the thinking budget, so there is no
163
+ previous setting to carry over. The default is `medium`.
164
+ - `low` is cheapest but likelier to skip a search, stop early, or skip a check. Use
165
+ `high` where strict instruction following matters. Before paying for `xhigh` or
166
+ `max`, compare Claude Sonnet 5.5 on quality, cost and speed.
167
+ - Give a search tool today's date. Add an explicit instruction to search what may have
168
+ changed when the system prompt is long or effort is `low`; avoid blanket "always
169
+ search" wording, which searches when nothing needs it without improving answers.
170
+ - In long agent prompts at `low` it stops early and hands the task back. Add a
171
+ carry-through instruction, raise effort, or both.
172
+ - At `low` and `medium` it can report a code change done without a check that exercises
173
+ it; require a real check and name what counts as one.
174
+ - Safety classifiers are new coming from Haiku 4.5, and this model has no server-side
175
+ fallback — handle a refusal in your own client.
94
176
 
95
177
  ## Claude Opus 5
96
178
 
97
- The following behavior claims and tuning recommendations apply to `claude-opus-5`.
179
+ The following behavior claims and tuning recommendations apply to `claude-opus-5`,
180
+ which no tier binds today; they remain here because the model stays selectable.
98
181
 
99
182
  ### When to add blocks
100
183
 
@@ -212,11 +295,14 @@ delete it: that instruction increases tag leakage rather than suppressing it.
212
295
 
213
296
  ## Sources
214
297
 
215
- The shared recipe is derived from `claude-prompting-best-practices`; the Fable 5.1
216
- section from `prompting-claude-fable-5-1`; and the Opus 5 section from
217
- `prompting-claude-opus-5`. `source_pins` records the exact bytes used for this
218
- derivation. Fable 5.1 has its own prompting document; model names in `targets` do
219
- not extend the Opus-specific behavior claims to other models.
298
+ The shared recipe is derived from `claude-prompting-best-practices`; each model
299
+ section from that model's own document — `prompting-claude-fable-5-1`,
300
+ `prompting-claude-opus-5-5`, `prompting-claude-sonnet-5-5`,
301
+ `prompting-claude-haiku-5-5`, `prompting-claude-opus-5`. `source_pins` records the
302
+ exact bytes used for this derivation. A model name in `targets` never extends one
303
+ model's behavior claims to another; the sections are deliberately separate because
304
+ the vendor's own pages disagree on effort defaults and on how much initiative to
305
+ expect.
220
306
 
221
307
  When a `targets` model changes, re-derive its advice from its own current document
222
308
  and check the shared recipe for conflicts.
@@ -67,7 +67,7 @@ Delegate execution, not decisions. A unit is delegable only when it is decision-
67
67
  - Use a resident teammate only for dependent slices in one burst. Verify that the CLI preserves its model and context; resume-after-completion may silently change both. Retire after the burst or cache TTL, and persist durable knowledge in files.
68
68
  - After a discard or direction change, respawn once a routine round costs about as much as a fresh slice. Recover unique in-flight state to files first.
69
69
  - Redirects to busy workers may queue rather than preempt. Check artifacts before destructive redirects, phrase them conditionally, and stop an actively harmful worker by scoped PID/worktree authority.
70
- - Idle/progress notifications are hypotheses; verify repo artifacts before re-dispatch. An idle signal is liveness decoupled from the report: a subagent can go idle without ever delivering its result, so idle-without-report is not done — request the report explicitly rather than waiting. Cross-reset state belongs in files, not task boards or transcripts. When polling concurrent async jobs, pin the exact id/handle received at dispatch — a "latest" convenience selector can silently point at a sibling job and return plausible-but-wrong results.
70
+ - Idle/progress notifications are hypotheses; verify repo artifacts before re-dispatch. An idle signal is liveness decoupled from the report: a subagent can go idle without ever delivering its result, so idle-without-report is not done — request the report explicitly rather than waiting. A delivered report can also arrive cut off with no marker — mid-table or mid-finding — and asking for it again inline truncates the same way. When a report is longer than a short summary or must outlive the turn, name an output file in the brief: the worker writes the full report there and returns the path and a one-line summary. Treat a report that ends mid-item as incomplete and switch to the file rather than re-requesting inline. Cross-reset state belongs in files, not task boards or transcripts. When polling concurrent async jobs, pin the exact id/handle received at dispatch — a "latest" convenience selector can silently point at a sibling job and return plausible-but-wrong results.
71
71
  - Give reviewers/subagents a read-only diff, snapshot, or isolated worktree — not the live tree the main is editing — and forbid destructive git ops (checkout --, reset --hard, stash, clean) on any tree with uncommitted work; re-verify tree integrity before trusting results produced mid-edit.
72
72
  - Codex `spawn_agent` decides how much of the parent crosses: `fork_turns` defaults to `all`, and takes `none` or a turn count. A `SubagentStart` hook there receives `agent_type` and may return `continue: false`, so a tier rule can be enforced rather than stated.
73
73
  - No per-spawn instructions suppression exists on either host: the subagent definition carries model and effort, not scope. Excluding the standing instructions is a process-level act — `claude --setting-sources ''`, or `CODEX_HOME` pointed at a directory holding only `auth.json` — and it removes the tier definitions with them, so a reader without those instructions and a pinned tier cannot come from one process. An emptied `CODEX_HOME` without `auth.json` fails 401; skills still load.
@@ -235,14 +235,14 @@ 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
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 |
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
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 |
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 |
@@ -25,6 +25,11 @@ change introduced. The stages below are for work that outgrows that sentence.
25
25
 
26
26
  When the user asks to "설계" or design, stay in design mode. Focus on high-level design and implementation-process design, then present the plan, tradeoffs, review gates, and implementation trigger. Move to implementation after the user asks to implement or approves the plan.
27
27
 
28
+ For operational user-interface flows, information layout, visual hierarchy or
29
+ interaction design, use `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/guides/ui-design.md`.
30
+ Keep bounded corrections on the lightweight path; this pointer does not require
31
+ a full UI redesign.
32
+
28
33
  ## When To Use
29
34
 
30
35
  - Use this workflow for architecture changes, new features, cross-module behavior changes, ontology changes, review-driven fixes, or work that affects user-visible behavior, authority, lifecycle, validation, failure handling, or roadmap commitments.
@@ -88,6 +93,18 @@ blast radius. Re-mapping a level obliges enumerating every reader of that field,
88
93
  commonly gates shipping, repair, retry, and display at once. A deferred defect is pinned as a
89
94
  strict expected failure, never a silent pass.
90
95
 
96
+ **Choose the failure posture by what the next step reads.** Across these instructions, an
97
+ unqualified instruction to fail loud or fail clearly means surface the problem and reject the bad
98
+ local result; it does not by itself decide whether a whole production run stops. In development,
99
+ tests, and gates, stop and name the problem, because a silent pass hides a defect. On a production
100
+ runtime path, warn loudly and halt only when continuing would contaminate what the next step
101
+ reads: an input is stale or marked not reusable (partial, failed, blocked); a contract-failing
102
+ value is about to be recorded as valid; or an external write has an unknown outcome. Otherwise —
103
+ an isolated item failure, a tripped breaker, an exhausted budget — warn and continue: work already
104
+ done stays valid, work not done is recorded as not done, and the next run picks it up. This
105
+ default assumes recoverable state kept in artifacts rather than only in the running process. The
106
+ system's owner can redefine it. In no stage does a problem pass silently.
107
+
91
108
  ## Review Loop
92
109
 
93
110
  - At each stage, run review loops as appropriate: self review, subagent review when available, and structured multi-lens review when the repository or domain supports one (concrete tool: Environment Binding below).
@@ -15,16 +15,18 @@ core_rules:
15
15
  - replace blanket ALWAYS/NEVER with decision rules naming the condition each choice applies under
16
16
  - fix the prompt before raising effort — weak output usually means 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
23
  - doc: model-guidance-gpt-6-astra
24
- sha256: 2a59b26078e001a4e4e3da10693e80ad5ee1c02cbe472afa6b682308f27b8b22
25
- pinned_at: 2026-09-07
24
+ sha256: ad1aeb3d87e2e61a91233447f7c54b7b18ebfecc4315eeefab15bf5861b3a5c7
25
+ pinned_at: 2026-10-21
26
26
  targets:
27
27
  - gpt-6-astra
28
+ - gpt-6.1-sol
29
+ - gpt-6-luna
28
30
  - gpt-5.6-sol
29
31
  - gpt-5.6-terra
30
32
  - gpt-5.6-luna
@@ -51,6 +53,7 @@ permission policy; they do not change tool permissions or approval requirements.
51
53
  | --- | --- | --- |
52
54
  | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` | GPT-5.6 | `prompt-guidance-gpt-5p6` |
53
55
  | `gpt-6-astra` | GPT-6 Astra | `model-guidance-gpt-6-astra` |
56
+ | `gpt-6.1-sol`, `gpt-6-luna` | none yet | Shared recipe only. No section is derived for these — read the vendor's current model guidance rather than borrowing the GPT-6 Astra tuning, whose document covers Astra alone |
54
57
 
55
58
  ## GPT-5.6
56
59
 
@@ -112,7 +115,32 @@ permission policy; they do not change tool permissions or approval requirements.
112
115
  `none` or `minimal`, begin with `low` and compare results; otherwise preserve the
113
116
  current effective effort. Check the active model and host for supported settings
114
117
  instead of reusing a family-wide effort ladder. Fix a missing success criterion,
115
- dependency rule, or verification loop before increasing effort.
118
+ dependency rule, or verification loop before increasing effort. To change effort
119
+ partway through a conversation, send a configuration update rather than editing the
120
+ request-level setting, which invalidates the prompt cache.
121
+ - **Output efficiency.** Astra holds together over longer tasks than GPT-5.6 Sol and
122
+ spent fewer output tokens across several of the vendor's evaluations. Re-measure
123
+ brevity pressure written for 5.6 before carrying it over; some of it now pays for
124
+ nothing.
125
+ - **`ultra` is a host-surface level, not the next rung.** The vendor's API
126
+ documentation lists `low`, `medium`, `high`, `xhigh`, and `max` and does not mention
127
+ `ultra` at all. The Codex CLI catalogue does report it for `gpt-6-astra`,
128
+ `gpt-6.1-sol`, and `gpt-5.6-sol`, described as maximum reasoning **with automatic
129
+ task delegation** — a different mode, not one step up. `gpt-6-luna` does not report
130
+ it and refuses it. Read the host catalogue for the seat you are configuring.
131
+
132
+ ## GPT-6.1 Sol and GPT-6 Luna
133
+
134
+ Neither model has a prompting document of its own. The vendor's model hub states that
135
+ GPT-6.1 Sol defaults to `medium` reasoning effort, and says nothing further that is
136
+ specific to either model, so nothing in this section is derived from a model-specific
137
+ source:
138
+
139
+ - Treat the GPT-6 Astra section as the nearest reference, and verify each claim
140
+ against the model in front of you rather than assuming it carries over.
141
+ - Take supported effort levels from the host's own catalogue rather than the family
142
+ ladder — the two disagree, as the `ultra` bullet above shows.
143
+ - Re-derive this section as soon as either model gets its own page.
116
144
 
117
145
  ## Shared prompt recipe
118
146
 
@@ -224,10 +252,13 @@ that sample, not Astra measurements or promised gains on another workload.
224
252
  ## Sources
225
253
 
226
254
  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.
255
+ section from `model-guidance-gpt-6-astra`. The GPT-6.1 Sol and GPT-6 Luna section has
256
+ no model-specific source and says so in its own text; its effort claims come from the
257
+ host catalogue, which is a live surface rather than a pinned document. The shared
258
+ recipe retains task, evidence, tool, and validation practices from the GPT-5.6
259
+ guidance and the instructions; model behavior claims belong only to their matching
260
+ section. `source_pins` records the exact bytes used for this derivation so later
261
+ vendor edits can be detected.
231
262
 
232
263
  When a `targets` model changes, re-derive its section from the matching current
233
264
  document, check the shared rules for contradictions, and re-run representative