diff --git a/README.md b/README.md index 4e507f4d..3991df24 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,17 @@ You make the decisions: answer a few questions. The agents run the factory: they write the spec and the tickets, build, review and merge. You watch it ship. -**Status:** OpenWiz 0.1.0 ("OpenWiz 0.01") is out: the [release](https://github.com/openwizdev/OpenWiz/releases/tag/v0.1.0) installs on macOS on Apple silicon and on Linux on x86_64 (glibc 2.34 or later). Intel Macs are not supported for 0.1.0: the install needs CloudRoom, and CloudRoom offers no Intel Mac build today, though the `openwiz` program itself runs there. OpenWiz builds itself, in public, in this repo. +This branch documents **OpenWiz 0.1.1**. Check the [published releases](https://github.com/openwizdev/OpenWiz/releases) for availability. If the release you install is 0.1.0, follow its [CloudRoom setup guide](https://github.com/openwizdev/OpenWiz/blob/v0.1.0/docs/install.md). ## Quick start -You need [CloudRoom](https://cloudroom.dev), signed in: the 0.1.0 install sets up through it. You also need Python 3.9 or later, `git`, and the GitHub CLI (`gh`). Then paste this line into your coding agent (Claude Code, Codex or another): +For 0.1.1 you need Python 3.9 or later, Git, and the GitHub CLI. Use macOS on Apple silicon or Intel, or Linux on x86_64 or ARM64 (aarch64) with glibc 2.34 or later. Choose where agents run: this computer with Claude Code or Codex, boat.dev, or CloudRoom. Only the CloudRoom host needs a CloudRoom login. On an Intel Mac or an ARM64 Linux machine without an existing CloudRoom environment, choose this computer or boat.dev. CloudRoom’s desktop installer supports Apple silicon and x86_64 Linux. + +Paste this line into your coding agent: > Install OpenWiz from github.com/openwizdev/OpenWiz -Your agent follows the [install skill](https://github.com/openwizdev/WizSkills/blob/maint/0.2/skills/install/SKILL.md). It checks your computer, installs the verified prebuilt release (no Rust or Node), puts OpenWiz's skills into your agents, and checks each connection. Nothing starts until you approve a plan. People: see the [install guide](docs/install.md) for every step and command. OpenWiz is free. Your model and host charges are your own. +Your agent verifies the prebuilt release, connects GitHub and installs the skills. You choose whether to start a first fleet after its plan passes the checks. OpenWiz is free. Your model and host charges are your own. [Install guide](docs/install.md) · [Pinned install skill](https://github.com/openwizdev/WizSkills/blob/v0.4.2/skills/install/SKILL.md) ## How it works diff --git a/docs/install.md b/docs/install.md index 5a3a9907..6e8246a4 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,116 +1,64 @@ -# Install OpenWiz +# Install OpenWiz 0.1.1 -Paste this one line into the coding agent you already use (Claude Code, Codex or another): +Paste this line into your coding agent: > Install OpenWiz from github.com/openwizdev/OpenWiz -The agent follows the [install skill](https://github.com/openwizdev/WizSkills/blob/maint/0.2/skills/install/SKILL.md). This page says what it does, the commands it runs, what it may change, and how to recover or remove it. - -Using Grok Bot? See [Grok Bot + OpenWiz](grok-bot.md). - -**Status:** this is the install for OpenWiz 0.1.0 ("OpenWiz 0.01"). It needs CloudRoom: setup is done only when CloudRoom is installed and signed in. +Check which OpenWiz release GitHub offers before choosing a host. This guide describes 0.1.1 once its release assets are available. If you install 0.1.0, its agents run on CloudRoom. [Published releases](https://github.com/openwizdev/OpenWiz/releases) · [0.1.0 instructions](https://github.com/openwizdev/OpenWiz/blob/v0.1.0/docs/install.md) ## Before you start -- **A supported computer:** macOS on Apple silicon, or Linux on x86_64 with glibc 2.34 or later (`ldd --version` shows it). Linux on ARM is not supported. **An Intel Mac installs from 0.1.1 on, with no CloudRoom:** preflight reads it ready. CloudRoom has no Intel Mac build, so on an Intel Mac, agents run on this computer or on boat.dev. On Linux older than glibc 2.39, `openwiz` may print a `GLIBC_2.39` warning and still work. -- **Python 3.9 or later, `git`, and the GitHub CLI** (`gh`, signed in with `gh auth login`). -- **CloudRoom,** installed, opened once and signed in. Opening it once creates its `room-cli`. +- Use macOS on Apple silicon or Intel, or Linux on x86_64 or ARM64 (aarch64) with glibc 2.34 or later. On Linux, `ldd --version` shows the glibc version. +- Install Python 3.9 or later, Git and the GitHub CLI. Sign in to GitHub yourself with `gh auth login`. +- Choose where your agents run. On **this computer**, sign in to Claude Code or Codex. For **boat.dev**, sign in with the host as prompted. For **CloudRoom**, install and sign in to CloudRoom. On an Intel Mac or an ARM64 Linux machine without an existing CloudRoom environment, choose this computer or boat.dev. CloudRoom’s desktop installer supports Apple silicon and x86_64 Linux. -## What happens, in order +## What the agent does -The agent runs each command itself and reads its JSON. `` is the install folder, by default `~/.local/lib/openwiz`: use a new or empty folder that holds nothing else, because the installer also accepts a folder that already has other files in it. If you give `install install` a separate `--state-root`, it too must be a new or empty folder used by OpenWiz alone, never one shared with another app. `` is `aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-unknown-linux-gnu` or `aarch64-unknown-linux-gnu`. +1. **Check the machine.** The agent reads the chosen release, clones its tag and runs the installer’s preflight. It reports the target, free space and required tools. The four 0.1.1 targets are `aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-unknown-linux-gnu` and `aarch64-unknown-linux-gnu`. The pinned skill still describes Linux ARM as refused. On ARM64 Linux, run the 0.1.1 preflight below and use the target it reports. The local and boat.dev paths can proceed without `room-cli`. -1. **Preflight.** It clones this repository at the `v0.1.0` tag into a private temporary folder as `$openwiz` (`git clone --depth 1 --branch v0.1.0 https://github.com/openwizdev/OpenWiz "$openwiz"`) and checks this computer: Python, a supported system, free disk space, and whether `room-cli`, `gh` and `git` are installed. It reads only; anything missing comes with its next step. An Intel Mac passes it with no CloudRoom, as "Before you start" says. +2. **Install the verified package.** The agent uses the same tag for the installer, manifest and download. The example below is for the published v0.1.1 assets. Set `openwiz` to a new temporary clone path, `target` to the target printed by preflight, `assets` to a new private download folder and `root` to the install folder (default `~/.local/lib/openwiz`). ```sh - python3 -I "$openwiz"/tools/install/install preflight + git clone --depth 1 --branch v0.1.1 https://github.com/openwizdev/OpenWiz "$openwiz" + python3 -I "$openwiz/tools/install/install" preflight + python3 -I "$openwiz/tools/install/install" download --version v0.1.1 --target "$target" --dir "$assets" ``` -2. **Verified download and install.** It downloads the release's checksum file, manifest and package from GitHub and checks the package's SHA-256 hash against the manifest before using it. No Rust, Node or source build is needed. A hash proves the files are the release's files; it is not a publisher signature. A failed check changes nothing, and an earlier install keeps working. - - ```sh - python3 -I "$openwiz"/tools/install/install download --target --dir - python3 -I "$openwiz"/tools/install/install install --assets --target --root - ``` - - `install` prints `"activated": true`, the version, and the `build` and `state_root` folders, written below as `` and ``. `download` reads GitHub's latest release, which skips a release marked pre-release; if it refuses with "could not be completed safely", check the [release page](https://github.com/openwizdev/OpenWiz/releases/tag/v0.1.0). The same three files are under `https://github.com/openwizdev/OpenWiz/releases/download/v0.1.0/`: `openwiz-.sha256`, `openwiz-.manifest.json` and `openwiz-0.1.0-.tar.gz`. Put them in a new private folder (mode 700, files 600) and run `install install --assets` on it; it checks every hash the same way. - - Then it proves the build: `/current/openwiz --build-identity` prints the version (`0.1.0`) and the source commit. The `openwiz` program lives there, not on your `PATH`: typing `openwiz` alone says "command not found". - -3. **Setup and logins.** Nothing opens in a browser by itself: the agent reads each connection with one check, run from the installed build, and reruns it after each change. + The agent checks that the downloaded manifest names version `0.1.1`, then activates the build and verifies its version and source commit. The installer checks the manifest checksum and verifies the package contents before activation. A failed verification leaves the last good build selected. ```sh - OPENWIZ_STATE_DIR= python3 -I -B /runtime/setup/setup.py check --state-dir + python3 -I "$openwiz/tools/install/install" install --assets "$assets" --target "$target" --root "$root" + "$root/current/openwiz" --build-identity ``` - It prints one code per part: `cloudroom`, `personal_github`, `github_app`, `harness` and `project`. On a new computer expect codes such as `app_missing`, `harness_unselected`, `identity_unselected` and `project_unprepared`: those wait until you pick a repository. A connection is ready only when a check proves it, never because a setting was saved. - - - **CloudRoom:** `runtime/cloudroom/cloudroom.py status` reads whether CloudRoom is installed and signed in; `runtime/cloudroom/cloudroom.py install` shows CloudRoom's published installer and its checksum and waits for your yes; `runtime/cloudroom/cloudroom.py sign-in` opens CloudRoom's own sign-in once, where you sign in yourself. Each takes `--state-dir `. CloudRoom is done when `check` reads `cloudroom_login_verified`. - - **GitHub:** `runtime/setup/github_login.py sign-in --state-dir ` reuses your existing `gh` login, or shows what GitHub's own browser sign-in will do and waits for your yes. You paste no token. - - **`identity_unreadable`** (for `personal_github`): GitHub's answer could not be read just then. Wait a minute and run `check` again; it usually clears. - -4. **Skills into your agents, then a restart.** Only now, with setup checked and the logins done, it copies OpenWiz's 18 skills into each agent found on this computer: `~/.claude/skills` (Claude Code), `~/.codex/skills` (Codex), `~/.cursor/skills` (Cursor), `~/.config/opencode/skills` (OpenCode) and `~/.grok/skills` (Grok). A skill of yours with the same name stops the step before anything is written. +3. **Connect GitHub.** The agent uses the `build` and `state_root` paths returned by the installer to check the connections. You complete any sign-in in your own terminal or browser. CloudRoom sign-in is required only for that host. ```sh - python3 -I "$openwiz"/tools/install/install skills --root + OPENWIZ_STATE_DIR="$state_root" python3 -I -B "$build/runtime/setup/setup.py" check --state-dir "$state_root" ``` - The install skill it copies comes from the 0.1.0 package: it is older (`version: 0.2.0`) and still sends the agent to a setup step that 0.1.0 removed. So the agent then overwrites each agent's OpenWiz `install` skill folder (the one holding `.openwiz-skill`) with the fixed one, and checks every copy by its content: +4. **Install the skills and restart the agent.** The installer puts the packaged skills in the install root and in the supported agent folders it finds. It places the contracts and plugin manifest beside the skills. The agent checks the result for its own folder, reports any same-named personal skill it skipped and verifies its installed copy of the install skill. ```sh - umask 077; fixed=/WizSkills - git clone --depth 1 --branch maint/0.2 https://github.com/openwizdev/WizSkills "$fixed" - if grep -q '^version: 0.2.2$' "$fixed/skills/install/SKILL.md" && ! grep -q 'install ope[n] ' "$fixed/skills/install/SKILL.md"; then - for d in ~/.claude/skills ~/.codex/skills ${CODEX_HOME:+"$CODEX_HOME/skills"} ~/.cursor/skills ~/.config/opencode/skills ~/.grok/skills; do - [ -f "$d/install/.openwiz-skill" ] || continue - cp -R "$fixed/skills/install/." "$d/install/" - if grep -q '^version: 0.2.2$' "$d/install/SKILL.md" && ! grep -q 'install ope[n] ' "$d/install/SKILL.md"; then echo "ok: $d/install"; else echo "STILL OLD: $d/install"; fi - done - else echo "NOT THE FIXED SKILL: nothing copied"; fi + python3 -I "$openwiz/tools/install/install" skills --root "$root" ``` - It copies the whole folder, scripts included, and only into folders marked as OpenWiz's own. Restart only when every line reads `ok:`. `NOT THE FIXED SKILL` means the download failed or WizSkills does not serve version 0.2.2 yet: nothing was copied, so do not restart; try again later. `STILL OLD` means that folder's copy did not take: fix it before restarting. A later `install skills` run, such as a repair, writes the old copy again: repeat this block after it. - - Your agent finds the skills the next time it starts. Restart it (a new session), then say exactly: "continue the OpenWiz install". It resumes at the first unfinished step, from the installed files. + Start a new session with the continuation message the agent gives you. For a local 0.1.1 install, it is `continue the OpenWiz install with host local and release v0.1.1`. The other host words are `boat` and `cloud`. The host and tag carry your choices through the restart. [Pinned WizSkills 0.4.2 install procedure](https://github.com/openwizdev/WizSkills/blob/v0.4.2/skills/install/SKILL.md) -5. **Explain.** A few sentences on ideas, grills, specs, tickets, builders, independent review and merges. -6. **First fleet.** The same agent continues through the install skill's first-fleet section when you want to try it: - - It offers a few quick ideas and a new private demo repository, or one of yours. That one repository is used from here on. - - It connects GitHub for that repository. Then you choose your own OpenWiz App (Create, then Install on that repository only) or skip it. If you skip it, your personal GitHub login acts for the factory and setup says so; the App is never shown as verified. - - It saves the project with your harness, model and effort, asked once, and makes its private brain (`openwiz init`): in your repository if it is private, or in a new private companion repository if it is public. It tells you where in one line and opens a pull request you merge. - - It grills you briefly and plans 4 to 7 small tickets. You confirm the spec, then approve the exact plan, as two separate answers. - - It asks where the agents run, then shows the start: one fleet thread with its own loop, which starts the approved tickets' builders and their reviewers. Only your yes to that starts anything, and that yes covers its Cloud Credits. +5. **Start a first fleet if you want one.** Choose a private demo repository or one of yours. Setup offers a personal GitHub login or your own GitHub App, records the selected project and asks for your harness, model and effort. You confirm the proposed work. For local agents you also choose the harness permission mode. Once the plan passes its checks and the host settings are ready, the agent names the host and cost and asks for your go before launch. [Grok Bot setup](grok-bot.md) -## What it may change, and when +OpenWiz is free now. Paid plans come later. CloudRoom and model charges are separate and not included. CloudRoom runs use Cloud Credits. Referral verification is unavailable. No referral is applied. [CloudRoom pricing](https://cloudroom.dev/pricing) -- **Nothing without your yes.** Before signing in, creating or skipping the GitHub App, saving project settings, creating the brain, setting up phone access or starting agents, the agent shows exactly what will happen and waits for your yes to that. -- **Installing is not approving work.** Saying yes to the install or setup approves no plan. Agents start only after you confirm a spec and approve its plan. -- **Your files.** The install writes only to its own folder (by default `~/.local/lib/openwiz`), its private state inside it, and OpenWiz's skills in your agents' skill folders (step 4). Existing settings, credentials and skills of your own are never replaced. -- **GitHub.** Your own OpenWiz App is private to your account and installed only on repositories you select, with read access to metadata, checks and actions and write access to contents, issues and pull requests. Your personal login acts only if you explicitly skip the App; an App that fails or is removed never switches to it on its own. -- **Credentials.** Keys stay in owner-only storage: OpenWiz's private state on this computer, or CloudRoom's own secret store. If setup asks you for the App's key, paste it only into CloudRoom's secret prompt. Never paste a key or token into the chat. -- **Cost.** OpenWiz is free now. Paid plans come later. CloudRoom and model charges are separate and not included. Cloud agents, including each fleet thread, use your CloudRoom Cloud Credits, and your model provider bills you directly. More credits are CloudRoom's own plan, bought from [CloudRoom](https://cloudroom.dev/pricing), not from OpenWiz. Referral verification is unavailable. No referral is applied. +## Recovery -## If it is interrupted or fails - -Start a new session of your agent and say "continue the OpenWiz install": every step checks what is already done before doing anything. A repeated install reuses the verified build. A refused install or update leaves the last good build in use. Setup, sign-in, App and brain steps remember their operation, so an interrupted step is finished or replaced, never done twice; an unclear result is checked before anything is retried. - -`install status --root ` checks the installed build against its manifest. If it reports `installed asset mismatch`, a file in the build was changed, and installing the same release again refuses the same way. To repair it and keep your settings, delete only the `/current` link and the one build folder it points to (``, inside `/service/builds/`), and nothing else in `/service/`. Then run step 2's `install install` again. If a connection shows a code that is not ready, follow its step above, then run `setup.py check` again. +Resume with the same host and release. The agent reads the installed state to find the first unfinished step. To check a build, run `python3 -I "$openwiz/tools/install/install" status --root "$root"`. If a build file is damaged, rerun the verified install with the same release assets and root. If you supplied a separate state root, pass the same `--state-root` to the installer. ## Remove it -Ask the agent to remove OpenWiz. There is no remove command, and the agent never removes the whole of ``: the installer accepts a folder that already holds other files, so it may hold yours. - -- **Look first.** List what is in `` (`ls -A `). A fresh install puts exactly these there: `current` (a link to the installed build), `channel.json`, `install.lock`, `skills/` (after step 3) and, unless you gave a separate `--state-root`, `state/` (your ``, below). Delete only `current`, `channel.json`, `install.lock` and `skills/`. Keep anything else, and any of those names that was there before you installed: you or another program put it there. -- **Then look in ``** (`ls -A `). It is never deleted as a whole: the installer also accepts a state folder that holds other files. OpenWiz's own entries there are exactly these: - - **the builds:** the folders in `/service/builds/`, each named by a 40-character source commit and holding an `install-manifest.json` whose `"source"` is that same name; - - **your settings:** `/setup/`, `/cloudroom/`, and in `/service/`: `config.json` (the Decisions repository pair, saved when your brain is in a companion repository), `app/` (your OpenWiz App's saved settings and key), and `state.json`, `loops/` and `clone/` when present. -- **To keep your settings,** delete only those verified build folders. `/service/` is never deleted as a whole. -- **To delete your settings too,** delete exactly the named entries above that exist, then `rmdir /service/builds /service `. `rmdir` removes a folder only when it is empty, so anything of yours or another program's stays; if it says a folder is not empty, leave that folder. Last, `rmdir ` removes the install folder if nothing else is left in it. -- **The skill copies stay.** To remove them, delete only OpenWiz's 18 skill folders from each agent's folder listed in step 4: `ask-wiz`, `build-ticket`, `diagnose`, `grill`, `handoff`, `hill-climb`, `huntr`, `image`, `install`, `launch-fleet`, `research`, `review-ticket`, `setup`, `to-spec`, `to-tickets`, `triage`, `wayfind` and `where-are-we`. Other skills there are yours. -- Your repositories, branches, pull requests and CloudRoom threads are your work and are never deleted. +Ask the agent to remove OpenWiz. If a local fleet heartbeat was installed, the agent identifies its scheduled jobs and previews their removal first. The installer then shows the exact files and settings it would delete: -**Removing OpenWiz from this computer does not revoke its access.** To revoke it: +```sh +python3 -I "$openwiz/tools/install/install" remove --root "$root" +``` -- uninstall OpenWiz's GitHub App, or remove repositories from it, in your GitHub settings; -- delete any Cloudflare Tunnel and Access application, or Tailscale rule, made for phone access; -- delete a fleet thread's loop in CloudRoom when you no longer want that fleet to run. +Review the list before adding `--yes`. For a separate state root, include the original `--state-root` in both commands. The result lists the OpenWiz skill copies in each agent folder for manual cleanup. Revoke the GitHub App in GitHub and remove any phone-access tunnel or CloudRoom loop separately if you want those gone too.