tools AGENTS.md

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 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/adamw7/tools/agents-md
Clone the repo
git clone --depth 1 https://github.com/adamw7/tools

Made for: Codex, OpenCode.

Per session 24,651 This file is loaded in full into every session.
When invoked 24,651 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.24651 $0.24651
Opus 5 $0.12326 $0.12326
Sonnet 5 $0.04930 $0.04930
Haiku 4.5 $0.02465 $0.02465

Measured 2d ago against content hash baba836b85cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 1,487 lines

How it starts

The opening of the file, as written. The whole thing — 1,487 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 builders are all-optional 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,487 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 · 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 4d ago), licensed MIT. It adds 24,651 tokens to every session, about $0.1233 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.