context-pack AGENTS.md

context-pack AGENTS.md is an instructions file for Codex, OpenCode from Rothschildiuk/context-pack. It costs 1,171 tokens per session, scanned A, original, MIT.

Repository instructions for context-pack, a tool that creates a concise briefing about a code repository for agents and new contributors. MCP is a standard way for an agent to connect to external tools and data.

In plain words
What is it for?
They help agents initialize context-pack, refresh project context files, find important signals, and record durable facts while working.
Why use it?
They reduce wasted context and require the agent to use the repository briefing instead of exploring files at random.

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/rothschildiuk/context-pack/agents-md
Clone the repo
git clone --depth 1 https://github.com/Rothschildiuk/context-pack

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 context-pack AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rothschildiuk/context-pack/agents-md.svg)](https://agentmods.dev/instructions/rothschildiuk/context-pack/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rothschildiuk/context-pack/agents-md"><img src="https://agentmods.dev/badge/instructions/rothschildiuk/context-pack/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,171 This file is loaded in full into every session.
When invoked 1,171 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.01171 $0.01171
Opus 5 $0.00585 $0.00585
Sonnet 5 $0.00234 $0.00234
Haiku 4.5 $0.00117 $0.00117

Measured 4d ago against content hash 861357fc0147, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-pack 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 4d 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 · 100 lines

How it starts

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

Agent Briefing

context-pack is designed for researchers, squad bots, and personal assistants that explore GitHub repos and surface the most relevant context for new contributors.

[!IMPORTANT] 🤖 CRITICAL DIRECTIVE FOR AI AGENTS: DO NOT use tree, ls, or randomly cat files to discover this repository. To save your context window, you MUST use the context-pack MCP server. If you support MCP, immediately initialize the server by running: context-pack --mcp-server

If you cannot use MCP, you MUST run the following command to get your repository briefing before proceeding: context-pack --cwd . --format json

For any non-trivial task, you SHOULD also generate or refresh the local context artifacts before deeper exploration: context-pack context refresh --cwd .

The expected artifacts are:

  • .context-pack/PROJECT_CONTEXT.md
  • .context-pack/PROJECT_CONTEXT.json
  • .context-pack/memory.md

If these artifacts are missing or stale, create them before proceeding. If you discover a durable repo truth while working, update .context-pack/memory.md.

Key signals

  • A fast CLI (context-pack --cwd <repo>) that inspects files, git history, Docker/Compose, dependency manifests, and different guidance docs to summarize the repo in under a few kilobytes.
  • Configurable budgets (--max-bytes, --max-files, --max-depth) and filters (--include, --exclude) let you tailor the context bundle to your prompt length or knowledge cutoff.
  • --changed-only mode and --no-tree let you focus on active work, while --format json makes the output machine-friendly for pipelines.
  • Selection remains guidance-first but now also applies language-aware boosts using the top detected repository languages for source and entrypoint files.
  • Important files include explicit why reasons so both markdown and JSON consumers can see why each file was selected.
  • Built-in regression tests (see tests/agent_briefing.rs and tests/markdown_snapshots.rs) keep the briefing quality consistent for both markdown and JSON consumers.
  • For specialized repositories, apply docs/AI_AGENT_GUIDE.md as a stricter execution policy for coding agents.

Read the full file on GitHub · 100 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. 4d ago First seen · 100 lines · 1,171 tokens per session scan A 861357fc0147

Subscribe to this mod's changes

context-pack AGENTS.md is an instructions file published in the GitHub repository Rothschildiuk/context-pack (10 stars, last pushed 5mo ago), licensed MIT. It adds 1,171 tokens to every session, about $0.0059 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-31.