sema AGENTS.md

sema AGENTS.md is an instructions file for Codex, OpenCode from sema-lisp/sema. It costs 7,158 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

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/sema-lisp/sema/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 7,158 This file is loaded in full into every session.
When invoked 7,158 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.07158 $0.07158
Opus 5 $0.03579 $0.03579
Sonnet 5 $0.01432 $0.01432
Haiku 4.5 $0.00716 $0.00716

Measured 4d ago against content hash 83809c08f880, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 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 · 218 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. 4d 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 (41 stars, last pushed today), licensed MIT. It adds 7,158 tokens to every session, about $0.0358 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.