pentagi: Instructions file for Claude Code

CLAUDE.md

pentagi CLAUDE.md is an instructions file for Claude Code from vxcontrol/pentagi. It costs 7,380 tokens per session, scanned A, original, MIT.

A set of coding-agent instructions for PentAGI, an AI-assisted platform for automated security testing, covering project rules, development commands, and backend work.

In plain words
What is it for?
Use it when working on PentAGI, especially authentication, password validation, frontend/backend changes, or backend development commands.
Why use it?
It gives agents the project's required conventions and safety-related implementation rules before they modify the codebase.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is vxcontrol/pentagi's own configuration. It tells Claude Code how to work on pentagi 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 pentagi configures →

About the project

vxcontrol/pentagi is an AI system that carries out penetration-testing tasks using multiple agents and security tools inside isolated Docker environments. It is intended for information-security professionals, researchers, and ethical hackers who automate security testing. The catalogue includes an instruction for working with PentAGI.

vxcontrol/pentagi · 33,445 stars · on GitHub · pentagi.com

Reuse

Borrowing it

Nothing to install: this file belongs to vxcontrol/pentagi. 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/vxcontrol/pentagi/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/vxcontrol/pentagi

Made for: Claude Code.

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 pentagi CLAUDE.md

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

agentmods 80×15 button for pentagi CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vxcontrol/pentagi/claude-md"><img src="https://agentmods.dev/badge/instructions/vxcontrol/pentagi/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,380 This file is loaded in full into every session.
When invoked 7,380 The same file — it is already loaded in full.
Security scan A 0 findings. 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.07380 $0.07380
Opus 5.5 $0.02952 $0.02952
Sonnet 5.5 $0.01476 $0.01476
Haiku 4.5 $0.00738 $0.00738

Measured 1mo ago against content hash 558629cd9b57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pentagi 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 1mo 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.

CLAUDE.md · 289 lines

How it starts

The opening of the file, as written. The whole thing — 289 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.

Core Interaction Rules

  1. English for code, comments, documentation, commit messages and identifiers.
  2. Password Complexity Requirements: For all password-related development (registration, password reset, API token generation, etc.), enforce the same policy in both backend and frontend — never rely on frontend validation alone. Source of truth, keep the two in sync: backend/pkg/password/policy.go (the API validator and the installer both call it) and frontend/src/features/authentication/password-change-form.tsx (zod schema). The policy:
    • Length 8–72 characters (72 bytes, the most bcrypt will hash — a longer value fails inside bcrypt.GenerateFromPassword, after validation).
    • A password is valid if it is either 16+ characters (any composition), or 8–15 characters containing at least 1 lowercase letter, 1 uppercase letter, 1 number, and 1 special character from !@#$&*.
  3. Markdown is prose, not wrapped to a width. In a .md file every paragraph, list item and table row is one line, and the text is split into paragraphs where the thought changes, not where a column ends — the viewer wraps it. Hard wrapping at a fixed width belongs only to comments in code.

Code Comments

The target: comment lines at 0–2% of a file of logic and about 18% of a file of type declarations; function bodies of hundreds of lines carry none, because the code says what it does.

A comment earns its place only by carrying what the code cannot show: why this decision and not the obvious one, what external constraint it works around, why the code exists at all, and — where it genuinely matters — the boundary conditions. It must help maintenance and must not cost readability.

  1. Never restate the code. If the sentence follows from the line under it, delete it. A doc comment that only repeats an identifier's name is noise; delete it rather than reword it. A comment that repeats the fmt.Errorf or log message on the next line is noise too.

Read the full file on GitHub · 289 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. 1mo ago Changed · +1 lines · +36 tokens per session 558629cd9b57
  2. 1mo ago Changed · +129 lines · +5,036 tokens per session 274911f11093
  3. 2mo ago First seen · 159 lines · 2,308 tokens per session scan A 395692e23079

Subscribe to this mod's changes

pentagi CLAUDE.md is an instructions file published in the GitHub repository vxcontrol/pentagi (33,445 stars, last pushed 15d ago), licensed MIT. It adds 7,380 tokens to every session, about $0.0295 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.

Related

pentagi CLAUDE.md compared with instructions from other repositories

pentagi CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pentagi CLAUDE.mdvxcontrol/pentagiInstructions file33k15d agoMITA7,380Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode