pew: Instructions file for Codex

AGENTS.md

pew AGENTS.md is an instructions file for Codex, OpenCode from nocoo/pew. It costs 3,295 tokens per session, scanned A, original, MIT.

A repository instruction file for the Pew codebase, a monorepo that keeps several related packages in one repository. It records the project layout, supported tools, instruction sources, setup commands, and coding conventions.

In plain words
What is it for?
Use it when navigating the project, choosing the right package, following repository rules, scanning source code, or running setup and development commands.
Why use it?
It gives a coding agent the context needed to work consistently across the repository instead of guessing which package or rule applies. A monorepo is useful here because changes may affect shared code, a command-line tool, a web app, and workers together.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 pew AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nocoo/pew/agents-md"><img src="https://agentmods.dev/badge/instructions/nocoo/pew/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,295 This file is loaded in full into every session.
When invoked 3,295 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.03295 $0.03295
Opus 5.5 $0.01318 $0.01318
Sonnet 5.5 $0.00659 $0.00659
Haiku 4.5 $0.00330 $0.00330

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

Security

Grade A, and why

pew 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 2d 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 · 144 lines

How it starts

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

pew

Bun-workspaces monorepo tracking token usage from local AI coding tools. Human overview: README.md.

  • packages/core — shared TypeScript types (@pew/core, private, zero runtime deps)
  • packages/cli — CLI tool (@nocoo/pew, published to npm, citty + consola + picocolors)
  • packages/web — SaaS dashboard (@pew/web, private, Next.js 16 + App Router)
  • packages/worker — Cloudflare Worker for D1 ingest writes (@pew/worker, private)
  • packages/worker-read — Cloudflare Worker for D1 read queries (@pew/worker-read, private)

Supported tools (9): Antigravity CLI, Claude Code, Codex, GitHub Copilot CLI, Grok, Hermes, OpenCode, OpenClaw, Pi.

Retired sources stay readable and count toward historical rankings, but never accept new token, session, evidence or accounting writes. Core SOURCES lists active tools; VALID_SOURCES includes historical identities. Ingest acknowledges and ignores exact retired identities so old mixed-source batches do not block active uploads.

Scope and instruction sources

  • This file applies throughout the repository.
  • packages/web/AGENTS.md and packages/web/CLAUDE.md are Next.js-generated adapters. Follow their framework guidance for web changes; do not recreate root legacy compatibility in them.
  • Maintain this file as the only root handbook; do not recreate CLAUDE.md, a symlink, an import or a compatibility alias.
  • Source of truth: root and packages/*/package.json, vitest.config.ts and vitest.e2e-cli.config.ts, biome.json, composite tsconfig references, .husky/, scripts/, .github/workflows/ci.yml, and the quality-system docs (upgrade, D1 isolation). Record drift rather than lowering the contract.

Setup and commands

Run from the repository root with Bun as package manager and runtime.

bun install --frozen-lockfile
bun run build
bun run dev
bun run typecheck
bun run lint
bun run test
bun run test:coverage
bun run test:e2e
bun run test:e2e:cli
bun run test:e2e:ui
bun run test:security
bun run sync-prices
bun run release

Read the full file on GitHub · 144 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. 2d ago First seen · 144 lines · 3,295 tokens per session scan A 16b581a0b02b

Subscribe to this mod's changes

pew AGENTS.md is an instructions file published in the GitHub repository nocoo/pew (14 stars, last pushed 3d ago), licensed MIT. It adds 3,295 tokens to every session, about $0.0132 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-11-04.

Related

pew AGENTS.md compared with instructions from other repositories

pew AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pew AGENTS.mdnocoo/pewInstructions file143d agoMITA3,295Codex, 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