Borrowing it
Nothing to install: this file belongs to sema-lisp/sema. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sema-lisp/sema/main/AGENTS.mdgit clone --depth 1 https://github.com/sema-lisp/semaWrote 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.
[](https://agentmods.dev/instructions/sema-lisp/sema/agents-md)<a href="https://agentmods.dev/instructions/sema-lisp/sema/agents-md"><img src="https://agentmods.dev/badge/instructions/sema-lisp/sema/agents-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.
<a href="https://agentmods.dev/instructions/sema-lisp/sema/agents-md"><img src="https://agentmods.dev/badge/instructions/sema-lisp/sema/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07501 | $0.07501 |
| Opus 5.5 | $0.03000 | $0.03000 |
| Sonnet 5.5 | $0.01500 | $0.01500 |
| Haiku 4.5 | $0.00750 | $0.00750 |
Grade A, and why
sema AGENTS.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 1mo 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 — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Sema (Lisp with LLM primitives, in Rust)
Canonical instructions for any coding agent working in this repo. CLAUDE.md just points here.
Shipping invariant — NO dev-checkout assumptions in shipped code (HARD RULE)
A shipped sema (crates.io / cargo install, a cargo-dist archive, the shell
installer, or Homebrew) runs on a machine that has none of: this git repo,
jake, npm/node/wasm-pack, gitignored-or-generated build artifacts, or the
maintainer's absolute paths. Any user-facing behavior that depends on those is a
shipped bug, not a dev convenience. This is non-negotiable. It already
happened once: sema web shipped telling users to run jake wasm.web-runtime
because its runtime assets were gitignored and a build.rs file-existence check
silently compiled the feature out. It must never recur. Enforced rules:
- Anything a shipped command needs at runtime MUST be a git-tracked package
input embedded at build time (
include_str!/include_bytes!/rust_embedover a tracked path).cargo packageships only git-tracked files, so neverinclude_*!a gitignored or build-generated path — the.cratewould lack it. If ajakerecipe generates the artifact, commit the generated output (don't.gitignoreit), and verify it embeds the whole directory (preferrust_embed/include_dirover a hand-maintained file list that can drift). build.rsmust NEVER change what compiles based on file existence, an env var, or the network.Path::new(...).exists()gating arustc-cfgis true in your tree and false from a packaged.crate→ a silently reduced binary. Use an unconditionalinclude_*!(a missing input then fails the build loudly) or an explicit, documented Cargo feature — never an implicit file-presence gate.- No runtime path may point into the source tree.
env!("CARGO_MANIFEST_DIR"),env!("OUT_DIR"), and repo-relative reads (examples/,website/,Jakefile, …) are fine intests/andbuild.rs(they run from the checkout) but forbidden in shipped runtime code. Resolve companion binaries viastd::env::current_exe(), not repo layout. - Never emit a user-facing message telling an installed user to run
jake,make,cargo build,npm, or otherwise assume they have the repo. If a feature can be absent, degrade with an action the end user can actually take. - Shelling out to a dev tool (
jake,cargo,npm,node,wasm-pack,vercel) from a shipped code path is a bug.gitis acceptable only where it is the feature's inherent prerequisite (sema pkg, git stdlib bindings).
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.
- 1mo ago Changed · +1 lines · +13 tokens per session ae9680c268d9
- 1mo ago Changed · +2 lines · +330 tokens per session 2cd85f1e029a
- 2mo ago First seen · 218 lines · 7,158 tokens per session scan A 83809c08f880
sema AGENTS.md is an instructions file published in the GitHub repository sema-lisp/sema (60 stars, last pushed 9d ago), licensed MIT. It adds 7,501 tokens to every session, about $0.0300 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-30.
sema AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sema AGENTS.mdsema-lisp/sema | Instructions file | 60 | 9d ago | MIT | A | 7,501 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |