nac: Instructions file for Codex

AGENTS.md

nac AGENTS.md is an instructions file for Codex, OpenCode from arcee-ai/nac. It costs 1,970 tokens per session, scanned A, original, Apache-2.0.

A repository guide for NAC, a Rust coding-agent harness with a React web client. It records where changes belong, how parts may depend on each other, and which product rules must stay unchanged.

In plain words
What is it for?
Use it to locate the right subsystem, check nested instructions, and preserve NAC's session behaviours, compatibility rules, and dependency direction.
Why use it?
It gives coding agents current project rules before they edit code, reducing misplaced changes and broken architectural boundaries.

Instructions file for CodexOpenCode

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

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

View source ↗ arcee-ai/nac
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/arcee-ai/nac/agents-md"><img src="https://agentmods.dev/badge/instructions/arcee-ai/nac/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,970 This file is loaded in full into every session.
When invoked 1,970 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.01970 $0.01970
Opus 5 $0.00985 $0.00985
Sonnet 5 $0.00394 $0.00394
Haiku 4.5 $0.00197 $0.00197

Measured yesterday against content hash 871694a4777d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-13, from the pricing page.

Security

Grade A, and why

nac 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 yesterday.

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 · 176 lines

How it starts

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

NAC repository guide

NAC is a Rust coding-agent harness with a React web client. It supports three immutable session behaviors: the established orchestrator/worker topology, a persistent direct coding agent with traditional child sessions, and a direct agent that can launch separate managed orchestrator sessions. Managed-host deployment is additive and opt-in.

Read the nearest nested AGENTS.md before changing a subsystem. This root file defines repository-wide constraints; nested guides add ownership-specific rules. Durable architectural decisions live in docs/architecture/. Historical work ledgers and local notebooks are evidence, not a substitute for current code and tests.

Dependency direction

Dependencies point inward:

React clients
    -> HTTP/OpenAPI/MCP delivery (nac-server)
        -> focused application services and composition ports
            -> nac-core durable harness       nac-managed product context
                -> shared contracts/infrastructure adapters <-
  • Domain and application contracts must not depend on Axum, React, provider wire types, or deployment wiring.
  • nac-managed does not depend on nac-server or the agent harness. The server composes its ports with core/project services.
  • Provider, filesystem, database, Git/process, sandbox, and HTTP clients are adapters around inward contracts; do not move transport types into domain APIs.
  • Model-visible tool exposure, authorization, hard safety policy, and the already-selected execution backend are separate decisions. Approval never changes or escapes the backend.
  • Prefer private modules and narrow exports. Add a crate only for a real dependency boundary, not to increase crate count.

See dependency boundaries and generated API contract.

Where changes belong

Change Owner Start here
Model loop, prompts, compaction nac-core::agent crates/nac-core/src/agent/
Session admission, recovery, cancellation, settlement nac-core::session_service crates/nac-core/src/session_service/AGENTS.md
Durable schema, transcript, relationships, inbox/goals nac-core::store and sessions crates/nac-core/src/store/AGENTS.md
Permission evaluation and approval nac-core::permissions crates/nac-core/src/permissions/AGENTS.md
Native tools, capability composition, invocation nac-core::tools crates/nac-core/src/tools/AGENTS.md
Model/runtime/backend construction nac-core::runtime crates/nac-core/src/runtime/
Managed secrets, GitHub, clone workflow, readiness nac-managed crates/nac-managed/AGENTS.md
Product use cases and HTTP/OpenAPI/MCP delivery nac-server crates/nac-server/AGENTS.md
React features, queries, presentation web client crates/nac-server/web/AGENTS.md
Managed image/runtime contract managed container docker/managed/AGENTS.md
Shared command environment and credentials small inward crates crates/nac-contracts/, crates/nac-credential-store/
Descendant-aware process supervision nac-process crates/nac-process/AGENTS.md
Checked-in model catalog generation nac-catalog-gen crates/nac-catalog-gen/AGENTS.md

Read the full file on GitHub · 176 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. yesterday First seen · 176 lines · 1,970 tokens per session scan A 871694a4777d

Subscribe to this mod's changes

nac AGENTS.md is an instructions file published in the GitHub repository arcee-ai/nac (243 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,970 tokens to every session, about $0.0098 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-09-12.

Related

Other instructions, from other repositories

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 · 6,785 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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 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,469 tokens