playground-rebuild · git:20260916.722a981 · 2026-09-16 · sha256 251bc3b16ade0523

playground-rebuild git:20260916.722a981B

Immutable. This exact content never changes and is served at /api/v1/blob/251bc3b16ade0523.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_7dyajlzydiuq4426/251bc3b16ade052327f7d68ce1ccffb664e195967569f56383f69163d616ab1f.json

Then /plugin install playground-rebuild@markdownregistry-7dyajlzydiuq4426 in Claude Code. It installs this exact version, the one graded B here, pinned to the commit it was graded at, and leaves it there.

---
name: playground-rebuild
description: Rebuild and serve the WASM playground at docs/playground/. Use after editing the playground source or any code reachable from cmd/agnostic-ai-wasm.
---

# playground-rebuild

The hosted playground at https://chemaclass.github.io/agnostic-ai/ runs the same code as the CLI, compiled to WebAssembly via `cmd/agnostic-ai-wasm`.

## Build

```
make playground-build
```

Writes `docs/playground/agnostic-ai.wasm` and copies the Go-toolchain `wasm_exec.js` shim. Both are gitignored; CI regenerates them on push to `main`.

## Serve locally

```
make playground-serve
```

Builds the Zola site and WebAssembly bundle, assembles the same tree published by GitHub Pages, then serves `_site/` with `python3 -m http.server 8080`. Open http://127.0.0.1:8080/playground/.

`file://` does not work because browsers refuse `WebAssembly.instantiateStreaming` on local files.

## After edits

- `index.html`, `playground.js`, or `style.css` changes: restart the server so `_site/playground/` receives the update, then refresh the browser.
- Go source changes: rebuild with `make playground-build` first, then refresh.

## Clean

```
make playground-clean
```

Removes the generated `.wasm` and `wasm_exec.js`.