neo-chat AGENTS.md

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

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

Made for: Codex, OpenCode.

Per session 882 This file is loaded in full into every session.
When invoked 882 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.00882 $0.00882
Opus 5 $0.00441 $0.00441
Sonnet 5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured yesterday against content hash 78ba6c568827, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 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 feature-specific chat hooks in src/features/chat/. 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

Read the full file on GitHub · 79 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 · 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,790 stars, last pushed 4d ago), licensed MIT. It adds 882 tokens to every session, about $0.0044 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.