simu: Instructions file for Claude Code

CLAUDE.md

simu CLAUDE.md is an instructions file for Claude Code from chkhm/simu. It costs 3,484 tokens per session, scanned A, original, Apache-2.0.

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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is chkhm/simu's own configuration. It tells Claude Code how to work on simu itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything simu configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chkhm/simu. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chkhm/simu/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/chkhm/simu

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for simu CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chkhm/simu/claude-md/github.svg)](https://agentmods.dev/instructions/chkhm/simu/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chkhm/simu/claude-md"><img src="https://agentmods.dev/badge/instructions/chkhm/simu/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for simu CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chkhm/simu/claude-md"><img src="https://agentmods.dev/badge/instructions/chkhm/simu/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,484 This file is loaded in full into every session.
When invoked 3,484 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03484 $0.03484
Opus 5.5 $0.01394 $0.01394
Sonnet 5.5 $0.00697 $0.00697
Haiku 4.5 $0.00348 $0.00348

Measured 26d ago against content hash a8641a8de888, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 26d 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 · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 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 run --example coffee_shop   # café staffing study (reneging, priority baristas, milk Container)
cargo bench                       # Criterion benchmark suite (benches/simulation.rs)
cargo clippy -- -D warnings       # must stay warning-clean

Read the full file on GitHub · 221 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. 26d ago Changed · +2 lines · +47 tokens per session a8641a8de888
  2. 2mo 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 (4 stars, last pushed 25d ago), licensed Apache-2.0. It adds 3,484 tokens to every session, about $0.0139 per session on Opus 5.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.

Related

simu CLAUDE.md compared with instructions from other repositories

simu CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simu CLAUDE.mdchkhm/simuInstructions file425d agoApache-2.0A3,484Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode