lean-agents 0.8.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +407 -0
  2. package/README.es.md +130 -24
  3. package/README.md +130 -24
  4. package/core/copilot-usage-tui.js +5 -2
  5. package/core/pins.json +18 -9
  6. package/package.json +3 -2
  7. package/scripts/behavior-diff.sh +47 -0
  8. package/scripts/bump-pins.mjs +14 -3
  9. package/scripts/ci-timing.mjs +61 -0
  10. package/scripts/labels.sh +1 -0
  11. package/scripts/lean.mjs +695 -76
  12. package/scripts/lib/adapters/antigravity.mjs +20 -9
  13. package/scripts/lib/adapters/claude.mjs +7 -2
  14. package/scripts/lib/adapters/copilot-cli.mjs +4 -3
  15. package/scripts/lib/adapters/opencode-v1.mjs +6 -13
  16. package/scripts/lib/adapters/opencode-v2.mjs +51 -3
  17. package/scripts/lib/adopt.mjs +172 -27
  18. package/scripts/lib/agent-lifecycle.mjs +140 -23
  19. package/scripts/lib/backup-stamp.mjs +25 -0
  20. package/scripts/lib/doctor.mjs +86 -14
  21. package/scripts/lib/feedback.mjs +22 -4
  22. package/scripts/lib/fsops.mjs +42 -14
  23. package/scripts/lib/inventory.mjs +5 -4
  24. package/scripts/lib/logins.mjs +28 -0
  25. package/scripts/lib/network.mjs +53 -13
  26. package/scripts/lib/opencode-backup.mjs +204 -0
  27. package/scripts/lib/opencode-upgrade.mjs +441 -0
  28. package/scripts/lib/opencode1.mjs +203 -0
  29. package/scripts/lib/parallel.mjs +7 -2
  30. package/scripts/lib/pins-diff.mjs +33 -0
  31. package/scripts/lib/pins.mjs +7 -2
  32. package/scripts/lib/plugin-health.mjs +191 -0
  33. package/scripts/lib/prereqs.mjs +203 -0
  34. package/scripts/lib/shell-path.mjs +22 -0
  35. package/scripts/lib/summary-data.mjs +30 -0
  36. package/scripts/lib/summary-html.mjs +159 -0
  37. package/scripts/lib/system.mjs +107 -16
  38. package/scripts/lib/terminals.mjs +101 -3
  39. package/scripts/lib/update-plan.mjs +60 -0
  40. package/scripts/lib/upgrade.mjs +112 -11
  41. package/scripts/lib/verify-prompt.mjs +46 -0
  42. package/scripts/pins-latest.mjs +27 -4
  43. package/scripts/release.mjs +26 -1
  44. package/scripts/version-watch.mjs +8 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,407 @@
