nara: Instructions file for Codex

AGENTS.md

nara AGENTS.md is an instructions file for Codex, OpenCode from MasRama/nara. It costs 1,533 tokens per session, scanned A, original, MIT.

Project instructions for Nara, a TypeScript full-stack starter kit and project knowledge base. They explain the project’s structure, principles, conventions, and verification commands.

In plain words
What is it for?
Use them when changing Nara’s backend, Svelte frontend, database schema, routes, authentication, or project tooling.
Why use it?
They help coding agents understand the codebase and follow its preferred patterns instead of introducing mismatched abstractions or dependencies.

Instructions file for CodexOpenCode

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

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

View source ↗ MasRama/nara
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/masrama/nara/agents-md"><img src="https://agentmods.dev/badge/instructions/masrama/nara/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,533 This file is loaded in full into every session.
When invoked 1,533 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.01533 $0.01533
Opus 5.5 $0.00613 $0.00613
Sonnet 5.5 $0.00307 $0.00307
Haiku 4.5 $0.00153 $0.00153

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

Security

Grade A, and why

nara 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 27d 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.

AGENTS.md

Nara is an architecture-aware TypeScript application kit. Build by feature, not by layer.

Stack: TypeScript, Node.js 22+, Hono + @hono/node-server, Vue 3 + Vite + vue-router, SQLite (better-sqlite3, raw SQL), Zod, Vitest. Session auth owned by the auth feature.

Authority: user instruction → this file → ARCHITECTURE.md → tests → implementation. Git history explains past decisions; it never overrides current code.

Architecture model

src/features/<feature>/   contract.ts · index.ts · server/ · web/ (optional) · tests/
src/app/                  server.ts · router.ts · App.vue · pages/ · layouts/
src/shared/               config/ · database/ · logging/ · realtime/ · security/ · storage/
resources/app.ts          thin Vite entry mounting the app shell
  • src/features/<feature>/index.ts is the general/server-facing public boundary. Cross-feature server use imports only from there.
  • src/features/<feature>/web/index.ts is the optional browser-safe boundary. src/app/ imports browser surfaces only from there.
  • Internals (server/*, web/pages/*, web/components/*, web/client) are private. Feature dependencies must be acyclic.
  • Details: docs/feature-model.md, ARCHITECTURE.md.

Hard rules

  • Feature-first: new capability → src/features/<name>/ (skeleton via nara make feature). Never add global controllers//services//repositories/ trees.
  • Boundaries: never import another feature's server/*, web/pages/*, web/components/*, or web/client — use its index.ts / web/index.ts. Never export server-only symbols through web/index.ts.
  • Browser code under web/ must not import server/ files, @/shared/database, Node-only built-ins, or server-only packages.
  • Server is authoritative: enforce auth/permissions in Hono routes, never only in Vue. Every /api route declares its access with a guard (signedIn/allow) or publicRoute; the server refuses to start otherwise. Permission slugs are <resource>.<action>; admin bypasses where the route requires it.
  • Responses use { success: true, message, data? } / { success: false, message, code, errors? }, English messages, Zod validation at the route boundary via jsonInput/queryInput (401 auth, 403 permission, 404 absent, 409 conflict, 422 validation). Edits of a shared record send the revision they were based on; an older one gets 409 STALE_REVISION carrying current, which the form merges instead of overwriting.
  • Interface text is English and lives in the page's template. The UI shows API refusals by message and branches on code, never on message text; every code a route sends is declared in its Feature contract (<FEATURE>_REFUSAL_CODES, plus API_REFUSAL_CODES from src/shared/security/codes.ts).
  • Tests outside Auth create accounts and grants through src/app/tests/personas.ts, never by writing Auth's tables.
  • SQL lives in the owning feature's repository via better-sqlite3 prepared statements; multi-write replacements use transactions. No ORM, no string-interpolated values.
  • Locked stack: do not replace Hono, add a frontend framework (React/Svelte/Nuxt/SSR), add a native HTTP engine (Ultimate Express/uWebSockets.js), or wrap Hono/Vue behind a custom Nara abstraction. New dependency genuinely required → prefer the existing stack or standard library and update the actual package manifest (package.json). If it changes current architecture, update ARCHITECTURE.md; otherwise keep rationale close to the code or test that enforces it.
  • No overengineering: no speculative abstractions, plugin systems, caches, DI containers, RPC/ORM/validation frameworks, or duplicated architecture metadata. Keep changes scoped; no mass-formatting, no unrelated refactors, no secrets, no force-push.

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. 27d ago Changed · +28 tokens per session e3eafa8fb8a2
  2. 28d ago Changed · +2 lines · +172 tokens per session 3bb6988a4e1f
  3. 29d ago Changed · +1 lines · +65 tokens per session 9ac36a601471
  4. 1mo ago Changed · -15 lines · -225 tokens per session 0bd210892434
  5. 2mo ago Changed · -2 lines · -13 tokens per session 6173e20a7be6
  6. 2mo ago Changed · +2 tokens per session a53076c9b41f
  7. 2mo ago Changed · -181 lines · -2,432 tokens per session 38341c3aa688
  8. 2mo ago First seen · 281 lines · 3,936 tokens per session scan A e797ddd43346

Subscribe to this mod's changes

nara AGENTS.md is an instructions file published in the GitHub repository MasRama/nara (5 stars, last pushed 27d ago), licensed MIT. It adds 1,533 tokens to every session, about $0.0061 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

nara AGENTS.md compared with instructions from other repositories

nara AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nara AGENTS.mdMasRama/naraInstructions file527d agoMITA1,533Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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