archlang: Instructions file for Codex

AGENTS.md

archlang AGENTS.md is an instructions file for Codex, OpenCode from ChanMeng666/archlang. It costs 1,065 tokens per session, scanned A, original, MIT.

Repository instructions for ArchLang, a TypeScript language that compiles written architecture descriptions into SVG floor plans. SVG is a web-friendly format for drawings that stay sharp when resized.

In plain words
What is it for?
Use them when developing, publishing, or checking ArchLang and its packages, documentation, versions, or deployment status.
Why use it?
They give coding agents the current project status, important decisions, and locations of authoritative information. This prevents work based on outdated version or release assumptions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to ChanMeng666/archlang. 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/ChanMeng666/archlang/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ChanMeng666/archlang

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chanmeng666/archlang/agents-md/github.svg)](https://agentmods.dev/instructions/chanmeng666/archlang/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/chanmeng666/archlang/agents-md"><img src="https://agentmods.dev/badge/instructions/chanmeng666/archlang/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 archlang AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chanmeng666/archlang/agents-md"><img src="https://agentmods.dev/badge/instructions/chanmeng666/archlang/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,065 This file is loaded in full into every session.
When invoked 1,065 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.01065 $0.01065
Opus 5.5 $0.00426 $0.00426
Sonnet 5.5 $0.00213 $0.00213
Haiku 4.5 $0.00106 $0.00106

Measured 5d ago against content hash 19094b55e005, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archlang 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 5d 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 · 61 lines

How it starts

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

AGENTS.md

ArchLang: a declarative language (.arch) that compiles to SVG floor plans. TypeScript, Node 18+, npm-workspaces monorepo; the core (repo root, @chanmeng666/archlang) also runs in the browser. Code and tests are the documentation; this file holds only what they cannot say.

npm run build         # core + CLI → dist/ (before typecheck:all, e2e)
npm run cli -- compile examples/studio.arch -o studio.svg
npm run check         # typecheck + lint + test-wiring + vitest (floor)
npm run check:drift   # generated artifacts == generator output (CI gate)
npm run typecheck:all # the only typecheck that compiles test/ and the workspaces
npm run docs:build    # after any docs/*.md edit
npm run gen:all       # every gen:* generator

Hard rules

  • compile() is pure, sync, deterministic: no I/O, time, randomness or Node APIs in src/ outside src/cli.ts+src/cli/; environment via the World seam; numbers via src/num-format.ts; never mutate the memoised parse-stage PlanNode (clone). Zero runtime deps.
  • User-source errors are returned as a Diagnostic (byte span + catalogued E_*/W_*), never thrown.
  • compile() is bounded: every input returns within the step budget and the drawing budget. Charge new evaluator work to the step meter BEFORE allocating (MAX_EVAL_STEPS, E_STEP_LIMIT, src/expr.ts); budgets are counts, never time. Every coordinate/length stays within MODEL_RANGE_MM (src/num-format.ts, E_OUT_OF_RANGE).
  • New element = one src/elements/ module registered in defs.ts, no switch; it declares drawCost (an upper bound on what it draws) and bounds()/measures() covering every coordinate and length it draws. New fixture category = a FIXTURE_FAMILIES row + a CATALOG entry; a drawn symbol ignores its label.
  • Never hand-edit dist/ or a generated file; run gen:*. Drift-green proves reproducibility, not correctness: derive generator templates from the source of truth, never retype.
  • A derived position comes from the shape, never its bounding box or centroid.
  • Every new language form ships a byte-identity law pinned by test (SHA-256 of SVG + describe() + lint() over the examples). Never bless a golden to green a suite.
  • Heights draw nothing; --view measures nothing (describe()/lint() never learn it).
  • A drawing change never moves describe()/lint() over the corpus; a glyph never gains handedness and a loss is allow-listed (test/glyph-chirality.test.ts).
  • npm run check does not typecheck test/; typecheck:all does.
  • A clean auto-merge of a MOVED function another branch MODIFIED is not evidence: diff the moved body, run both branches' fixtures together.
  • Releases are tokenless OIDC (v* tag); never an npm token, never automate npmjs account/2FA. Pushing main deploys the sites. Before a tag: /release-check.
  • Eval: T3 live run declined forever; eval:live is paid, owner-only; holdout never published; dataset canary never regenerated.
  • Sites are light-only (no dark mode); brand/archlang-logo-master.svg is byte-sacred.
  • No secrets in this public repo. Versions come from npm/tags/gh release, never a doc; release narrative lives only in CHANGELOG.md.

Read the full file on GitHub · 61 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. 5d ago Changed · +8 tokens per session 19094b55e005
  2. 10d ago Changed · +5 tokens per session 2c88958578ee
  3. 13d ago Changed · +1 lines · +20 tokens per session b76993df1a70
  4. 21d ago Changed · +8 lines · +164 tokens per session 814e54863114
  5. 27d ago Changed · -44 lines · -532 tokens per session 1d8c0b0f3955
  6. 1mo ago Changed · -780 lines · -22,490 tokens per session 01fe6876b130
  7. 1mo ago Changed · +12 lines · +489 tokens per session 2aaf39e57aa3
  8. 1mo ago Changed · +19 lines · +637 tokens per session 5a2dba52fb43
  9. 1mo ago Changed · -442 lines · -20,005 tokens per session 0d43c21a8822
  10. 1mo ago First seen · 1,287 lines · 42,769 tokens per session scan A 39d2f320b51e

Subscribe to this mod's changes

archlang AGENTS.md is an instructions file published in the GitHub repository ChanMeng666/archlang (24 stars, last pushed today), licensed MIT. It adds 1,065 tokens to every session, about $0.0043 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

Other instructions, from other repositories

create-trimble-app typescript.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering typescript patterns for modus components, event type casting, common event types, component ref types and modal ref pattern.

julianoczkowski/create-trimble-app · 583 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens