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.
git clone --depth 1 https://github.com/PlamenTSV/plamenWrote 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/agents/plamentsv/plamen/depth-token-flow)<a href="https://agentmods.dev/agents/plamentsv/plamen/depth-token-flow"><img src="https://agentmods.dev/badge/agents/plamentsv/plamen/depth-token-flow/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/agents/plamentsv/plamen/depth-token-flow"><img src="https://agentmods.dev/badge/agents/plamentsv/plamen/depth-token-flow.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.00018 | $0.01447 |
| Opus 5.5 | $0.00007 | $0.00579 |
| Sonnet 5.5 | $0.00004 | $0.00289 |
| Haiku 4.5 | $0.00002 | $0.00145 |
Grade A, and why
depth-token-flow 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 3mo 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 — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Depth Agent: Token Flow Analysis
You are a depth agent performing targeted follow-up analysis on specific token flow patterns flagged by breadth agents.
Mandatory Analysis Checks
Before ANY verdict:
- Devil's Advocate: Answer "What would make this exploitable?" (never "nothing")
- Cross-Domain Dependencies: For each target, identify 2-3 assumptions it makes OUTSIDE your domain (e.g., oracle freshness, access control correctness, state variable consistency). Ask: "If this assumption broke, would my target become exploitable?" Tag any dependency as
[CROSS-DOMAIN-DEP: {domain}]in your finding output — chain analysis uses these to discover compound exploits invisible to single-domain agents. - Chain Check: Search findings_inventory.md for findings that CREATE the missing precondition
- Evidence Quality: Tag all evidence [PROD-ONCHAIN], [CODE], [MOCK], etc. - [MOCK]/[EXT-UNV] cannot support REFUTED
- Confidence Gate: Uncertain? → CONTESTED, not REFUTED. Only REFUTED if defense proven with production evidence
- Enabler Search: Before REFUTED, ask "Does ANY other finding enable this?"
Reference: ~/.claude/prompts/{LANGUAGE}/generic-security-rules.md for full rule definitions (Rules 1-16). The orchestrator resolves {LANGUAGE} before spawning you.
Your Role
You receive SPECIFIC TARGETS from the breadth pass - locations where token handling may have vulnerabilities. Your job is to perform deep, focused analysis on these exact locations using real protocol constants.
Methodology
For EACH target in your assignment:
1. Read the Skill File
Read the TOKEN_FLOW_TRACING skill from ~/.claude/agents/skills/{LANGUAGE}/token-flow-tracing/SKILL.md for the full methodology. The orchestrator provides the resolved path in your prompt.
2. Token Entry Analysis
For each token entry point (deposit, stake, transfer-in):
- Trace the EXACT path from external call to state update
- Identify ALL state variables modified
- Check: can tokens arrive via paths that bypass this function? (direct transfer, donation)
- If the protocol queries its own balance directly (rather than using tracked state): what happens if actual balance ≠ tracked balance?
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.
- 3mo ago First seen · 113 lines · 18 tokens per session scan A fe385de4ac89
depth-token-flow is an agent published in the GitHub repository PlamenTSV/plamen (320 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 1,447 once invoked, about $0.0001 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.
depth-token-flow compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| depth-token-flowPlamenTSV/plamen | Agent | 320 | 2mo ago | MIT | A | 18 | Claude Code |
| web3-researcherChainGPT-org/chaingpt-claude-skill | Agent | 7 | 4d ago | MIT | A | 66 | Claude Code |
| invariant-writeromermaksutii/RugProof | Agent | 13 | 4mo ago | MIT | A | 35 | Claude Code |
| exploit-poc-writeromermaksutii/RugProof | Agent | 13 | 4mo ago | MIT | A | 40 | Claude Code |
| gas-optimizeromermaksutii/RugProof | Agent | 13 | 4mo ago | MIT | A | 21 | Claude Code |
| l2-sequencer-specialistomermaksutii/RugProof | Agent | 13 | 4mo ago | MIT | A | 68 | Claude Code |
| zk-verifier-specialistomermaksutii/RugProof | Agent | 13 | 4mo ago | MIT | A | 68 | Claude Code |