Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ jobs:
if: matrix.part == 2
run: |
python3 -I tools/install/test_install.py
python3 -I tools/install/test_phrase.py
python3 -I tools/install/test_pull.py
python3 -I tools/install/tests/public-release-security/baseline/test_baseline.py
python3 -I tools/install/tests/public-release-security/test_candidate.py
Expand Down
37 changes: 37 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,43 @@ OpenWiz runs coding agents in fleets: the user approves a plan, and agents build
- Once per clone, `git config core.hooksPath .githooks`: the pre-push hook runs the privacy check.
- The skills read the project's settings in [`docs/agents/`](docs/agents/). Change a skill in WizSkills and move the `wizskills.lock` pin, never here.

## Install OpenWiz

The install instruction is exactly this phrase:

> Install OpenWiz

A person says that to their coding agent (Claude Code, Codex, Cursor or another). That phrase is enough to start. Ask only where your agents run, and for a yes before each change the install shows. The repository is https://github.com/openwizdev/OpenWiz. You need Python 3.9 or later, `git` and `gh`.

1. Resolve the release:

```sh
curl -sS --proto '=https' -o /dev/null -w '%{redirect_url}\n' https://github.com/openwizdev/OpenWiz/releases/latest
```

The printed URL ends in `/tag/<tag>`. `<version>` is `<tag>` without the leading `v`. With no `/tag/` in the URL, GitHub has no Latest release: stop and say so. Use `<tag>` only when the whole value matches `v(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)`. Use `<commit>` only when the whole value matches `[0-9a-f]{40}`. Any other value stops the install, including one that starts with `-`.

2. Read that release's install skill and follow it from the top in this session. Run the commands yourself.
- `0.1.0`: the skill is https://github.com/openwizdev/WizSkills/blob/33eef93ba30cd8db256f6fe270e3ed28747a79bd/skills/install/SKILL.md and the command reference is [the 0.1.0 steps](docs/install.md#openwiz-010). Clone tag `v0.1.0`. This release's skill is that commit, not the `commit` in that tag's `wizskills.lock`. When the skill URL cannot be read directly, recover the pinned skill by commit into a new private temporary directory (`wizskills=$(mktemp -d)`):

```sh
wizskills=$(mktemp -d)
git init -q -- "$wizskills"
git -C "$wizskills" fetch -q --depth 1 -- https://github.com/openwizdev/WizSkills 33eef93ba30cd8db256f6fe270e3ed28747a79bd
git -C "$wizskills" switch -q --detach FETCH_HEAD
```

Verify `git -C "$wizskills" rev-parse HEAD` equals `33eef93ba30cd8db256f6fe270e3ed28747a79bd` and `git -C "$wizskills" rev-parse HEAD:skills/install` equals `30d1eaf27658efd8f781f98703fbbdb81bcd705d`, then follow `"$wizskills"/skills/install/SKILL.md` and [the 0.1.0 steps](docs/install.md#openwiz-010). If that fetch fails or either hash mismatches, stop and say so: never proceed to a restart on the 0.1.0 archive's packaged `install` skill (`version: 0.2.0`, which tells a restarted agent to run `install open`).
- Any other `<tag>`, including `v0.1.1`: set `$openwiz` to a new private temporary directory (`openwiz=$(mktemp -d)`), then clone that tag:

```sh
git clone --depth 1 --branch "$tag" -- https://github.com/openwizdev/OpenWiz "$openwiz"
```

Read `wizskills.lock` in that clone. The skill is `https://github.com/openwizdev/WizSkills/blob/<commit>/skills/install/SKILL.md`, where `<commit>` is the lock's `commit`. The lock's `version` is that WizSkills release. The command reference is `docs/install.md` in the clone. When the skill cannot be read, follow that file and run each command yourself. The clone is already at `<tag>`. When the clone has no `wizskills.lock`, or the lock has no `commit`, stop and say so. The numbered steps in that guide expect build identity `0.1.1`. When `<version>` is not `0.1.1`, stop unless that guide expects `<version>`. Check that selected `<version>` before downloading or activating anything, pass `--version "$tag"` to `install download` so it fetches `<tag>` rather than GitHub's Latest release, and verify `download`'s reported `"version"` matches `<version>` before running `install install` to activate it.

CloudRoom is optional. Its install and sign-in run only when the person picks CloudRoom.

## Public and private

Everything on this repository is public; private records live in `jparker2006/ClosedWiz`. Before any public write, read the [public-writes card](docs/agents/public-writes.md); `python3 -I skills/launch-fleet/scripts/context.py <role>` prints it with your role's settings. Release, publishing, privacy-check and importer work also needs the full [open development contract](contracts/open-development.v1.md).
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ You make the decisions: answer a few questions. The agents run the factory: they

## Quick start

You 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):
Tell your coding agent (Claude Code, Codex, Cursor or another):

