p2p

p2p is a command for Claude Code from sanic732/P2P-4PDA-edition. It costs 24 tokens per session (1,084 once invoked), scanned A, original, MIT.

A /p2p command that acts as a dispatcher: it shows a menu when started without a task, or routes non-empty arguments to the task system. It supports menu labels in Russian and English.

In plain words
What is it for?
Use it to open the full 42-item menu or send a specific task through the SIR routing system without displaying the menu.
Why use it?
It prevents a task passed as an argument from being mistaken for a request to display the menu.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the p2p-v8c3 plugin — 9 skills, 13 commands, 8 agents, 2 hooks shipped together

Good fit Use it to open the full 42-item menu or send a specific task through the SIR routing system without displaying the menu.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sanic732/p2p-4pda-edition/p2p
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.

Clone the repo
git clone --depth 1 https://github.com/sanic732/P2P-4PDA-edition

Made for: Claude Code.

Or install p2p-v8c3, the plugin that ships this one along with the rest of its 9 skills, 13 commands, 8 agents, 2 hooks.

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 p2p

README.md
[![agentmods](https://agentmods.dev/badge/commands/sanic732/p2p-4pda-edition/p2p/github.svg)](https://agentmods.dev/commands/sanic732/p2p-4pda-edition/p2p)
Your own site
<a href="https://agentmods.dev/commands/sanic732/p2p-4pda-edition/p2p"><img src="https://agentmods.dev/badge/commands/sanic732/p2p-4pda-edition/p2p/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 p2p

Your own site · 80×15
<a href="https://agentmods.dev/commands/sanic732/p2p-4pda-edition/p2p"><img src="https://agentmods.dev/badge/commands/sanic732/p2p-4pda-edition/p2p.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,084 The whole file, excluding the scripts and references it only reads on demand.
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.00024 $0.01084
Opus 5 $0.00012 $0.00542
Sonnet 5 $0.00005 $0.00217
Haiku 4.5 $0.00002 $0.00108

Measured 9d ago against content hash 59fb1a318e76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

p2p 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 9d 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.

editions/8.4.6-C/plugin/.claude/commands/p2p.md · 92 lines

How it starts

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

/p2p — Главная Команда (диспетчер)

Что делает: Единая точка входа. Разводит два разных сценария — показ меню и исполнение задачи. Раньше команда всегда показывала меню, из-за чего задача, переданная в аргументах, уходила в обычную генерацию мимо системы.

ШАГ 0 — РАЗВЕТВЛЕНИЕ (выполняется первым, до всего остального)

ARGS = аргументы команды (то, что после /p2p)

IF ARGS пусто  OR  ARGS ∈ {start, старт, menu, меню, full ui menu}
    → ВЕТКА A: МЕНЮ
ELSE
    → ВЕТКА B: ДИСПЕТЧЕР ЗАДАЧИ   ← меню НЕ показывать

Ветка B — поведение по умолчанию для любого непустого аргумента, который не является явной командой показа меню. При сомнении, задача это или команда, — переспросить одной строкой, а не показывать меню.

ВЕТКА A — МЕНЮ

  1. Определить среду (TRI_MODE_BRIDGE v3 → core.md)
  2. Загрузить p2p.config.md, если есть
  3. Показать меню целиком — все 42 пункта [1][42], без усечения (core.md → МЕНЮ) Пункты [35][40] и [42] показывать как 🔒, если соответствующий модуль не загружен
  4. Вывести: [P2P 8.4.6-C | Среда: {СРЕДА} | Guardian: {ON/OFF}]

ВЕТКА B — ДИСПЕТЧЕР ЗАДАЧИ

Меню не выводится. Идти по маршруту:

1. SIR SCANNER            (core.md → SIR SCANNER v3.3)
   SIGNAL → INTENT → ROUTE
   INTENT ∈ {GENERATE, ANALYZE, BUILD, EXPLAIN, REFINE, DECIDE}

2. TIER CLASSIFICATION    (core.md → Tier Classification)
   T0..T4 + LoadScore; LoadScore > 0.7 → Tier +1

3. ROUTE (таблица SIR, не переизобретать):
   T0-1 + GENERATE  → быстрый промпт [3] или шаблон [4]
   T2   + GENERATE  → Contract Builder [2]
   T3-4 + GENERATE  → QUORUM [6] → Contract Builder
   T2-3 + ANALYZE   → SIR + Audit [11]
   T3-4 + BUILD     → SCOPE.HELM [25] → ATLAS [23]
   T4   + DECIDE    → QUORUM [6] с DEEP_THINK
   ANY  + REFINE    → Debug Engine [12] → iteration

4. CONTRACT BUILDER       (contract_builder.md)
   Собрать 9-шаговый контракт.

5. СИНТАКСИС ВЫВОДА — по P1 CROSS_MODEL_GENERATION_AWARENESS (core.md → ПРАВИЛА ЯДРА):
   контракт выдаётся в синтаксисе TARGET_MODEL, НЕ HOST_MODEL.
   TARGET не задан → TARGET = HOST.
   HOST=claude И TARGET=claude → XML (нативный формат Claude), не markdown.

Read the full file on GitHub · 92 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. 9d ago First seen · 92 lines · 0 tokens per session scan A 59fb1a318e76

Subscribe to this mod's changes

p2p is a command published in the GitHub repository sanic732/P2P-4PDA-edition (17 stars, last pushed 21d ago), licensed MIT. It adds 24 tokens to every session and 1,084 once invoked, about $0.0001 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-30.