sema: Instructions file for Codex

AGENTS.md

sema AGENTS.md is an instructions file for Codex, OpenCode from sema-lisp/sema. It costs 7,501 tokens per session, scanned A, original, MIT.

Project instructions for sema-lisp/sema, a Rust-based Lisp language with built-in large-language-model features.

In plain words
What is it for?
Use them when adding features, packaging releases, embedding runtime files, or testing that installed versions work without the source repository.
Why use it?
They protect shipped builds from depending on the developer's checkout, generated files, or local tools.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is sema-lisp/sema's own configuration. It tells Codex and OpenCode how to work on sema 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 sema configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/sema-lisp/sema/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sema-lisp/sema

Made for: Codex, OpenCode.

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 sema AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sema-lisp/sema/agents-md/github.svg)](https://agentmods.dev/instructions/sema-lisp/sema/agents-md)
Your own site
<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.

agentmods 80×15 button for sema AGENTS.md

Your own site · 80×15
<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>
Per session 7,501 This file is loaded in full into every session.
When invoked 7,501 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.07501 $0.07501
Opus 5.5 $0.03000 $0.03000
Sonnet 5.5 $0.01500 $0.01500
Haiku 4.5 $0.00750 $0.00750

Measured 1mo ago against content hash ae9680c268d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

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

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_embed over a tracked path). cargo package ships only git-tracked files, so never include_*! a gitignored or build-generated path — the .crate would lack it. If a jake recipe generates the artifact, commit the generated output (don't .gitignore it), and verify it embeds the whole directory (prefer rust_embed/include_dir over a hand-maintained file list that can drift).
  • build.rs must NEVER change what compiles based on file existence, an env var, or the network. Path::new(...).exists() gating a rustc-cfg is true in your tree and false from a packaged .crate → a silently reduced binary. Use an unconditional include_*! (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 in tests/ and build.rs (they run from the checkout) but forbidden in shipped runtime code. Resolve companion binaries via std::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. git is acceptable only where it is the feature's inherent prerequisite (sema pkg, git stdlib bindings).

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. 1mo ago Changed · +1 lines · +13 tokens per session ae9680c268d9
  2. 1mo ago Changed · +2 lines · +330 tokens per session 2cd85f1e029a
  3. 2mo ago First seen · 218 lines · 7,158 tokens per session scan A 83809c08f880

Subscribe to this mod's changes

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.

Related

sema AGENTS.md compared with instructions from other repositories

sema AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sema AGENTS.mdsema-lisp/semaInstructions file609d agoMITA7,501Codex, OpenCode
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