> Install OpenWiz from github.com/openwizdev/OpenWiz
> Install OpenWiz

Your agent follows 0.1.0's [install skill](https://github.com/openwizdev/WizSkills/blob/33eef93ba30cd8db256f6fe270e3ed28747a79bd/skills/install/SKILL.md) (WizSkills `maint/0.2`). First it asks where your agents run: **this computer**, with the Claude Code or Codex you're signed in to; **boat.dev**; or **[CloudRoom](https://cloudroom.dev)**. CloudRoom is optional: the install never needs it, and its install and sign-in run only if you pick it. In 0.1.0 the automatic fleet runs in CloudRoom; without CloudRoom you plan, start each builder by hand on this computer or on boat.dev, and review its pull request yourself.
That phrase is the whole install instruction. The agent follows [Install OpenWiz](AGENTS.md#install-openwiz): it reads GitHub's Latest release and that release's install skill, then runs the install. Any release other than 0.1.0 is cloned only when the whole value of `<tag>` matches `v(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)`, using `git clone --depth 1 --branch "$tag" -- https://github.com/openwizdev/OpenWiz "$openwiz"`, and follows the `commit` in that clone's `wizskills.lock`. You need Python 3.9 or later, `git`, and the GitHub CLI (`gh`). It asks where your agents run: **this computer**, with the Claude Code or Codex you're signed in to; **boat.dev**; or **[CloudRoom](https://cloudroom.dev)**. CloudRoom is optional: the install never needs it, and its install and sign-in run only if you pick it. 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. OpenWiz is free. Your model and host charges are your own.

It checks your computer, installs the verified prebuilt 0.1.0 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's 0.1.0 steps](docs/install.md#openwiz-010) for every step and command. OpenWiz is free. Your model and host charges are your own.
### OpenWiz 0.1.0

OpenWiz 0.1.0 ("OpenWiz 0.01") is the current release. Its commands are the [install guide's 0.1.0 steps](docs/install.md#openwiz-010). In 0.1.0 the automatic fleet runs in CloudRoom; without CloudRoom you plan, start each builder by hand on this computer or on boat.dev, and review its pull request yourself.

### OpenWiz 0.1.1

Expand Down
2 changes: 1 addition & 1 deletion docs/evidence/2227/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It reads `README.md` and `docs/install.md` and prints one line per failure:
2. **CloudRoom's install is conditional:** every line that runs `cloudroom.py install` says "only if you pick" CloudRoom, and no "Before you start" bullet lists CloudRoom without saying it is optional.
3. **The three hosts, this computer first:** each file has a line that names this computer, boat.dev and CloudRoom in that order and says "CloudRoom is optional".
4. **0.1.0 and 0.1.1 told apart:** each file has a sentence saying that on 0.1.0 the automatic fleet runs in CloudRoom, and one saying 0.1.1 runs it on this computer.
5. **The 0.1.1 path is the default (review R1):** each file has a section headed with 0.1.0; outside it, no `maint/0.2` link and a link to the install skill at WizSkills `v0.4.0`. The guide clones `v0.1.1`, expects build identity `0.1.1`, and has no `maint/0.2` overwrite step outside the 0.1.0 section.
5. **The release path (review R1):** each file has a section headed with 0.1.0; outside it, no `maint/0.2` link. README and the install guide both derive the skill from `wizskills.lock` and clone with `--branch "$tag" --` before the repository only after the whole tag matches `v` and three numeric parts with no leading zeros. Both refuse a hardcoded WizSkills `v0.4.0` pin and a `--branch v0.1.1` clone. The guide expects build identity `0.1.1` and has no `maint/0.2` overwrite step outside the 0.1.0 section.
6. **Intel Mac (R2):** no line says an Intel Mac installs only from 0.1.1.
7. **The heartbeat (R3):** nothing says it "wakes the fleet every ten minutes"; the guide says it checks every ten minutes and wakes only when work is due, that boat.dev fleets use it too, lists `jq`, and says a same-family review is marked.
8. **Removal (R4):** the guide's "Remove it" names `heartbeat.py pause`, `heartbeat.py remove` and `install remove`, and nothing says there is no remove command.
Expand Down
15 changes: 11 additions & 4 deletions docs/evidence/2227/check_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@ def release_path(name, text):
failures.append(f'{name}: no clearly marked 0.1.0 section (a heading naming 0.1.0)')
if 'blob/maint/0.2/' in default:
failures.append(f'{name}: the default path links the 0.1.0 maintenance skill (maint/0.2)')
if 'WizSkills/blob/v0.4.0/skills/install/SKILL.md' not in default:
failures.append(f'{name}: the default path does not link the 0.1.1 install skill at WizSkills v0.4.0')
if name in ('README.md', 'docs/install.md'):
if 'WizSkills/blob/v0.4.0/' in text or 'WizSkills 0.4.0' in text:
failures.append(f'{name}: pins WizSkills 0.4.0')
if '--branch v0.1.1' in text:
failures.append(f'{name}: clones the fixed v0.1.1 tag')
if 'wizskills.lock' not in default:
failures.append(f'{name}: the default path does not derive the skill from wizskills.lock')
if 'git clone --depth 1 --branch "$tag" -- https://github.com/openwizdev/OpenWiz' not in default:
failures.append(f'{name}: the default path does not clone the release tag with -- before the repository')
if 'v(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)' not in default:
failures.append(f'{name}: the default path does not check the whole tag against a strict pattern')
if re.search(r'Intel Mac[^.]*from 0\.1\.1', text):
failures.append(f'{name}: says an Intel Mac installs only from 0.1.1')
if re.search(r'(?i)wakes the fleet every ten minutes', text):
Expand All @@ -79,8 +88,6 @@ def release_path(name, text):
if name == 'docs/install.md':
if "'^version: 0.2.2$'" in default or '--branch maint/0.2' in default:
failures.append(f'{name}: the default path still overwrites the install skill with maint/0.2')
if '--branch v0.1.1' not in default:
failures.append(f'{name}: preflight does not clone the v0.1.1 tag')
if 'prints the version (`0.1.1`)' not in default:
failures.append(f'{name}: the build identity check does not expect 0.1.1')
flat = ' '.join(text.split())
Expand Down
9 changes: 7 additions & 2 deletions docs/first-hour.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ Open `http://127.0.0.1:7370/#first-hour`. On a computer, **First hour** is
also in the sidebar. On a phone, search for "Go to First hour". The page shows
six steps, and each step shows only what OpenWiz has actually read:

1. **Install OpenWiz.** Paste the one install line into your coding agent; see
[Install OpenWiz](install.md).
1. **Install OpenWiz.** Tell your coding agent:

> Install OpenWiz

That phrase is the whole install instruction. The agent follows
[Install OpenWiz](../AGENTS.md#install-openwiz). Today's commands are the
[0.1.0 steps](install.md#openwiz-010).
2. **Connect your accounts.** **Open setup** goes to the setup page. Each
connection is checked on its own, and CloudRoom's one sign-in screen is on
the CloudRoom step. Setup checks your agent harness login. It does not check
Expand Down
6 changes: 3 additions & 3 deletions docs/grok-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ Every sign-in and connection below is your own click. OpenWiz never touches a lo

## Run a first fleet

Today a fleet starts from your computer, not from Grok Bot. In Claude Code or Codex, paste:
Today a fleet starts from your computer, not from Grok Bot. In Claude Code, Codex or Cursor, say:

> Install OpenWiz from github.com/openwizdev/OpenWiz
> Install OpenWiz

Then follow [Install OpenWiz](install.md) and [Your first hour](first-hour.md). The fleet runs on CloudRoom. Your Bot may be able to follow it through the same GitHub issues and pull requests, for example "Use where-are-we on my repository". Untested.
That phrase is the whole install instruction. The agent follows [Install OpenWiz](../AGENTS.md#install-openwiz). Today's commands are the [0.1.0 steps](install.md#openwiz-010), then [Your first hour](first-hour.md). The fleet runs on CloudRoom. Your Bot may be able to follow it through the same GitHub issues and pull requests, for example "Use where-are-we on my repository". Untested.

## What works today, in 0.1.1 and later

Expand Down
Loading