zenith: Instructions file for Codex

AGENTS.md

zenith AGENTS.md is an instructions file for Codex, OpenCode from zenitheditor/zenith. It costs 1,955 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Zenith, a Rust workspace whose separate packages handle geometry, parsing, text layout, rendering, and visual checks. They define each package's responsibility and allowed dependencies.

In plain words
What is it for?
Use them when adding or changing Zenith code, especially geometry, parsing, text shaping, raster rendering, scenes, or visual-quality checks.
Why use it?
They help contributors preserve the project's architecture, stable boundaries, and rules for how its Rust packages may depend on one another.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zenitheditor/zenith/agents-md"><img src="https://agentmods.dev/badge/instructions/zenitheditor/zenith/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,955 This file is loaded in full into every session.
When invoked 1,955 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.01955 $0.01955
Opus 5.5 $0.00782 $0.00782
Sonnet 5.5 $0.00391 $0.00391
Haiku 4.5 $0.00196 $0.00196

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

Security

Grade A, and why

zenith 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 12d 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 · 86 lines

How it starts

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

Repository Guidelines

This file is the source of truth for working in the Zenith repository — for human contributors and AI agents alike. Read it before making changes.

Project Structure & Module Organization

Zenith is a Rust workspace (edition = "2024"). Each crate owns one concern and exposes a stable contract; zenith-geometry depends on no other Zenith crate; zenith-core may depend only on pure zenith-geometry for path math (validation / fill queries).

  • zenith-core/ — KDL parser adapter, semantic AST, canonical formatter, tokens, validation, the full diagnostic set. May depend on pure zenith-geometry only among Zenith crates.
  • zenith-fonts-fallback/ — the fallback font chain (Noto Sans Arabic, Hebrew, CJK SC subset, monochrome Noto Emoji) as embedded bytes behind the embed feature. Depends on no Zenith crate. ABOUT.txt records the subset commands.
  • zenith-geometry/ — pure geometry (paths, contours, booleans). C-free; depends on no other Zenith crate; used by core, layout, scene, and tx.
  • zenith-layout/ — text shaping & font metrics (rustybuzz + ttf-parser); all third-party shaping types confined here.
  • zenith-raster/ — raster surface, blend modes, adjustments used by perception and render.
  • zenith-perception/ — visual QA / perception reports over geometry + raster.
  • zenith-scene/ — backend-neutral scene IR and compilation (geometry, text wrap, anchors, opacity/clip, text outlines).
  • zenith-render/ — CPU PNG backend (tiny-skia) and vector PDF backend; raster-time determinism rules.
  • zenith-tx/ — transaction op set, apply/dry-run engine, diffs, audit-record contract. Pure AST; no scene/layout dependency.
  • zenith-session/ — local doc identity (ULID), ephemeral session DAG, durable content-addressed version store. Never on the render path.
  • zenith-zpx/ — packaged design export (manifest + bake).
  • zenith-producers/ — higher-level produce/export helpers (SVG native, ZPX bake).
  • zenith-pipeline/ — config policy, imports, fonts, assets, validate, compile, and render over host I/O traits (SourceFs, ConfigSource, LocalFontSource, PageRunner). Shared by the CLI and the wasm editor. NEVER std::fs / std::thread / time in it; the CLI's native host lives in zenith-cli/src/native.rs.
  • zenith-editor/ — the editor engine: stateless execute(env, session, request) over a serializable Session (selection, gestures to tx ops, text-delta history, render). Shared by the browser module, zenith edit, and MCP; wasm-safe like zenith-pipeline.
  • zenith-editor-wasm/ — wasm32-wasip1 command module of the editor engine: one JSON request on stdin, one JSON response on stdout. Backs the static browser editor. publish = false.
  • zenith-editor/benches/ — zenith-editor-bench: fluxbench benches of the editor loops. publish = false.
  • zenith-cli/ — the zenith binary (crate package name zenith-tool): command dispatch, clap, JSON/human output, MCP; render/validate logic goes in zenith-pipeline, not here. src/main.rs is thin; logic lives in src/lib.rs and src/commands/.
  • examples/ — runnable .zen documents (keep them valid against the current parser).
  • assets/ — bundled fonts (zenith-core/assets/fonts/) and embedded library presets (assets/libraries/). Committed.
  • conformance/ — regenerable rendered proof of simulation scenarios. Gitignored; never stage it.
  • resource/, .agents/, .claude/, .codex/ — local planning/research/session scratch. Gitignored.

Read the full file on GitHub · 86 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. 12d ago Changed · +1 lines · +59 tokens per session 27d9e0f5b16a
  2. 26d ago Changed · +4 lines · +187 tokens per session cbcf1affbfd0
  3. 27d ago Changed · +2 lines · +172 tokens per session 2fcfdaf22013
  4. 2mo ago First seen · 79 lines · 1,537 tokens per session scan A 8924c8efb196

Subscribe to this mod's changes

zenith AGENTS.md is an instructions file published in the GitHub repository zenitheditor/zenith (23 stars, last pushed 13d ago), licensed Apache-2.0. It adds 1,955 tokens to every session, about $0.0078 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

zenith AGENTS.md compared with instructions from other repositories

zenith AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zenith AGENTS.mdzenitheditor/zenithInstructions file2313d agoApache-2.0A1,955Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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