run402: Instructions file for Codex

AGENTS.md

run402 AGENTS.md is an instructions file for Codex, OpenCode from kychee-com/run402. It costs 22,179 tokens per session, scanned A, original, MIT.

Repository instructions for run402, a monorepo—a single repository containing several related projects—with a TypeScript SDK, command-line tool, MCP server, and cloud services.

In plain words
What is it for?
Use them when modifying run402 code or documentation, locating one of its interfaces, preparing isolated work, or running its tests.
Why use it?
They describe the platform’s components, documentation sources, Git worktree workflow, and testing rules so agents can navigate the codebase safely.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Imported by sdk/src/node via ../../../core/dist/; not an npm package..

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kychee-com/run402/agents-md"><img src="https://agentmods.dev/badge/instructions/kychee-com/run402/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22,179 This file is loaded in full into every session.
When invoked 22,179 The same file — it is already loaded in full.
Security scan A 1 finding. 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.22179 $0.22179
Opus 5.5 $0.08872 $0.08872
Sonnet 5.5 $0.04436 $0.04436
Haiku 4.5 $0.02218 $0.02218

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

Security

Grade A, and why

run402 AGENTS.md scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **auth-aware SSR.** Browser sessions are opaque server-side handles backed by `internal.sessions` — `__Host-Http-r402_session=v1.<session_id>.<secret>` cookie carries no client-readable identity; the gateway resolves i
AGENTS.md · 341 lines

How it starts

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

AGENTS.md

This file is the single source of truth for AI coding agents working in this repository (Claude Code, Codex, Cursor, Grok, Cline, OpenClaw, etc.). CLAUDE.md imports it via @AGENTS.md.

Updating docs? See documentation.md — the map of every doc surface, with target audience, content summary, and update triggers. Scan it before merging code changes.

Documentation policy

Use CLI by default in general operating examples. Use SDK examples in typed scripting/reference guides, MCP calls in MCP references, HTTP in protocol references, and native code in application-runtime guides. Root SKILL.md and openclaw/SKILL.md share the CLI-first body; MCP-native onboarding lives in the MCP reference. Describe the HTTP API foundation, the typed and opinionated SDK workflow layer, and thin CLI/MCP adapters. Edit authoring sources and regenerate flat docs/discovery artifacts. Never turn a missing CLI capability into an invented command.

What This Is

run402 is a developer platform that ships Postgres databases, content-addressed CDN storage, static site hosting, Node 22 serverless functions, email, image generation, and KMS-backed Ethereum signing — provisioned by AI agents and paid for autonomously via x402 USDC on Base, MPP pathUSD on Tempo, or the organization's card-funded allowance. Prototype tier is free on testnet.

This monorepo ships six interfaces:

  • SDK (sdk/) — typed TypeScript client for the run402 API. Used by external integrators and by MCP/CLI/OpenClaw. Published as @run402/sdk on npm. Two entry points: root (isomorphic — works in Node 22, Deno, Bun, V8 isolates) and /node (zero-config Node defaults — keystore + wallet + x402).
  • MCP server (root src/) — published as run402-mcp on npm. Exactly eight tools: up and deploy (the first deploy), status, whoami, doctor, docs, run, and expand_result. Every other operation is a run snippet: TypeScript executed against the Node SDK in a QuickJS-in-WebAssembly sandbox. Read by Claude Desktop / Cursor / Cline / Claude Code.
  • CLI (cli/) — standalone CLI published as run402 on npm. Each subcommand is a thin shim over an SDK call; argv parsing and JSON output stay at the CLI edge.
  • Functions library — in-function helper imported inside deployed serverless functions. Exposes auth.* (the canonical auth namespace — auth.user, requireUser, requireRole, requireMembership, requireFresh, fetch, csrfToken/csrfField, sessions.*, identities.link), db(req?), adminDb(), email, ai, and assets. Published as @run402/functions on npm. Source lives in the public run402-core repo under packages/functions; Run402 Cloud consumes the published npm package when it bundles deployed functions. Distinct from the SDK: this is the request-scoped, in-function shape; the SDK is the typed external client. The two are complementary, not redundant.
  • OpenClaw skill (openclaw/) — script-based skill for OpenClaw agents, re-exports from CLI modules.
  • Astro integration (astro/) — framework integration that wires the SDK into Astro's build pipeline. Ships an <Image> component (build-time scan + variant rewrite), an assetsDir/manifest pattern for data-driven sites, and runtime helpers (resolveVariants, renderPicture) for the recommended AssetRef-persistence pattern where consumers store the full AssetRef returned by r.assets.put in their data rows. Published as @run402/astro on npm.
  • Buzz integration (buzz/) — self-contained run402-buzz skill with global CLI/profile setup, dual-proof fixtures/helper, four-state human/community/agent control-plane reporting, verified no-deploy readiness, bounded enrollment offers, and an approval-gated org-of-one fallback. It never accepts or derives from a Nostr private key, and public proof alone grants no authority.

Read the full file on GitHub · 341 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. 11d ago Changed · +58 tokens per session 48aec54cfd89
  2. 13d ago Changed · -9 tokens per session 48fddf105c2e
  3. 15d ago Changed · +1 lines · +267 tokens per session cb87ffeaa0a0
  4. 21d ago Changed · -34 lines · -1,028 tokens per session 638aef3ecc09
  5. 22d ago Changed · +86 tokens per session 878b1cde6391
  6. 1mo ago Changed · +1 lines · +255 tokens per session 4f8d915a8c80
  7. 1mo ago Changed · +1 lines · +27 tokens per session 3d5e74c2cc22
  8. 1mo ago Changed · +7 lines · +223 tokens per session 303a1872947f
  9. 1mo ago Changed · +3 lines · +366 tokens per session 0c5d20a1b8a3
  10. 1mo ago First seen · 362 lines · 21,934 tokens per session scan A 19cb57292b3e

Subscribe to this mod's changes

run402 AGENTS.md is an instructions file published in the GitHub repository kychee-com/run402 (24 stars, last pushed 2d ago), licensed MIT. It adds 22,179 tokens to every session, about $0.0887 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

run402 AGENTS.md compared with instructions from other repositories

run402 AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run402 AGENTS.mdkychee-com/run402Instructions file242d agoMITA22,179Codex, 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