Sulat.com / Writing on AISunday, December 6, 2026
Enter →
Agent Engineering/6 December 2026

ohmyrust gives coding agents a Rust checklist

ohmyrust is an MIT-licensed skill and set of Node scripts that scaffold, audit and gate Rust projects for coding agents. I ran every command on a fresh project and on a deliberately bad one.

3D charcoal rs tile with a rust-orange corner beside a gate barrier with green and amber lights and stacked build crates
Illustration: Sulat, featuring the ohmyrust logo

At a glance

  • ohmyrust is an MIT-licensed skill with zero-dependency Node scripts, and its installer copies the skill into Claude Code, Codex, Google Antigravity and Gemini CLI, Cursor, OpenCode and the shared .agents folder.
  • I ran its scaffold, doctor, init, audit and gate commands on a fresh project: the gate passed in about 11 seconds and marked the two tools I hadn't installed as degraded, not passed.
  • On a 14-line Rust file full of bad habits, the audit flagged six of eight patterns and exited with code 2, and it didn't flag a dropped fs::read result or a private Box function.
  • With RUSTC_WRAPPER set to kache and sccache in the project's cargo config, doctor stopped with exit code 2 and told me to keep only one wrapper.
  • The caching and porting tools it recommends are separate projects I didn't install, so the post's build caching and verified porting come from those tools, not from ohmyrust's own scripts.

ohmyrust is an open-source skill and command-line toolkit that tells a coding agent how to start, audit, lint, test and clean a Rust project, and marks a missing check as degraded instead of passed. Developer erKam (@erkamyaman_ng) posted it on X on 6 December as a Rust toolkit that gives agents build caching, strict Clippy, verified porting and no dependencies. The code is in the agnogad/ohmyrust repository under the MIT licence.

erKam’s post on X, 6 December 2026.

I cloned it, installed it into a throwaway home folder and ran every command it ships on a 4-core, 16 GB RAM Ubuntu 24 machine. I used a fresh project and a deliberately bad one. I didn’t run a coding agent through the skill, and I didn’t install the third-party tools it recommends.

What it is

The repository holds one skill folder, skills/ohmyrust, with a SKILL.md that an agent reads, seven reference guides and seven Node scripts. The scripts need Node 18 or later and nothing from npm: the package file lists no dependencies. Each one takes --json and exits 0 when clean or 2 when something blocks, so an agent can read the result without parsing prose.

The README sorts the Rust tooling an agent might reach for into five layers and says to pick one tool from each. Most of it is other people’s work: kache, cargo-steward and cargo-gc for the build cache, bacon and cargo-nextest for the fast loop, BeautifulRust’s lint settings, rust-anything and fast-anything for porting, and anomalyco/rune for GPU interfaces. ohmyrust’s own code is the glue: a scaffold, a toolchain check, a lint installer, a static scan, a disk check and a gate.

Five stacked layers of ohmyrust: build cache, fast loop, strict lints, porting and crates with one tool each
The README picks one tool per layer and never two build-cache wrappers at once.

A fresh project passes in about 11 seconds

I started with the scaffold command, which writes a Rust project with a clippy.toml, a deny.toml, a justfile and a .ohmyrust/project.json that records the project’s decisions for later runs. Then I ran doctor and gate.

Code
git clone https://github.com/agnogad/ohmyrust
node ohmyrust/skills/ohmyrust/scripts/ohmyrust.mjs new cli demo-app
node ohmyrust/skills/ohmyrust/scripts/ohmyrust.mjs doctor --cwd demo-app
node ohmyrust/skills/ohmyrust/scripts/ohmyrust.mjs gate --cwd demo-app

The gate ran the static audit, cargo fmt --check, Clippy with warnings denied and the tests, and all four passed. It then reported cargo-deny and cargo-machete as degraded because neither was installed. The README calls this an invariant: a missing tool is never counted as a pass. The whole gate took about 11 seconds, most of it Clippy and the test build.

ohmyrust gate: fmt, clippy and tests pass while a missing cargo-deny is marked degraded, never a quiet pass
A tool that isn’t installed shows as degraded, so an agent can’t report a clean gate it didn’t run.

The init command does the same job for a project that already exists. On a plain cargo init project it listed what it would create in a dry run, then with --apply --linker lld --ci github it added the lint files, a GitHub Actions workflow and a .cargo/config.toml, and appended lint settings to Cargo.toml. The gate passed on that project too.

What the audit caught in a bad file

