simu CLAUDE.md

Project instructions for simu, a Rust library for discrete-event simulation, where a program models events occurring at particular points in time. They describe the codebase, documentation, licensing, and contribution rules.

In plain words
What is it for?
Use them when editing simu, reviewing its architecture or API, adding tests, updating documentation, or preparing contributions.
Why use it?
They give a coding agent the project context and required checks, reducing the risk of changes that conflict with the design or license requirements.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/chkhm/simu/claude-md
Clone the repo
git clone --depth 1 https://github.com/chkhm/simu
Per session 3,437 This file is loaded in full into every session.
When invoked 3,437 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.03437 $0.03437
Opus 5 $0.01718 $0.01718
Sonnet 5 $0.00687 $0.00687
Haiku 4.5 $0.00344 $0.00344

Measured 2d ago against content hash 03811f8bbadb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simu CLAUDE.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.

CLAUDE.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project

simu is a Rust library for Discrete Event Simulation (DES), inspired by SimPy. The MVP is fully implemented and tested. The crates.io package is simu-des (the name simu was taken) with [lib] name = "simu", so all code imports stay use simu::….

Licensing: dual MIT OR Apache-2.0, REUSE 3.3-compliant — license texts live in LICENSES/, every code file carries an SPDX header, prose/uncommentable files (*.md, .gitignore, Cargo.lock, requirements.txt) are covered by REUSE.toml, and CI enforces it (reuse lint job). New files must include the SPDX header (copy from any neighbor) or match a REUSE.toml glob.

Companion docs:

  • SPEC.md — the design source of truth (architecture, API contracts, invariants, roadmap).
  • API.md — signature cheat-sheet only; semantics live in rustdoc (docs.rs).
  • PLAN.md — implementation plan / history.
  • TESTING.md — test strategy and coverage notes.
  • README.md — user-facing overview.
  • CONTRIBUTING.md — contribution checklist (rustfmt/clippy, SPDX headers, DCO sign-off, PR process).
  • llms.txt + docs/simu-for-agents.md — LLM-facing reference and drop-in agent context. Rule: every code pattern in these files must be a verbatim copy of a doc-test (tutorial chapter or type doc) — never hand-write parallel snippets.
  • src/tutorial.rs — doc-only "simu in 10 minutes" module (5 chapters, all doc-tests); each chapter has a runnable examples/intro_*.rs twin.

When changing behaviour, keep SPEC.md and API.md in sync — and when changing tutorial/type doc-tests, re-sync the copies in llms.txt / docs/simu-for-agents.md.

Commands

cargo build
cargo test                        # 145 passing tests (126 unit + integration, 19 doc-tests)
cargo test <test_name>            # run a single test
cargo run --example hospital      # ER patient-flow simulation
cargo run --example brewery       # brewery / process-automation simulation
cargo run --example warehouse     # distribution-center forklift-preemption simulation
cargo bench                       # Criterion benchmark suite (benches/simulation.rs)
cargo clippy -- -D warnings       # must stay warning-clean

Read the full file on GitHub · 219 lines

Changes

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.

  1. 2d ago First seen · 219 lines · 3,437 tokens per session scan A 03811f8bbadb

Subscribe to this mod's changes

simu CLAUDE.md is an instructions file published in the GitHub repository chkhm/simu (2 stars, last pushed 10d ago), licensed Apache-2.0. It adds 3,437 tokens to every session, about $0.0172 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-31.