Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
29c7486
Install Codex from Its Windows Installer and Consolidate opencode 2 i…
ptr727 Nov 13, 2026
9ff2244
State opencode's Managed Copy in the Host Setup Agent Tools Contract
ptr727 Nov 13, 2026
e0b3fcf
Check the Managed Install Before Removing a Stray Copy and Upgrade a …
ptr727 Nov 13, 2026
b2a7745
Upgrade a Stray Copy by the Package Name That Owns It and Confirm the…
ptr727 Nov 13, 2026
77de3ed
Read the Copy That Stays Again After a Consolidation and Check npm's …
ptr727 Nov 13, 2026
884f5fa
Name the Removal a Refused Managed Install Needs and Qualify the Repo…
ptr727 Nov 13, 2026
846aebc
Share the Windows npm and bun Step, Name a Stray's Removal Only Where…
ptr727 Nov 13, 2026
1129be0
Name a Stray's Package From Its Path, Name Its Removal Only Inside th…
ptr727 Nov 13, 2026
c825fc0
Describe a Stray That Stays as Handled Like a Tool Without a Managed …
ptr727 Nov 13, 2026
bfaf2ae
Read Every Copy Ahead of the Managed One Before Removing Any, and Nam…
ptr727 Nov 13, 2026
342a65e
Report a Stray opencode Copy With Its Fix Instead of Removing It
ptr727 Nov 13, 2026
a346df1
Leave opencode Alone While a Stray Copy Is First on PATH and Drop the…
ptr727 Nov 13, 2026
36c4d8d
Tell the Managed npm Shim by Its Prefix, Call Nothing a Stray Where n…
ptr727 Nov 13, 2026
0f79a18
Exempt Only an npm Copy Where npm Cannot Report Its Prefix and Upgrad…
ptr727 Nov 13, 2026
5a5f128
Match an Upgrade Only to the Recorded Package and Tell an opencode 1 …
ptr727 Nov 13, 2026
c6188be
Name a Removal's Package Where npm Reports No Prefix and Trim What No…
ptr727 Nov 13, 2026
4e91618
Stop Appending the opencode Installer Directory on Windows and Test t…
ptr727 Nov 13, 2026
b22de45
Share the mise Step So a Stray's Fix Never Removes mise's Node
ptr727 Nov 13, 2026
cf2f952
Indent the Second Line of mise_step's Node Comment
ptr727 Nov 13, 2026
95b5e33
Name the Managed opencode's Installer as Its Updater and Read Its npm…
ptr727 Nov 13, 2026
35f6781
Keep cswap's Reason Beside cswap and Assert codex's Real Updater Did …
ptr727 Nov 13, 2026
84b50e3
Drop manager_plan's Unused name Local
ptr727 Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/host-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ The opt-in sets nothing on a host where `gh` is not installed or not logged in,

The coding-agent tools, Claude Code, Codex, opencode, herdr, and cswap, are not host requirements. A host carries whichever of them its user chose. The tooling therefore keeps current only the ones already installed, and installs one only when it is named. An upgrade that installed every tool would put an agent on a host where nobody asked for one. That is a larger change than an upgrade is allowed to make.