For the audit I wrote a 14-line main.rs with two unwrap() calls, a panic!, an unsafe block with no safety comment, dbg! and todo!, an #[allow] with no reason, two bool parameters, a dropped fs::read result and a Box<dyn Error> return type. The audit scored it 20 out of 100, reported four errors and four warnings and exited with code 2. A scan of the fresh scaffold took 72 milliseconds including Node’s start-up.

Terminal output of ohmyrust audit scoring 20 out of 100 and doctor blocking two RUSTC_WRAPPER tools with exit code 2
The audit’s output on my bad file, and doctor’s block when two cache wrappers are set.

Six of the eight patterns were flagged. The dropped fs::read result wasn’t: the audit’s rule for silent drops only matches send, write, write_all, flush, remove_file and create_dir_all. The Box<dyn Error> rule is aimed at public APIs, and mine was a private function. The audit works line by line on the .rs files, which is why it finishes in milliseconds and why it misses anything its patterns don’t spell out.

Checklist of eight bad Rust patterns in a test file: audit flagged six and missed a dropped fs read and a Box dyn Error
Six of the eight bad habits in my test file were flagged by the audit.

The scaffold’s lint settings cover more than the audit does. Running plain cargo clippy on the same file in the scaffolded project failed with seven errors, including the unwrap calls, the panic, the missing safety comment, the dbg! macro, the unexplained allow and the bool parameters. The gate runs both layers in one pass.

One build-cache wrapper, enforced

Rust’s build-cache tools hook in as a RUSTC_WRAPPER, a program Cargo runs in front of the compiler, and only one can sit there. To test doctor I set the environment variable to kache and put sccache in the project’s .cargo/config.toml. It stopped with exit code 2 and the line “Multiple RUSTC_WRAPPER tools configured… Keep only one.” This is the guardrail the README lists first.

ohmyrust doctor blocks stacked build cache wrappers: crossed-out wrenches versus one ticked wrench for one RUSTC_WRAPPER
Two cache wrappers at once is a blocking error in doctor, not a warning.

What it doesn’t do itself

The post’s four selling points need a closer reading. ohmyrust has no caching code. Its clean command measured my scaffold’s ./target folder at 8.44 MB, reported “strategy: none” and told me to install cargo-gc or cargo-steward. Caching starts only when one of those is on the machine.

The same applies to porting. The skill’s port command is an instruction to read references/porting-to-rust.md, which sends the agent to fast-anything for speeding up the slow parts of an app or to rust-anything for moving a whole app piece by piece. The recorded-run checks that make that porting verified belong to those tools. I covered rust-anything’s record, replay and gate loop in an earlier piece.

“Strict Clippy” holds up, since the scaffold ships the deny-level settings and the gate runs Clippy with warnings denied. “Zero deps” holds up for the Node scripts. The scaffolded Rust projects still pull in whatever crates their template needs.

Install

The installer looks for agent folders in your home directory and copies the skill into each. With .claude and .codex present in a throwaway home, it installed to both. The README lists Claude Code, Codex CLI, Google Antigravity and Gemini CLI, Cursor, OpenCode and the shared .agents folder as targets. The repository’s own test suite, 17 tests, passed with npm test.

Code
node bin/install.js                  # every agent it finds
node bin/install.js --target claude  # one agent
node bin/install.js --project /path/to/repo

Where it sits

Nothing in the checks is new: Clippy, rustfmt, cargo-deny and cargo-nextest already exist, and a team can put the same lints in Cargo.toml by hand. What ohmyrust adds is a fixed order, a score, exit codes an agent can act on and the degraded status for missing tools. The project is at version 0.1.0 and its licence names “ohmyrust contributors” as the copyright holder.

The same pattern exists for Go. ohmyGO, an MIT-licensed project by boracomet, uses the same audit, scaffold, build and gate loop for Go, with one Go program in place of Node scripts. Its README says the audit reads Go’s syntax tree rather than matching text, which is the main difference from ohmyrust’s line scan.

ItemohmyrustohmyGO
Language it checksRustGo
Toolkit written inNode.js scriptsGo
How the audit reads codeLine patterns on .rs filesGo syntax tree, per its README
Lint config it installsclippy.toml, [lints] in Cargo.toml, deny.toml.golangci.yml
Missing tool in the gateDegradedDegraded
LicenceMITMIT
From each project’s README and files. I ran ohmyrust only.

I ran the scripts directly and didn’t put an agent through either project’s skill.

Sources