1
+ # Changelog
2
+
3
+ All notable changes are documented here. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versioning: [SemVer](https://semver.org/).
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [1.0.0] - 2026-11-20
8
+
9
+ First stable release. Highlights since 0.8.0:
10
+
11
+ - **Fresh machine:** `--everything` plans and installs the prerequisites (Node.js, git, Homebrew or winget, nvm) and the full setup from a clean Mac or Windows PC; `install.sh` and `install.ps1` work without Homebrew, Node.js, git or winget. A nightly workflow runs it ([#179](https://github.com/estebanmr99/lean-agents/issues/179)).
12
+ - **OpenCode 1.x to 2.x, guided:** `--upgrade-agent opencode` backs up the 1.x sessions to a permanent frozen copy, installs 2.x next to the 1.x binary (`opencode1`), translates the config, and has an undo and a rollback ([#80](https://github.com/estebanmr99/lean-agents/issues/80)).
13
+ - **Install by VS Code Copilot agent mode:** a guide, a `--json` summary and the VS Code Copilot adapter in the agent lifecycle ([#180](https://github.com/estebanmr99/lean-agents/issues/180)).
14
+ - **Update plan and undo:** `--update --dry-run` shows what moves and the release notes, `--update` also moves the agent CLIs inside a major, and `--update --undo` restores the previous versions ([#182](https://github.com/estebanmr99/lean-agents/issues/182)).
15
+ - **Antigravity and Cursor:** Antigravity pilot (IDE and extension detection, proxy variables in `--doctor`), more pins (Antigravity cask, Bun, rtk, uv, gh), and the Cursor installer re-pinned twice.
16
+ - **Summary page:** the finish step writes a local HTML page with the log-ins to do, an agent verify prompt and next steps ([#181](https://github.com/estebanmr99/lean-agents/issues/181)).
17
+ - **CI:** macOS legs and the slow Windows legs skip pull requests (macOS runs nightly and on dispatch); the release workflow publishes to npm through trusted publishing only ([#160](https://github.com/estebanmr99/lean-agents/issues/160)).
18
+ - **Hardening:** eight independent reviews and the 0.8.0 audit are fixed or tracked in [`docs/audit-1.0.0.md`](docs/audit-1.0.0.md).
19
+
20
+ ### Added
21
+ - Summary page (#181 PR3, closes #181): `scripts/lib/summary-html.mjs` renders one self-contained HTML (inline CSS and JS, no network; EN and ES; light and dark; word budget tested): red Action needed (log-ins, the verify prompt with a copy button), Summary, Next steps, How to use, Updates. The finish step and `--summary` write it as an owned `summary.html` in the state dir (`--uninstall` removes it) and print its path; the browser opens only after a yes, never under CI, `--yes`, `--json` or `--no-open`. `--filed-issue "item=issue url"` records an issue the verify prompt filed.
22
+ - `--tools code-mode` (opt-in, never in `--all-tools`): sets `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1` in the user `env` of `~/.claude/settings.json` when it is not set, and prints the limits: experimental, Claude Code 2.1.323+, interactive terminal, direct Anthropic login, sessions resume only with it on. `--uninstall` removes it ([#304](https://github.com/estebanmr99/lean-agents/issues/304)).
23
+ - `docs/vscode-agent-checklist.md` (#180 PR5, docs only): one-time manual checklist for a real work PC (VS Code Copilot agent mode behind a proxy): paste the prompt, answers, blocked terminal tool, `--doctor`, undo, and the exact `compatibility.md` VERIFY row each step moves, with the fields to record.
24
+ - `--update --undo [--yes]` (#278): reinstalls the saved previous version of each agent CLI that `--update` upgraded, using the oldest `from` per agent (two upgrades 1.0 -> 1.1 -> 1.2 end on 1.0, not 1.1). Plan first, then a confirm (or `--yes`); a failed step is reported (exit 1) and the rest continue; restored agents' records leave `state.json`, a failed one keeps its record for a retry. `--uninstall` still leaves upgraded agent CLIs alone. Tests in `tests/agent-upgrade.test.mjs` (stubbed `claude`, `curl` and `npm`: a failing installer keeps `from`/`reinstall`, later steps run, undo ends on the oldest version).
25
+ - Agent CLI upgrades within a major (#182 PR3): after the `--update` confirm, Claude Code (pinned installer with the version argument), OpenCode 2 (installer `--version`) and Copilot CLI (`npm install -g @github/copilot@<pin>`) that lean-agents installed move to the release pin (`upgradeCommands` in `agent-lifecycle.mjs`). Never OpenCode 1.x, another major, an agent you installed yourself or the VS Code Copilot extension; Cursor and Antigravity have no pin and are not moved. Each command is saved in `state.json` with `from` and `reinstall` (the installer at the previous version; `--update --undo` runs it, see below); `--uninstall` ignores it. A failed step is reported and the rest continue. The plan row for these agents is now `update` instead of `report`. Tests in `tests/agent-upgrade.test.mjs`.
26
+ - Summary data model and login checks (#181 PR1, internal, no flag yet): `scripts/lib/summary-data.mjs` builds the finish-step summary (installed, kept, updated, skipped, doctor result, login checklist) from state, doctor rows and the `--json` apply shape, every text through `redactText`; `scripts/lib/logins.mjs` lists the login command per tool and checks `gh auth status` and `claude auth status` by exit code only (never under `--no-exec` or outbound off, output dropped, credentials never read).
27
+ - Agent self-updaters off for every managed install (#182 PR5): Claude Code `env.DISABLE_AUTOUPDATER`, OpenCode 2 `update: "disable"`, OpenCode 1 `autoupdate: false` and Copilot CLI `autoUpdate: false` are now written whatever the network preset (before: only with auto-updates off), as `setIfAbsent` so a value you set is kept and reported, forced only when the category is off; `--uninstall` removes them. `--update` is the one way agents get updated. Cursor and Antigravity document no switch (**VERIFY**), so they are untouched.
28
+ - Verify prompt and feedback flow (#181 PR2): `scripts/lib/verify-prompt.mjs` (EN/ES; doctor, fix within the plan, redacted draft, duplicate search, `gh issue create` only after a per-issue yes, links written back; no filing text under strict or `--network off`), `draftFromRow` and the `filedIssues` record in `scripts/lib/feedback.mjs`, `--feedback-kind verify`, docs in `install-with-an-agent.md` and `privacy.md`. Wired into `--summary` by PR3.
29
+ - `lean-update` skill and N-1 -> N proof (#182 PR6): the skill now plans with `--update --dry-run`, asks, applies, reads back with `--doctor` and hands off to the finish-step summary page (#181) when the release has it; its backup and cleanup snippets are Node one-liners that run unchanged in bash and PowerShell. `tests/skill-flags.test.mjs` checks every `--flag` in the skill against `--help`. `tests/real-update.sh` adds, only when `CI_LATEST` is true (nightly/dispatch), an install from the last published release's pins, `--update --yes`, `--doctor` and a clean `--uninstall`; no new CI job.
30
+ - Agent CLI upgrades within a major (#182 PR3): after the `--update` confirm, Claude Code (pinned installer with the version argument), OpenCode 2 (installer `--version`) and Copilot CLI (`npm install -g @github/copilot@<pin>`) that lean-agents installed move to the release pin (`upgradeCommands` in `agent-lifecycle.mjs`). Never OpenCode 1.x, another major, an agent you installed yourself or the VS Code Copilot extension; Cursor and Antigravity have no pin and are not moved. Each command is saved in `state.json` with `from` and `reinstall` (the installer at the previous version; `undoUpgrades()` runs it, no flag yet); `--uninstall` ignores it. A failed step is reported and the rest continue. The plan row for these agents is now `update` instead of `report`. Tests in `tests/agent-upgrade.test.mjs`.
31
+ - `--json` on a real apply (#180 PR4, refs #181): `--yes --json` (and `--everything --yes --json`) prints one JSON object `{ ok, files, commands, errors, version }` on stdout, messages and child output on stderr; paths are relative to the home, no env or proxy values. Fields are documented in `docs/install-json.md`.
32
+ - `lean-migrate` skill and `docs/migrate-opencode-v1-to-v2.md` rewritten for the guided upgrade (#80 part 2, P7): backup, dry run, apply, doctor, port each `user-manual` item into the 2.x files only, `--undo` on a failure. The doc covers disk needs, what is kept, undo, Windows notes and proxy variables; `docs/compatibility.md` gains the "OpenCode 1.x to 2.x: where things live" mapping table (VERIFY marks kept); both READMEs link the guide. `tests/skill-flags.test.mjs` fails when the skill names a flag that `--help` does not list.
33
+ - Pins for rtk, uv, `gh`, the Antigravity cask and Bun (#182 PR4, folds #147, #148): `core/pins.json` gets `rtk`, `uv`, `gh` (kind `tool`: known-good version plus `min`, installed by Homebrew/winget which cannot pin) and `antigravity-cask` (kind `cask`, checked version, reported only); Bun gets a `tagPrefix` so the daily `version-watch` sees `bun-v*` releases. `bump-pins` moves tool pins after 14 days, skips the cask and Bun (checksums by hand); none of them enter `state.json`. `toolPins()` feeds the update plan. Nothing installs differently yet. Offline test `tests/tool-pins.test.mjs`.
34
+ - `vscode-copilot` in the agent lifecycle (#180, PR2): `--install-agent vscode-copilot` writes only the adapter's files and `--uninstall-agent vscode-copilot` removes only what `state.json` recorded for it; `--upgrade-agent vscode-copilot` reports that VS Code owns the Copilot extension. lean-agents never installs or updates the extension; the plan and `--doctor` say so.
35
+ - CI (#179, PR6): `.github/workflows/fresh-machine.yml` runs nightly and on dispatch only (no pull request trigger): the real `install.sh` / `install.ps1 --everything` with brew, Node.js, git, gh and nvm hidden, into a throwaway HOME, ending with `--doctor` on macOS, Windows and an `ubuntu:24.04` container. A failure opens or updates a `version-watch` issue. See `docs/compatibility.md`.
36
+ - `--everything` team preset (#179, PR5): on Windows the default agents are Claude Code + OpenCode 2 plus the Copilot CLI, VS Code Copilot and Antigravity that are found on this PC; the missing ones appear in the plan (`agentNotes` in `--json`) as skipped. `--agents` still wins and `--terminal` is untouched. nvm undo (#253 items 2 and 3): `--uninstall` removes `~/.nvm` only when every Node under it is v24 (what it installs), otherwise it keeps it and says which versions it found; a rerun after an interrupted nvm install keeps that undo, so the partial folder is removed. Tests in `tests/prereqs.test.mjs`.
37
+ - Update plan model (#182, PR2): `scripts/lib/update-plan.mjs` builds the `--update` rows `tool: installed -> release pin`, the held list (OpenCode 1.x, an agent CLI whose pin is another major, agent CLIs you installed yourself; those are shown, never moved) and the notes (the shipped `CHANGELOG.md` sections after the installed lean-agents version). `--update` (and `--update --dry-run [--json]`, under `update.rows` / `update.notes`) prints them. What `--update` applies is unchanged: agent CLIs are only reported until the upgrade PR. `CHANGELOG.md` is now in the npm package `files`. Tests: `tests/update-plan.test.mjs`.
38
+ - `--upgrade-agent opencode --yes` and `--undo [--yes]` (#80 part 2, P6, `scripts/lib/opencode-upgrade.mjs`): apply runs only with a verified backup stamp (`--backup --yes` writes `STAMP.json` last; apply re-hashes the backup against its manifest and checks that the live data equals the backup or the frozen copy), refuses while any `opencode` process runs, then runs five journaled steps in `state.json` `upgrade`: `backup` (verify), `opencode1` (P4), `install2x` (the pinned installer, or a 2.x already there; the installer may overwrite the 1.x binary at `~/.opencode/bin`, the copy from the step before is the way back), `config` (P5 translation and managed items) and `dcp` (P5). Apply never opens or starts OpenCode 2 and only reads the live data. A failed step undoes the finished ones in reverse (each step with its own fsops backup folder); if the live data changed meanwhile it is restored like `--undo`; if a rollback step fails it stops, keeps the journal and names `RESTORE.md`. `--undo` undoes each step, moves the 2.x-migrated db, storage and snapshot to `backups/opencode2-db-<ts>/` (never deleted), copies the frozen copy back (sha256 and count checked on a staged copy first; the permanent backup when the frozen copy has fewer sessions), moves a 2.x binary at `~/.opencode/bin` to `backups/opencode2-bin-<ts>/` and puts the 1.x binary back (sha256), and reports config files that differ from the 1.x snapshot without overwriting them. It never deletes the backup or the frozen copy and refuses while an `opencode` process runs (apply starts none, so there is nothing of ours to stop). `--uninstall` refuses while an upgrade is half done (an `applied` one is allowed with a warning, see Fixed). On a machine where lean-agents was never installed, apply creates a minimal `state.json` for the journal and `--undo` leaves it (journal `undone`, nothing else in it): harmless. The frozen copy must equal the backup or count at least its sessions (1.x only ever writes to the frozen db; checked at apply start, a refusal names the way out); a restore uses the frozen copy unless it counts fewer sessions than the backup. Journal writes go through a temp file and rename, and a failed save in a rollback is reported, not thrown. Windows: the 2.x install is not automated yet (VERIFY), so apply stops at `install2x` and rolls back unless 2.x is already installed by hand. Fault injection `LEAN_TEST_FAIL_AT=<step>` (fails right after that step; honored only with `LEAN_AGENTS_TEST=1`, no flag, not in `--help`). Proof: `tests/opencode-upgrade.test.mjs` (fakes) and `real-upgrade-opencode` (Linux: full apply and `--undo` on real 1.19 and 2.x, a 2.x start between them, one injected failure per step; Windows: refusals and rollback).
39
+ - `--everything` preset (#179, PR2): `lean.mjs` runs the prerequisite planner (`scripts/lib/prereqs.mjs`: Xcode CLT, Homebrew, nvm, Node 24 under nvm, uv, RTK, Bun), prints one plan with the prerequisites first, asks once (`--yes` accepts), and runs them before the agent commands. Defaults: Claude Code + OpenCode 2 and every optional tool (`--agents`/`--tools` override). `--dry-run --json` adds `prereqs`; finished steps are stamped in `state.json` (`resumeKey`) and skipped on a rerun; `--uninstall` undoes only the steps this run executed. Homebrew now comes from the commit and sha256 pin in `core/pins.json`, checked before it runs. Known limit: Context Mode and GSD need Node 24 at plan time, so on a machine with no nvm the plan lists them as `after nvm: run lean-agents --update` (`afterNvm` in `--json`) and `--update` adds them after the first run. Agent CLIs themselves are not installed yet. Tests: `tests/everything.test.mjs`, `tests/prereqs.test.mjs`.
40
+
41
+ - No `/lean-install` prompt file for VS Code Copilot (#180, PR3): the upstream prompt-files page gives no user folder per OS and says prompt files run only in the deprecated Local harness (removed February 2027), so the adapter writes nothing and `docs/compatibility.md` keeps it **VERIFY** with the exact question; `tests/real-vscode.sh` asserts no `prompts/` file is written.
42
+ - Install-with-an-agent guide for VS Code Copilot chat in agent mode (#180, PR1): PowerShell steps for a corporate Windows PC behind a proxy (`$env:HTTPS_PROXY`, `NO_PROXY`, `NODE_EXTRA_CA_CERTS` per session, never written to disk), a fallback where the agent prints the commands when the terminal tool is blocked by policy, and the same guide for Antigravity pilot users. `tests/install-guide.test.mjs` checks every `--flag` the guide names exists in `--help` and that it holds no real home path. Docs only; `docs/compatibility.md` keeps the agent-mode and policy rows as **VERIFY**.
43
+ - `--upgrade-agent opencode --opencode1 [--dry-run|--yes]` (#80 part 2, P4, `scripts/lib/opencode1.mjs`): after `--backup`, copies the OpenCode 1.x binary to `<data>/lean-agents/opencode1/<version>/` and writes an owned shim `opencode1` (`opencode1` + `opencode1.cmd` on Windows) that sets `XDG_DATA_HOME` to the frozen copy and `XDG_STATE_HOME` to `opencode1/state`, so 1.x reads and writes only the frozen copy (the isolation proven in P1). The shim folder goes on PATH through a marked block in your shell rc file (an existing `.zshrc`, `.bashrc` or `.bash_profile`, else `.zshrc` or `.profile`), or on Windows the user PATH (HKCU, read and written unexpanded like `install.ps1`). The binary is found in `~/.opencode/bin`, on PATH, or in npm's `opencode-ai` package, must report 1.x, and the copy must report the same version (sha256-checked) before it is kept. Refuses without a frozen copy, with `--no-exec` (it runs `--version`), or over a user file named `opencode1` (never overwritten). State goes in `state.json` (`opencode1`); `--uninstall` removes the shim, the rc block or PATH entry and the binary copy, never the backup, the frozen copy or `opencode1/state`. `--undo` for this flag, and the full flow, come with P6. Tests: `tests/opencode1.test.mjs`, `tests/real-upgrade-opencode.sh` / `.ps1` (real 1.19.0: `opencode1 --version`, a new session lands in the frozen copy 3 -> 4, the live data hash is unchanged, undo; Windows from cmd and Git Bash).
44
+ - `--upgrade-agent opencode --backup [--dry-run|--yes]` (#80 part 2, P3, `scripts/lib/opencode-backup.mjs`): a permanent backup `<data>/lean-agents/backups/opencode1-sessions-<ts>/` (0700) of the OpenCode 1.x `opencode.db`, `-wal`, `-shm`, `storage/` and `snapshot/`, the config snapshot (without `node_modules`), `MANIFEST.sha256` and `RESTORE.md`, then a frozen copy `<data>/lean-agents/opencode1/data/opencode/` made from the backup. Every file's sha256 must equal its source and the session count on a temp copy must equal the live count, else it stops; both copies are built in `.partial` folders and renamed when verified. It refuses while an `opencode` process (the 1.x app or the 2.x service) runs, when free space is under 2 x size + 1 GB, or when a frozen copy exists. The live data is only read (never opened for writing, checkpointed or VACUUMed); the dry run (the default without `--yes`) leaves the whole HOME tree unchanged. `--backup --yes` is a write path for the Node floor check. Tests: `tests/opencode-backup.test.mjs`, `tests/real-upgrade-opencode.sh` / `.ps1`, CI job `real-upgrade-opencode` (ubuntu + windows; on PRs only when the files it exercises change, always on push to main and dispatch).
45
+ - `install.ps1` on a fresh Windows PC (#179, PR4): git is no longer required (only a leftover git clone is kept untouched when git is missing). With no Node.js it tries `winget` (user scope) and, if winget is missing or fails, downloads the Node.js 24 zip from nodejs.org (SHA-256 checked) into `%USERPROFILE%\tools\node` with no admin rights; `-Uninstall` removes it. `-DryRun` with no Node.js now previews the plan with a temporary Node instead of stopping. Downloads force TLS 1.2 on PowerShell 5.1, honor `HTTPS_PROXY` and `NO_PROXY` or the Windows system proxy, never write proxy values to disk, and the user PATH edit keeps `%VARS%` unexpanded. `-Everything` waits for the engine's preset (PR2). Tests in `tests/windows-install.ps1` and `tests/real-bootstrap.ps1`; nvm-windows without admin stays **VERIFY** in `docs/compatibility.md`.
46
+ - `install.sh` works on a Mac without Homebrew or Node.js (#179, PR3): it no longer needs git, and instead of stopping with a download link it lists the options and asks first: `brew install node`, the official Homebrew installer (pinned by commit and sha256, checked before it runs; needs a terminal), or the Node.js 24 tarball from nodejs.org checked against `SHASUMS256.txt` and kept in `~/.config/lean-agents/node` (`--yes` accepts only the tarball; `LEAN_AGENTS_NODE_DIR` and `LEAN_AGENTS_NODE_DIST` move or mirror it). A Node.js the user has, even below 22.20, is never replaced: the private one runs the engine only and `LEAN_AGENTS_BOOTSTRAP_NODE` names its folder so the engine (PR2) can still install Node 24 under nvm for the tools. `--dry-run` on a machine with no Node.js prints that plan and exits 0. Downloads use `HTTPS_PROXY`/`https_proxy`, `NO_PROXY`, plus `--cacert $NODE_EXTRA_CA_CERTS` only when a proxy is set (path only, never written); while the private Node runs the engine, `NPM_CONFIG_PREFIX` defaults to `~/.local` (if unset) so global npm installs do not land in the private folder. `--uninstall` does not remove the private Node folder yet (the engine is another PR). Proven by `tests/real-bootstrap.sh` cases (k) to (n) in the existing `real-bootstrap` job.
47
+ - OpenCode 1.x to 2.x config translation, library only (#80 part 2, P5): `upgradeApply` in `scripts/lib/upgrade.mjs` rewrites the live `~/.config/opencode` config from the `managed` and `user-translatable` rows (`agent` to `agents`, `mcp` to `mcp.servers`, npm `plugin` to `plugins`, `compaction.reserved` to `buffer`, `autoupdate` to `update`, `disabled_providers` to `policies`), keeps comments and `user-manual` keys, writes only under the config home (never the 1.x data folder) and refuses unless a verified backup stamp exists (`scripts/lib/backup-stamp.mjs` is a stub until the backup lands). The 2.x adapter can now install DCP (`plugins[]` pinned from `core/pins.json`, your `dcp.jsonc` values kept); the normal installer still offers DCP on 1.x only. `agentLifecycle` accepts `fromUpgrade` to install 2.x next to 1.x; `--install-agent` still refuses. `lean.mjs` is unchanged: apply is not reachable from the CLI yet.
48
+ - Release notes list tool versions (#182, PR 1): `scripts/lib/pins-diff.mjs` diffs `core/pins.json` against the previous `v*` tag (`git show <tag>:core/pins.json`, no network) and `scripts/release.mjs` appends a "Tool versions" table (tool, from, to; new, removed, held and CI-only marked) to `dist/notes.md`. No previous tag or no version change: no table. `release.yml` checks out full history so the tags exist.
49
+ - Prerequisites planner (#179, step 1 of the fresh-machine flow): `scripts/lib/prereqs.mjs` turns a probe (platform, tools on PATH, Node versions, proxy variable names) into ordered, consent-first steps for Xcode CLT, Homebrew, nvm or nvm-windows, Node 24 under nvm (your own Node stays), uv, RTK and Bun, each with its commands, undo and resume key. Pure and unused by the installer until the next step; tests cover macOS, Linux and Windows on every OS.
50
+ - `--doctor` and `--adopt` report OpenCode plugins that are listed but not healthy (#212), read-only with a suggested fix per finding: an incomplete cached dependency tree, and the same plugin with different version specs in the server config and `tui.json`. `--probe-plugins` (opt-in) also starts a short-lived `opencode serve` on loopback in a throwaway state dir and checks that DCP's `/dcp-compress` is registered. Nothing is repaired.
51
+ - Antigravity pilot (#216): `--doctor` lists `SSL_CERT_FILE` and `NODE_USE_SYSTEM_CA` as set or not set and reports the IDE folders and the `Google.google-antigravity` extension (read-only); `--adopt` lists them too. README "Antigravity pilot" (EN, ES); `docs/compatibility.md` Antigravity rows refreshed from the upstream docs (2026-11-18).
52
+ - Tests (#229): the round trip seeds Antigravity's real skills folder, compares directories (not only files) and checks every kept backup is a copy of a user file; a unit test covers `antigravityAdapter` with `opts.prior` set and unset; the node-floor tests cover `--usage`, `--feedback-draft` and a faked higher `LEAN_AGENTS_NODE`. README tables (EN, ES) gain a row each for Antigravity skill ownership and the Node floor.
53
+ - `tests/roundtrip.test.mjs`: one table-driven test runs install then `--uninstall` for each of the seven adapters in a temp HOME seeded with user files (a JSONC comment, a user MCP server, an agent and a skill named like managed ones) and asserts every file, path and bytes, equals the pre-install snapshot. Tests only (#164).
54
+ - `--doctor` reports the active Node against the `engines.node` of the project you run it in, and notes that VS Code or Cursor started outside your shell can resolve another Node (#177).
55
+ - `--everything` installs `jq` (Homebrew or winget) when you pick the Warp plugin for Claude Code and jq is missing, since the plugin's hooks need it; `--uninstall` removes it (#179).
56
+ - `--install-agent opencode-v2` and `--upgrade-agent opencode` install OpenCode 2 on Windows through Git Bash with the pinned installer, and put `~\.opencode\bin` first on the user PATH (removed again by `--uninstall-agent`) (#179).
57
+ - Optional install of Warp and Orca terminal apps (`--install-terminal warp|orca|both`, undone by `--uninstall`). Integrations continue to be preselected if the app is already installed.
58
+
59
+ ### Fixed
60
+ - Preflight warning for a missing agent CLI writes to stderr under `--json` so stdout remains valid JSON (#179 PC run).
61
+ - `--everything --agents claude` (and others) now refuses before writing anything if the agent's CLI is missing from PATH (#179 PC run).
62
+ - `--uninstall` skips the `undo` of commands that had failed to run and only reported `ok: false`, allowing retry logic to complete without hanging (#179 PC run).
63
+ - `--adopt --undo` keeps other recorded work (upgrade, opencode1, files, commands) and removes `state.json` only when it is a pure adopt-only run. `--uninstall` preserves an existing `--adopt` record as an adopt-only state, so `--adopt --undo` still works after it (#179 PC run).
64
+ - The OpenCode 2 upgrade's DCP step now also pins the `tui.json` and `tui.jsonc` plugin entries if they exist, preventing a `spec-mismatch` health check warning (#307, #179 PC run).
65
+ - `--adopt --dry-run` (text and `--json`) now lists what `--yes` will do: which Node the pin goes into, re-registered MCPs, and the npm uninstalls, folders and stopgaps that need a yes. Before, it showed only the inventory rows, so `upgrade ... (Node 22.17.0)` read as an in-place upgrade and the uninstall of that copy was hidden (`--json` adds `apply`) (#179 PC run).
66
+ - `--upgrade-agent opencode --undo` after an upgrade that kept an OpenCode 2 installed by hand (the Windows route) restored the 1.x data under the 2.x binary and said both were back; the next `opencode` start would migrate the data again. The undo now puts the opencode1 copy of the 1.x binary back and moves 2.x aside (sha256 checked); when it cannot, it says 2.x stays and to start `opencode1`. A rollback of a failed apply still leaves the hand-installed 2.x as it was. `--adopt` no longer says `nvm not found` when nvm is there but no Node meets the floor (#179 PC run).
67
+ - `--upgrade-agent opencode --yes` on Windows: the refusal said to install OpenCode 2 by hand and run it again, but the hand install overwrites the 1.x binary and the rollback removes the run's 1.x copy, so the next run failed with `no OpenCode 1.x binary found`. It now names the order that works: `--opencode1 --yes`, the hand install, then the upgrade. The `opencode1` step error prints on one line, so its `tried:` list is no longer cut (#179 PC run).
68
+ - `--adopt` picks the tool Node from the npm copies' pins too: with context-mode installed but no context-mode MCP, the floor was another MCP's (`>=18`), so `--adopt --yes` installed context-mode 2.1.4 on Node 22.17 (`EBADENGINE`, needs `>=24.15.0`). It now reports the `>=24.15.0` floor, installs the pin only into a Node that meets it (also when the drift copy lives on another Node; the same run then offers to remove that copy, with a yes or `--confirm-removals`, since a second `--adopt --yes` is refused while the first is recorded; a copy newer than the pin, or one your own MCP or hook runs on, stays), and with no such Node says to install one with nvm (#179 PC run).
69
+ - `--adopt --yes` now installs the context-mode pin when the plan lists the tool Node's copy as `upgrade (drift)`. Before, it did that only when it also rewrote an MCP, so a drift row stayed after every run. `--update` after an adopt-only run now says `only --adopt ran here; install first (--everything --yes)` instead of naming `--migrate`, and the hint before adopt points to the same install. That install now keeps the `adopt` record in state.json, so `--adopt --undo` still works after it (#179 PC run).
70
+ - OpenCode session count: the child count timed out after 5 s, so on a large db (7 GB on a real Windows PC, 6 s to count) the backup refused, `--undo` stopped with "the data is not restored", and the message blamed a missing node:sqlite. The timeout is now 10 minutes, a timeout is named as one, and the backup says it copies the db to count (#179 PC run).
71
+ - `--upgrade-agent opencode --backup --dry-run` now reports the expected sizes before listing a running `opencode` process as a blocker for apply (#270).
72
+ - `--update --dry-run` on a hand-built machine without `state.json` now says `run --adopt --yes first` instead of `not installed` (#270).
73
+ - `installOpencode1`: uses a throwaway state dir for the copy validation to avoid writing WAL/migration changes into the frozen layout (#290).
74
+ - Final review (#287): the nvm undo removes only exactly `~/.nvm` of the home the state recorded, and keeps it (with a message) when any Node under it holds a global package beyond npm, corepack and the npm tools lean-agents installs, or a Node it did not install. `--uninstall` keeps a failed undo command in `state.json` and does not archive it, so a second `--uninstall` retries it; the archive rename retries a locked file (`renameRetry`). `--uninstall-agent vscode-copilot` resolves the `<lean-node>` placeholder like `--uninstall`. `loadWorkers` re-checks worker names, so a hand-edited `workers.json` cannot make `clean` remove another folder. Tests in `tests/prereqs.test.mjs`, `tests/uninstall-retry.test.mjs`, `tests/parallel.test.mjs`.
75
+ - Review 9 fixes (#284): the verify prompt searches for duplicates only after the per-issue yes and with the redacted draft title, never the raw item name (`docs/privacy.md` and `docs/install-with-an-agent.md` match); `tests/real-update.sh` N-1 prints SKIP instead of a vacuous OK when the release pins equal the checkout's; an explicit `--auto-update on` (or the per-category menu, remembered by `--update`) and an exported `DISABLE_AUTOUPDATER` write no self-updater switch, and the install output says when an updater is left off because `--update` owns updates; `--update --undo` keys on "uninstalled or reinstalled since" (the agents.json stamp saved with each upgrade record) so an upgrade of a CLI the user already had stays undoable, and both undo paths use the same filter; a login probe that times out or is killed shows `unknown`, not `needed`; the `lean-update` backup snippet is marked untested on PowerShell 5.1 with a `.js` file fallback; the verify prompt's flags are checked against `--help` (skipped until `--filed-issue` lands with #181 PR3).
76
+ - `--update --undo` follow-ups (#282): undo skips upgrade records of agents that are not in `agents.json`, and `--install-agent` / `--uninstall-agent` drop that agent's records (a removed or reinstalled agent was downgraded or brought back); `--update --undo --json` is refused with a clear message; undo with `--no-exec`, or without `--yes` and without a terminal, says "Not done" and exits 1 (`--dry-run` still exits 0); the `--json` apply output masks absolute paths outside the home in `commands[].desc` and `errors`. Tests now run `--update` twice with a stub that reports different versions (the dedupe by `desc` moves no record) and read versions from `core/pins.json`.
77
+ - Agent upgrades (#278): the downloaded installer script is removed by a final step that always runs (it stayed behind when an earlier step failed), and `from` keeps a pre-release tag (`2.0.1-beta`, not `2.0.1`). `--yes --json` prints `<outside-home>` for a file outside the home (a `--project` repository) instead of its absolute path.
78
+
79
+ - DCP health (`--adopt`, `--doctor`) no longer reports a leftover `@latest` cache folder as broken when the config pins an exact version: OpenCode loads only the folder of the spec in config (seen on the work PC, where `@latest` 3.2.1 had been replaced by a 3.1.15 pin).
80
+ - Review 7 (#268): (1) `opencode1` now runs on its own copy of the 1.x config (`XDG_CONFIG_HOME=<data>/lean-agents/opencode1/config`, copied from the verified backup's config snapshot without `node_modules`; an empty folder when there was none; an existing copy is never overwritten and `--uninstall` keeps it), so the 2.x keys the upgrade writes never reach 1.x; `real-upgrade-opencode` (`.sh` and `.ps1`) asserts `opencode1 session list` works and, after a full apply, that `opencode1 debug config` shows the 1.x config and not the 2.x one. (3) `--uninstall` is no longer blocked forever by an `applied` upgrade journal: it undoes what the upgrade added (the `opencode1` shim and its PATH block, the managed 2.x config and DCP edits, the same entry undo as `--undo`, roots checked), prints what is removed and what stays (your data, the backup with `RESTORE.md`, the frozen copy, the OpenCode 2 install) and that `--undo` is gone afterwards (the journal is archived; no 1.x restore, no 2.x uninstall, no data restore); a half-done journal (`applying`, `rollback-failed`, ...) still refuses. (4) The nvm undo is only planned when `~/.nvm` did not exist before the run (a Homebrew-nvm user's own tree is never removed; a resumed run keeps ownership of a folder an earlier run created) and still keeps any Node that is not v24; its script runs with the Node that runs `lean.mjs` at undo time (a placeholder resolved by `undoArgv`, nothing stored, no bare `node` on PATH). (5) `--update --dry-run --no-exec` runs no `--version` probe, and an unreadable `agents.json` counts as no owned agents. (6) Windows `opencode1` records the HKCU PATH entry before the registry write, so a kill in between still leaves something `--uninstall` removes, but only when the entry was absent before (an entry the user already had is never recorded or removed). (7) `real-upgrade-opencode.sh` fails, not skips, the `--undo` refusal check when no 2.x process appears.
81
+
82
+ - CI: `real-opencode-shell` asks the OS for a free port instead of a random one, which hit Windows reserved ranges (`EACCES`) twice on main.
83
+ - CI: the macOS legs run in the nightly `ci-latest` run (which opens a version-watch issue on failure) and on manual dispatch instead of on every push to main, where they queued for 20+ minutes for a runner and were cancelled, leaving main red. Pull requests and pushes run the Ubuntu and Windows legs.
84
+ - CI: a push to main is no longer cancelled by the next merge, so the macOS and other main-only jobs finish for every merge (only pull request runs are cancelled by a newer push).
85
+ - `--everything` no longer fills in default agents and tools when `--migrate` is given, and `install.sh` keeps a global npm prefix that the user set in `.npmrc` instead of forcing `~/.local` (review 6, #253 items 1 and 4).
86
+ - `install.ps1 -Uninstall` retries removing the Node.js it installed when a file is still in use, instead of failing on a locked `node.exe` (seen once on main's Windows run).
87
+ - `install.sh` uses the Node.js that Homebrew already has, instead of reporting that Node.js is missing when Homebrew exists but is not on `PATH` yet (found by the macOS run on main after #241).
88
+ - Review 5 follow-ups (#238): the prerequisites planner's Bun step no longer loses its `undo` and its manual hint to a stray `//` comment; `--probe-plugins` returns a `probe-failed` finding instead of crashing on a broken symlink in the plugin cache, caps the copy at 256 MB, keeps asking until the plugin's command is listed (a first answer can come before plugins register), runs `opencode` through `cmd /c` with the Windows env it needs and ends the tree with `taskkill /T` on Windows; a plugin name with `..` or an absolute path is ignored by the dependency check; the child-env drop warning is once per variable name and tests can reset it; `tests/spike-opencode-side.sh` stops OpenCode's port-based service only in CI (a local run prints what it would do) and the `.ps1` half ends its mock with `taskkill /T`; CI runs `real-dcp-v2` and `spike-opencode-side` on a pull request only when it touches OpenCode code, their tests, `core/pins.json` or `ci.yml` (always on `main`).
89
+ - Review 4 follow-ups (#235): a Cursor hook is no longer `managed` because a flag, a URL or quoted text names RTK, GSD or Context Mode (`node my.js --rtk-mode`, `sh -c "echo rtk"`); the child env prints one stderr line naming (never valuing) a variable it dropped; a malformed or prerelease `LEAN_AGENTS_NODE` is ignored or compared by its core instead of giving a `NaN` message; `real-dcp-v2` needs the full `Injected compress summary` line on Linux (Windows: the `summaryLength=` tail after a `Compression #1` line), accepts a repeated `Compression #1` token and ends opencode with `taskkill /T` on Windows before removing its HOME.
90
+ - Copilot usage meter on OpenCode 2 refreshes again: the sidebar value is re-read when a turn finishes (`session.execution.succeeded`, at most once per 5 minutes, one `gh api` call, no model request) instead of only at startup and on `/copilot-usage` (#189). Unit-tested with a fake host only: that the event fires on a finished turn and that the host calls the cleanup `setup` returns are **VERIFY** in the real TUI. A failed refresh is caught and one that is already running is not repeated (#235).
91
+ - `checkNodeFloor` (`scripts/lean.mjs`): the floor uses the lower of the running Node and `LEAN_AGENTS_NODE`, so the variable can fake a lower version for tests but not a higher one; `--usage` and `--feedback-draft` run below the floor like the other read-only paths. The `--install-agent antigravity` check for an installed `agy` ignores the real `LOCALAPPDATA` when `--home` is a temp folder (#229).
92
+ - CI: `real-winget` passes `GITHUB_TOKEN` to the winget bootstrap, meant to avoid the GitHub API rate limit (#166); that `Repair-WinGetPackageManager` honors it is **VERIFY** in CI.
93
+ - The child env no longer passes `GIT_CONFIG*`, `GIT_ASKPASS`, `GIT_SSH`, `GIT_SSH_COMMAND`, `GIT_PROXY_COMMAND`, `GIT_EXEC_PATH`, `GIT_EDITOR`, `GIT_PAGER`, `GIT_EXTERNAL_DIFF`, `NPM_CONFIG_SCRIPT_SHELL`, `NODE_PATH` or npm per-registry keys (`//host/:_authToken`), and drops a kept variable whose value has URL userinfo (`://user:pass@`, `://token@`) or starts like a `ghp_`, `github_pat_` or `npm_` token (not `PATH`, the basics or proxy and CA names; proxy URLs may keep their own `user:pass`). `NODE_OPTIONS` passes only when every token is `--use-system-ca`, `--use-openssl-ca`, `--use-bundled-ca`, `--use-env-proxy`, `--max-old-space-size=N` (or `N` as the next token) or `--dns-result-order=X` (or `X` as the next token); `--require`, `--import` and the like drop it (#163).
94
+ - `--adopt` review follow-ups (#213): Cursor hook names split Windows backslash paths on every OS; `managed` is matched on the basename of any argument, never a folder (`npx -y context-mode hook cursor` and `env FOO=1 rtk hook cursor` are `managed`; `node /opt/rtk-fork/hook.js` stays `user`); the sqlite child times out after 5 s per candidate; PowerShell `-e` and `-ec` count as encoded payloads; the sqlite note prints `Node <version> --experimental-sqlite` and never a path; Node 23.4+ counts as having `node:sqlite`; `--upgrade-agent` text rows no longer end with `(undefined)`; a copy version with build metadata (`2.1.7+build`) compares by its numeric core instead of NaN (#219).
95
+ - `scripts/lean.mjs` checks the `engines.node` floor (22.20) when run directly from a clone: below it, one stderr line names the running Node and the fix (`nvm use`, `install.sh`). `--help`, `--version`, `--doctor`, `--dry-run`, `--upgrade-agent` and `--adopt` without `--yes` keep working; install, uninstall, migrate and `--yes` exit 1 unless `LEAN_AGENTS_ALLOW_OLD_NODE=1` is set (#208).
96
+ - Antigravity: an `agy` that is not on PATH is found in the installer folders (`~/.local/bin`; Windows `%LOCALAPPDATA%\agy\bin` and `~/.gemini/bin` (**VERIFY**)) by detection, `--doctor` and `--install-agent`, which run it by that path and never install over it (#211).
97
+ - Antigravity `--uninstall` removes only the skill folders lean-agents installed (recorded in state.json or absent before the install); a user skill with the same name, such as `i-have-adhd`, is kept and never overwritten (#148).
98
+ - `--install-agent antigravity` on macOS says the Homebrew cask cannot be pinned or verified and asks before installing it; #147 stays open (**VERIFY** pin by tarball).
99
+ - `--adopt` compares a pre-release npm copy (`2.1.7-beta.1`) by its numeric core and sorts it below its release: against pin `2.1.7` it is `drift`, against `2.1.8` it is `newer`, and an equal version stays unflagged. Before, the pre-release read as equal to the pin (#204).
100
+ - `--adopt` names a Cursor hook written as shell syntax (GSD's `$(for n in ...) ~/.cursor/hooks/gsd-cursor-<event>.js` loop) after the first script it runs, so it reads `sessionStart:gsd-cursor-session-start.js` instead of `sessionStart:$(for n in`; a shell command with no script reads `<event>:shell`. A second Cursor hook with the same event and name gets `#2`, a third `#3`, for shell and non-shell commands alike (#202).
101
+ - `--upgrade-agent opencode` text rows end with the item's file (home-relative), as `--adopt` rows do, so the two `@tarquinen/opencode-dcp@latest` rows (`opencode.jsonc` and `tui.json`) no longer read as a duplicate (#203).
102
+ - `--adopt` and `--upgrade-agent` count OpenCode sessions even when the engine runs on a Node without `node:sqlite` (22.12 and older): the count runs on the same read-only copy in a child process, first on the tool Node (22.13+ or 24.x), then on the engine's Node with `--experimental-sqlite`. When both fail, the note says which were tried (#201).
103
+ - `--adopt` lists the hooks in `~/.cursor/hooks.json` (one item per event and hook, owner `managed` only with the lean-agents mark, action `keep`, nothing written). A PowerShell `-EncodedCommand` hook shows as `<event>:powershell` and its payload is never printed; Orca's status hook is noted (#175).
104
+ - `--adopt` flags a skill one client reads from two folders (OpenCode: `~/.claude/skills` and `~/.agents/skills`; Cursor and Copilot: their own folder and `~/.agents/skills`) as `duplicate`, also when the copies are links to one folder, which the Skills CLI makes and `--adopt` used to hide. Each row names the clients, each folder's short hash (identical or differs) and the fix (keep one folder, delete the other after a backup); `~/.cursor/skills` and `~/.claude/skills` alone are not flagged, and a link target is never auto-deleted (#176).
105
+ - `--adopt` marks a Cursor hook `managed` when its command matches the RTK, Context Mode or GSD name, as the Claude hooks already do, so RTK and GSD hooks in `~/.cursor/hooks.json` read `managed` too. The encoded PowerShell (Orca) hook stays `user` (#199).
106
+ - `--adopt`: a pinned npm copy newer than the pin is `newer` and kept (not `drift` and `upgrade`); a duplicate copy under a Node below the tool's floor is `below-floor` and removed; each text row ends with its source file, so the same plugin in the server config and `tui.json` reads as two needed entries (#174).
107
+ - `--upgrade-agent opencode`: the `api.command` reason is given only to plugin files that use `api.command` (others say the 2.x plugin API is not proven), `plugins/package.json` and `node_modules` are not listed as plugins, local `tui.json` plugins are named `<folder>/tui.js` instead of `file:tui.js`, and `permission` and `experimental` get a specific **VERIFY** reason (#173).
108
+ - The lifecycle test builds the opencode-v2 and copilot-cli version checks from `core/pins.json`, so a pin bump no longer fails CI (#184).
109
+ - `install.sh` and `install.ps1` no longer delete a git clone in the install folder that holds work not on its remote: they stop and tell you to move it when it has local changes, no upstream, unpushed commits, a stash or more than one local branch, or when `LEAN_AGENTS_SRC` points at a clone (#156).
110
+ - The engine saves `state.json` after writing files and before and after each command, so a write error or an interrupted or failing command no longer leaves files that `--uninstall` cannot undo (#158).
111
+ - `--uninstall` removes only what lean-agents created: the Linux and Windows Bun undo deletes `~/.bun/bin/bun` (`bun.exe`) and then its dirs only if empty, so your Bun cache and global packages stay; the OpenCode vendor undo re-derives the checkout path from your home at undo time and refuses a symlink, an edited `state.json` path or anything outside the home (#157).
112
+ - `--doctor` (text and `--json`) and the install preview print only `set` / `not set` for proxy and CA variables, so internal proxy hosts, ports and CA paths no longer reach stdout; `NO_PROXY` also reports whether the loopback entries are present (#172).
113
+ - The proxy test checks the proxy host and port (`127.0.0.1:3128`) on disk instead of the bare port `3128`, so a temp path or timestamp that contains `3128` no longer fails it (#205).
114
+ - DCP on OpenCode: a DCP plugin entry you already have (`@tarquinen/opencode-dcp@latest`, a bare name or your own version pin) is kept as it is ("kept your values for: plugin"); lean-agents no longer appends its pinned entry next to it, which loaded two DCP copies (#212).
115
+ - The `--upgrade-agent opencode` dry run says first that OpenCode 2 migrates your sessions the first time it starts, and how to keep a 1.x copy (`--backup --yes`) and go back (`--undo --yes`).
116
+ - macOS and Linux: `--everything` adds one marked PATH block to your shell rc file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile` or `~/.profile`) for the folders it installs into that are not on PATH yet, so a new terminal finds claude, opencode, rtk, uvx and context-mode; `--uninstall` removes it (#335).
117
+ - The OpenCode 2 installer is pinned to an upstream commit (`raw.githubusercontent.com/anomalyco/opencode/<sha>/install`) instead of `opencode.ai/v2/install`, whose content changes with every upstream edit and broke the SHA-256 check on 2026-11-20. The pinned file is the same one checked before.
118
+ - `--upgrade-agent opencode` on macOS and Linux no longer breaks your shell: the `opencode1` PATH block in `~/.zshrc` / `~/.bashrc` / `~/.profile` used `<!-- -->` markers, a syntax error in bash and zsh. It now uses `# lean-agents:opencode1:start` / `:end`, and `--uninstall` removes only that block.
119
+ - `--adopt` no longer lists skill copies that are links to one folder as plan steps (`--yes` leaves them alone); it lists them once under "Fix by hand: remove the extra link" (#226).
120
+ - The OpenCode 1.x session backup checks again, just before it finishes, that OpenCode is not running; if OpenCode started during the copy, the backup fails and leaves nothing behind (#253).
121
+ - `--everything` on Linux without Homebrew installs RTK from its pinned release tarball into `~/.local/bin` (SHA-256 checked, undone by `--uninstall`) instead of asking you to install it by hand (#308).
122
+ - `--everything` on Linux finds the uv and uvx it just installed in `~/.local/bin`. `install.ps1` no longer replaces the session PATH when winget fails to install Node.js, which hid winget from the engine (uv and RTK became manual steps) (#308).
123
+ - `--everything` on a fresh machine: a tool it reported missing at plan time (uvx) counts as present once the prerequisites installed it, and is not installed a second time (winget failed on that); after a failed agent CLI install only that CLI's own steps are skipped; on Windows Node 24 installs through the nvm-windows it just set up, and OpenCode 2 installs into the home lean-agents configures, also when the same run installs the Git it needs (#308).
124
+ - `--everything` on Windows: the tools winget just installed (uv, RTK, jq, Git) work in the same run; before, only a new terminal found them (#308). This also covers an overridden USERPROFILE and Git installed under Program Files from an elevated shell.
125
+ - `--everything` on Linux installs git and unzip with apt-get (`sudo -E` unless root, so a proxy still works) when they are missing, and Windows installs Git with winget; `--uninstall` removes them again (#308).
126
+ - The daily `ci-latest` run re-hashes the installer scripts pinned at a fixed URL (Claude Code, Antigravity, the macOS and Linux Cursor script); when one changed, its pin-bump PR carries the new SHA-256, so a Cursor release no longer leaves `real-cursor` red until someone re-pins by hand (#245).
127
+ - `--upgrade-agent opencode --dry-run` reports the verified backup the apply will use, instead of `backup: null` (#297).
128
+ - `--upgrade-agent opencode` with `--home` pointing elsewhere no longer runs the real `opencode --version` (it wrote logs); the report says `not probed (--home)` (#226).
129
+ - `--everything` installs the Claude Code and OpenCode 2 CLIs it configures when they are missing (the same pinned install as `--install-agent`, undone by `--uninstall-agent`), so one command works on a fresh machine (#308, #179).
130
+ - `--uninstall` removes the empty folders lean-agents created; a folder that holds anything else stays (#223).
131
+ - OpenCode 2: lean-agents no longer installs the RTK plugin, which rtk writes for the 1.x plugin API and OpenCode 2 refuses to load (#179). Installs from before keep the step on record, so `--uninstall` still removes the plugin; to drop it now, run `rtk init -g --opencode --uninstall`, then run the lean-agents install again (that command also removes RTK's Claude Code hook).
132
+ - Windows: when Bun is in `~\.bun\bin` but not on PATH, lean-agents now puts that folder on the user PATH (`--uninstall` takes it off again) instead of only warning (#179). An entry with a trailing backslash counts as the same folder.
133
+ - `--uninstall` on Windows waits for the Orca uninstaller to finish (it relaunches itself and returned at once, so the Orca folder could still be there).
134
+ - `--dry-run` and `--update --dry-run` mark an install that is already there (the Orca or Warp app, a vendor checkout) as "already there, skipped" instead of listing its install commands; the real run already skipped it (#179).
135
+ - `--doctor` checks Context Mode on the Node lean-agents installed it on, not on PATH (#179 PC run).
136
+ - `--doctor` shows why `codeburn runs` / `autoskills runs` failed, with a hint for a broken npx cache entry (#179 PC run).
137
+ - `--upgrade-agent opencode` no longer copies local plugin file paths from the 1.x `plugin` list into 2.x `plugins[]`; they are listed as manual (#179 PC run).
138
+ - `--install-agent claude` on Windows adds `~\.local\bin` to the user PATH (the upstream installer only prints a note), and `--uninstall-agent claude` removes it (#179 PC run).
139
+ - Claude Code installer pin refreshed after an upstream change to install.sh.
140
+ - `--uninstall` still tries the undo of a command that had failed (`ok: false`), but its failure no longer keeps the record, so a half install can be uninstalled (#179 PC run).
141
+ - On Windows with Node older than 24.20, a skills install or removal that finished no longer counts as failed when Node crashes on exit (nodejs/node#56645), so `--uninstall` can complete (#179 PC run).
142
+
143
+ ### Changed
144
+
145
+ - `--no-exec` and `--probe-plugins` are in `--help` and README EN and ES; `tests/flag-docs.test.mjs` fails when a flag the engine parses is missing from any of them (#287). `--skip-agents` and `--no-admin` still do nothing but now print a deprecation warning; they go in the next release.
146
+ - README paste block (EN and ES) adds one line: if the agent cannot run terminal commands, it prints them for you.
147
+ - CI (CI-1, from a timing analysis of PR runs on 2026-11-18): on pull requests `test` and `package` skip macOS, and the Windows legs of `real-orca-opencode-v1`, `real-bun`, `real-tool-node` and `real-adopt` are skipped; push to main, tags, manual and nightly runs keep them. Required checks are unchanged. New `scripts/ci-timing.mjs` prints median/p90, last job and queue waits of recent PR runs.
148
+ - The `--adopt` text report now prints every hook row and a `(note)`; linked skill copies are never auto-deleted and print a detail line (#213).
149
+ - Cursor installer pin moves to the 2026-11-18 script (sha256 `dcb95f1b…51e4`, CLI 2026.11.17-f532c45), re-checked as text, not run (#218).
150
+ - Release gate: `release.yml` stops before building anything when `docs/audit-<version>.md` is missing or an issue labeled `audit` is still open, so no release ships half audited. Audit findings of medium or higher get the new `audit` label.
151
+ - The Cursor CLI installer pin moves to `cursor.com/install` as of 2026-11-13 (reviewed: one download from `downloads.cursor.com`, no sudo or eval), which fixes the `real-cursor` sha256 mismatch (#193).
152
+
153
+ ### Docs
154
+
155
+ - Fresh machine (#179, PR7): README (EN and ES) section "Fresh Mac or Windows PC (`--everything`)" with what it plans, what it asks, a five-line proxy and corporate-PC checklist and how to undo; `docs/fresh-machine.md` walkthrough for macOS and Windows; `docs/compatibility.md` rows; test `tests/fresh-machine-docs.test.mjs` checks every `--flag` in them against `--help`. Nothing here was run on a bare machine by the owner yet: those parts stay **VERIFY**.
156
+ - Isolation proof for `opencode1` (#80, part 2): `spike-opencode-side` runs on pull requests (Linux and Windows) and shows that OpenCode 1.19 started with `XDG_DATA_HOME` and `XDG_STATE_HOME` on a frozen copy leaves the live data, state and config dirs byte-identical and stores the new session in the copy; `OPENCODE_DB` + `OPENCODE_CONFIG_DIR` does not isolate (logs, locks and `storage/` stay live), `XDG_CONFIG_HOME` hides the `gh` login from MCP children, and `opencode debug config` on 2.x migrates the db while `--version` does not. Recorded in `docs/compatibility.md`. The native PowerShell leg counts sessions the way the engine does (`node:sqlite` on a copy of `opencode.db`), not by parsing `session list --format json`, which was unreliable on Windows PowerShell 5.1.
157
+ - Adds CI job `real-dcp-v2` (ubuntu, windows; `tests/real-dcp-v2.sh`) checks that the pinned DCP loads on the real OpenCode 2.2.5 (`dcp-compress` in `GET /api/command`) and prunes once after its 220K max-limit nudge, using a mock LLM that reports 250K prompt tokens (#80 part 2). `tests/fixtures/mock-llm.mjs` gained `MOCK_LLM_PROMPT_TOKENS` and `MOCK_LLM_COMPRESS`. lean-agents still installs DCP on OpenCode 1.x only.
158
+ - Versions: README (EN and ES), `docs/ROADMAP.md` and the spec name 0.8.0 as the latest release (#161). The npm item on the README roadmap is ticked; "Later: 1.0.0" lists #179 to #182.
159
+ - `docs/SECURITY-REVIEW.md` pin table names every key in `core/pins.json`; `tests/security-review-pins.test.mjs` fails when a key is missing (#155).
160
+ - Bootstrap limit (#162): `SHA256SUMS` comes from the same release as the tarball, so the release check catches corruption, not a tampered release; `docs/compatibility.md` says so and lists attestation and npm provenance as **VERIFY** fixes. The Cursor installer's tarball has no checksum check (#206, **VERIFY** upstream).
161
+ - `docs/compatibility.md` records the repo setting "Allow GitHub Actions to create and approve pull requests" (on, checked 2026-11-18) and PR #210's `action_required` run and dispatch workaround (#165). It records the 0.8.0 release run's sigstore log entry (logIndex 3845258591) and that OIDC publishing is unproven until a release uses it (#160).
162
+ - `docs/compatibility.md`: the `lean-update` tag `v0.7.0` exists, and its tagged `skills add` form was checked in a throwaway HOME (#168).
163
+ - README (EN and ES): an "All flags" table covers every flag in `--help`, `--home` included (#167).
164
+ - Install docs (README, `docs/install-with-an-agent.md`, `skills/lean-update/SKILL.md`) use `npx lean-agents@latest` first and state Node.js 22.20+; Context Mode 2 and GSD Core need Node.js 24 via nvm. The bootstraps moved to a fallback section, and the `LEAN_AGENTS_VERSION` example is 0.8.0 (#178).
165
+
166
+ ### Fixed
167
+
168
+ - Pin-bump PRs no longer fail the agent-lifecycle test: it builds the claude-code version check from `core/pins.json` instead of a hardcoded version (#159).
169
+
170
+ ## [0.8.0] - 2026-11-12
171
+
172
+ ### Added
173
+
174
+ - `--install-agent claude` on Windows (#179 PC run): uses the pinned Windows `bootstrap.ps1`, registers `.local\bin\claude.exe` and its folders, and tracks whether it added the HKCU `Path` entry to remove it on `--uninstall`.
175
+ - Orca status for OpenCode 1.x on Windows (#78): with Orca selected, the installer writes the owned file `~/.config/opencode/plugins/lean-orca-status-shim.js` so Orca's status plugin runs in OpenCode 1.19's TUI worker (`--uninstall` removes it). Not reproduced in CI (new `real-orca-opencode-v1` job), so it rests on the work-PC report; details in `docs/compatibility.md`.
176
+ - `--doctor` and the post-install checklist: restart Orca after changing `NO_PROXY` (Windows with a proxy), and the `~/.orca/keybindings.json` rebind that frees Ctrl+P for OpenCode (#78; never applied automatically).
177
+ - `--upgrade-agent opencode` dry run and `--json` (#80, PR A): classifies the OpenCode 1.x config (the `--adopt` inventory plus `agent`, `compaction`, `autoupdate`, `disabled_providers`, `keybinds`, agent/command folders) as managed, user-translatable (one row of the translation table, with source) or user-manual (with reason); changes nothing, prints key names only. Apply and `--undo` answer "not in this release yet". New opt-in `lean-migrate` skill (`--tools lean-migrate`).
178
+ - `--adopt --yes`, `--adopt --undo`, `--keep-backup`, `--confirm-removals` (#106, #132; session 106, PR C): applies the `--adopt` plan. Backs up each file it edits (and each folder it deletes) to `~/.config/lean-agents/adopt-<time>/` (owner-only), re-registers managed MCPs as `<tool Node> <entry>` (new `remove` mode in the `json` action for stale keys; `core/mcp.json` `legacy` gains the symlink and absolute `npx`/`node` shapes), installs the pin into the tool Node's prefix, then verifies (each MCP answers `initialize`, your own files and the OpenCode session count are unchanged, `--doctor` passes) and undoes itself on a failure. Old npm copies, a duplicate skill folder (the `~/.agents/skills` copy, only when Cursor and Copilot are absent) and hand-made stopgaps whose managed replacement is installed are removed only after a yes (menu or `--confirm-removals`), each backed up first. `--adopt --undo` restores bytes when the file still matches what we wrote, else reverts only our keys. New CI job `real-adopt` (ubuntu, windows). `probeInitialize` moved into `scripts/lib/inventory.mjs`.
179
+ - `--adopt` dry run and `--adopt --json` (#106, #132; session 106, PR B): inventories a hand-built machine (MCP servers of every client, Claude hooks and `enabledPlugins`, OpenCode `plugin`/`plugins`, `tui.json` plugins and the `plugins/` folder, skills, pinned npm copies under each nvm Node), classifies each item as managed, user, stale, duplicate, drift or wrong-node, and prints the planned action (keep, upgrade, remove, reinstall, ask) plus the Node the tools should use and the OpenCode session count (read from a copy of the database with `node:sqlite`, never the live file). Known hand-made stopgaps (the `copilot-usage` script and TUI plugin, the Orca status shim) are listed with the managed item that replaces them. Changes nothing; env and header values are never read. `--undo`, `--keep-backup` and `--confirm-removals` are parsed and rejected until the apply release. New `scripts/lib/adopt.mjs`, `tests/adopt.test.mjs`, `tests/fixtures/handbuilt.mjs`; `real-tool-node` seeds the fixture with real nvm on ubuntu and windows and checks the report and that the HOME tree hash is unchanged.
180
+ - `--migrate` to and from Antigravity (#80, PR D): `antigravity` is a source and a target at user scope (`~/.gemini/config/{rules,agents,skills,mcp_config.json}`); rules go to `rules/migrated-rules.md`, agents are rendered with the Antigravity adapter, MCP env and header values are never written. `--project` with Antigravity is refused (paths unverified). The `real-migrate` job now installs `agy` and reads migrated agents and MCP servers back with it, and migrates from Antigravity into Claude Code and OpenCode 2.
181
+ - `--install-agent a,b` / `--uninstall-agent a,b` (#80, PR C): opt-in install of Claude Code, OpenCode 2, Copilot CLI, Cursor CLI or the Antigravity CLI from the pinned installer (url + SHA256 now in `core/pins.json`, checked by `verify-sha256.mjs` before the script runs; `scripts/ci-download.sh` falls back to it) and an undo that deletes only the files recorded at install whose SHA256 still matches (`npm uninstall -g` for Copilot CLI), never `opencode uninstall`. Plan first, `--yes` or a question before anything runs; an agent not installed by lean-agents is left alone; OpenCode 1.x is never installed (#79). New `scripts/lib/agent-lifecycle.mjs`, `tests/agent-lifecycle.test.mjs`, `tests/real-agent-lifecycle.mjs`, run by the real-claude, real-opencode, real-copilot(-windows), real-cursor and real-antigravity jobs. Windows routes for Claude, OpenCode 2, Cursor and Antigravity are VERIFY (see `docs/compatibility.md`).
182
+ - `--doctor` shows the Node per tool and duplicate skills (#104 points 4-5, #132; session 106, PR A of `--adopt`): one `node for <client> mcp <name>` row for every registered MCP command that runs a pinned npm tool (absolute node, nvm link, bare `node`/`npx`, absolute `npx`), an `error` when that Node is below the tool's `engines.node`, and one `duplicate skill <name>` row for a skill found in two folders one agent reads (same or different content; no winner is claimed). `--doctor --json` adds `nodes` and `skills`. Read-only: nothing is changed or removed, and env and args are never printed. New `scripts/lib/inventory.mjs`; `real-tool-node` checks a symlink-launched MCP, an absolute one and a duplicate skill with real nvm on ubuntu and windows. `docs/manual-install.md` has the one-Node-per-tool and one-folder-per-skill rules.
183
+ - Code navigation evaluation (#130): `tests/bench-code-nav.mjs` and the manual-only `bench-code-nav` workflow compare codebase-memory-mcp with Serena over MCP stdio on ubuntu, macOS and Windows (result bytes as a token proxy, answer checks, index time and size, uninstall leftovers). Result in `docs/research/code-nav-2026-11.md`: keep Serena. Nothing installed for users changes.
184
+ - Multi-agent coordinator workflow (#60): `docs/agent-workflow.md` (roles, plan-first session prompts, model tiers, at most two workers, sandbox-first CI fixes, one-at-a-time merges, limit recovery) and an opt-in `coordinate` skill (`--tools coordinate`, never in `--all-tools`, removed by `--uninstall`) that ships a session-prompt template and `coord-watch.sh`, a bash watcher that exits with why a worker needs you (plan written, PR URL, question, limit, error, turn ended) from a transcript file or a terminal read command. New `real-coord-watch` CI job (ubuntu, macos).
185
+ - Git Bash as OpenCode's default shell on Windows (#124 follow-up): `--shell default|git-bash` (default `git-bash`). When Git Bash is found, OpenCode's `shell` key is set to its absolute `bash.exe` path through the usual `setIfAbsent` json edit, so a `shell` you already set is never overwritten; `--shell default` opts out; `--uninstall` removes it. Proven with a real OpenCode binary on `windows-latest` for both majors (1.19.0 and 2.2.5) in the new `real-opencode-shell` CI job: a local mock OpenAI-compatible LLM (`tests/fixtures/mock-llm.mjs`) drives one bash/shell tool call with no login and no paid model, and for the Git Bash case the job runs the real installer (not a hand-written config) and checks its own output. See `docs/compatibility.md` for the evidence (job IDs, date).
186
+ - Copilot credits, follow-up (#123): the OpenCode 2.x sidebar box and `/copilot-usage` toast are now proven on the real 2.x TUI (new `real-usage-v2` CI job, pseudo-terminal, fake `gh`). 2.x has a different TUI plugin API (`Plugin.define` with `setup(context)`, `context.ui.slot`, `context.keymap.layer`), so `plugins/lean-copilot-usage/tui.js` now exports both the 1.x and the 2.x entry points; on 2.x the plugin folder is discovered by itself, so no `tui.json` entry is written there (the 0.7.0 file and entry did not load on 2.x). New Claude Code status line: with `copilot-usage` selected, `~/.claude/lean-copilot-usage-statusline.mjs` (owned, built from the `--usage` formatter, `gh` called at most once per 5 minutes, nothing under `--outbound off`) is registered as `statusLine` only if you have none; `--uninstall` removes it only while the value is still ours. Cursor, Copilot CLI, VS Code and Antigravity: see `docs/compatibility.md` (Copilot CLI and Antigravity document a status line command, not wired yet).
187
+
188
+ ### Fixed
189
+
190
+ - `--adopt` safety (pre-release audit): a Claude hook named after an inline `VAR=value` prefix no longer prints that value; `--adopt --undo` keeps the backup (and exits non-zero) when a removed folder exists again; apply and undo skip a folder or file reached through a symlink or outside HOME.
191
+ - README: Context Mode row for OpenCode 1.x/2.x and the "no admin rights" line now match what the installer does.
192
+
193
+ ## [0.7.0] - 2026-11-12
194
+
195
+ ### Added
196
+
197
+ - Windows shell notice (#124): the install summary and `--doctor` say whether Git Bash was found, and when it is missing, that RTK rewrites and bash-style commands fail or fall back, output is not compressed (more tokens) and the rules' POSIX examples do not apply, with `winget install Git.Git` as the fix. Nothing is shown off Windows. Setting OpenCode's `shell` to Git Bash is not done yet: upstream behaviour on Windows is unproven (`docs/compatibility.md`).
198
+
199
+ ### Changed
200
+
201
+ - README (#126): the agent prompt comes first, then the release bootstrap, "What's new" and the update prompt, with a new banner and agent row; the feature overview moved below Details. EN and ES.
202
+ - Install from a verified release, and from npm (#65, #46; S1, S2, S3, N4): `install.sh` and `install.ps1` download the latest release's `lean-agents-<version>.tgz`, check its SHA256 against the release's `SHA256SUMS`, and only then extract it to `~/.config/lean-agents/src` (dependencies are bundled from `package-lock.json`, so there is no `npm ci` and a changed lockfile always reinstalls). The old git clone there is replaced; a folder that is not a lean-agents install is refused. A `scripts/lean.mjs` in the current directory never runs when the script is piped into bash. With an install in place, `--dry-run`, `--doctor` and `--uninstall` (without `--update`) use no network; a `--dry-run` without an install runs from a temp folder and leaves HOME untouched. The package is ready for `npx lean-agents@latest` (`files`, bundled dependencies, `repository`); `release.yml` builds the tarball and `SHA256SUMS` and, once the owner enables it, publishes to npm with provenance. `lean-agents --version` prints the version. New `package` CI job (ubuntu, macos, windows: `npx` from the packed tarball, dry run, install, `--doctor`, `--uninstall`) and `real-bootstrap.sh` / `.ps1`.
203
+ - **Breaking:** `LEAN_AGENTS_REPO` and `LEAN_AGENTS_REF` are removed. `LEAN_AGENTS_VERSION=<x.y.z>` pins a release; `LEAN_AGENTS_DIST=<folder or https url>` reads the release files from there (prints a warning). The bootstrap URLs are now `https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh` and `install.ps1` (they work after the first release); the `raw.githubusercontent.com/.../main/` URLs are no longer documented.
204
+ - Tools run on a matching Node (#44, #104 points 1 to 3): `core/pins.json` records `node` (the `engines.node` range) for each npm pin, `verify-pins` checks it and the pin-bump PR shows `Node from → to` with `raised` and `above lean floor` flags. When the active Node fails a range, Context Mode and GSD Core run on the lowest installed nvm Node that fits, or `nvm install <major>` (your default Node alias stays), and are registered with that Node's absolute path (`npm i -g --prefix`, `<node> .../context-mode/cli.mjs server`); a rerun, a user-edited entry and `--uninstall` behave as before, and a Node lean-agents installed is kept with a `nvm uninstall` hint. nvm commands run without `npm_config_prefix`, which nvm refuses. On Claude Code Context Mode becomes an MCP server on that Node (hooks and skills of the plugin are lost, one line says so). Without nvm the tool is skipped with `<tool> needs Node <range>, found <version>: skipped. Install nvm or Node <major.minor>+, then run --update.` nvm-windows reuses an installed Node and never installs one (VERIFY). New `real-tool-node` CI job (ubuntu, windows).
205
+ - Pin hold (#50, #51, #52, #97 to #102): a pin with `"hold": "<reason>"` in `core/pins.json` is skipped by the pin-bump PR and logged as `held: <key> <version> (<reason>)`. `opencode-v1` is held at 1.19.0 for the work PC.
206
+ - Downloaded code is pinned and verified (#64, #66, #75; N2, N3, N6, S5, S7, W4): Serena runs from a commit SHA, skill repos install from a commit SHA, the Claude plugins (Context Mode, Ponytail, i-have-adhd) from a tag (Claude rejects a SHA there), and the ponytail and Warp OpenCode plugins from a pinned npm version. `core/pins.json` carries `sha` and npm `integrity`; `scripts/verify-pins.mjs` (in `lint`) checks both against upstream. Bun on Linux and Windows is the pinned release zip, SHA256 checked before it is extracted. CI downloads installers to a file, checks SHA256 and only then runs them (`tests/ci-downloads.json`); OpenCode 2 is pinned (`opencode-v2`); a `lint` step fails on `curl | bash` and `irm | iex`. `warpdotdev/claude-code-warp` has no tags and stays unpinned. An OpenCode plugin entry lean-agents wrote earlier without a version (`context-mode`, `@dietrichgebert/ponytail`, `@warp-dot-dev/opencode-warp`) is replaced in place by the pinned one on the next run; a version you chose yourself is kept and no second entry is added (`arrayAdd` takes a `legacy` list).
207
+ - Pinned OpenCode plugins move to the new pin on rerun (#116): a pinned entry lean-agents wrote earlier (recorded in `state.json`) is replaced in place by the new pin; a version you typed stays.
208
+ - One update channel (#108): the pin-bump PR from a green `ci-latest` run is the only way upstream versions reach `core/pins.json`. The `version-watch` workflow is removed, so no per-tool update issues open; `scripts/version-watch.mjs` stays because other scripts import it.
209
+ - Workflow tokens are least-privilege (#70, W2, W3): every `actions/checkout` sets `persist-credentials: false` and a `lint` step fails when one does not. `release.yml` builds and tests with `contents: read` and uploads `dist/`; a separate `publish` job holds `contents: write`, runs no repo code, and only downloads the artifact and runs `gh release create`. The pin-bump job pushes with the token in that step's env only.
210
+ - macOS real-* legs (Copilot CLI, Antigravity, VS Code, Skills CLI undo) run on push to main, the daily `ci-latest` and manual runs, not on pull requests (#56): every PR run started five macOS jobs at once and some never got a runner. `test (macos-latest)` still runs on PRs.
211
+ - Governance files (#73, H5-H7): `SECURITY.md` lists supported versions (latest minor only) and a 7-day acknowledgement time; the PR template carries the CHANGELOG, README EN/ES, `docs/compatibility.md`, `npm test` and real-binary checks; `.github/CODEOWNERS` names the owner. Requiring Code Owner review is an owner setting, documented in `docs/branch-protection.md`.
212
+ - Secret scan covers main (#91): a push runs the gitleaks CLI (v8.30.1, SHA-256 checked) on the commits it brings in, and a weekly run scans the full history. The gitleaks action stays for pull requests; on main it scanned 0 commits because it skips merge commits.
213
+ - The engine never writes through symlinks or outside home and the project (#68, S8, S10, S17): `plan()` skips a symlinked target or a real parent outside the roots with a note, `apply()` throws if one slips through, `--uninstall` leaves such paths, and the `managed by lean-agents` mark counts only in a file's first 10 lines.
214
+ - Backups and `state.json` are owner-only, `0600` files in `0700` directories (#68, S9). `--uninstall` asks "Delete backups in <dir>?" (default no; `--yes` keeps them).
215
+ - `redactText` moved to `scripts/lib/redact.mjs` and scrubs more (#67, S11-S14): `AIza`, `hf_`, `sk_live_`/`sk_test_`/`rk_live_`, `ya29.`, JWT and AWS secret keys; `key=value` and `Authorization: Basic|Bearer|Token`; the value of every secret-named environment variable; `/root/`, `/var/folders/`, `/private/var/`, `C:/Users/<user>` and the host name. Proxy and CA lines in `--doctor` and the install plan drop userinfo and query strings and show the home as `~` (S15).
216
+ - Every command lean-agents runs gets an environment allowlist instead of your whole environment (#74, S6): `GH_TOKEN`, API keys and cloud credentials stay behind. The list is in `docs/privacy.md`; names that look like secrets are dropped even when allowed.
217
+ - `CONTRIBUTING.md` has a "Development" section (Node 22.20+, `npm ci`, `npm test`, shellcheck, privacy check, safe dry run), the adapter path (`scripts/lib/adapters/*.mjs`, not `agents/`), and a "Proposing a tool" section linked from `tools/README.md` (#71).
218
+ - `--doctor` honors the network preset (#72, N7, N8): child commands get `DO_NOT_TRACK` and friends under telemetry off, and `mcp list` (which starts Serena and Playwright) is skipped with one `skipped` row when outbound is off. `tests/doctor-network.test.mjs`.
219
+ - Every third-party GitHub Action is pinned to a full commit SHA with a `# vX.Y.Z` comment (#69). Dependabot (`.github/dependabot.yml`) opens weekly update PRs for npm and actions. A `lint` step fails on any new tag-only `uses:` line.
220
+ - README is a 1-minute read (#58): positioning line, one install command, demo GIF, a support matrix (agent × macOS/Linux/Windows × rules, subagents, MCP tools × CI job; cells without a real-binary job say VERIFY), an at-a-glance list and a diagram, all above a Details divider. Everything else moved below it; README.es.md mirrors it.
221
+ - `scripts/check-readme.mjs` also fails on a hero over 80 lines, an image without alt text or over 5 MB, and EN/ES image-count drift. It runs in the `lint` job and in the release workflow.
222
+ - Privacy presets match `docs/privacy.md` (#63): new "What each preset does NOT block" section (install downloads, chosen tools); `--network off` or `--outbound off` drops the research agent's web tools in Claude Code, Copilot CLI and VS Code Copilot; the Orca row mentions the Windows user env var.
223
+
224
+ ### Added
225
+
226
+ - Copilot credits in OpenCode (#123): optional tool `copilot-usage` (in `--all-tools`, needs `gh`, skipped with a note under `--outbound off`). On OpenCode 1.x and 2.x it installs the owned file `plugins/lean-copilot-usage/tui.js` and a `tui.json` `plugin` entry: a sidebar box with credits spent and left, % left and the reset date, plus a `/copilot-usage` palette command and toast. It reads `gh api copilot_internal/user` and never makes a model request, so it costs no premium request. `--uninstall` removes both. New `--usage` flag prints `<left> of <total> credits left (P%), about $X of $Y, resets YYYY-MM-DD` (`Unlimited premium requests`, or `unavailable` with exit 0 when `gh` fails, never zero; under `--outbound off` it prints a skip note and makes no call). Dollars assume $0.01 per credit, an estimate. Sidebar on 2.x and the 2.x command registration are VERIFY.
227
+ - OpenCode 1.x guard (#79): `--doctor` (text and `--json`) says "OpenCode 1.x: supported; lean-agents will not upgrade it"; `tests/opencode-guard.test.mjs` fails if an install, `--update`, `--migrate` or `lean-update` plan installs or upgrades OpenCode; the `lean-update` skill leaves an OpenCode 2 upgrade to the user and tells them to back up `opencode.db` and config first; "Staying on OpenCode 1.x" in `docs/compatibility.md` (data folder, backup; Windows path still **VERIFY**).
228
+ - `docs/checkpoints/0.7.0.md`: first architecture checkpoint (#59). It recommends keep, change or spike on the installer's form, the script-plus-agent split, what to stop, the numbers, and the 0.7.0 scope.
229
+ - Issue forms for bug, feature, update finding and agent support; blank issues are off and vulnerabilities point to `SECURITY.md`. The bug and update-finding forms list the fields the opt-in feedback flow fills (os, version, agents, command, error).
230
+ - `scripts/labels.sh`: idempotent label set (`type:`, `priority:`, `area:`); it renames GitHub's default `bug`, `documentation` and `enhancement` so existing issues keep them.
231
+ - `docs/audit-2026-11.md`: repo audit (README, security, network and privacy, repo health), and a "Before each release" checklist in `docs/SPEC.md`.
232
+ - `lean-update` skill, installed for every agent through the Skills CLI at the release tag (`lean-update` pin). It reads the latest release's `core/pins.json` and CHANGELOG, detects what is installed (also for hand installs without `state.json`), runs `--update --dry-run --json`, shows a table, asks, backs up only what changes in one temp folder, runs the script, reads `--doctor --json` back and deletes the backup (#45).
233
+ - `docs/manual-install.md` sections 6 (read-only detection command per tool) and 7 (backup snippet); a test runs every detection command with no writes.
234
+ - `--update` prints `tool: old -> new` and installs again the tools whose pin moved (Context Mode, MCP servers, the i-have-adhd checkout), recording each command once; `--doctor --json` and `--update --dry-run --json` list `behind` (#45).
235
+ - `--feedback-draft --feedback-kind update` drafts an "Update finding" issue with the same redaction and strict/off gate.
236
+ - The daily green `ci-latest` run opens one `pin-bump/<date>` PR (newest stable versions at least 14 days old) and dispatches `ci.yml` on its branch; a human merges (#45). `ci.yml` gained `workflow_dispatch`.
237
+ - CI job `real-update`: old pins in a throwaway HOME, `--update`, new versions, nothing behind, `--uninstall` leaves nothing.
238
+
239
+ ### Changed
240
+
241
+ - The daily version watch also labels its issues `type: update`.
242
+
243
+ ### Fixed
244
+
245
+ - `--migrate` treats a rules file as lean-agents' own only when `managed by lean-agents` is in its first 10 lines, the same rule as the installer; a user file that mentions it further down is migrated (#93).
246
+ - The i-have-adhd step finds the skill where `skills` 1.8 installs it for Antigravity (`~/.gemini/config/skills/i-have-adhd`), which `ci-latest` with `skills@1.8` needs (it failed with "i-have-adhd skill not found"); the 1.7.4 paths work as before (#112).
247
+ - Context Mode MCP starts (#107): the command in `core/mcp.json` now ends with `server`, as 2.1.4 requires. A rerun replaces the old lean-agents entry (`npx -y context-mode@<version>`, any version) in OpenCode 2, Cursor and VS Code configs; an entry you edited stays as it is, and `--uninstall` removes the entry lean-agents wrote. `tests/real-opencode.sh` sends `initialize` to the registered command.
248
+ - Windows: the Orca telemetry reminder shows on a real-home run unless `DO_NOT_TRACK` or `ORCA_TELEMETRY_DISABLED` is already set in the user or machine env; it was always hidden (#76).
249
+
250
+ ## [0.6.0] - 2026-11-06
251
+
252
+ 0.5.1 was folded into this release: its fixes are listed below.
253
+
254
+ ### Fixed
255
+
256
+ - GSD Core no longer crashes when Cursor is selected: Cursor installs with `--cursor`, and agents without a GSD installer (`vscode-copilot`) are skipped with a note (#20).
257
+ - The test "--yes keeps every tool default for undocumented settings" no longer depends on a host proxy (#31).
258
+ - `install.ps1` finds OpenCode 2 in `%USERPROFILE%\.opencode\bin` when it is not on PATH and says how to fix the PATH (#32).
259
+ - Context Mode 2 on Copilot CLI: pinned `context-mode@2.1.4`, registered with `copilot mcp add` (the old plugin path no longer exists and `setup` is a no-op for Copilot); hooks and skills are left to `context-mode setup --print copilot-cli`. Antigravity is skipped with a note because `setup --list` has no Antigravity agent. `--uninstall` runs `copilot mcp remove context-mode` (#39).
260
+ - Context Mode is skipped for every agent, with one line, when Node is older than 24.15 (its `engines`); `--doctor` reports it as a `note` and `--update` installs it after a Node upgrade (#39; an `nvm` helper is issue #44).
261
+ - `--uninstall` no longer leaves `~/.copilot/mcp-config.json` without `mcpServers`, which Copilot rejects: a file lean-agents created is removed, a file you own keeps `mcpServers: {}` (#39).
262
+
263
+ ### Changed
264
+
265
+ - **Breaking:** the minimum Node.js is now 22.20 (was 20.12), because Node 20 is end of life and `skills` 1.5.19 and later need 22.20. `package.json` `engines`, `install.sh`, `install.ps1`, the README and the docs say so; CI drops the Node 20 job.
266
+ - `skills-cli` pinned at 1.7.4 (was 1.5.18), the newest 1.7.x at least 14 days old (#49).
267
+ - CI (#42): pull requests use the pinned versions, now including the Claude Code, OpenCode 1.x and Copilot CLI npm packages (`ciOnly` pins in `core/pins.json`, not installed for users; Claude Code is installed from npm in CI instead of `claude.ai/install.sh`; OpenCode 2, Cursor and `agy` stay on their installers); docs-only PRs run only `lint`, `test` and the Secret scan; every job has `timeout-minutes`; macOS dropped where it added nothing; shellcheck and PSScriptAnalyzer cover every tracked script.
268
+ - `gh` (GitHub CLI) is installed by default when missing; it used to default to no (#37).
269
+ - MCP servers, npx tools and skills no longer fetch `@latest` or the default branch: exact versions and tags come from `core/pins.json`. Skills install with `owner/repo#<tag>` (a trailing `@<tag>` is ignored and installs HEAD). `docs/SECURITY-REVIEW.md` and the README "On a work PC" list run-time fetches as their own category (#33).
270
+ - Docs: `docs/privacy.md` table renders again and covers Cursor, VS Code Copilot, Warp and Orca; `tests/README.md` describes `npm test` and the `real-*` scripts; the Cursor CLI install row in `docs/compatibility.md` is correct for Windows (#27).
271
+ - Docs: the demo step 1 has a verified Windows PowerShell block for OpenCode 2 (EN, ES); `docs/SECURITY-REVIEW.md` notes the upstream script checks no tarball checksum (#32).
272
+
273
+ ### Added
274
+
275
+ - Install with an agent (#35): `docs/install-with-an-agent.md`, a copy-paste prompt in both READMEs, and `--json` for `--dry-run` and `--doctor` (stdout is one JSON object; messages go to stderr).
276
+ - Opt-in feedback (#36): `--feedback-draft --failed-command <text>` prints a redacted issue draft (no home paths, user names, proxy values, emails or tokens), and never offers one under the strict preset or `--outbound off`. The agent files it with `gh issue create` only after a yes.
277
+ - `--no-gh` (`-NoGh`) and a `git` check (#37). The `gh` field in `--dry-run --json` means "to install"; without brew or winget (Linux) the plan only prints the download link, and a failed or manual `gh` step never fails the run.
278
+ - `--migrate <from|auto>` (`-Migrate` on Windows): copies rules, subagents, skills, prompts and MCP servers from Claude Code, VS Code Copilot, Cursor, Copilot CLI or OpenCode 1/2 to the agents in `--agents`, at user scope or inside a repository with `--project`. Never moves or overwrites; MCP env and header values are not copied, only their names; hooks are listed, not migrated; `--dry-run` prints an item / source / target / status table. CI job `real-migrate` runs it with the real OpenCode 2 and Claude Code (#34).
279
+ - `ci-latest.yml`: a daily run of the real-binary jobs with the newest upstream versions; a failure opens or comments on one `version-watch` issue instead of blocking PRs (#42). `docs/branch-protection.md` has the command that makes the key checks required.
280
+ - Orca on Windows: `ORCA_SKILL_AGENT` covers Cursor and VS Code Copilot (#21); with the all-off preset it sets `DO_NOT_TRACK=1` and `ORCA_TELEMETRY_DISABLED=1` in the user env when absent, and behind a proxy it appends the missing `localhost`, `127.0.0.1`, `::1` to the user `NO_PROXY` (#22, #28). Undo removes only what it set.
281
+ - Git Bash: a marked `~/.bashrc` block with the Cursor `agent` / `cursor-agent` aliases (`MSYSTEM= SHELL=`) and the loopback `NO_PROXY` entries (#23, #28).
282
+ - Cursor behind a proxy: `network.useHttp1ForAgent: true` merged into `~/.cursor/cli-config.json`; proxy values are never written (#25).
283
+ - "Still needed from you" list after install and in `--doctor` (Cursor login, User Rules, Orca first launch and Install CLI & Skills); `--doctor` finds Orca's hook entries, also PowerShell-encoded ones (#22, #26, #29).
284
+ - CI jobs `real-cursor-windows` (real Cursor CLI, `agent.cmd`, Git Bash alias block) and `real-terminals-windows` (Orca user-env writes and their undo, runner env restored).
285
+ - `core/pins.json`: the one list of known-good versions fetched at run time (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, the Skills CLI, the Caveman, i-have-adhd and orca-cli skills), each with the day verified and the CI job that proves it. `state.json` records them and `--doctor` shows `changed` when they differ (#33).
286
+ - `version-watch` workflow (daily and on demand): opens one `Update available: <item>` issue per pin with a newer upstream version, comments on the open one for each newer version, never twice for the same version, and never changes a pin (#40).
287
+ - `update-models` skill: "Tool versions" section to list newer versions and bump pins after approval (#33).
288
+ - `--no-core` (`-NoCore`): leaves out RTK and Context Mode so a managed PC gets only the `--tools` you list; `--update` keeps the choice (#30).
289
+ - `docs/ROADMAP.md`: the order of the next releases, the issues each session closes, and the promotion plan.
290
+
291
+ ## [0.5.0] - 2026-11-04
292
+
293
+ ### Added
294
+
295
+ - `docs/launch.md`, a README banner, and an `assets` workflow that renders the demo GIF and social preview in CI.
296
+ - `release.yml`: a tag `v*` publishes the CHANGELOG notes and source archives. `scripts/release.mjs` builds them.
297
+ - CI job `real-skills-undo`: real Skills CLI, throwaway HOME, Claude Code and OpenCode 1.x and 2.x.
298
+ - Network presets: one question (all off, all on, per category) and `--network on|off`, `--telemetry`, `--auto-update`, `--outbound` for `--yes` runs. Saved in `state.json`; `--privacy strict|standard` map to the presets. Telemetry off also sets `DO_NOT_TRACK=1` for Claude Code and for install commands.
299
+ - Proxy support: `HTTP(S)_PROXY`, `ALL_PROXY` and `NO_PROXY` are passed to every command in both letter cases, and shown redacted in `--dry-run` and `--doctor` with any CA variables. Never written to disk.
300
+ - `--gh`: installs GitHub CLI with brew or winget at user scope; `gh auth login` stays manual.
301
+ - Interactive menus, a progress list and a summary on a real terminal, with `@clack/prompts` (the one new dependency). `--yes`, pipes and no-TTY runs keep the plain questions.
302
+ - Settings upstream does not document (Antigravity telemetry and auto-update, Serena config, winget persistent proxy, download hosts, DCP, GSD and AutoSkills telemetry): the installer asks to paste docs or IT notes, saved to `~/.config/lean-agents/notes/` for an agent to apply after review, or keep the tool's default. Never guessed and never applied automatically; skipped when another agent already set the tool up.
303
+ - `docs/SECURITY-REVIEW.md`: a prompt any agent runs on this repo before install.
304
+ - CI: `real-proxy` (install through squid with direct traffic blocked, all-off preset, gh and agy behind the proxy), a pty test for the menus, no-TTY checks in PowerShell 5.1 and Git Bash, `gh` through winget.
305
+ - `docs/compatibility.md` "Terminals": Warp and Orca install routes, the hooks Orca adds, its permission modes and how to keep approvals on. Research only; the installer does not offer either app yet.
306
+ - Plan for session 10 (parallel agent sessions) in `docs/SPEC.md`, with the research in `docs/compatibility.md`.
307
+ - `--agents vscode-copilot`: rules, subagents, user MCP servers, skills and strict privacy settings for VS Code Copilot. Shared `~/.copilot` files are written once when Copilot CLI is also selected.
308
+ - `--agents cursor`: subagents, MCP servers, RTK hook and skills for Cursor and its `agent` CLI.
309
+ - `--project <dir>` (`-Project` in PowerShell): writes the team setup into one repository (`AGENTS.md`, `.github/`, `.vscode/mcp.json`, `.cursor/`). State stays in the user's home.
310
+ - `docs/claude-with-copilot.md`: the official route to Claude through GitHub Copilot (partner agent); token proxies are documented as not supported.
311
+ - CI jobs `real-cursor` and `real-vscode`: real Cursor CLI and VS Code CLI in a throwaway HOME, Linux and macOS.
312
+ - Plan and research for full Antigravity support (app and CLI on macOS, Windows and Linux): `docs/SPEC.md` session 11, `docs/compatibility.md`, both READMEs.
313
+ - Opt-in `--tools playwright-extension`: Playwright MCP in extension mode (`--extension`) for OpenCode, Copilot CLI, VS Code Copilot and Cursor, so agents use your own signed-in Chrome on pages behind single sign-on. The installer prints the Chrome Web Store link; `docs/browser-extension.md` covers the optional auto-approve token, which lean-agents never asks for, stores or prints.
314
+ - CI job `bench-context-mode`: Context Mode `ctx_execute` with Node only and with Bun on Ubuntu, macOS and Windows, numbers in the job summary.
315
+ - Bun for Context Mode, on by default when `context-mode` is selected (`--no-bun`, `-NoBun` to opt out): faster `ctx_execute` and TypeScript. User scope on every OS (Linux upstream script into `~/.bun` with no profile edit, macOS `brew install oven-sh/bun/bun`, Windows upstream `install.ps1`); an existing Bun is reused and never removed; a failed install falls back to Node with one line. With telemetry off, a marked `telemetry = false` block at the top of `~/.bunfig.toml`, removed by `--uninstall`.
316
+ - CI job `real-bun` (Ubuntu, macOS, Windows): Bun found by Context Mode through the MCP client, reuse, `--no-bun`, fallback and uninstall; `real-proxy` also checks Bun through the proxy.
317
+ - `scripts/parallel.mjs` (`start`, `status`, `merge`, `clean`) and the `parallel-sessions` skill: one worker per task in its own git worktree (Orca when installed, plain `git worktree` otherwise), prompt and status files, one-at-a-time merges with a rebase of the rest. Each worker gets a model tier (`cheap`, `balanced`, `strong`; default by role: plan strong, build balanced, explore and research cheap) mapped through the model profiles. `--doctor` lists workers left in the repo.
318
+ - CI job `real-parallel`: real git worktrees and a stub agent on Ubuntu and macOS; flags checked against real Claude Code and OpenCode.
319
+ - Antigravity CLI on Windows: CI job `real-antigravity-windows` runs real `agy` with `install.ps1` in a throwaway `USERPROFILE`.
320
+ - With Antigravity selected, the CLI and the app are installed through Homebrew (macOS) or winget (app only, Windows); other cases print the vendor link. `--no-app` (`-NoApp`) skips the app. App-side loading, its MCP path and settings stay VERIFY.
321
+ - `--terminal warp|orca|both|none`: agent integrations for a terminal you already have. Warp: Claude Code plugin `warp@claude-code-warp` and the OpenCode plugin `@warp-dot-dev/opencode-warp`. Orca: the `orca-cli` skill. The apps are detected (never installed) and preselected; nothing found means no question. The all-off network preset prints the Warp and Orca telemetry switches. CI job `real-terminals` (real Claude Code, OpenCode 1.x and 2.x, throwaway HOME).
322
+ - README (EN and ES): a hero with one badge row and the OpenCode + GitHub Copilot demo as the first call to action, a table of contents, collapsible long sections, bullets instead of long paragraphs, and `scripts/check-readme.mjs` (run by `npm test`), which checks links, anchors, EN/ES structure and that every installer command shown exits 0 as a dry run.
323
+
324
+ ### Changed
325
+
326
+ - Node.js 20.12 or newer is required (`@clack/prompts` needs `util.styleText`).
327
+ - Owner decision (2026-11-04): Warp plugins are no longer refused outright (`AGENTS.md`, `docs/SPEC.md` section 2, `docs/faq.md`).
328
+ - `--agents ... --tools ...` runs without `--yes` now also need `--terminal` when a terminal is found, like the other questions.
329
+
330
+ ### Fixed
331
+
332
+ - `models-refresh` no longer reports a model the same profile already uses, or one with different outputs such as an image model (issue #6). Profiles unchanged; reasons in `profiles/README.md`.
333
+ - After the last prompt on `/dev/tty`, as in `curl | bash`, the installer exits instead of hanging.
334
+ - Without a TTY and without `--yes`, the installer stops with a clear message instead of a crash, and `--dry-run` with every choice passed as a flag exits 0.
335
+ - The OpenCode undo no longer leaves `~/.agents/skills` when another agent is detected.
336
+ - Real-binary test scripts run agent CLIs only after HOME is a throwaway.
337
+ - With `--home`, `XDG_CACHE_HOME`, `XDG_DATA_HOME` and `XDG_STATE_HOME` outside it are dropped.
338
+ - A Claude-only install with `--tools playwright-extension` no longer gets the Playwright and `ToolSearch` rule lines.
339
+
340
+ ## [0.4.0] - 2026-10-31
341
+
342
+ ### Added
343
+
344
+ - GitHub Copilot CLI adapter: rules, subagents, MCP servers, RTK, Context Mode plugin, Caveman, i-have-adhd.
345
+ - Antigravity CLI adapter: same set, except that rules and skills loading is not proven (see `docs/compatibility.md`).
346
+ - Tools: Codeburn. GSD Core and AutoSkills are opt-in and stay out of `--all-tools`. AutoSkills is CC BY-NC 4.0, non-commercial use only.
347
+ - Profiles `github-copilot`, `opencode-go`, `openai-api`, and per-agent GSD models in `profiles/<name>/gsd-defaults.json`.
348
+ - Skills `setup-doctor`, `token-audit`, `update-models`.
349
+ - `scripts/models-refresh.mjs` and a monthly workflow that opens an issue when profile models change.
350
+ - CI jobs with real Copilot CLI (Linux, macOS, Windows), real Antigravity CLI, real winget, and a non-default `XDG_CONFIG_HOME`.
351
+
352
+ ### Changed
353
+
354
+ - i-have-adhd: lean-agents sets `disable-model-invocation: false` in installed copies so a prompt can load the skill. The doctor reports when an update resets it.
355
+ - The installer exits 1 when an install step fails.
356
+
357
+ ### Fixed
358
+
359
+ - `XDG_CONFIG_HOME` is honored for the OpenCode and Ponytail config paths. With `--home`, it counts only inside that directory.
360
+ - winget no longer stops at an agreement prompt without a TTY.
361
+ - CI negative checks written as `! cmd` never failed a job; they now do.
362
+
363
+ ## [0.3.0] - 2026-10-30
364
+
365
+ ### Added
366
+
367
+ - `install.ps1` for Windows on PowerShell 5.1 and 7, from a file or piped.
368
+ - OpenCode 1.x adapter (`>=1.18.29`, reference 1.19.0), and `docs/migrate-opencode-v1-to-v2.md`.
369
+ - Optional DCP tool for OpenCode 1.x.
370
+ - CI on Windows, plus jobs with real OpenCode 1.19, Claude Code and tool installs.
371
+ - `AGENTS.md`, `CLAUDE.md` and `.claude/settings.json` for agents working on this repo.
372
+ - Detailed steps for sessions 3 to 5 and a current-state summary in `docs/SPEC.md`.
373
+
374
+ ### Changed
375
+
376
+ - Global rules now say when to use Context Mode, Playwright and the shell, and to load deferred tools first.
377
+
378
+ ### Fixed
379
+
380
+ - RTK hook on Claude Code is now registered without a terminal, as in `curl | bash` installs.
381
+ - Caveman installs only its three skills, without a terminal, and uninstalls cleanly.
382
+ - Windows: only `.cmd` shims run through a shell, so paths with spaces work.
383
+ - Windows: Ponytail config stays inside `--home`.
384
+ - Windows: rule paths use forward slashes.
385
+
386
+ ## [0.2.0] - 2026-10-31
387
+
388
+ ### Added
389
+
390
+ - Node engine (`scripts/lean.mjs`): plan, `--dry-run`, apply with backups, `--update`, `--uninstall`, `--doctor`.
391
+ - JSON/JSONC merging that keeps your comments and your values; marked blocks for `CLAUDE.md`.
392
+ - Claude Code adapter: rules import, tiered subagents, settings, RTK, Context Mode, Ponytail, i-have-adhd, Serena, Playwright, Caveman.
393
+ - OpenCode 2.x adapter: rules, subagents, primary agent models, compaction, MCP servers, Ponytail, i-have-adhd, RTK, Caveman.
394
+ - Strict privacy mode for both agents.
395
+ - Model profiles: `claude-subscription`, `anthropic-api`, `vertex-gemini`.
396
+ - `install.sh` bootstrap, engine tests and CI on Ubuntu and macOS.
397
+ - Docs: compatibility and verification log, manual install, privacy, update.
398
+
399
+ ## [0.1.0] - 2026-10-31
400
+
401
+ ### Added
402
+
403
+ - Build specification (`docs/SPEC.md`).
404
+ - Global rules in English and Spanish (`core/AGENTS.md`, `core/AGENTS.es.md`).
405
+ - Neutral subagent definitions: explore, research, review, debug, planner.
406
+ - MCP server list and tier example.
407
+ - Privacy check script and secret-scan workflow.