Coworker Protocol (CWP) defines how people, AI, and software work together. The Coworker Runtime runs actions and records what happened. RBel is a programming language built for people, ai, and software to work together. An RBel document can explain a rule, define it in executable code, and put a runnable example beside it.
Download RBel for macOS and unzip it.
Download the RBel quickstart document
and save it next to the rbel executable. From that folder, run:
./rbel --eval-with quickstart.rbel.md '(score 5)'The command prints 7. Change the bonus in the document from 2 to 3 and run it again to get 8.
A person opens the adventure as the game master. On the next turn, software takes over the same role and asks a dice roller what happens when you offer a berry. You can follow the game master's reply back to the stored roll.
Download the demo source that matches the macOS preview.
Unzip it next to the extracted rbel executable. In Terminal, enter the
extracted coworker-protocol-… folder and run:
../rbel areas/cwp/text-adventuring/invocation-pocket-monster.rbel.mdThe walkthrough runs in memory and ends with a prepared watchtower reply. To continue the scene with a live AI game master, follow the Codex setup guide.
- Why Coworker Protocol: Randall Bennett’s essay on cooperation, authority, and room for judgment.
- Read the Coworker Protocol draft for the coworker definition.
- Explore proposed extensions and the criteria for adding them to the core.
- Open the Pocket Monsters walkthrough to follow the messages and roll in the source.
- Known adventure REPL failures, with captured inputs, transcripts, and an opt-in rerun.
- Run more walkthroughs and checks, including the dice-roll lifecycle, pack assembly, and Dungeon Crawler.
Use the Nix development shell when working on the repository or running examples from your checkout. With flakes enabled, run this from the repo root:
nix develop -c ./coworkers/bin/rbel areas/cwp/text-adventuring/invocation-pocket-monster.rbel.md