neo-chat: Instructions file for Codex

AGENTS.md

neo-chat AGENTS.md is an instructions file for Codex, OpenCode from u14app/neo-chat. It costs 1,034 tokens per session, scanned A, original, MIT.

Repository instructions for a Next.js and React chat application written in TypeScript. They document the project folders, commands, code style, and testing rules.

In plain words
What is it for?
Use them when installing dependencies, developing, building, linting, formatting, checking imports, or adding tests in the project.
Why use it?
They give a coding agent the local rules it needs to change the repository consistently and run the right checks.

Instructions file for CodexOpenCode

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

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

About the project

Neo Chat is a self-hostable chat application that brings AI models, agents, skills, plugins, search, document retrieval, voice, memory, and editable files into one browser workspace. People who want AI features while keeping default data storage in their browser use it for conversations, research, and content creation, with the catalogue entry supplying an instruction for the application.

u14app/neo-chat · 1,883 stars · on GitHub · neo.u14.app

Reuse

Borrowing it

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

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 neo-chat AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/u14app/neo-chat/agents-md"><img src="https://agentmods.dev/badge/instructions/u14app/neo-chat/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,034 This file is loaded in full into every session.
When invoked 1,034 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.01034 $0.01034
Opus 5.5 $0.00414 $0.00414
Sonnet 5.5 $0.00207 $0.00207
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

neo-chat 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 21d 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 · 90 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This is a Next.js/React chat application using TypeScript, Zustand, Vitest, and pnpm. Core routes and API handlers live in src/app/. UI components are grouped under src/components/, with shared React hooks in src/hooks/. Shared domain logic, provider adapters, security gates, and API helpers live in src/lib/; client service wrappers are in src/services/; persisted Zustand stores and migrations are in src/store/. Tests are centralized in src/__tests__/. Static images and skill metadata live under public/, and operational docs live in docs/.

Build, Test, and Development Commands

Use the pinned package manager ([email protected]), preferably through Corepack:

  • corepack pnpm install installs dependencies from pnpm-lock.yaml.
  • corepack pnpm dev starts the local Next.js server at localhost:3000.
  • corepack pnpm build creates the production Next.js build.
  • corepack pnpm lint runs ESLint with Next.js core-web-vitals and TypeScript rules.
  • corepack pnpm format:check checks repository formatting with Prettier.
  • corepack pnpm check:imports rejects disallowed long relative imports.
  • corepack pnpm hygiene:artifacts checks generated artifact hygiene.
  • corepack pnpm typecheck runs tsc --noEmit.
  • corepack pnpm test runs the Vitest suite.
  • corepack pnpm test:e2e runs Playwright smoke tests on an isolated port 3100 server by default.
  • corepack pnpm build:worker builds the OpenNext Cloudflare Worker output.

Coding Style & Naming Conventions

Prettier is authoritative: 2-space indentation, 80-column print width, semicolons, double quotes, and trailing commas. Keep TypeScript strict-friendly and prefer explicit domain types over broad any unless existing integration code already requires it. Components use PascalCase, hooks use useCamelCase, tests use *.test.ts or *.test.tsx, and path aliases may use @/ for src/.

Testing Guidelines

Add focused Vitest coverage for bug fixes, migrations, API routes, provider adapters, security-sensitive behavior, and renderer changes. Run targeted tests while iterating, for example:

Read the full file on GitHub · 90 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. 21d ago Changed · +10 lines · +154 tokens per session 6f45152e75c5
  2. 1mo ago Changed · +1 lines · -2 tokens per session 830c158dd7d3
  3. 2mo ago First seen · 79 lines · 882 tokens per session scan A 78ba6c568827

Subscribe to this mod's changes

neo-chat AGENTS.md is an instructions file published in the GitHub repository u14app/neo-chat (1,883 stars, last pushed 5d ago), licensed MIT. It adds 1,034 tokens to every session, about $0.0041 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

neo-chat AGENTS.md compared with instructions from other repositories

neo-chat AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neo-chat AGENTS.mdu14app/neo-chatInstructions file1.9k5d agoMITA1,034Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,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