neko-master 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

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/foru17/neko-master/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.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.svg" alt="Measured on agentmods" 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. 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.02948 $0.02948
Opus 5 $0.01474 $0.01474
Sonnet 5 $0.00590 $0.00590
Haiku 4.5 $0.00295 $0.00295

Measured 4d ago against content hash 49ace1a5734b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (3,861 stars, last pushed 1mo ago), licensed MIT. It adds 2,948 tokens to every session, about $0.0147 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.