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.
npx agentmods add instructions/contentful/contentful.js/agents-mdgit clone --depth 1 https://github.com/contentful/contentful.jsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00860 | $0.00860 |
| Opus 5 | $0.00430 | $0.00430 |
| Sonnet 5 | $0.00172 | $0.00172 |
| Haiku 4.5 | $0.00086 | $0.00086 |
Grade A, and why
contentful.js 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.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guide
Read this file first. It tells you where to find context in this repo.
Quick Reference
| What you need | Where to look |
|---|---|
| How this repo is structured | ARCHITECTURE.md |
| How to build/test/run | CONTRIBUTING.md |
| Why decisions were made | docs/ADRs/ |
| What this repo does | README.md |
| PR review rules | .bito/guidelines/ |
| Active specs/work | docs/specs/ |
| Version migration guides | MIGRATION.md |
| Advanced usage patterns | ADVANCED.md |
| TypeScript usage | TYPESCRIPT.md |
Sharp Edges & Invariants
- Always run
npm run test:typesafter modifying types — type regressions are not caught by Vitest unit tests. Thetsdtype tests intest/types/are the only gate. - Always run
npm run checkafter changing build targets — es-check validates that output matches declared ES version targets (ES2017 for CJS/ESM, ES2018 for browser bundles). - Never modify the axios instance directly — HTTP configuration flows through
contentful-sdk-core'screateHttpClient. Custom headers go inCreateClientParams.headers. - Bundle size is CI-enforced —
size-limitchecks run in CI. If you add a dependency, verify it doesn't blow the 85KB (browser) / 45KB (min) limits vianpm run test:size. dist/esm-raw/is an intermediate build artifact — it's Rollup input, not a shipped output. Never import from it or reference it in package.json exports.- Link resolution happens in
contentful-resolve-response— not in this repo. If link resolution is broken, look there. - Content Source Maps only work with CPA —
includeContentSourceMaps: truerequireshost: 'preview.contentful.com'. It will not work with the CDA. __VERSION__is replaced at Rollup build time — it's defined inrollup.config.jsvia@rollup/plugin-replace. Don't reference it expecting a value at dev/test time without building first.
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.
- 2d ago First seen · 61 lines · 860 tokens per session scan A 8bc456be0539
contentful.js AGENTS.md is an instructions file published in the GitHub repository contentful/contentful.js (1,296 stars, last pushed 15d ago), licensed MIT. It adds 860 tokens to every session, about $0.0043 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.
Other instructions, from other repositories
contentful.php AGENTS.md
Instructions for contentful/contentful.php, covering agent guide, quick reference, sharp edges & invariants, key conventions and integration points.
contentful.net AGENTS.md
Instructions for contentful/contentful.net, covering agent guide, quick reference, sharp edges & invariants, key conventions and integration points.
node-sdk AGENTS.md
Instructions for transloadit/node-sdk, covering transloadit repository guide, coding style, general, playwright and typescript.
contentful-sdk-core AGENTS.md
Instructions for contentful/contentful-sdk-core, covering agent guide, quick reference, sharp edges & invariants, key conventions and integration points.
node-sdk CLAUDE.md
Instructions for transloadit/node-sdk, covering transloadit repository guide, coding style, general, playwright and typescript.
appwrite AGENTS.md
AGENTS.md instructions for appwrite/appwrite, covering appwrite, commands, stack, layout and libraries.