Each tool lives in its user's home and carries its own updater, so the updater runs as that user, never as root. For the same reason it drives each tool's own update command rather than replacing it. cswap on Windows is the one exception, upgraded through the `uv tool upgrade` its own updater only prints there. This is because that updater cannot replace a launcher that is running. `uv` cannot replace it either, so the upgrade skips cswap while one runs and says what to close. A tool a package manager owns never gets its own updater, which would fight the manager for the same files. The upgrade runs that manager's own upgrade for that one package. npm and bun install the latest tag, Homebrew upgrades the formula or cask, mise upgrades the tool, and scoop updates the app. winget and apt are upgraded by the package upgrade steps. Nix is declarative and choco needs an elevated shell. Each is reported with its command and nothing is run, and so is an npm directory this user cannot write. Nothing here elevates. herdr's agent integrations are reinstalled after an upgrade wherever herdr reports one outdated. A herdr server already running keeps its panes on the previous binary until restarted, since stopping it would end every agent inside it. The report therefore marks that restart as pending rather than taking it.
Each tool lives in its user's home and carries its own updater, so the updater runs as that user, never as root. For the same reason it drives each tool's own update command rather than replacing it. cswap on Windows is one exception, upgraded through the `uv tool upgrade` its own updater only prints there. This is because that updater cannot replace a launcher that is running. `uv` cannot replace it either, so the upgrade skips cswap while one runs and says what to close. A tool a package manager owns never gets its own updater, which would fight the manager for the same files. The upgrade runs that manager's own upgrade for that one package. npm and bun install the latest tag, Homebrew upgrades the formula or cask, mise upgrades the tool, and scoop updates the app. winget and apt are upgraded by the package upgrade steps. Nix is declarative and choco needs an elevated shell. Each is reported with its command and nothing is run, and so is an npm directory this user cannot write. Nothing here elevates. A tool can instead record one managed copy, and opencode is the one that does. It ships from several sources, and opencode 2 replaced opencode 1's npm package. That copy is `~/.opencode/bin/opencode` from its own installer on Linux, upgraded by running that installer again. On Windows, where its installer cannot run, it is the npm package `@opencode/cli`, upgraded through npm. Another copy found first on PATH is reported with the command that removes it. The fix is left to a person, since it is a one-off. The upgrade and the install leave opencode alone while such a copy is first on PATH, and act on the managed copy once none is. On Windows, npm must report its prefix to tell its copies apart. Where it cannot, only an npm copy whose shim names `opencode-ai` is told from the managed package. herdr's agent integrations are reinstalled after an upgrade wherever herdr reports one outdated. A herdr server already running keeps its panes on the previous binary until restarted, since stopping it would end every agent inside it. The report therefore marks that restart as pending rather than taking it.

[`host-setup/linux/install-agents.sh`][install-agents] and [`host-setup/windows/install-agents.ps1`][install-agents-windows] implement this. `bootstrap.sh --upgrade` and `bootstrap.ps1 -Upgrade` run the upgrade after the packages, and `--agents`/`-Agents` installs the named tools. A scheduled run reaches the same script as the user who owns the tools.

Expand Down
2 changes: 1 addition & 1 deletion host-setup/linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The tooling that makes a Debian or Ubuntu based host satisfy the contract in [`d
- [`install-tools.sh`][install-tools] installs and upgrades the host tools. It reports what each is installed at, what upstream carries, where it comes from, and its status. Its `--sudo-timestamp` action is the one thing it does that is about the host rather than a tool.
- [`upgrade-host.sh`][upgrade-host] upgrades the packages of the current release. Moving to the next release is a separate action behind its own flag.
- [`setup-github.sh`][setup-github] configures the SSH key, git, and commit signing. It checks both key registrations against what GitHub publishes.
- [`install-agents.sh`][install-agents] keeps this user's coding-agent tools current through each tool's own updater, touching only the ones already installed. A tool a package manager owns is upgraded through that manager for that one package: npm, bun, Homebrew, or mise. apt is left to `upgrade-host.sh`, and Nix is declarative, so it is reported and not run. An npm directory this user cannot write is reported with its command, and nothing here uses sudo. The script installs a tool only when that tool is named.
- [`install-agents.sh`][install-agents] keeps this user's coding-agent tools current through each tool's own updater, touching only the ones already installed. A tool a package manager owns is upgraded through that manager for that one package: npm, bun, Homebrew, or mise. apt is left to `upgrade-host.sh`, and Nix is declarative, so it is reported and not run. An npm directory this user cannot write is reported with its command, and nothing here uses sudo. The script installs a tool only when that tool is named. opencode keeps one managed copy, `~/.opencode/bin/opencode` from its own installer. Another copy found first on PATH is reported with the command that removes it, and is never removed here.
- [`install-skills.sh`][install-skills] drives the hub's skills installer at [`scripts/skills_install.py`][skills-install] from this tree.
- [`install-safety-kit.sh`][install-safety-kit] drives the Claude Code safety kit installer at [`host-setup/agent-safety/claude/install.sh`][kit-install] from this tree. It skips a host where Claude Code is not installed for this user.
- [`install-global-rules.sh`][install-global-rules] writes the host-wide agent rules to the global instruction file of each installed Codex or opencode, by running [`global_rules.py`][global-rules] from this tree.
Expand Down
Loading
Loading