agent-bios 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.20.1 release notes](docs/releases/0.20.1.md)
8
+ [0.21.0 release notes](docs/releases/0.21.0.md)
9
9
 
10
10
  ## Purpose
11
11
 
@@ -71,24 +71,40 @@ See [setup and prerequisites](docs/setup.md).
71
71
 
72
72
  ### In a terminal
73
73
 
74
- One line per platform. Each downloads from the project's installation page, which
75
- serves an explicitly promoted release rather than a moving latest.
74
+ One line per platform, each from the project's installation page.
76
75
 
77
- On **Windows** — from PowerShell, the Command Prompt or the Run box. The current
78
- release is an unsigned preview, which is what the trailing flag accepts:
76
+ On **Windows**, in PowerShell. The current release is an unsigned preview, and
77
+ the script says so before it installs:
79
78
 
80
79
  ```text
81
- 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"
80
+ irm https://kangminlee-maker.github.io/agent-bios/install.ps1 | iex
82
81
  ```
83
82
 
84
- On **macOS or Linux**, where **Python 3.12+** and **Node.js 18+ with npm** must
85
- already be present:
83
+ From the Command Prompt or the Run box:
84
+
85
+ ```text
86
+ powershell -c "irm https://kangminlee-maker.github.io/agent-bios/install.ps1 | iex"
87
+ ```
88
+
89
+ If a managed machine's security software refuses a downloaded script run this
90
+ way, use the version-specific command on the release page, which saves the
91
+ script and checks its SHA-256 first ([Windows installation](docs/windows.md)).
92
+
93
+ On **macOS or Linux**:
86
94
 
87
95
  ```text
88
96
  curl -fsSL https://kangminlee-maker.github.io/agent-bios/install.sh | bash
89
97
  ```
90
98
 
91
- Then deploy the work environment:
99
+ It needs no npm, Node.js or preinstalled Python. It installs the latest release
100
+ after checking it against the npm registry's SHA-512, uses an existing Python 3.12+
101
+ or downloads a pinned one into its own folder, adds `~/.local/bin` to your shell's
102
+ PATH when it is missing, and opens setup. Releases up to 0.20.1 predate this and
103
+ still install through npm, which needs Python 3.12+ and Node.js 18+ with npm.
104
+ Options and removal: [macOS and Linux installation](docs/macos-linux.md).
105
+
106
+ When setup did not open (an npm-installed release, or a run without a terminal),
107
+ deploy the work environment with:
92
108
 
