playground-rebuild · git:20261102.2ad9b4a · 2026-11-02 · sha256 1d9ca5fadb8d9983

playground-rebuild git:20261102.2ad9b4aB

Immutable. This exact content never changes and is served at /api/v1/blob/1d9ca5fadb8d9983.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_7dyajlzydiuq4426/1d9ca5fadb8d9983afaec4c60d9eb0bb193468fd0e48792cacc669de71a17fcd.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: "Use after editing the playground source or code reachable from cmd/agnostic-ai-wasm"
---

# playground-rebuild

The hosted playground at https://agnostic-ai.org/playground/ 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 `wasm_exec.js`, the helper script from the Go toolchain. 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 files that GitHub Pages publishes, 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

For frontend or Go source changes, stop the server started for this task and rerun `make playground-serve`, then refresh the browser. This rebuilds and copies the bundle into `_site/playground/`. `make playground-build` alone updates `docs/playground/`, leaving the served copy stale.

Exercise the changed spec and target in the browser and inspect its generated output or error. Record the scenario and result. Select any additional checks from repository-root `docs/internal/contributing.md`, section "Choose checks for your change".

## Clean

```
make playground-clean
```

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