wado / wado-host
AGENTS.md120 starsChanged 14 days agoMITView on GitHub
The native host pieces that wado-cli, wado-dev-tools, the runners, and wado-compiler-tests share. - This crate exists so that the compiler's tests never depend on wado-cli. It depends on the compiler, so nothing here may be needed by the compiler library itself. - The toolchain feature, on by default, gates what needs the compiler. A runner turns it off, so everything a guest reaches and the command line of a run stay free of it. - It is native-only. Code the…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmark/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- package-gale/AGENTS.mdAGENTS.md
- package-grog/AGENTS.mdAGENTS.md
- package-jade/AGENTS.mdAGENTS.md
- package-loam/AGENTS.mdAGENTS.md
- package-re/AGENTS.mdAGENTS.md
- package-wadopoet/AGENTS.mdAGENTS.md
- wado-cli/AGENTS.mdAGENTS.md
- wado-compiler/AGENTS.mdAGENTS.md
- wado-from-idl/AGENTS.mdAGENTS.md
- wado-lsp/AGENTS.mdAGENTS.md
- wado-manifest/AGENTS.mdAGENTS.md
- wado-run-pjrt/AGENTS.mdAGENTS.md
- wado-run-webgpu/AGENTS.mdAGENTS.md
- wado-vscode/AGENTS.mdAGENTS.md
- benchmarkSkill
- ci-timingSkill
- code-review-responseSkill
- coverage-investigationSkill
- crSkill
- debuggerSkill
- distillSkill
- git-upstream-syncSkill
- jcoSkill
- markdownSkill
- on-task-doneSkill
- optimizer-debugSkill
- profiling-wado-compilerSkill
- pull-requestSkill
- rust-renameSkill
- rustSkill
- vendor-submodulesSkill
- wado-cliSkill
- wado-performanceSkill
- wasm-optSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Put a piece here once a second crate needs it, not before.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
wado-host
The native host pieces that wado-cli, wado-dev-tools, the runners, and
wado-compiler-tests share.
Rules
- This crate exists so that the compiler's tests never depend on
wado-cli. It depends on the compiler, so nothing here may be needed by the compiler library itself. - The
toolchainfeature, on by default, gates what needs the compiler. A runner turns it off, so everything a guest reaches and the command line of a run stay free of it. - It is native-only. Code the browser also runs belongs in
wado-lsp, which must build forwasm32-unknown-unknown. - Put a piece here once a second crate needs it, not before. What only
wadoneeds stays inwado-cli.
Module Map
timezone.rs— the host forwasi:clocks/timezone, which wasmtime binds but does not implement.stub_host.rs—StubHost,wado-lsp'sFilesystemCompilerHostwith the dependency index and environment answered fromHostStubs. It compiles the e2e fixtures for both the tests and the golden dumps.fixture.rs—CompileInputs, the__DATA__keys that say how to compile a fixture. The e2e harness and the golden dumps both read them, so a golden records the program its test runs.kiln/— the Kiln pipeline (driver.rs), the generator runtime (runtime.rs), the compiled-component cache (component_cache.rs), and the per-invocation cache state (metadata.rs).wadofeeds the pipeline its own generator provider;local.rsfeeds it the generators a fixture names, each compiled after its own invocations have run.random.rs— the fixed-seedwasi:random/insecureandinsecure-seedthat a Kiln generator, acore:evalprogram and a test get, so each stays a function of its input.sync.rs— how production code locks a mutex and joins a task or thread. A poisoned guard is recovered, and test mocks may stillunwrap. A panic in a joined task continues in the caller, and one in a thread nobody joins ends the process.sandbox.rs— spawning a child confined to the guest's grants plus a fixed baseline, forcore:process: Landlock and seccomp insandbox/linux.rs,sandbox-execinsandbox/macos.rs, and the terminal a child holds as a shell's job does insandbox/terminal.rs. See WEP:core:process.process_host.rs— thecore:processhost: whether a guest may spawn, and the streams and kill of each child.sandbox.rsconfines it.http_hooks.rs— thewasi:httpclient's connections, on the trust store oftls_trust.rs.user_config.rs— the user's~/.config/wado/config.toml($XDG_CONFIG_HOME): the Wado root and[process] read. Read once, and ignored whole when another user could have written it.path_search.rs— finding a program onPATH, forwado <name>,core:process, and a runner started withoutWADO.ticker.rs—Ticker, a thread on an interval that dropping stops and joins.engine.rs— the Wasm features and GC defaults every wasmtime engine takes, so the e2e harness runs a program aswadodoes, and the fuel-metered engine generators andcore:evalrun on.options.rs— every optionwadoand the runners share, with theCliExita command ends in.wado-cliapplies a compile knob to the compiler's types; a runner passes it on as spelled.guest.rs— what a guest reaches, on every host: the store data, the linker and the engine under the runtime knobs. A host embeds aGuestStateand names the field toguest_views!.runner.rs— whatwado runand eachwado run-*subcommand share, so a program behaves the same under all of them: the command line, the compile (wado build -o -), the run and the guest profile.gc_log.rs—--gc-log, read off wasmtime's trace log, the only place it reports a collection.fuel.rs— the price of each Wasm operator in fuel, which every metered engine takes. See WEP: Fuel Benchmarks.
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
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.

