Borrowing it
Nothing to install: this file belongs to apify/apify-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/apify/apify-cli/master/CLAUDE.mdgit clone --depth 1 https://github.com/apify/apify-cliWrote 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.
[](https://agentmods.dev/instructions/apify/apify-cli/claude-md)<a href="https://agentmods.dev/instructions/apify/apify-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/apify/apify-cli/claude-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.
<a href="https://agentmods.dev/instructions/apify/apify-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/apify/apify-cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00763 | $0.00763 |
| Opus 5.5 | $0.00305 | $0.00305 |
| Sonnet 5.5 | $0.00153 | $0.00153 |
| Haiku 4.5 | $0.00076 | $0.00076 |
Grade A, and why
apify-cli CLAUDE.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 16d 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 — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Guidance for Claude Code working in this repository. Humans should read README.md and CONTRIBUTING.md first.
Entry points
apifyCLI —src/entrypoints/apify.tsactorCLI —src/entrypoints/actor.ts
Before you push
Run pnpm run lint && pnpm run format && pnpm run build && pnpm run test:local before pushing. Run pnpm run test:api too if you changed anything that touches the Apify API.
If you modified a command's flags, args, description, or added/removed a command, also run pnpm run update-docs and commit the regenerated docs/ output.
Code conventions
- Package manager: pnpm 10 (via Corepack). Do not use npm or yarn.
- Use
.jsimport specifiers for local files (e.g.import { foo } from './foo.js'). The.tssource resolves at build time. - Commands extend
ApifyCommandfromsrc/lib/command-framework/apify-command.ts. Follow the pattern of existing commands:static override name,static override description,static override flags/args, and anasync run()method. - New commands must be registered in
src/commands/_register.ts(or the parent_index.tsfor subcommands). - Do not add docstrings, comments, or type annotations to code you did not change. Keep diffs tight.
- Use contractions in command, flag, and arg descriptions, and in docs text: "doesn't", "can't", "aren't", not "does not", "cannot", "are not".
docs/is generated from these strings, so fix the source.
Install size
The CLI is installed globally by many users and in Actors, so keep the npm install footprint lean. Always look for opportunities to shrink it:
- Prefer Node.js built-ins over dependencies, and prefer dependencies already in the tree over new ones.
- Before adding a dependency, check what it drags in:
npm install <pkg>in an empty temp dir, thendu -sh node_modules. Mention the install-size impact in the PR description. - When touching code that uses a dependency, check whether the dependency is still pulling its weight — a single small helper from a large package is a candidate for replacement or removal.
- To measure the CLI's own footprint, run
node scripts/report-install-size.mjs— it packs the current tree and compares tarball, unpacked, and full-install sizes against the latest published version. The release workflows run it and embed the report in the GitHub release notes.
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.
- 16d ago Changed · +1 lines · +55 tokens per session c513ed88bdfc
- 2mo ago First seen · 47 lines · 708 tokens per session scan A f44548488921
apify-cli CLAUDE.md is an instructions file published in the GitHub repository apify/apify-cli (264 stars, last pushed today), licensed Apache-2.0. It adds 763 tokens to every session, about $0.0031 per session on Opus 5.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.
apify-cli CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| apify-cli CLAUDE.mdapify/apify-cli | Instructions file | 264 | today | Apache-2.0 | A | 763 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |