tools: Instructions file for Claude Code

AGENTS.md

tools AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from adamw7/tools. It costs 26,582 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working in a multi-module Java project built with Maven, a Java build tool. They describe the project, its modules, and where to find more detailed guidance.

In plain words
What is it for?
Use them when asking an agent to understand the project layout, follow its adoption process, or work on a specific module using the related project skills.
Why use it?
They give agents one trusted place to learn the repository's rules and structure, reducing guesswork and inconsistent changes.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: $CLAUDE_PROJECT_DIR variable, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is adamw7/tools's own configuration. It tells Claude Code, Codex and OpenCode how to work on tools 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 tools configures →

View source ↗ adamw7/tools
Reuse

Borrowing it

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

Made for: Claude Code, 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 tools AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adamw7/tools/agents-md"><img src="https://agentmods.dev/badge/instructions/adamw7/tools/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26,582 This file is loaded in full into every session.
When invoked 26,582 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.26582 $0.26582
Opus 5.5 $0.10633 $0.10633
Sonnet 5.5 $0.05316 $0.05316
Haiku 4.5 $0.02658 $0.02658

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

Security

Grade A, and why

tools 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 23d 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 · 1,594 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository. Human contributors may find it useful too. This file follows the agents.md convention and is the single source of truth for agent instructions; CLAUDE.md defers to it.

Detail that only matters while working on one area lives in the project skills under .claude/skills/ (see Agent configuration). Prefer loading the relevant skill over re-deriving a convention; this file states the rule, the skill carries the reasoning and the worked example.

Project overview

tools is a multi-module Maven library of Java tooling:

  • Code generation (code/protogen-maven-plugin) — a Maven plugin that generates protobuf builders which detect a missing required field at compile time instead of runtime (shift-left). proto2 required fields are enforced by the builder chain; proto3 has no required fields, so its chain holds only the repeated and map fields (steps in every syntax), with presence-aware hasXxx() accessors for message fields and explicit optional fields only; a oneof group gets a getXxxCase() discriminator and a clearXxx() that resets the whole group. Skill: protogen.
  • Context engineering (code/context) — a fast, regex-based finder that builds the tree of classes a given class uses, plus a ProjectTreeBuilder that scans a whole Java project into a tree of folders, files and dependencies, to assemble context for gen-AI agents. The same tree can be emitted as a bundle in Google's Open Knowledge Format (OKF) v0.2 — a directory of markdown concept documents with YAML frontmatter, in the io.github.adamw7.context.okf package. An MCP server (io.github.adamw7.context.mcp) exposes the project-tree, context-finder, token-estimation and OKF-bundle tools. Skill: context-finder.
  • Data (data) — data sources (CSV, GZip, JDBC, Parquet, JSON, YAML, TOON), each in an in-memory and an iterative variant. Parquet is read through an in-process DuckDB engine, so it exposes columns and rows like any other JDBC-backed source. Sources that know their columns up front implement ColumnarDataSource, a narrower contract than IterableDataSource, so a caller that needs the schema — such as the uniqueness check — cannot be handed a forward-only source (JSON/YAML/TOON) that would only answer null. A read that breaks part-way through fails instead of reading as a short file: the Scanner-backed sources check Scanner.ioException() before reporting the end of the data, so a truncated transfer or a corrupt GZip member cannot pass for a clean end and leave the uniqueness check calling a column unique on half a file. Also a uniqueness checker (does a subset of columns form a key, and is there a smaller one), open-addressing collections (OpenAddressingMap, OpenAddressingSet, the primitive IntKeyOpenAddressingMap), and an MCP server exposing the uniqueness checker. Skill: data-sources.
  • Claude Code adoption (adopt) — an ordered pipeline that adopts Claude Code into a GitHub repository. Skill: adopt-pipeline. Summarised below.

Read the full file on GitHub · 1,594 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. 23d ago Changed · +31 lines · +555 tokens per session 242b211d9ebb
  2. 25d ago Changed · +4 lines · +64 tokens per session 53e0db5e7198
  3. 26d ago Changed · -15 lines · -236 tokens per session 3a26d0eac038
  4. 1mo ago Changed · +19 lines · +303 tokens per session db57c9bcff5b
  5. 1mo ago Changed · +15 lines · +272 tokens per session a4699700be94
  6. 1mo ago Changed · +9 lines · +152 tokens per session 89c6cdb894ac
  7. 1mo ago Changed · +3 tokens per session b70de3f29793
  8. 1mo ago Changed · +44 lines · +818 tokens per session 56d922370c75
  9. 1mo ago First seen · 1,487 lines · 24,651 tokens per session scan A baba836b85cd

Subscribe to this mod's changes

tools AGENTS.md is an instructions file published in the GitHub repository adamw7/tools (11 stars, last pushed today), licensed MIT. It adds 26,582 tokens to every session, about $0.1063 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

Other instructions, from other repositories

vibetags com-example-service-OrderService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for orderservice, rules for method calculatetax, rules for method processpayment, rules for method validateorder and context & focus.

PIsberg/vibetags · 553 tokens

vibetags com-example-security-SecurityConfig.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for securityconfig, locked status, rules for method getencryptionalgorithm, rules for method getkeyrotationhours and rules for method getmaxloginattempts.

PIsberg/vibetags · 281 tokens

vibetags com-example-service-TransactionalPaymentService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for transactionalpaymentservice and strict exception handling.

PIsberg/vibetags · 104 tokens

vibetags com-example-config-AsyncTestConfig.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for asynctestconfig and immutable type.

PIsberg/vibetags · 82 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens