sema AGENTS.md

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

Repository instructions for Sema, a project concerned with patterns and vocabulary in research or software work. They describe development, documentation, paper-building, and vocabulary-review rules.

In plain words
What is it for?
Working on Sema code, documentation, vocabulary definitions, translations, or papers. They cover branches and pull requests, paper compilation, website experiments, terminology updates, and the improvement process.
Why use it?
They help keep changes focused, preserve required review and build practices, and prevent the paper, code, and terminology from drifting apart. They also protect production and publication work from unapproved changes.

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/emergent-wisdom/sema/agents-md
Clone the repo
git clone --depth 1 https://github.com/emergent-wisdom/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/emergent-wisdom/sema/agents-md.svg)](https://agentmods.dev/instructions/emergent-wisdom/sema/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/emergent-wisdom/sema/agents-md"><img src="https://agentmods.dev/badge/instructions/emergent-wisdom/sema/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 7,325 This file is loaded in full into every session.
When invoked 7,325 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.07325 $0.07325
Opus 5 $0.03662 $0.03662
Sonnet 5 $0.01465 $0.01465
Haiku 4.5 $0.00732 $0.00732

Measured 4d ago against content hash 6ce77a8813e9, 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 · 508 lines

How it starts

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

Repository Agent Guide

This file is the repository-level operating context for coding agents. Detailed domain rules remain in the linked specifications; do not duplicate or invent them from prompt context.

Development Workflow

  • Work on a focused feature branch and use a pull request. Do not merge until required CI is green.
  • Keep unrelated user changes intact and surface unrelated defects separately.
  • Use Henrik Westerberg <[email protected]> for locally authored commits. GitHub-created merge commits may use the account's noreply address; merge locally when every commit must use the organization address.
  • Website and frontend experiments must remain on an isolated branch and staging service until Henrik explicitly approves production deployment.
  • Paper typography or stylesheet work must remain separate from semantic paper updates unless visual redesign is the stated scope.
  • Any change that touches paper/ must be built with scripts/compile_paper.sh, never bare pdflatex. The script regenerates the tables, the pattern-card appendix, the prose hash references and the stats macros, then runs bibtex and three pdflatex passes. Bare pdflatex leaves those stale: it once shipped 49 outdated hash stubs in the prose and a wrong pattern count, and a stale generated docs/information/audit.md from the same class of mistake failed CI on the 3.12 job, which is the only job that runs the vocabulary-workflow check.

Vocabulary Changes

Read these before editing patterns:

  • docs/guides/authoring.md
  • docs/guides/lifecycle.md
  • docs/specification/schema.md
  • docs/specification/validation.md

The database is authoritative. Copy exported JSON from data/vocabulary/ into data/staging/, edit staging, update data/design_critique.json, preview the manual, then apply. Never edit canonical vocabulary exports directly.

To apply, prefer:

python scripts/apply_vocabulary_change.py

It runs the four steps in the only order that works and stops at the first failure. It ignores any database selected by sema use and pins every subprocess to this checkout's authoritative data/taxonomy.db.

Read the full file on GitHub · 508 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 · 508 lines · 7,325 tokens per session scan A 6ce77a8813e9

Subscribe to this mod's changes

sema AGENTS.md is an instructions file published in the GitHub repository emergent-wisdom/sema (13 stars, last pushed 3d ago), licensed MIT. It adds 7,325 tokens to every session, about $0.0366 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.