agentleFS
wado-langwado-lang/wado/wado-run-webgpu/AGENTS.md

wado / wado-run-webgpu

AGENTS.md120 starsChanged 14 days agoMITView on GitHub

The wado run-webgpu subcommand: it compiles a Wado program with wado and runs the component on a wasmtime host that serves wasi:webgpu. - This crate is a workspace of its own and is excluded from the repository's, so that nothing at the repository root builds wgpu. Nothing here is built by cargo build at the repository root, mise run test, or the repository's clippy and fmt jobs. The test-webgpu CI job is what builds, lints and tests it, on every…

The file

Files
AGENTS.md

wado-run-webgpu

The wado run-webgpu subcommand: it compiles a Wado program with wado and runs the component on a wasmtime host that serves wasi:webgpu.

Rules

  • This crate is a workspace of its own and is excluded from the repository's, so that nothing at the repository root builds wgpu. Nothing here is built by cargo build at the repository root, mise run test, or the repository's clippy and fmt jobs. The test-webgpu CI job is what builds, lints and tests it, on every change that is not documentation.
  • wasi-webgpu-wasmtime must build on the wasmtime the repository pins, since this crate shares wado-host's runner.
  • A program behaves the same here as under wado run, which is the only reason to have both. wado_host::runner, guest and options hold what makes that so, and a divergence is a defect, not a variant.
  • The tests set WADO as wado does (External Subcommands), so the tests and a real invocation reach the compiler through one path.
  • Running needs a GPU adapter. wgpu finds none without a driver, and the host says so and exits rather than letting the guest see request-adapter answer none. On Linux mesa-vulkan-drivers supplies the lavapipe software adapter, which is what CI installs; macOS answers with Metal and Windows with D3D12.
  • Dependencies live in this crate's own Cargo.toml, there being no workspace above it to hold them. The other Rust rules apply as written.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.