Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/ivanwng97/pixtuoid/rustgit clone --depth 1 https://github.com/IvanWng97/pixtuoidWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00817 | $0.00817 |
| Opus 5 | $0.00409 | $0.00409 |
| Sonnet 5 | $0.00163 | $0.00163 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade A, and why
pixtuoid rust.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust standards — pixtuoid
These apply to all Rust in this Cargo workspace. The authoritative source is the
root CLAUDE.md and the nested crates/*/CLAUDE.md — read those for the
architecture invariants. Many things that look like a bug are documented,
load-bearing design — read the item's own doc comment. This file is the
condensed coding-standard slice.
Errors & panics
- No
unwrap()/expect()in non-test code. Tests may unwrap freely. - App/binary code propagates errors via
anyhow::Result. Core (pixtuoid-core) reaches forthiserroronly when a typed error becomes load-bearing. - The hook listener and JSONL watcher log and continue on malformed input — they never panic.
- The hook shim must always exit 0 silently on any error — blocking Claude Code breaks the user's primary workflow. The 200 ms write timeout is non-negotiable.
Crate boundaries (load-bearing)
pixtuoid-coreandpixtuoid-scenehave no terminal/window dependencies — never addratatui,crossterm,winit,softbuffer, orstdout/println!there (the crate boundary +just archenforce it). Terminal/window code lives only in thepixtuoidbinary's painters over the engine's render seam (pixtuoid_scene::floor::render_floor/pixel_painter::render_to_rgb_buffer). There is no core render trait.- Events flow through one channel typed
mpsc::Sender<(Transport, AgentEvent)>. Don't hardcodeTransport::Hookon the consumer side — eachSourcetags its own events. - The
Sourcetrait is the only seam for adding agent CLIs. Don't bypass it.
Logging
- Use
tracing::{info, warn, error}— notprintln!/eprintln!. The only exceptions are the headless summary and explicit user-facing CLI output.
Tests (TDD-first)
- Write the failing test before the implementation. Don't add code without a test that exercises it.
- Unit tests:
#[cfg(test)] mod testsnext to the code, or a siblingtests.rsdeclared#[cfg(test)] mod tests;for large modules (keeps production readable without widening the API). - Integration / public-contract tests live in
crates/<crate>/tests/*.rs(they see only thepubAPI). - Run the suite with
just test(nextest). Scope withcargo nextest run -p <crate> <filter>while iterating. Don't chaincargo clippy && cargo test— they use separate build caches, so chaining recompiles the workspace twice. Runjust preflightor one check at a time.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 68 lines · 817 tokens per session scan A 23606d6254bc
pixtuoid rust.instructions.md is an instructions file published in the GitHub repository IvanWng97/pixtuoid (462 stars, last pushed 3d ago), licensed MIT. It adds 817 tokens to every session, about $0.0041 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
VTCode copilot-instructions.md
Instructions for vinhnx/VTCode, covering vt code agent guidelines, build & test commands, preferred (faster with cargo-nextest), standard cargo commands and fallback (if nextest unavailable).
herdr-sidebar CLAUDE.md
Instructions for alexarthurs/herdr-sidebar, covering herdr-sidebar monorepo, build / test / lint, plugin dev workflow, windows caveats (verified against herdr 0.7.1 and 0.8.x) and release flow (verified for v0.7.0).
cli AGENTS.md
Instructions for googleworkspace/cli, covering agents.md, project overview, build & test, changesets and architecture.
turso AGENTS.md
Instructions for tursodatabase/turso, covering turso agent guidelines, quick reference, testing, running tests and test organization.
intelligent-terminal rust.instructions.md
Concise Rust coding conventions for this repository.
Browser4 CLAUDE.md
Instructions for platonai/Browser4, covering browser4 — project context for claude, architecture, key dispatch chain (cli → browser), batch commands and e2e test structure.