agentpack: Instructions file for Claude Code

AGENTS.md

agentpack AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from OlegHQ/agentpack. It costs 14,538 tokens per session, scanned B, original, MIT.

Repository instructions for agentpack, a Rust command-line tool that pins GitHub-hosted skills, plugin folders, and plugin marketplaces for a project. It explains the project manifest, lockfile, user-wide storage, staging, and contribution rules.

In plain words
What is it for?
Working on agentpack's source code, dependency resolution, lockfiles, local storage, staging, harness-specific code, and pre-release changes.
Why use it?
They help agents understand exactly where dependencies come from and how versions are recorded, while warning that this pre-release tool may change in incompatible ways.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: ${CLAUDE_PLUGIN_ROOT} variable, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

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

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Reuse

Borrowing it

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

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 agentpack AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/oleghq/agentpack/agents-md"><img src="https://agentmods.dev/badge/instructions/oleghq/agentpack/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14,538 This file is loaded in full into every session.
When invoked 14,538 The same file — it is already loaded in full.
Security scan B 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.14538 $0.14538
Opus 5.5 $0.05815 $0.05815
Sonnet 5.5 $0.02908 $0.02908
Haiku 4.5 $0.01454 $0.01454

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

Security

Grade B, and why

agentpack AGENTS.md scanned grade B 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| **User** | **`~/.claude/settings.json`**, **`~/.claude.json`** (plus preferences, OAuth, MCP entries, and per-project UI state in the latter) |
AGENTS.md · 361 lines

How it starts

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

agentpack

agentpack is a Go CLI that pins GitHub-hosted skills, plugin directories (.claude-plugin, .cursor-plugin, and/or .codex-plugin), and single-plugin marketplace repositories for a project.

Source of truth for what to install is agentpack.toml at the repo root (direct dependencies, project-local modes, and MCP settings). pack.lock (v3; v2 still loads) lists every resolved package (direct and transitive from nested agentpack.toml files inside dependencies) with its pinned commit, cache_key, and a content_hash of its file tree, plus a record of what each staged MCP server runs. Both files live in the project repo.

All downloaded trees, the metadata index, and your local/ mirror live under a user-wide agentpack home (see below)—not under a repo-local .agentpack/ directory. Staging for harnesses still uses a per-project temp directory (or AGENTPACK_STAGING_ROOT).

Pre-release

No backwards compatibility. agentpack is pre-release: CLI behavior, lockfile shape, staging layout, env vars, and defaults may change without a migration period or deprecation window. Assume breaking changes between versions until a stable release is declared.

Release requirements

Every GitHub release description must begin with copyable, version-pinned install commands for every supported operating-system family: the shell installer for macOS/Linux and the PowerShell installer for Windows. Keep these commands in GoReleaser's release.header; do not publish a changelog-only release. The URLs must use {{ .Tag }} so each release installs itself rather than whatever latest points to. Both installer scripts and checksums.txt must be attached to the same release, and release validation must fail if any command or asset declaration is removed.

Installer scripts must default to the user-owned $HOME/.local/bin directory on every platform. They may create that directory and replace the agentpack executable inside it, but must never edit shell startup files, change the current process environment, or persistently modify the user's PATH. AGENTPACK_INSTALL_DIR is the only supported destination override.

Read the full file on GitHub · 361 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 · +4 lines · +419 tokens per session 37b75b4ba85a
  2. 27d ago Changed · +6 lines · +438 tokens per session 6170d9724cc8
  3. 28d ago Changed · +34 lines · +1,587 tokens per session d97615830cf4
  4. 1mo ago Changed · +68 tokens per session 9ba8959fccee
  5. 1mo ago Changed · +1 lines · +137 tokens per session 6c987f2e4d82
  6. 1mo ago Changed · +35 tokens per session 9c45d2b8cde5
  7. 1mo ago Changed · +13 tokens per session e532014c61a2
  8. 1mo ago Changed · +46 tokens per session a4ad3a255fd2
  9. 1mo ago Changed · +2 lines · +183 tokens per session c2a6e5520a8b
  10. 1mo ago First seen · 314 lines · 11,612 tokens per session scan B b1770a2ee39c

Subscribe to this mod's changes

agentpack AGENTS.md is an instructions file published in the GitHub repository OlegHQ/agentpack (16 stars, last pushed 22d ago), licensed MIT. It adds 14,538 tokens to every session, about $0.0582 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agentpack AGENTS.md compared with instructions from other repositories

agentpack AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentpack AGENTS.mdOlegHQ/agentpackInstructions file1622d agoMITB14,538Claude Code, Codex, 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