93
109
  ```bash
94
110
  agent-bios install
@@ -58,6 +58,14 @@ def main() -> int:
58
58
  if not isinstance(value, str) or (value and not Path(value).is_absolute()):
59
59
  raise RuntimeError("registered bridge has an invalid managed runtime path")
60
60
  env["AGENT_LAUNCH_VENV"] = value
61
+ if "python" in config:
62
+ # Registered by a bound command: install.sh runs its Python steps as
63
+ # $AGENT_BIOS_PYTHON, and the app starts this bridge without that variable,
64
+ # so the binding travels in the registration instead.
65
+ value = config["python"]
66
+ if not isinstance(value, str) or not Path(value).is_absolute():
67
+ raise RuntimeError("registered bridge has an invalid bound Python")
68
+ env["AGENT_BIOS_PYTHON"] = value
61
69
  if "python_binding" in config:
62
70
  bound = config["python_binding"]
63
71
  if not isinstance(bound, dict):
@@ -133,6 +133,20 @@ class AppBridge:
133
133
  config["launch_venv"] = saved["launch_venv"]
134
134
  if "python_binding" in saved:
135
135
  config["python_binding"] = saved["python_binding"]
136
+ if "AGENT_BIOS_PYTHON" in self.env:
137
+ # A registration made by a bound command (the standalone route) keeps that
138
+ # interpreter, so the bridge's install.sh children run under it; unbound
139
+ # registrations carry nothing and keep resolving python3 as before.
140
+ value = self.env["AGENT_BIOS_PYTHON"]
141
+ if value:
142
+ if not Path(value).is_absolute():
143
+ raise AppError("AGENT_BIOS_PYTHON must be an absolute interpreter path")
144
+ config["python"] = value
145
+ else:
146
+ current = self._owned_target()
147
+ saved = _read_json(current / "bridge.json") if current is not None else {}
148
+ if isinstance(saved.get("python"), str):
149
+ config["python"] = saved["python"]
136
150
  binding = runtime_environment(self.env)
137
151
  if binding:
138
152
  config["python_binding"] = binding
@@ -193,7 +207,9 @@ class AppBridge:
193
207
  config = _read_json(raw / "bridge.json")
194
208
  base = self._base_config()
195
209
  if (any(config.get(key) != value for key, value in base.items())
196
- or set(config) - set(base) - {"launch_venv", "python_binding"}
210
+ or set(config) - set(base) - {"launch_venv", "python_binding", "python"}
211
+ or ("python" in config and (not isinstance(config["python"], str)
212
+ or not Path(config["python"]).is_absolute()))
197
213
  or ("launch_venv" in config and (not isinstance(config["launch_venv"], str)
198
214
  or (config["launch_venv"] and not Path(config["launch_venv"]).is_absolute())))):
199
215
  raise AppError(f"app skill belongs to different private root settings: {self.target}")
@@ -434,10 +450,12 @@ class AppSessions:
434
450
  "AGENT_BIOS_PRIVATE_INSTRUCTIONS": "1", "AGENT_BIOS_LEGACY_INSTALL": "0"}}
435
451
  result["environment"].update(runtime_environment())
436
452
  registered = bridge.managed_status().get("registered")
437
- if "AGENT_LAUNCH_VENV" in self.env or registered:
453
+ if "AGENT_LAUNCH_VENV" in self.env or "AGENT_BIOS_PYTHON" in self.env or registered:
438
454
  config = bridge._config()
439
455
  if "launch_venv" in config:
440
456
  result["environment"]["AGENT_LAUNCH_VENV"] = config["launch_venv"]
457
+ if "python" in config:
458
+ result["environment"]["AGENT_BIOS_PYTHON"] = config["python"]
441
459
  if registered:
442
460
  result["bridge_learn_argv"] = python_argv(bridge.target / "scripts/bridge.py", "learn")
443
461
  return result
@@ -669,22 +669,34 @@ class InstructionsInstaller:
669
669
 
670
670
  def _current_launcher_runtime(self):
671
671
  if not WINDOWS:
672
- return None
672
+ # A POSIX launcher names an interpreter only when the command that ran this
673
+ # install was bound to one (the standalone route exports AGENT_BIOS_PYTHON).
674
+ # Unbound, it stays the PATH-resolved launcher every earlier receipt recorded.
675
+ python = self.env.get('AGENT_BIOS_PYTHON')
676
+ if not python:
677
+ return None
678
+ if not Path(python).is_absolute():
679
+ raise InstallError('AGENT_BIOS_PYTHON must be an absolute interpreter path')
680
+ return {'schema_version': 1, 'python': python, 'environment': {}}
673
681
  env = runtime_environment(self.env)
674
682
  return {'schema_version': 1, 'python': env.get('AGENT_BIOS_PYTHON_EXECUTABLE', str(Path(sys.executable).resolve())),
675
683
  'environment': env}
676
684
 
685
+ @staticmethod
686
+ def _checked_launcher_runtime(spec) -> dict[str, Any]:
687
+ if (not isinstance(spec, dict) or set(spec) != {'schema_version', 'python', 'environment'}
688
+ or spec['schema_version'] != 1 or not isinstance(spec['python'], str)
689
+ or not Path(spec['python']).is_absolute() or not isinstance(spec['environment'], dict)):
690
+ raise InstallError('invalid recorded launcher runtime')
691
+ return spec
692
+
677
693
  def _launcher_body(self, package_root: Path, *, launcher_runtime=None, current=True) -> bytes:
678
694
  if WINDOWS:
679
695
  spec = self._current_launcher_runtime() if current else launcher_runtime
680
696
  if spec is None:
681
697
  # Exact pre-binding Windows source format, for existing receipts.
682
698
  return ('@echo off\r\n"' + sys.executable + '" "' + str(package_root / "compose/native_cli.py") + '" launch %*\r\n').encode("utf-8")
683
- if (not isinstance(spec, dict) or set(spec) != {'schema_version', 'python', 'environment'}
684
- or spec['schema_version'] != 1 or not isinstance(spec['python'], str)
685
- or not Path(spec['python']).is_absolute() or not isinstance(spec['environment'], dict)):
686
- raise InstallError('invalid recorded launcher runtime')
687
- env = spec['environment']
699
+ env = self._checked_launcher_runtime(spec)['environment']
688
700
  allowed = {'AGENT_BIOS_PYTHON_ENTRY', 'AGENT_BIOS_PYTHON_DEPS', 'AGENT_BIOS_PYTHON_EXECUTABLE'}
689
701
  if env and (set(env) != allowed or any(not isinstance(v, str) or not Path(v).is_absolute() for v in env.values())):
690
702
  raise InstallError('invalid recorded launcher dependency binding')
@@ -701,6 +713,19 @@ class InstructionsInstaller:
701
713
  canonical = (package_root / "compose/instructions_store.py").is_file()
702
714
  activation = ("unset AGENT_BIOS_PRIVATE_CORPUS\nexport AGENT_BIOS_PRIVATE_INSTRUCTIONS=1\n"
703
715
  if canonical else "export AGENT_BIOS_PRIVATE_CORPUS=1\n")
716
+ spec = self._current_launcher_runtime() if current else launcher_runtime
717
+ if spec is not None:
718
+ # Exported as well as executed: the launcher's shell adapters run their Python
719
+ # helpers as $AGENT_BIOS_PYTHON, and a user's shell carries no such binding.
720
+ python = self._checked_launcher_runtime(spec)['python']
721
+ if spec['environment'] or any(c in python for c in '\r\n\0'):
722
+ raise InstallError('invalid recorded POSIX launcher runtime')
723
+ return ("#!/bin/sh\n"
724
+ + activation
725
+ + f"export AGENT_BIOS_PACKAGE_ROOT={quoted}\n"
726
+ + f"AGENT_BIOS_PYTHON={shlex.quote(python)}\n"
727
+ "export AGENT_BIOS_PYTHON\n"
728
+ "exec \"$AGENT_BIOS_PYTHON\" \"$AGENT_BIOS_PACKAGE_ROOT/launch/agent-launch.py\" \"$@\"\n").encode("utf-8")
704
729
  return ("#!/bin/sh\n"
705
730
  + activation
706
731
  + f"export AGENT_BIOS_PACKAGE_ROOT={quoted}\n"
@@ -946,8 +971,9 @@ class InstructionsInstaller:
946
971
  "launcher": launcher, "config_files": config, "created_at": int(time.time()),
947
972
  "mode": "private-session-scoped", "needs_action": [],
948
973
  }
949
- if WINDOWS:
950
- record["launcher_runtime"] = self._current_launcher_runtime()
974
+ launcher_runtime = self._current_launcher_runtime()
975
+ if WINDOWS or launcher_runtime is not None:
976
+ record["launcher_runtime"] = launcher_runtime
951
977
  if selection_mode is not None:
952
978
  record["selection_mode"] = selection_mode
953
979
  paths = [{"path": str(path), "before": self._file_version(path),
@@ -89,7 +89,10 @@ def dependency_inventory(repo: Path, environ: dict[str, str] | None = None, *,
89
89
  add("bash", "Bash", "runtime", "Runs the package entry point and bundled shell tools.",
90
90
  path=paths["bash"], argv=[paths["bash"], "--version"] if paths["bash"] else None,
91
91
  action=formula("bash"), scope="Homebrew prefix", reason="Install Bash using your operating system package manager.")
92
- py = sys.executable if system == "Windows" else paths["python3"]
92
+ # A bound installation (AGENT_BIOS_PYTHON, set by the standalone command) runs every Python
93
+ # step under that interpreter, so it is the one to report, not whatever python3 PATH finds.
94
+ bound = env.get("AGENT_BIOS_PYTHON")
95
+ py = sys.executable if system == "Windows" else (bound if bound and Path(bound).is_absolute() else paths["python3"])
93
96
  add("python3", "Python 3.12+", "runtime", "Runs installation, instructions storage, and terminal interfaces.", path=py,
94
97
  argv=[py, "-c", "import sys; print(sys.version.split()[0]); raise SystemExit(sys.version_info < (3,12))"] if py else None,
95
98
  action=formula("python"), scope="Homebrew prefix", reason="Install Python 3.12+ and ensure python3 resolves to it.")
@@ -0,0 +1,92 @@
1
+ # macOS and Linux installation
2
+
3
+ The one-line `curl ... | bash` command in the [README](../README.md#in-a-terminal)
4
+ installs agent-bios on macOS and Linux. It is the installation page's command and
5
+ appears there verbatim.
6
+
7
+ The command needs `curl`, `tar` and `bash`, which macOS and the usual Linux
8
+ distributions already have. It does not need npm, Node.js or a preinstalled Python.
9
+ Model host CLIs such as Claude Code and Codex remain separate programs, which setup
10
+ offers to install.
11
+
12
+ ## What the command does
13
+
14
+ 1. It finds a Python. An existing `python3` that is CPython 3.12 or newer, and not a
15
+ virtual environment, is used. Otherwise a pinned CPython 3.13 build from
16
+ python-build-standalone is downloaded into agent-bios's own folder, after its size
17
+ and SHA-256 match the values pinned in the script. Builds are pinned for Apple
18
+ silicon and Intel Macs and for x86_64 and ARM64 Linux with glibc; on musl Linux
19
+ (Alpine), install CPython 3.12+ with the package manager first.
20
+ 2. It reads the latest release from the npm registry and downloads that package. The
21
+ package is extracted only if it matches the registry's SHA-512, the same check npm
22
+ makes.
23
+ 3. It writes the `agent-bios` command to `~/.local/bin`, the folder where agent-bios
24
+ also puts `agent-launch`. The command runs every later Python step under the
25
+ interpreter from step 1, so a different or missing `python3` on PATH does not
26
+ matter afterwards.
27
+ 4. When `~/.local/bin` is not on PATH, it appends one marked block to your shell's
28
+ startup file: `~/.zshrc` for zsh, `~/.bash_profile` on macOS or `~/.bashrc` on
29
+ Linux for bash, a file in `~/.config/fish/conf.d` for fish, otherwise `~/.profile`.
30
+ New terminals then find `agent-bios`. The terminal that ran the command keeps its
31
+ old PATH; the command prints the line that updates it.
32
+ 5. It opens first-time setup. When a work environment already exists, it refreshes
33
+ it instead, keeping saved choices and personal instructions.
34
+
35
+ Releases up to 0.20.1 predate this route. For those, the command installs with npm
36
+ as before when npm and `python3` 3.12+ are present, and otherwise says which of them
37
+ is missing.
38
+
39
+ ## Options
40
+
41
+ `curl | bash` passes no arguments, so options are environment variables placed in
42
+ front of `bash`: replace the final `bash` of the command with, for example,
43
+ `AGENT_BIOS_NO_MODIFY_PATH=1 bash`.
44
+
45
+ | Variable | Effect |
46
+ | --- | --- |
47
+ | `AGENT_BIOS_VERSION=x.y.z` | install that release instead of the latest |
48
+ | `AGENT_BIOS_PYTHON=/path/to/python3` | use this interpreter (CPython 3.12+) |
49
+ | `AGENT_BIOS_PRIVATE_PYTHON=1` | use the pinned Python even when one is installed |
50
+ | `AGENT_BIOS_NO_PYTHON_DOWNLOAD=1` | stop instead of downloading a Python |
51
+ | `AGENT_BIOS_NO_MODIFY_PATH=1` | print the PATH line instead of adding it |
52
+ | `AGENT_BIOS_NO_LAUNCH=1` | do not open setup afterwards |
53
+ | `AGENT_BIOS_INSTALL_ROOT=/path` | program folder (default `~/.local/share/agent-bios-standalone`) |
54
+ | `AGENT_BIOS_REGISTRY=<HTTPS address>` | npm registry to read (default: the public npm registry) |
55
+
56
+ ## Update and removal
57
+
58
+ Running the install command again is the update. It installs the latest release beside the
59
+ current one, switches the command to it and refreshes the work environment.
60
+ `agent-bios update` prints the command.
61
+
62
+ `agent-bios uninstall` removes the deployed work environment, as on every route.
63
+ To remove the program as well:
64
+
65
+ ```bash
66
+ sh ~/.local/share/agent-bios-standalone/uninstall.sh
67
+ ```
68
+
69
+ It runs `agent-bios uninstall` first (`--program-only` skips that), then removes
70
+ the `agent-bios` command if it is unchanged, the PATH block it added, and the
71
+ program folder with its private Python. Personal instructions, learning records,
72
+ session records and any Python installed outside that folder are kept.
73
+
74
+ ## Existing installations and limits
75
+
76
+ An `agent-bios` command in `~/.local/bin` that this command did not write, such as
77
+ an npm installation whose prefix is `~/.local`, is left untouched and the run stops.
78
+ An npm installation elsewhere stays installed, and the command says which of the two
79
+ `agent-bios` a terminal now runs: when it adds `~/.local/bin` to PATH, new terminals
80
+ run this installation, and when `~/.local/bin` is already on PATH behind npm's folder,
81
+ the npm one keeps running. Keep one of them, for example with
82
+ `npm uninstall -g agent-bios`, so updates reach the one you use.
83
+
84
+ The zsh shell connection reads `claude`'s subcommands with the `python3` your
85
+ terminal finds. On a Mac with no Python of its own it says so and starts `claude`
86
+ without the permission flag.
87
+
88
+ The install-site workflow runs this command on Linux x86_64 and ARM64 and on Apple
89
+ silicon and Intel macOS runners, from a PATH without python, node or npm, before and
90
+ after each deployment. Machines whose management software restricts which programs
91
+ run are not covered by those runners; there, `AGENT_BIOS_PYTHON` selects an approved
92
+ interpreter instead of the downloaded one.
package/docs/recovery.md CHANGED
@@ -33,7 +33,7 @@ wiring. Neither activates instructions in a task.
33
33
  | `agent-bios reset` | preview reset; keep sources, snapshots, and pins |
34
34
  | `agent-bios reset --apply --yes --expected-revision REV` | use the revision returned by preview |
35
35
  | `agent-bios migrate` | preview legacy global cleanup; --apply --yes performs it |
36
- | `agent-bios update` | git pull + reinstall (clone), or print the npm update line |
36
+ | `agent-bios update` | git pull + reinstall (clone), or print the npm or install-command update line |
37
37
  | `agent-bios uninstall` | remove owned runtime entries; retain user instructions and pinned sessions |
38
38
 
39
39
  `agent-launch` examples assume `~/.local/bin` is on `PATH`; otherwise use `"$HOME/.local/bin/agent-launch"`. From a checkout, deploy with `bash install.sh install` at its root, not the globally installed CLI. A blocked npm postinstall message does not deploy the instructions; the explicit `install` command remains necessary.
@@ -0,0 +1,101 @@
1
+ # agent-bios 0.21.0
2
+
3
+ Release changes relative to 0.20.1.
4
+
5
+ ## macOS and Linux install without npm, Node.js or a preinstalled Python
6
+
7
+ The README's macOS and Linux install command is unchanged, and from this release on it
8
+ needs only `curl`, `tar` and `bash`. The package's command was always `install.sh`, so
9
+ Node.js never ran agent-bios; npm only fetched the package and checked it. The script
10
+ behind the command now does both itself:
11
+
12
+ - It reads the npm registry's latest release. It extracts the package only after the
13
+ package matches the registry's SHA-512, the check npm makes.
14
+ - An existing `python3` that is CPython 3.12 or newer, and not a virtual environment,
15
+ is used.
16
+ - Otherwise a pinned CPython 3.13.18 build from python-build-standalone is downloaded
17
+ into `~/.local/share/agent-bios-standalone`. It is used only after its size and
18
+ SHA-256 match. Builds are pinned for Apple silicon and Intel Macs and for x86_64 and
19
+ ARM64 Linux with glibc.
20
+ - It writes the `agent-bios` command to `~/.local/bin`. When that folder is not on
21
+ PATH, it appends one marked block to the shell's startup file.
22
+ - It opens setup, or refreshes an existing work environment with its saved choices.
23
+
24
+ Options are environment variables, since `curl | bash` passes no arguments.
25
+ `AGENT_BIOS_NO_MODIFY_PATH=1` prints the PATH line instead of adding it.
26
+ `AGENT_BIOS_PYTHON` selects an interpreter. The others are in
27
+ [macOS and Linux installation](../macos-linux.md).
28
+
29
+ Running the command again is the update, and `agent-bios update` prints it.
30
+ `sh ~/.local/share/agent-bios-standalone/uninstall.sh` removes the work environment,
31
+ the command, the PATH block and the program folder. Personal instructions, learning
32
+ records, session records and any Python outside that folder are kept.
33
+
34
+ An npm installation is never removed. When both exist, the command says which
35
+ `agent-bios` a terminal runs afterwards and how to keep one:
36
+ `npm uninstall -g agent-bios` removes the npm one.
37
+
38
+ The route applies to releases whose `package.json` declares `"agentBiosStandalone": 1`,
39
+ and 0.21.0 is the first. For an earlier release, such as one pinned with
40
+ `AGENT_BIOS_VERSION`, the command installs with npm as before or names the missing
41
+ prerequisite.
42
+
43
+ ## One interpreter for every Python step
44
+
45
+ `AGENT_BIOS_PYTHON`, which the standalone command sets, holds these to one interpreter:
46
+
47
+ - `install.sh`
48
+ - the `agent-launch` launcher it deploys, which records the interpreter and exports it
49
+ - the Claude and Codex shell adapters
50
+ - the managed-environment provisioner
51
+ - the dependency chooser's Python row
52
+ - the app bridge, whose registration records it because the app starts the bridge
53
+ without it
54
+
55
+ A PATH lookup no longer decides which Python runs. With the variable unset, every one
56
+ of these resolves `python3` as before, and an existing launcher keeps its bytes. When
57
+ npm is absent, `agent-bios update --check` says that no registry was asked, instead of
58
+ reporting an unreachable one.
59
+
60
+ ## Windows installation command
61
+
62
+ The Windows installation page's PowerShell command is now
63
+ `irm <installation page>/install.ps1 | iex`, shown verbatim in the README. The
64
+ Command Prompt and Run-box form wraps the same line in `powershell -c`. The address
65
+ serves a short first stage. It downloads the promoted Windows installer, checks the
66
+ SHA-256 pinned for it, warns that the preview is unsigned, and runs it in the same
67
+ window, where the commands then work at once. The earlier long command keeps working.
68
+ Windows script releases are cut separately from npm releases, and the installation
69
+ page names the one it serves.
70
+
71
+ ## Session distill
72
+
73
+ The driver's stage seats are now the launch profile's tiers rather than model names
74
+ of their own, so moving a tier's model moves the seats that use it. No stage sits on
75
+ SWEEP. Resolved against this profile, the seats are unchanged except S6's absence
76
+ sweeps, which move to WORKHORSE (`claude-sonnet-5-5` and `gpt-6.2-sol` at `high`). A
77
+ cross review must resolve to the other host. Every call is still reserved against S6's
78
+ remaining budget before it is sent. Running the driver still requires an agent-bios
79
+ checkout.
80
+
81
+ ## Upgrading
82
+
83
+ ```bash
84
+ npm i -g agent-bios@0.21.0
85
+ agent-bios install
86
+ ```
87
+
88
+ Install the exact version: right after a release, `@latest` can still resolve to the
89
+ previous one. On macOS and Linux, rerunning the README's install command installs this
90
+ release without npm instead.
91
+
92
+ ## Not established by this release
93
+
94
+ The install command was qualified before and after its deployment on Linux x86_64 and
95
+ ARM64 and on Apple silicon and Intel macOS runners. Those runs installed a packed
96
+ checkout from a loopback registry, from a PATH without python, node or npm. Until this
97
+ release was published, no release in the real registry declared the route, so its
98
+ first install from the real registry is the publication's own check. Machines whose
99
+ management software restricts which programs run are not covered by those runners.
100
+ Whether the stronger S6 sweeps change its results, and how much they add to a run's
101
+ usage, is unmeasured, and the Codex host allowance remains unmeasured.
package/docs/setup.md CHANGED
@@ -12,12 +12,13 @@ Commands below use the installed `agent-bios` CLI. From a source checkout, run
12
12
  | Route | Requirements | Interface |
13
13
  | --- | --- | --- |
14
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 |
15
+ | Terminal | macOS or Linux and an input/output terminal; the install command needs only curl, tar and Bash, the npm package Python 3.12+ and Node.js 18+/npm | Included Textual wizard |
16
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
20
- uses them. Source acquisition through the app does not require npm. The app and
20
+ uses them; the macOS and Linux install command obtains the same package without
21
+ them and supplies a Python when none is installed. Source acquisition through the app does not require npm. The app and
21
22
  storage routes do not require every host CLI. Full versions,
22
23
  purposes and provisioning boundaries are in [Dependencies](../DEPENDENCIES.md).
23
24
 
@@ -30,7 +31,10 @@ older installation mode.
30
31
 
31
32
  ## Guided terminal installation
32
33
 
33
- Install the exact package version, then start setup:
34
+ On macOS or Linux, the README's one-line install command installs the latest
35
+ release without npm and opens setup ([macOS and Linux installation](macos-linux.md)).
36
+
37
+ With npm, install the exact package version, then start setup:
34
38
 
35
39
  ```bash
