civic-ai-tools: Instructions file for Codex

AGENTS.md

civic-ai-tools AGENTS.md is an instructions file for Codex, OpenCode from npstorey/civic-ai-tools. It costs 2,102 tokens per session, scanned C, original, MIT.

Repository-specific instructions for civic-ai-tools, a project that connects agents to public-data sources such as NYC Open Data and Google Data Commons. It also documents shared standards, commands, configuration, and information boundaries.

In plain words
What is it for?
Guiding code changes, repository navigation, setup, MCP configuration, and publishing work in civic-ai-tools.
Why use it?
It gives coding agents the rules and context needed to work safely across the project’s four related repositories. It helps prevent private relationship details or secrets from being committed to the public codebase.

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 npstorey/civic-ai-tools's own configuration. It tells Codex and OpenCode how to work on civic-ai-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 civic-ai-tools configures →

Reuse

Borrowing it

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

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 civic-ai-tools AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/npstorey/civic-ai-tools/agents-md"><img src="https://agentmods.dev/badge/instructions/npstorey/civic-ai-tools/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,102 This file is loaded in full into every session.
When invoked 2,102 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02102 $0.02102
Opus 5.5 $0.00841 $0.00841
Sonnet 5.5 $0.00420 $0.00420
Haiku 4.5 $0.00210 $0.00210

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

Security

Grade C, and why

civic-ai-tools AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Prove any install-path claim in a fresh `git clone`,** never an in-place `rm -rf node_modules`; npm 10.x runs
AGENTS.md · 97 lines

How it starts

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

AGENTS.md

The hub repo of a four-repo project: MCP configs and setup tooling for civic open data (NYC Open Data via Socrata, Google Data Commons), the Typed Standards Specification and its ADRs, the source of truth for shared skill guidance, and the publish-record skill. npm workspaces (two packages, packages/civic-typed-harness and packages/civic-typed-router) alongside Python examples. Cursor and Codex read this file natively; CLAUDE.md is a one-line bridge to it.

Boundaries

This repo is public. Strategic and relationship context — named external stakeholders, prospective collaborators, pre-meeting strategy, private outreach plans, named individuals' opinions — lives in local-only planning docs, never here. Use neutral phrasing ("an external stakeholder", "an upcoming demo") wherever output lands in this repo; if a prompt you received carries strategic context, scrub it first.

Never push to main, and never bypass a git hook or the pre-push sensitivity guard. The guard scans the added lines of each outgoing commit, not the net diff, so a fix commit on top never clears it — rebuild the branch history.

Dependabot's PRs pass the same gates as any PR and merge only on the seat's GO, never on the bot's green alone (the two keys).

Secret hygiene (incident: civic#174, the 2026-08-22 token exposure). Never cat, head, tail, or otherwise dump .env*, auth.json, credentials*, *.pem, *.key, or anything under ~/.ssh or ~/.aws. Two reads are permitted: a field-scoped read by key name (grep '^VAR_NAME=' .env, or jq over non-secret fields), and a command the tool itself exposes (publish.py --list-tokens prints prefix, scope, and expiry only). One prohibition: never load-and-print a credentials file, even through a redaction filter — a filter applied at the wrong nesting level prints the value it was written to hide. Publish tokens live in ~/.config/civic-ai-tools/credentials.json; --logout is local-only, revocation is the dashboard. Setup keys belong in .env; tell a user to paste them there, never into a chat.

Read the full file on GitHub · 97 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 Changed · +1 lines · +57 tokens per session 4ef298fc5804
  2. 7d ago Changed · +3 lines · +53 tokens per session b17e257bd4c6
  3. 27d ago Changed · +21 tokens per session cfded126920b
  4. 1mo ago Changed · +22 tokens per session d8b6dac0da55
  5. 1mo ago Changed · +1 lines · +42 tokens per session ab33c6a8bb93
  6. 1mo ago Changed · +1 lines · +40 tokens per session 051040481112
  7. 1mo ago Changed · +1 lines · +46 tokens per session bdcfc70dfe05
  8. 1mo ago Changed · +9 lines · +272 tokens per session 9929e988d9d8
  9. 1mo ago Changed 830321609058
  10. 2mo ago First seen · 81 lines · 1,549 tokens per session scan C 294602877f27

Subscribe to this mod's changes

civic-ai-tools AGENTS.md is an instructions file published in the GitHub repository npstorey/civic-ai-tools (48 stars, last pushed yesterday), licensed MIT. It adds 2,102 tokens to every session, about $0.0084 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

civic-ai-tools AGENTS.md compared with instructions from other repositories

civic-ai-tools AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
civic-ai-tools AGENTS.mdnpstorey/civic-ai-toolsInstructions file48yesterdayMITC2,102Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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