neko-master: Instructions file for Codex

AGENTS.md

neko-master AGENTS.md is an instructions file for Codex, OpenCode from foru17/neko-master. It costs 2,948 tokens per session, scanned A, original, MIT.

A central guide for coding agents working in a monorepo, a repository that contains several related applications or modules, including an agent product.

In plain words
What is it for?
Use it when changing code, database queries, statistics, releases, user interfaces, or anything under the agent application.
Why use it?
It points agents to the right task-specific guides and sets project-wide rules for keeping changes focused and checking them.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

About the project

Neko Master is a dashboard that collects and visualizes network traffic from local gateway environments. It is for monitoring, auditing, and analyzing traffic across multiple gateways, with the catalogue entries providing instructions and skills for working with the dashboard.

foru17/neko-master · 4,243 stars · on GitHub

Reuse

Borrowing it

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

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 neko-master AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/foru17/neko-master/agents-md"><img src="https://agentmods.dev/badge/instructions/foru17/neko-master/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,948 This file is loaded in full into every session.
When invoked 2,948 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.02948 $0.02948
Opus 5.5 $0.01179 $0.01179
Sonnet 5.5 $0.00590 $0.00590
Haiku 4.5 $0.00295 $0.00295

Measured 2mo ago against content hash 49ace1a5734b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neko-master 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 2mo 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 · 236 lines

How it starts

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

AGENTS.md

Guidance for coding agents working in this monorepo. This file is the single source of truth for agent guidance — CLAUDE.md and .github/copilot-instructions.md are thin pointers to it.

Scope and Priorities

  1. Follow this file for repo-specific workflows and conventions.
  2. Follow direct user instructions over this file when they conflict.
  3. Keep changes minimal, targeted, and consistent with existing code.

Skills (task-specific workflow guides)

Reusable process checklists live in .claude/skills/*/SKILL.md (plain Markdown — usable by any tool; Claude Code loads them automatically). Consult the matching one BEFORE starting these task types:

Skill When to use
verify-changes After any edit — minimal check set per touched area
add-stats-dimension Any schema / stats-table / write-path change (several registries must change together)
release Version bumps, CHANGELOG, tagging, CI verification
ui-conventions Any UI change — i18n, dark mode, three-state views
db-conventions Queries, repositories, ClickHouse topology, debugging data drift
agent-probe-dev Anything under apps/agent (Go probe)

Repository Overview

  • Package manager: pnpm (workspace monorepo).
  • Task runner: turbo at repo root.
  • Main apps:
    • apps/web: Next.js 16 + React 19 frontend.
    • apps/collector: Fastify + WebSocket + SQLite backend service.
    • apps/agent: Go probe deployed on routers/servers (reports to the collector over HTTP).
  • Shared package:
    • packages/shared: shared TypeScript types and utility functions.

Project Map (key files)

apps/collector/src/
  database/schema.ts                     # ALL table/index DDL (single source of truth)
  database/repositories/
    traffic-writer.repository.ts         # THE traffic write path (batchUpdateTrafficStats)
    base.repository.ts                   # time keys, range routing (resolveFactTable), chain parsing
    rule.repository.ts                   # rule stats + chain-flow DAG queries
    backend.repository.ts                # backend CRUD + deleteBackendData table list
    config.repository.ts                 # retention deletes, app_config
  shared/utils/rule-name.ts              # buildRuleName — the rule naming contract
  modules/collector/                     # gateway WS clients + BatchBuffer (30s flush)
  modules/realtime/realtime.store.ts     # in-memory deltas between flushes
  modules/websocket/websocket.server.ts  # web-client WS: subscriptions, broadcast, backpressure
  modules/stats/stats.service.ts         # SQLite/ClickHouse read routing (*WithRouting)
  modules/clickhouse/                    # CH writer/reader/config (parity with SQLite reads)
  modules/app/app.ts                     # Fastify composition root + agent ingest endpoints
apps/web/
  lib/api.ts, lib/websocket.ts           # HTTP client + stats WS hook (backendId-tagged pushes)
  lib/stats-query-keys.ts                # centralized React Query keys
  messages/{zh,en}.json                  # i18n — every key in BOTH files
  components/features/                   # domain components (rules/, countries/, backend/, stats/)
  app/[locale]/dashboard/                # main dashboard route
apps/agent/
  internal/agent/runner.go               # main loop, retry/idempotency
  nekoagent                              # POSIX-sh service manager (install/upgrade/systemd/procd)
docs/
  architecture(.en).md                   # system architecture
  agent/                                 # probe docs (user-facing)
  dev/                                   # internal analysis reports (not authoritative)

Read the full file on GitHub · 236 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. 2mo ago First seen · 236 lines · 2,948 tokens per session scan A 49ace1a5734b

Subscribe to this mod's changes

neko-master AGENTS.md is an instructions file published in the GitHub repository foru17/neko-master (4,243 stars, last pushed 27d ago), licensed MIT. It adds 2,948 tokens to every session, about $0.0118 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

neko-master AGENTS.md compared with instructions from other repositories

neko-master AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neko-master AGENTS.mdforu17/neko-masterInstructions file4.2k27d agoMITA2,948Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode