better-chatbot: Instructions file for Codex

AGENTS.md

better-chatbot AGENTS.md is an instructions file for Codex, OpenCode from keinsaasforever/better-chatbot. It costs 617 tokens per session, scanned A, original, MIT.

A repository guide for a Next.js and TypeScript application. It documents where code and assets belong, which commands build and test the app, and the project's naming and formatting rules.

In plain words
What is it for?
Use it when adding or modifying application code, components, hooks, tests, database changes, Docker setup, or build and lint workflows in this repository.
Why use it?
It gives coding agents the project's local expectations before they change files. This helps avoid misplaced code, incorrect commands, inconsistent style, and missed test or database steps.

Instructions file for CodexOpenCode

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

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

About the project

Navigator is an open-source AI workspace for individuals and teams that combines conversations with AI models, MCP tools, image generation, custom agents, visual workflows, and collaboration. People use it to interact with AI providers and automate work through a shared interface; the catalogue instruction relates to using Navigator.

keinsaasforever/better-chatbot · 1,196 stars · on GitHub · app.keinsaas.com

Reuse

Borrowing it

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

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 better-chatbot AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/keinsaasforever/better-chatbot/agents-md"><img src="https://agentmods.dev/badge/instructions/keinsaasforever/better-chatbot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 617 This file is loaded in full into every session.
When invoked 617 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.00617 $0.00617
Opus 5.5 $0.00247 $0.00247
Sonnet 5.5 $0.00123 $0.00123
Haiku 4.5 $0.00062 $0.00062

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

Security

Grade A, and why

better-chatbot 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 7d 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 · 49 lines

How it starts

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

Repository Guidelines

Layout

pnpm + Turborepo workspace.

  • apps/web — the Next.js app; almost all changes happen here
    • src/app (routes, API, middleware), src/components (UI), src/lib (auth, db, ai, storage), src/hooks
  • apps/desktop — Electron shell (local MCP servers, filesystem, keychain)
  • packages/* — shared MCP schemas and contracts; never import from apps/web
  • servers/mcp-stdio — local-exec MCP server used by the desktop app
  • tests/ (end-to-end), scripts/ (maintenance), docker/

Root commands pass through to apps/web, so pnpm dev and friends work from the repository root.

Commands

Command What it does
pnpm dev Run locally
pnpm build / pnpm start Production build and run
pnpm check Lint, typecheck, unit tests — the gate before every commit
pnpm test / pnpm test:e2e Vitest / Playwright
pnpm db:migrate / pnpm db:studio Apply migrations / browse the database
pnpm db:check-parity Verify a journal replay matches the schema
pnpm docker-compose:up Full local stack

Conventions

  • Verification gate: pnpm check before every commit. Add pnpm build for changes to streaming, the schema, or the client/server boundary.
  • Commits: Conventional Commits (feat:, fix:, docs:, …). Filenames are kebab-case. Biome formats and lints on commit.
  • Migrations are hand-written SQL in apps/web/src/lib/db/migrations/pg/ plus a matching meta/_journal.json entry. Do not run drizzle-kit generate — it produces drifted snapshots against this schema. A journal entry's timestamp must be newer than every entry before it, or the migration is silently skipped on databases that are already past it.
  • Auth: API routes go through withAuth from lib/auth/route-guard. Repository reads and writes are scoped by user and workspace — do not widen them. Never return a raw error message from a 500 handler.
  • Chat history reads stay bounded by CHAT_MESSAGE_WINDOW (lib/const.ts).
  • Streamed markdown is split into block-stable units and memoized; keep per-update work proportional to the tail block, not the whole message.
  • Tests cover the happy path plus one failure mode, and run without a database — mock pgDb.

Read the full file on GitHub · 49 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. 7d ago Changed · +6 lines · -18 tokens per session 4baddab79f4e
  2. 2mo ago First seen · 43 lines · 635 tokens per session scan A a0e059f6fa51

Subscribe to this mod's changes

better-chatbot AGENTS.md is an instructions file published in the GitHub repository keinsaasforever/better-chatbot (1,196 stars, last pushed yesterday), licensed MIT. It adds 617 tokens to every session, about $0.0025 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

better-chatbot AGENTS.md compared with instructions from other repositories

better-chatbot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
better-chatbot AGENTS.mdkeinsaasforever/better-chatbotInstructions file1.2kyesterdayMITA617Codex, 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