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.
- package/DEPENDENCIES.md +76 -20
- package/INSTALL.md +1 -1
- package/README.md +55 -5
- package/claude/agents/sweep.md +2 -1
- package/claude/agents/workhorse.md +2 -2
- package/claude/guides/claude-prompting.md +101 -15
- package/claude/guides/cli-multi-model-workflow.md +5 -5
- package/claude/guides/coding-staged-workflow.md +17 -0
- package/claude/guides/gpt-prompting.md +40 -9
- package/claude/guides/llm-capability-boundary.md +7 -1
- package/claude/guides/tooling-gotchas.md +20 -1
- package/claude/guides/ui-design/visual-direction.md +88 -0
- package/claude/guides/ui-design.md +90 -0
- package/claude/guides/verification-discipline.md +10 -1
- package/claude/hooks/tooling-gotchas-hook.py +41 -0
- package/codex/agents/reviewer.toml +2 -2
- package/codex/agents/sweep.toml +1 -1
- package/codex/agents/workhorse.toml +2 -2
- package/codex/guides/claude-prompting.md +101 -15
- package/codex/guides/cli-multi-model-workflow.md +5 -5
- package/codex/guides/coding-staged-workflow.md +17 -0
- package/codex/guides/gpt-prompting.md +40 -9
- package/codex/guides/llm-capability-boundary.md +7 -1
- package/codex/guides/tooling-gotchas.md +20 -1
- package/codex/guides/ui-design/visual-direction.md +88 -0
- package/codex/guides/ui-design.md +90 -0
- package/codex/guides/verification-discipline.md +10 -1
- package/compose/app_bridge/scripts/bridge.py +23 -6
- package/compose/app_desktop/server.py +250 -0
- package/compose/domains.json +1 -0
- package/compose/host_platform.py +121 -0
- package/compose/instructions-state.py +5 -2
- package/compose/instructions_app.py +281 -48
- package/compose/instructions_catalog.py +2 -2
- package/compose/instructions_import.py +19 -11
- package/compose/instructions_install.py +77 -11
- package/compose/instructions_session.py +6 -6
- package/compose/instructions_setup.py +47 -10
- package/compose/instructions_setup_cli.py +31 -10
- package/compose/instructions_setup_i18n.py +6 -3
- package/compose/instructions_store.py +6 -6
- package/compose/instructions_transaction.py +8 -6
- package/compose/instructions_ui_runtime.py +4 -3
- package/compose/native_cli.py +52 -0
- package/compose/runtime_entry.py +58 -0
- package/compose/setup/START.md +1 -1
- package/compose/windows_deploy.py +719 -0
- package/docs/instructions.md +1 -0
- package/docs/releases/0.19.3.md +107 -0
- package/docs/releases/0.19.4.md +99 -0
- package/docs/session-model.md +8 -0
- package/docs/setup.md +39 -3
- package/docs/windows.md +99 -0
- package/install.sh +13 -6
- package/launch/agent-launch.py +31 -8
- package/launch/agent-launch.toml +49 -24
- package/launch/agent-launch.zsh +11 -1
- package/launch/provision-venv.sh +1 -1
- package/package.json +9 -4
- package/provenance.json +1 -1
- package/session-cost.py +61 -9
- package/wrappers/codex-helm.sh +6 -6
package/docs/instructions.md
CHANGED
|
@@ -104,6 +104,7 @@ instruction does not prove that a model read or followed it.
|
|
|
104
104
|
| --- | --- |
|
|
105
105
|
| `cli-multi-model-workflow` | multi-model CLI workflow: Default Frame, role slots/tiers, delegation mechanics, driving Codex CLI directly, cache economy, unattended-batch safety, halt/resume, handoff contract, Environment Binding |
|
|
106
106
|
| `coding-staged-workflow` | staged development: design → process → implement, lightweight path, review loop, severity contract, stop conditions |
|
|
107
|
+
| `ui-design` | operational task flows, evidence and authority, visual hierarchy, design tokens and layout; conditional visual-direction companion |
|
|
107
108
|
| `verification-discipline` | verification depth and per-domain mix (owns the Verification Menus), case space, what a green result is worth |
|
|
108
109
|
| `concept-economy` | concept-surface economy: reuse / extend / rename / split, split triggers, migration compatibility |
|
|
109
110
|
| `documentation-hygiene` | where comments, history, and handoffs belong; how to phrase rules others follow |
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# agent-bios 0.19.3
|
|
2
|
+
|
|
3
|
+
Release changes relative to 0.19.2.
|
|
4
|
+
|
|
5
|
+
## Windows without npm or WSL
|
|
6
|
+
|
|
7
|
+
Windows installs as scripts and data bound to an approved CPython 3.13, with no
|
|
8
|
+
custom executable and no EXE installer. It targets machines whose application
|
|
9
|
+
control permits PowerShell and Python but blocks unrecognized executables. The
|
|
10
|
+
bootstrap reuses an approved CPython already on the machine, or provisions the
|
|
11
|
+
pinned official embeddable runtime into an application-private folder; neither an
|
|
12
|
+
existing Python nor its packages are modified.
|
|
13
|
+
|
|
14
|
+
The installed commands are `agent-bios` and `agent-launch`. Each is a static
|
|
15
|
+
wrapper plus a generated `.cmd` shim, because Windows does not treat `.ps1` as
|
|
16
|
+
executable: without the shim a PATH directory holding only wrappers is reachable
|
|
17
|
+
from PowerShell alone, and the Command Prompt, the Run box and any program that
|
|
18
|
+
spawns a command find nothing while PATH is correct. The shim is generated at
|
|
19
|
+
installation rather than shipped, since Authenticode cannot sign a `.cmd`; its
|
|
20
|
+
bytes are fixed and recorded in the deployment's ownership inventory, so a
|
|
21
|
+
modified shim is refused exactly like a modified command.
|
|
22
|
+
|
|
23
|
+
`agent-bios uninstall` removes owned commands, shims, shortcuts and the owned
|
|
24
|
+
PATH entry. Private instructions, session records and any preexisting Python are
|
|
25
|
+
retained.
|
|
26
|
+
|
|
27
|
+
## A fixed installation address
|
|
28
|
+
|
|
29
|
+
The project's installation page serves one explicitly promoted release at a fixed
|
|
30
|
+
URL, so publishing another release does not silently change what the address
|
|
31
|
+
installs. It carries a one-line command per platform.
|
|
32
|
+
|
|
33
|
+
Each command relaxes the PowerShell execution policy for the single process it
|
|
34
|
+
starts, because the default policy on an unconfigured Windows client is
|
|
35
|
+
Restricted and refuses a downloaded script. The machine's saved policy is not
|
|
36
|
+
edited, and a domain-imposed policy still refuses through the invocation's own
|
|
37
|
+
error. The Windows command names the interpreter, so it can be pasted into the
|
|
38
|
+
Command Prompt or the Run box rather than only into an open PowerShell.
|
|
39
|
+
|
|
40
|
+
The macOS and Linux command installs the published npm release and stops, naming
|
|
41
|
+
the command that deploys the work environment: `curl | bash` gives the shell a
|
|
42
|
+
pipe, and the interactive chooser needs a terminal. It also reports the case npm
|
|
43
|
+
leaves behind — a successful global install whose command the caller's PATH does
|
|
44
|
+
not carry.
|
|
45
|
+
|
|
46
|
+
Windows releases come in two channels. Stable is Authenticode-signed and
|
|
47
|
+
timestamped. Preview is published without a signing identity and refuses to run
|
|
48
|
+
unless the caller adds `-AcceptUnsignedPreview`; the hashes pinned inside the
|
|
49
|
+
bootstrap still guard the manifest, the application archive and the runtime
|
|
50
|
+
archive.
|
|
51
|
+
|
|
52
|
+
## Claude Desktop
|
|
53
|
+
|
|
54
|
+
Claude Desktop opens conversations without a launcher and exposes no skill folder an
|
|
55
|
+
installer can reach ahead of time, so agent-bios reaches it as a local extension the
|
|
56
|
+
user installs once. `agent-bios app desktop` writes a `.mcpb` file under the private
|
|
57
|
+
state root; opening it with Desktop installs a standard-library stdio MCP server with
|
|
58
|
+
four tools: status, preview, use and off. agent-bios writes nothing into Desktop's own
|
|
59
|
+
folders or configuration.
|
|
60
|
+
|
|
61
|
+
`use` returns the saved installation selection, or a selection named in the request,
|
|
62
|
+
as context for that conversation only. Nothing reaches a conversation that did not
|
|
63
|
+
ask, including one already in progress. Desktop sends no conversation identity with a
|
|
64
|
+
tool call, so the first preview or use returns a `session_id` that later calls pass
|
|
65
|
+
back; a repeated use with it returns the same text without recording a second
|
|
66
|
+
delivery. The returned text ends with an `agent-bios end` line, and reporting that
|
|
67
|
+
line through status records that the text was read to its end. It does not record
|
|
68
|
+
whether Desktop kept the text in the message or saved it to a file, which Desktop
|
|
69
|
+
does not reveal to the extension.
|
|
70
|
+
|
|
71
|
+
The file names the absolute Python that generated it, because Desktop resolves a bare
|
|
72
|
+
`python3` through the login shell's PATH, which on stock macOS reaches 3.9. The server
|
|
73
|
+
finds the current installation on every call, so an agent-bios update needs no new
|
|
74
|
+
file; changing that Python does. Desktop delivery has no project scope, so
|
|
75
|
+
project-scoped imported instructions are not included, in chat or in the Code tab.
|
|
76
|
+
|
|
77
|
+
## Installation reports an unreachable launcher
|
|
78
|
+
|
|
79
|
+
Installation now says when the `agent-launch` it deposits cannot be typed: when
|
|
80
|
+
`~/.local/bin` is not on the shell's PATH, and when the optional zsh connection that
|
|
81
|
+
routes a bare `claude` or `codex` through the launcher is off. Both used to end in a
|
|
82
|
+
success message followed by `command not found`. A reachable installation reports
|
|
83
|
+
nothing new. The terminal interface, the conversation client and the non-interactive
|
|
84
|
+
path share the message.
|
|
85
|
+
|
|
86
|
+
## Instruction guides
|
|
87
|
+
|
|
88
|
+
The multi-model workflow, staged coding workflow, LLM capability boundary,
|
|
89
|
+
tooling gotchas, verification discipline and UI design guides were revised, and
|
|
90
|
+
lessons paid for on a separate deployment line were carried across where this
|
|
91
|
+
line had not already removed them. The tooling-gotchas hook was updated with
|
|
92
|
+
them.
|
|
93
|
+
|
|
94
|
+
## Not established by this release
|
|
95
|
+
|
|
96
|
+
No signing identity exists yet, so the published Windows channel is the unsigned
|
|
97
|
+
preview. Approval by an organization policy or endpoint-protection product is not
|
|
98
|
+
established: a green workflow proves the route on a hosted runner where
|
|
99
|
+
PowerShell and Python are permitted. Migration of an existing EXE installation
|
|
100
|
+
into the script route is refused rather than attempted.
|
|
101
|
+
|
|
102
|
+
The Claude Desktop route was measured on Desktop 2.16120.0 for macOS, in chat and in
|
|
103
|
+
the Code tab. It is not available on Windows, and a later Desktop version is not
|
|
104
|
+
established to load the file until someone checks it.
|
|
105
|
+
|
|
106
|
+
Domain knowledge, Decision memory and shared environment editions remain design
|
|
107
|
+
directions rather than features of this release.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# agent-bios 0.19.4
|
|
2
|
+
|
|
3
|
+
Release changes relative to 0.19.3.
|
|
4
|
+
|
|
5
|
+
## Current model bindings
|
|
6
|
+
|
|
7
|
+
Six of the eight role bindings named a previous-generation model. The shipped
|
|
8
|
+
launch profile now binds:
|
|
9
|
+
|
|
10
|
+
| Seat | Claude | Codex |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| FRONTIER | `claude-fable-5-1` · max | `gpt-6-astra` · max |
|
|
13
|
+
| HELM | `claude-opus-5-5` · high | `gpt-6.1-sol` · xhigh |
|
|
14
|
+
| WORKHORSE | `claude-sonnet-5-5` · high | `gpt-6.1-sol` · high |
|
|
15
|
+
| SWEEP | `claude-haiku-5-5` · medium | `gpt-6-luna` · max |
|
|
16
|
+
|
|
17
|
+
The Claude HELM and WORKHORSE seats move down one effort step with the rebind. The
|
|
18
|
+
5.5 models recalibrate their levels and think more per turn at a given level, so
|
|
19
|
+
carrying `xhigh` forward would buy longer turns rather than more depth. SWEEP now
|
|
20
|
+
states its effort instead of following the vendor default, because Haiku 5.5 takes
|
|
21
|
+
the same effort vocabulary as the other seats.
|
|
22
|
+
|
|
23
|
+
The Codex catalogue retired `gpt-5.6-terra` without a same-role successor, so
|
|
24
|
+
WORKHORSE shares HELM's model and differs by effort alone. A review dispatched to
|
|
25
|
+
that seat no longer adds a second model's perspective; the guides say so where the
|
|
26
|
+
seat is named.
|
|
27
|
+
|
|
28
|
+
The deep reviewer that the Deep review and Session distill presets dispatch from a
|
|
29
|
+
Claude session is now `gpt-6.1-sol` at `ultra`. `ultra` is not the rung above
|
|
30
|
+
`xhigh`: the Codex CLI catalogue reports it as maximum reasoning with automatic task
|
|
31
|
+
delegation, a different mode, and `gpt-6-luna` refuses it.
|
|
32
|
+
|
|
33
|
+
Presets you saved yourself live in `~/.config/agent-launch/presets.local.toml`,
|
|
34
|
+
which installation never deploys or verifies. A saved preset that overrides a seat
|
|
35
|
+
with an older model keeps that override after the upgrade.
|
|
36
|
+
|
|
37
|
+
## Model currency is checked against the host catalogues
|
|
38
|
+
|
|
39
|
+
A model-currency check reads the model catalogues the Claude and Codex CLIs
|
|
40
|
+
already cache on disk, so judging whether a binding is current needs no
|
|
41
|
+
network and no API key. Structure blocks: every bound model must carry a row in
|
|
42
|
+
the profile's `[models]` table, an unused row fails, and the agent definitions
|
|
43
|
+
must agree with the profile. Currency only discloses during development, because a
|
|
44
|
+
model going stale is the vendor's action rather than a defect in the tree.
|
|
45
|
+
Publishing is where it blocks: `prepublishOnly` refuses a package whose bindings
|
|
46
|
+
the catalogues have moved past.
|
|
47
|
+
|
|
48
|
+
Moving the bindings surfaced pre-existing defects that are fixed here:
|
|
49
|
+
|
|
50
|
+
- `session-cost.py` matched prices by model-name prefix, so `claude-opus-5-5` was
|
|
51
|
+
billed at the Opus 5 rate, and `claude-sonnet-5` carried another model's rate,
|
|
52
|
+
overstating Sonnet 5 sessions by half. Prices now match the exact model id,
|
|
53
|
+
optionally with a release-date suffix, and controls hold the rule.
|
|
54
|
+
- The launcher hard-coded a model name in two places, so an effort restriction it
|
|
55
|
+
encoded never applied to the model that replaced it.
|
|
56
|
+
|
|
57
|
+
## Prompting guides re-derived
|
|
58
|
+
|
|
59
|
+
`claude-prompting.md` and `gpt-prompting.md` were re-read against their vendor
|
|
60
|
+
sources rather than re-pinned: all three Claude seats now have their own vendor
|
|
61
|
+
page, and four of the five pinned documents had moved. The multi-model workflow
|
|
62
|
+
guide was updated for the shared Codex seat.
|
|
63
|
+
|
|
64
|
+
## Python 3.12 is the stated floor
|
|
65
|
+
|
|
66
|
+
`launch/agent-launch.py` has required Python 3.12 since 0.19.0, while the
|
|
67
|
+
documentation, the installer and the setup checks said 3.11. The stated floor is
|
|
68
|
+
now 3.12 everywhere it is stated, and the installer and the UI loader check for
|
|
69
|
+
it. The bundled UI wheels still declare 3.11, which they support; that is no
|
|
70
|
+
longer the package's floor.
|
|
71
|
+
|
|
72
|
+
## Installation messages
|
|
73
|
+
|
|
74
|
+
- `agent-bios update --check` run from a directory deleted under the shell
|
|
75
|
+
reported that the registry was unreachable, although npm never started there.
|
|
76
|
+
The check now moves to `$HOME` first.
|
|
77
|
+
- The macOS and Linux installation command ended its success line with the whole
|
|
78
|
+
help text, because it asked for a `--version` flag the command does not have.
|
|
79
|
+
It now reads the version npm installed, and says when it cannot.
|
|
80
|
+
|
|
81
|
+
## Upgrading
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm i -g agent-bios@0.19.4
|
|
85
|
+
agent-bios install
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Install the exact version: right after a release, `@latest` can still resolve to
|
|
89
|
+
the previous one.
|
|
90
|
+
|
|
91
|
+
## Not established by this release
|
|
92
|
+
|
|
93
|
+
Model currency is judged against the catalogues on the publishing machine at the
|
|
94
|
+
time of publication; a model released later is not reflected until the next
|
|
95
|
+
release. The Windows script route, its unsigned preview channel and the Claude
|
|
96
|
+
Desktop route are unchanged from 0.19.3, with the same unestablished points.
|
|
97
|
+
|
|
98
|
+
Domain knowledge, Decision memory and shared environment editions remain design
|
|
99
|
+
directions rather than features of this release.
|
package/docs/session-model.md
CHANGED
|
@@ -46,6 +46,14 @@ and returned text do not prove native app discovery or model reading. Off stops
|
|
|
46
46
|
further managed use, but cannot retract earlier context; a new task is needed for
|
|
47
47
|
clean exclusion. Management and instruction capture do not activate task context.
|
|
48
48
|
|
|
49
|
+
## Claude Desktop conversations
|
|
50
|
+
|
|
51
|
+
Desktop conversations pull through the [Desktop extension](setup.md#use-instructions-in-claude-desktop).
|
|
52
|
+
Use returns the selected snapshot as a tool result and records a `returned-as-context`
|
|
53
|
+
receipt under an identity agent-bios mints, because Desktop sends none. An end-marker line
|
|
54
|
+
reported back confirms the text was read to its end, not that it stayed inline. Nothing
|
|
55
|
+
reaches a conversation that did not ask, including one already in progress.
|
|
56
|
+
|
|
49
57
|
## Storage layout
|
|
50
58
|
|
|
51
59
|
From a clone, `bash install.sh install` is the same default path. The release lives
|
package/docs/setup.md
CHANGED
|
@@ -11,9 +11,9 @@ Commands below use the installed `agent-bios` CLI. From a source checkout, run
|
|
|
11
11
|
|
|
12
12
|
| Route | Requirements | Interface |
|
|
13
13
|
| --- | --- | --- |
|
|
14
|
-
| Codex app | A local task with command/file access on the intended machine, Bash, Python 3.
|
|
15
|
-
| Terminal | macOS or Linux, Bash, Python 3.
|
|
16
|
-
| Automation | Bash, Python 3.
|
|
14
|
+
| Codex app | A local task with command/file access on the intended machine, Bash, Python 3.12+ | Questions and effect review in the conversation; no extra Codex CLI or model login |
|
|
15
|
+
| Terminal | macOS or Linux, Bash, Python 3.12+, an input/output terminal; Node.js 18+/npm for package installation | Included Textual wizard |
|
|
16
|
+
| Automation | Bash, Python 3.12+, explicit machine commands | JSON inspection, review and results |
|
|
17
17
|
|
|
18
18
|
Host CLIs and their authentication are needed when you choose to launch them.
|
|
19
19
|
Node/npm are needed to obtain the npm package and for any selected capability that
|
|
@@ -140,6 +140,42 @@ it does not replay uncertain operations. The agent follows the full procedure in
|
|
|
140
140
|
[START.md](../compose/setup/START.md), including exact review preservation and verified
|
|
141
141
|
entrypoint handoff. Source and reviewed artifacts remain available for recovery.
|
|
142
142
|
|
|
143
|
+
## Use instructions in Claude Desktop
|
|
144
|
+
|
|
145
|
+
Claude Desktop has no launcher to start its conversations and no skill folder an
|
|
146
|
+
installer can reach, so agent-bios reaches it through a local extension:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
agent-bios app desktop --dry-run --json
|
|
150
|
+
agent-bios app desktop
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
The command writes `agent-bios.mcpb` under the private state root and prints its path.
|
|
154
|
+
Open that file with Claude Desktop and confirm the installation dialog; agent-bios never
|
|
155
|
+
writes into Desktop's own folders or configuration. The extension runs Python at the
|
|
156
|
+
absolute path the file names — the interpreter that ran the command, which must be 3.12
|
|
157
|
+
or newer. Run the command again after changing that Python; an agent-bios update alone
|
|
158
|
+
needs no new file, because the extension finds the current installation on every call.
|
|
159
|
+
|
|
160
|
+
In a conversation, ask for your agent-bios instructions. The assistant calls `use`, which
|
|
161
|
+
returns your saved installation selection, or a selection you name in the request.
|
|
162
|
+
Desktop sends no conversation identity, so the first preview or use returns a
|
|
163
|
+
`session_id` that later calls in the same conversation pass back. Desktop delivery has
|
|
164
|
+
no project scope: imported instructions scoped to a project folder are not included.
|
|
165
|
+
|
|
166
|
+
The returned text ends with a line beginning `agent-bios end`. When the assistant reports
|
|
167
|
+
that line through `status`, the receipt records that the text was read to its end. It
|
|
168
|
+
does not show whether Desktop kept the text in the message or saved it to a file, and a
|
|
169
|
+
delivery never reported back stays unconfirmed. Off stops further use in that
|
|
170
|
+
conversation but cannot remove text already returned; start a new conversation for clean
|
|
171
|
+
exclusion.
|
|
172
|
+
|
|
173
|
+
The extension adds four tools to every Desktop conversation, in chat and in the Code tab.
|
|
174
|
+
Remove it from Desktop's extension settings to stop that cost. The Code tab also has a
|
|
175
|
+
working folder, but the extension cannot see it, so project-scoped instructions stay
|
|
176
|
+
excluded there as well. This route was measured on Claude Desktop 2.16120.0 for macOS;
|
|
177
|
+
Windows is not supported yet.
|
|
178
|
+
|
|
143
179
|
## Use instructions in a Codex app task
|
|
144
180
|
|
|
145
181
|
Choose **Connect to the Codex app** during setup, or explicitly run:
|
package/docs/windows.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Windows native installation
|
|
2
|
+
|
|
3
|
+
The Windows build provides a per-user installer and `agent-bios.exe` with its own
|
|
4
|
+
Python runtime. Node.js, npm, a system Python installation and WSL are not required
|
|
5
|
+
for the Instructions library and setup. Model host CLIs remain separate dependencies.
|
|
6
|
+
|
|
7
|
+
Run the Windows x64 setup executable, then open setup from the final page or the
|
|
8
|
+
Start menu. A newly opened PowerShell can run `agent-bios install` or
|
|
9
|
+
`agent-bios instructions`. Existing terminal processes need restarting to pick up
|
|
10
|
+
user PATH changes. The installer does not change PowerShell execution policy or
|
|
11
|
+
intercept bare model commands.
|
|
12
|
+
|
|
13
|
+
Re-running the installer updates program files. `agent-bios install` refreshes the
|
|
14
|
+
private library while retaining saved selection and personal authoring. Removing
|
|
15
|
+
the application removes its owned PATH entry; private instructions and session
|
|
16
|
+
records remain in the user's home. Windows and WSL have separate homes and stores.
|
|
17
|
+
|
|
18
|
+
The native build is experimental until the Windows workflow's artifact and lifecycle
|
|
19
|
+
checks pass for the exact candidate. Fixture tests do not establish live host login,
|
|
20
|
+
model execution, app skill discovery or interactive Korean IME behavior. Native
|
|
21
|
+
hooks and the shell-based multi-model worker adapters require separate Windows
|
|
22
|
+
qualification. File contents are flushed; process-recovery tests are not proof of
|
|
23
|
+
power-loss durability on Windows.
|
|
24
|
+
|
|
25
|
+
## Script distribution with an approved Python
|
|
26
|
+
|
|
27
|
+
A second Windows route installs agent-bios as scripts and data without a custom
|
|
28
|
+
EXE launcher or an EXE installer. It targets organizations whose application
|
|
29
|
+
control permits PowerShell and CPython but blocks unrecognized executables. The
|
|
30
|
+
Windows workflow builds and exercises this route on every change; the Windows
|
|
31
|
+
script release workflow publishes it as a GitHub release whose page carries the
|
|
32
|
+
one-line PowerShell command for that exact release.
|
|
33
|
+
|
|
34
|
+
The repository's GitHub Pages installation page also provides a shorter command
|
|
35
|
+
at a fixed address. It names `powershell` and relaxes that process's execution
|
|
36
|
+
policy, so it runs from the Command Prompt and the Run box as well as from an open
|
|
37
|
+
PowerShell, and on a machine whose policy nobody changed. It saves the script to a
|
|
38
|
+
fixed name under the temporary directory and invokes that file, rather than
|
|
39
|
+
evaluating the downloaded text: the bootstrap authenticates itself through its own
|
|
40
|
+
file path, which text piped into the shell does not have. The command carries no
|
|
41
|
+
PowerShell variable, because a command pasted into PowerShell is expanded by that
|
|
42
|
+
shell before the child starts. This convenience command trusts the HTTPS
|
|
43
|
+
site for the initial script; it does not check that script's hash before execution.
|
|
44
|
+
Dependent downloads still undergo the installer's checks. The fixed address
|
|
45
|
+
serves an explicitly promoted release, so publishing another release does not
|
|
46
|
+
silently change it. Preview commands retain `-AcceptUnsignedPreview`.
|
|
47
|
+
|
|
48
|
+
The same page carries a `curl` one-liner for macOS and Linux. That route is not
|
|
49
|
+
this Windows distribution: it installs the published npm package, which needs
|
|
50
|
+
Node.js and python3 already present, and then names the command that deploys the
|
|
51
|
+
work environment rather than opening its chooser over a pipe.
|
|
52
|
+
|
|
53
|
+
Releases come in two channels. A stable release is Authenticode-signed with the
|
|
54
|
+
project's release signing identity. Copy the version-specific command from its
|
|
55
|
+
release page: the command carries the SHA-256 of that final bootstrap and the
|
|
56
|
+
approved signer thumbprint, and checks both before invoking the saved script.
|
|
57
|
+
The generic latest URL is not an execution command: a moving asset cannot match
|
|
58
|
+
a fixed digest indefinitely. Release publication generates the command only after
|
|
59
|
+
all script signing is complete.
|
|
60
|
+
|
|
61
|
+
A preview release is published as a prerelease without a signing identity. Its
|
|
62
|
+
bootstrap refuses to run unless the caller adds `-AcceptUnsignedPreview`, and
|
|
63
|
+
it prints a warning when accepted; the manifest and asset hashes pinned inside
|
|
64
|
+
the script are still enforced. New preview release pages carry a tag-pinned command with that flag and a
|
|
65
|
+
bootstrap digest check before execution. Older preview pages may require the user
|
|
66
|
+
to compare the published bootstrap digest separately; their assets are not rewritten. Each published
|
|
67
|
+
command relaxes the execution policy for the process it starts, because a machine
|
|
68
|
+
nobody configured refuses scripts under the default Restricted policy. Neither
|
|
69
|
+
that relaxation nor anything installed edits the machine's saved policy, and a
|
|
70
|
+
policy imposed by a domain still refuses: the invocation's own error names it.
|
|
71
|
+
|
|
72
|
+
After caller-side verification, the bootstrap verifies the pinned release manifest
|
|
73
|
+
and dependent archives before running downloaded application or runtime code. It reuses an approved
|
|
74
|
+
CPython 3.13 x64 installation found on the machine, or provisions the pinned
|
|
75
|
+
official embeddable runtime into an application-private folder. Neither an
|
|
76
|
+
existing Python nor its packages are modified. The bootstrap adds the command
|
|
77
|
+
directory to the current PowerShell session, so `agent-bios` and `agent-launch`
|
|
78
|
+
work without reopening the terminal; other open terminals are unaffected.
|
|
79
|
+
|
|
80
|
+
The installed commands are static signed wrappers, `agent-bios.ps1` and
|
|
81
|
+
`agent-launch.ps1`, that read a local deployment binding and run the bundled
|
|
82
|
+
application through the bound interpreter. Beside each one the installer writes a
|
|
83
|
+
generated `.cmd` shim, because Windows does not treat `.ps1` as executable: without
|
|
84
|
+
the shim the PATH entry serves PowerShell alone and `agent-bios` is unavailable in
|
|
85
|
+
the Command Prompt, the Run box, and to any program that spawns a command. The
|
|
86
|
+
shim is generated rather than shipped since Authenticode cannot sign a `.cmd`; its
|
|
87
|
+
bytes are fixed and recorded in the deployment's ownership inventory, so a modified
|
|
88
|
+
shim is refused exactly like a modified command. `agent-bios uninstall` removes owned
|
|
89
|
+
commands, shims, shortcuts and the owned PATH entry; private instructions, session
|
|
90
|
+
records and any preexisting Python are retained.
|
|
91
|
+
|
|
92
|
+
This route is qualified on the Windows workflow runner in PowerShell 5.1 and 7
|
|
93
|
+
with runner-only test signing, and the release workflow re-runs that
|
|
94
|
+
qualification on the exact assets before it publishes them and then verifies
|
|
95
|
+
the published command anonymously. Validation on a policy-managed machine is a
|
|
96
|
+
separate step that no workflow establishes. Executable code still runs:
|
|
97
|
+
PowerShell, curl and Python, plus native modules inside the dependency bundle.
|
|
98
|
+
Migration of an existing EXE installation into this route is refused rather
|
|
99
|
+
than attempted.
|
package/install.sh
CHANGED
|
@@ -104,8 +104,8 @@ check_prereqs() {
|
|
|
104
104
|
command -v git >/dev/null 2>&1 || { log "missing prerequisite: git"; ok=1; }
|
|
105
105
|
command -v python3 >/dev/null 2>&1 || { log "missing prerequisite: python3"; ok=1; }
|
|
106
106
|
if command -v python3 >/dev/null 2>&1; then
|
|
107
|
-
python3 -c 'import sys; sys.exit(0 if sys.version_info>=(3,
|
|
108
|
-
|| { log "python3 >= 3.
|
|
107
|
+
python3 -c 'import sys; sys.exit(0 if sys.version_info>=(3,12) else 1)' 2>/dev/null \
|
|
108
|
+
|| { log "python3 >= 3.12 required (tomllib)"; ok=1; }
|
|
109
109
|
fi
|
|
110
110
|
command -v zsh >/dev/null 2>&1 || log "note: zsh not found; the shell hook targets zsh"
|
|
111
111
|
command -v codex >/dev/null 2>&1 || log "note: codex CLI not found; Codex-side steps will be skipped"
|
|
@@ -1702,6 +1702,12 @@ refresh_update_cache() {
|
|
|
1702
1702
|
[ -n "$name" ] || return 1
|
|
1703
1703
|
now="$(date +%s)"
|
|
1704
1704
|
latest=""
|
|
1705
|
+
# npm runs on node, which cannot start in a working directory deleted under the
|
|
1706
|
+
# shell. The lookup does not depend on the directory, so a vanished one is left for
|
|
1707
|
+
# $HOME rather than reported as an unreachable registry that was never asked.
|
|
1708
|
+
if ! pwd -P >/dev/null 2>&1; then
|
|
1709
|
+
cd "$HOME" 2>/dev/null || cd /
|
|
1710
|
+
fi
|
|
1705
1711
|
if command -v npm >/dev/null 2>&1; then
|
|
1706
1712
|
# `|| latest=""` is not defensive noise: this file runs under `set -euo pipefail`,
|
|
1707
1713
|
# so an npm that exits non-zero (offline, firewalled, private registry down) makes
|
|
@@ -1764,6 +1770,7 @@ agent-bios — manage private instructions content for explicitly activated sess
|
|
|
1764
1770
|
agent-bios app register an explicit Codex app bridge or manage per-task instructions input
|
|
1765
1771
|
agent-bios app session use return selected instructions as context for this Codex app task
|
|
1766
1772
|
agent-bios app session off stop future delivery; earlier context requires a new task to exclude
|
|
1773
|
+
agent-bios app desktop write the Claude Desktop extension file; you install it in Desktop
|
|
1767
1774
|
agent-bios understand list instructions learning bundles; --help shows session/discovery commands
|
|
1768
1775
|
agent-bios shell show the optional zsh connection status
|
|
1769
1776
|
agent-bios shell restore make bare claude/codex open the launcher TUI
|
|
@@ -1851,8 +1858,8 @@ if [ "$CMD" = "import" ]; then
|
|
|
1851
1858
|
exec python3 "$REPO/compose/instructions_import.py" --repo "$REPO" "$@" <&3
|
|
1852
1859
|
fi
|
|
1853
1860
|
if [ "$CMD" = "setup" ]; then
|
|
1854
|
-
if ! command -v python3 >/dev/null 2>&1 || ! python3 -c 'import sys; sys.exit(sys.version_info < (3,
|
|
1855
|
-
log "Python 3.
|
|
1861
|
+
if ! command -v python3 >/dev/null 2>&1 || ! python3 -c 'import sys; sys.exit(sys.version_info < (3, 12))' </dev/null; then
|
|
1862
|
+
log "Python 3.12 or newer is required for conversation setup."
|
|
1856
1863
|
log "Install Python with your operating system package manager, then rerun this command."
|
|
1857
1864
|
exit 1
|
|
1858
1865
|
fi
|
|
@@ -1861,8 +1868,8 @@ fi
|
|
|
1861
1868
|
if [ "${AGENT_BIOS_LEGACY_INSTALL:-0}" != 1 ]; then
|
|
1862
1869
|
case "$CMD" in
|
|
1863
1870
|
install|onboard|verify|status|uninstall|migrate|reset)
|
|
1864
|
-
if ! command -v python3 >/dev/null 2>&1 || ! python3 -c 'import sys; sys.exit(sys.version_info < (3,
|
|
1865
|
-
log "Python 3.
|
|
1871
|
+
if ! command -v python3 >/dev/null 2>&1 || ! python3 -c 'import sys; sys.exit(sys.version_info < (3, 12))' </dev/null; then
|
|
1872
|
+
log "Python 3.12 or newer is required for the installer and dependency chooser."
|
|
1866
1873
|
log "Install Python with your operating system package manager, then rerun this command."
|
|
1867
1874
|
exit 1
|
|
1868
1875
|
fi
|
package/launch/agent-launch.py
CHANGED
|
@@ -6,7 +6,6 @@ from __future__ import annotations
|
|
|
6
6
|
import argparse
|
|
7
7
|
import copy
|
|
8
8
|
import datetime
|
|
9
|
-
import fcntl
|
|
10
9
|
import hashlib
|
|
11
10
|
import json
|
|
12
11
|
import os
|
|
@@ -24,6 +23,12 @@ import uuid
|
|
|
24
23
|
from dataclasses import dataclass, field
|
|
25
24
|
from typing import Any, Callable, NoReturn
|
|
26
25
|
|
|
26
|
+
if os.name == "nt":
|
|
27
|
+
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1] / "compose"))
|
|
28
|
+
from host_platform import file_locks as fcntl
|
|
29
|
+
else:
|
|
30
|
+
import fcntl
|
|
31
|
+
|
|
27
32
|
|
|
28
33
|
TIER_ORDER = ("frontier", "helm", "workhorse", "sweep")
|
|
29
34
|
# Review is not work any tier can do. A reviewer must be at least this capable; helm or
|
|
@@ -46,6 +51,21 @@ HOST_EFFORTS = {
|
|
|
46
51
|
"claude": {"low", "medium", "high", "xhigh", "max"},
|
|
47
52
|
}
|
|
48
53
|
|
|
54
|
+
# Efforts a CONCRETE model rejects although its host accepts them. A property of the
|
|
55
|
+
# model rather than of the host, so it cannot live in HOST_EFFORTS — and it is a dict
|
|
56
|
+
# rather than two inline comparisons because the inline form was written for
|
|
57
|
+
# `gpt-5.6-luna` alone and silently stopped covering anything when the sweep tier moved
|
|
58
|
+
# to `gpt-6-luna`, which rejects `ultra` just the same. Every entry must name a model the
|
|
59
|
+
# profile can actually select; a rebind that drops a model takes its row with it.
|
|
60
|
+
MODEL_EFFORT_EXCEPTIONS: dict[tuple[str, str], tuple[str, ...]] = {
|
|
61
|
+
("codex", "gpt-5.6-luna"): ("ultra",),
|
|
62
|
+
("codex", "gpt-6-luna"): ("ultra",),
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def model_rejects_effort(host: str, model: str, effort: str) -> bool:
|
|
67
|
+
return effort in MODEL_EFFORT_EXCEPTIONS.get((host, model), ())
|
|
68
|
+
|
|
49
69
|
# These read the catalog, so they are built per render rather than at import:
|
|
50
70
|
# a module-level dict would freeze whatever English existed before
|
|
51
71
|
# load_catalogs() installed the selected language. Every key is a single-line
|
|
@@ -4123,6 +4143,8 @@ _UI_RUNTIME_RELEASE: Callable[[], None] | None = None
|
|
|
4123
4143
|
def exec_backend(command: str, args: list[str], env: dict[str, str] | None = None) -> NoReturn:
|
|
4124
4144
|
if _UI_RUNTIME_RELEASE is not None:
|
|
4125
4145
|
_UI_RUNTIME_RELEASE()
|
|
4146
|
+
if os.name == "nt":
|
|
4147
|
+
raise SystemExit(subprocess.call([command, *args], env=os.environ.copy() if env is None else env))
|
|
4126
4148
|
os.execve(command, [command, *args], os.environ.copy() if env is None else env)
|
|
4127
4149
|
|
|
4128
4150
|
|
|
@@ -4208,7 +4230,8 @@ def _snapshot_from_config(store, config_path, generation, host, selected, *, dry
|
|
|
4208
4230
|
|
|
4209
4231
|
def open_instructions_studio() -> None:
|
|
4210
4232
|
root = instructions_package_root()
|
|
4211
|
-
|
|
4233
|
+
from host_platform import python_argv
|
|
4234
|
+
result = subprocess.run(python_argv(root / "compose/instructions.py", "--repo", str(root)))
|
|
4212
4235
|
if result.returncode:
|
|
4213
4236
|
print(f"agent-launch: Instructions Studio exited {result.returncode}", file=sys.stderr)
|
|
4214
4237
|
|
|
@@ -4566,8 +4589,8 @@ def validate_effort(host: str, model: str, effort: Any, context: str) -> str | N
|
|
|
4566
4589
|
return None
|
|
4567
4590
|
if not isinstance(effort, str) or effort not in HOST_EFFORTS[host]:
|
|
4568
4591
|
raise LaunchError(f"unsupported effort for {context}: {effort!r}")
|
|
4569
|
-
if host
|
|
4570
|
-
raise LaunchError(f"unsupported effort for {context}:
|
|
4592
|
+
if model_rejects_effort(host, model, effort):
|
|
4593
|
+
raise LaunchError(f"unsupported effort for {context}: {model}/{effort}")
|
|
4571
4594
|
return effort
|
|
4572
4595
|
|
|
4573
4596
|
|
|
@@ -6618,7 +6641,7 @@ def register_reviewer_wizard(
|
|
|
6618
6641
|
# a planted symlink and truncates whatever it points at, merely by
|
|
6619
6642
|
# opening the wizard.
|
|
6620
6643
|
lock_fd = os.open(
|
|
6621
|
-
lock_path, os.O_CREAT | os.O_WRONLY | os
|
|
6644
|
+
lock_path, os.O_CREAT | os.O_WRONLY | getattr(os, "O_NOFOLLOW", 0), 0o600
|
|
6622
6645
|
)
|
|
6623
6646
|
with os.fdopen(lock_fd, "w") as lock_handle:
|
|
6624
6647
|
fcntl.flock(lock_handle, fcntl.LOCK_EX)
|
|
@@ -7008,9 +7031,9 @@ def effort_options(host: str, model: str) -> list[MenuOption]:
|
|
|
7008
7031
|
for effort in EFFORT_ORDER:
|
|
7009
7032
|
enabled = effort in HOST_EFFORTS[host]
|
|
7010
7033
|
reason = t("effort.unsupported.host").format(host=host) if not enabled else ""
|
|
7011
|
-
if enabled and host
|
|
7034
|
+
if enabled and model_rejects_effort(host, model, effort):
|
|
7012
7035
|
enabled = False
|
|
7013
|
-
reason = t("effort.unsupported.model").format(model=
|
|
7036
|
+
reason = t("effort.unsupported.model").format(model=model)
|
|
7014
7037
|
options.append(
|
|
7015
7038
|
MenuOption(effort, effort, descriptions[effort], enabled, reason)
|
|
7016
7039
|
)
|
|
@@ -7667,7 +7690,7 @@ def save_preset(
|
|
|
7667
7690
|
try:
|
|
7668
7691
|
target.parent.mkdir(parents=True, exist_ok=True)
|
|
7669
7692
|
lock_path = target.with_name(target.name + ".lock")
|
|
7670
|
-
lock_fd = os.open(lock_path, os.O_CREAT | os.O_WRONLY | os
|
|
7693
|
+
lock_fd = os.open(lock_path, os.O_CREAT | os.O_WRONLY | getattr(os, "O_NOFOLLOW", 0), 0o600)
|
|
7671
7694
|
with os.fdopen(lock_fd, "w") as lock_handle:
|
|
7672
7695
|
fcntl.flock(lock_handle, fcntl.LOCK_EX)
|
|
7673
7696
|
try:
|