36
40
  npm install -g agent-bios@0.19.0
package/docs/windows.md CHANGED
@@ -31,19 +31,28 @@ Windows workflow builds and exercises this route on every change; the Windows
31
31
  script release workflow publishes it as a GitHub release whose page carries the
32
32
  one-line PowerShell command for that exact release.
33
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`.
34
+ The repository's GitHub Pages installation page also provides a short command at
35
+ a fixed address: `irm <address>/install.ps1 | iex` in PowerShell, or the same
36
+ program behind `powershell -c` from the Command Prompt and the Run box. The address
37
+ serves a generated first stage, not the release bootstrap. Evaluated as text, the
38
+ first stage is not subject to the execution policy. It downloads the promoted
39
+ release's bootstrap from its immutable release asset, refuses it unless its SHA-256
40
+ matches the value pinned inside, relaxes the execution policy for the current
41
+ PowerShell process only, and invokes the checked file in that session, so the
42
+ installed commands work there at once; from the Command Prompt they work in a new
43
+ window. Because `irm | iex` cannot pass arguments, the installer's options are
44
+ environment variables: `AGENT_BIOS_INSTALL_ROOT` installs into another folder and
45
+ `AGENT_BIOS_NO_LAUNCH` skips opening setup. For a preview release the first stage
46
+ prints a warning and supplies `-AcceptUnsignedPreview` itself. The older form of
47
+ the command, which saves the address's script and invokes it with that flag, runs
48
+ the same first stage.
49
+
50
+ This convenience command trusts the HTTPS site for the first stage; it does not
51
+ check that script's hash before execution. The fixed address serves an explicitly
52
+ promoted release, so publishing another release does not silently change it.
53
+ Endpoint-protection products can treat evaluating downloaded text as suspicious.
54
+ On a managed machine that refuses it, use the release page's command, which saves
55
+ the bootstrap and checks it before invoking the file.
47
56
 
48
57
  The same page carries a `curl` one-liner for macOS and Linux. That route is not
49
58
  this Windows distribution: it installs the published npm package, which needs
@@ -64,7 +73,7 @@ it prints a warning when accepted; the manifest and asset hashes pinned inside
64
73
  the script are still enforced. New preview release pages carry a tag-pinned command with that flag and a
65
74
  bootstrap digest check before execution. Older preview pages may require the user
66
75
  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
76
+ command relaxes the execution policy for one PowerShell process, because a machine
68
77
  nobody configured refuses scripts under the default Restricted policy. Neither
69
78
  that relaxation nor anything installed edits the machine's saved policy, and a
70
79
  policy imposed by a domain still refuses: the invocation's own error names it.