webcodex AGENTS.md

Repository instructions for WebCodex, covering its active development version, project structure, and rules for checking and preserving existing work.

In plain words
What is it for?
Use them when modifying, testing, or reviewing the yyjeqhc/webcodex repository.
Why use it?
They help a coding agent make focused changes without overwriting unrelated edits or weakening important safety and reliability rules.

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/yyjeqhc/webcodex/agents-md
Clone the repo
git clone --depth 1 https://github.com/yyjeqhc/webcodex

Made for: Codex, OpenCode.

Per session 2,294 This file is loaded in full into every session.
When invoked 2,294 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.02294 $0.02294
Opus 5 $0.01147 $0.01147
Sonnet 5 $0.00459 $0.00459
Haiku 4.5 $0.00229 $0.00229

Measured 2d ago against content hash 71c5df07e05a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

webcodex 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 2d 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 · 97 lines

How it starts

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

AGENTS.md — WebCodex Repository Guide

These are the always-on rules for ordinary repository work. Read only the linked sections needed for the current task. A deeper AGENTS.md governs its directory.

V1 active development

V2 development is paused; V1 is the active product line and is not feature-frozen. Ordinary V1 work may add explicitly requested capabilities as well as correctness, reliability, and test improvements. Keep changes focused and do not weaken safety, credential, process-tree, transport, durability, or boundedness contracts.

1. Verify and preserve

  • Work only in the repository, worktree, and external target authorized by the user.
  • At task start, verify the root, branch, HEAD, status, relevant changes, and recent history. Recheck only after a Git operation, an observed concurrent change, or before committing.
  • Treat prompt hashes, paths, branches, and runtime state as expectations to verify, never as reasons to overwrite the actual repository.
  • Preserve unrelated work. Do not reset, rebase, restore, clean, or rewrite history unless the user explicitly requests that operation.
  • Inspect only the implementation, tests, documentation, and diff relevant to the task; do not bulk-read unrelated material.

2. Build the simplest useful product

  • Optimize for a workflow that is simple, obvious, and easy to operate.
  • Prefer the smallest direct solution. Add abstractions, configuration, modes, compatibility layers, or extension points only for a concrete current need or a demonstrated reliability problem.
  • Do not build a general framework for one use case. Wait for a second concrete use case before extracting shared machinery.
  • Do not design for hypothetical consumers, tenants, deployment scales, or trust boundaries that the product does not have.
  • Protect real boundaries—credentials, public entry points, destructive actions, wrong-target execution, repository history, and published artifacts—without adding policy machinery for imaginary ones.
  • A feature that introduces a new externally reachable authority, credential audience, or replaceable runtime target creates a concrete present boundary. Model it explicitly when reusing an existing scope, identity, or lease would broaden existing credentials or allow stale requests to retarget; fewer concepts is not a reason to collapse distinct authority.
  • When two designs satisfy the current need, choose the one with fewer concepts, states, configuration paths, and maintenance costs.
  • For model-facing execution, prefer structured process/argv and durable Job/observation primitives over shell-text orchestration. Keep shell as an escape hatch; structured lifecycle state is the source of truth for retry safety.
  • Keep model-facing ToolSpec/OpenAPI operation descriptions concise and prefer 300 characters or fewer when semantics remain complete. Never delete necessary authority, retry, continuation, uncertainty, safety, or recovery semantics merely for brevity; the canonical tested hard ceiling is MODEL_TOOL_DESCRIPTION_MAX_CHARS.
  • Treat demonstrated host features such as MCP App orchestration as optional adapters. Core execution and Job semantics must remain protocol-, UI-, transport-, and OS-neutral.
  • Never assume a model-facing HTTP/MCP request has stable model-window or Workflow Session identity. Treat requests as stateless unless that exact adapter/protocol contract explicitly supplies a stable ClientWindow. Stateless MCP 2026 must not derive hidden continuity from Mcp-Session-Id, connection state, credentials, project identity, or prior requests. Transport/audit/session correlation ids are not Workflow Session, model-context-retention, or authority proofs by themselves; use explicit durable identifiers from their owning domain. Connector Tasks, Workflow Sessions, durable Agents/Conversations, and future Agent Tasks are distinct identities and must not be inferred from one another.

Read the full file on GitHub · 97 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. 2d ago First seen · 97 lines · 2,294 tokens per session scan A 71c5df07e05a

Subscribe to this mod's changes

webcodex AGENTS.md is an instructions file published in the GitHub repository yyjeqhc/webcodex (199 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,294 tokens to every session, about $0.0115 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.