Borrowing it
Nothing to install: this file belongs to zenbase-ai/context42. 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/zenbase-ai/context42/main/CLAUDE.mdgit clone --depth 1 https://github.com/zenbase-ai/context42Wrote 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/zenbase-ai/context42/claude-md)<a href="https://agentmods.dev/instructions/zenbase-ai/context42/claude-md"><img src="https://agentmods.dev/badge/instructions/zenbase-ai/context42/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/zenbase-ai/context42/claude-md"><img src="https://agentmods.dev/badge/instructions/zenbase-ai/context42/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.01044 | $0.01044 |
| Opus 5.5 | $0.00418 | $0.00418 |
| Sonnet 5.5 | $0.00209 | $0.00209 |
| Haiku 4.5 | $0.00104 | $0.00104 |
Grade A, and why
context42 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 2mo 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 — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Principles
- Frequently refer to PLAN.md for the project plan.
- As you work, create a new log in .claude/logs/{plan-name}/{int}.md, where int is an increasing integer. You can reference previous logs. You'll have to create the directory.
Project Overview
Context42 is a TypeScript CLI that generates style guides for codebases using Google Gemini AI. It analyzes code files, generates language-specific style documentation, and provides an interactive terminal UI built with Ink (React for CLIs).
Development Commands
All commands use just (justfile). Key commands:
just dev- Run tests in watch modejust build- Production build with esbuildjust cli [args]- Build and run the CLIjust test [args]- Run tests with vitest (can pass file paths)just fmt- Format code with Biomejust lint- Lint code with Biomejust claude [args]- Run Claude CLI via bunxjust gemini [args]- Run Gemini CLI via bunxjust publish <version>- Bump version and publish to npm
CLI Usage
# Basic usage
just cli -i ./src -o ./docs
# Resume failed run
just cli --run <run-id>
# Debug mode (shows run ID)
just cli --debug
# Custom concurrency
just cli -c 8
Architecture
Core Modules
-
Explorer (
src/lib/explorer.ts)- Discovers files using globby
- Groups by language extension
- Filters common ignore patterns
- Returns structured FileInfo objects
-
Processor (
src/lib/processor.ts)- Worker pool pattern with abort support
- Dependency-aware processing (children before parents)
- Automatic cleanup via file registry
- Configurable concurrency (default: 4)
- Task distribution and result collection
-
Generator (
src/lib/generator.ts)- Creates Gemini prompts for style analysis
- Executes via ZX shell commands
- Handles rate limiting and errors
- Parses AI responses
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.
- 2mo ago First seen · 150 lines · 1,044 tokens per session scan A b93fb0e133c1
context42 CLAUDE.md is an instructions file published in the GitHub repository zenbase-ai/context42 (48 stars, last pushed 8mo ago), licensed MIT. It adds 1,044 tokens to every session, about $0.0042 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.
context42 CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| context42 CLAUDE.mdzenbase-ai/context42 | Instructions file | 48 | 8mo ago | MIT | A | 1,044 | 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 | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 1,907 | GitHub Copilot |