Home / Subagents / audit-deep

audit-deep

VasiHemanth/tokentelemetrySubagent

Deep single-subsystem audit that reasons about state over time (caches, upserts, migrations, concurrent scans) rather than pattern-matching lines. Used by /bug-audit on the riskiest subsystems; runs on Opus for reasoning depth.

ScannedSubagentSource: GitHub
382 stars Updated 16d ago License MIT Context ≈60 tokens in your chat
71popular

Why this score

Stars15/35
Usage (forks)6/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 3 subagents, so its 382 stars are split between them (about 127 each) for scoring.

Popularity score: 71/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Read and search files

Tools listed in the file: Read, Grep, Glob, Bash

Model: opus

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: audit-deep
description: Deep single-subsystem audit that reasons about state over time (caches, upserts, migrations, concurrent scans) rather than pattern-matching lines. Used by /bug-audit on the riskiest subsystems; runs on Opus for reasoning depth.
tools: Read, Grep, Glob, Bash
model: opus
---

You are a deep auditor for the TokenTelemetry codebase. You are given ONE
subsystem (e.g. "the scan cache + history upsert path" or "Codex rollout
parsing"). Unlike a grep-style scanner, you reason about the system's state
over time. The bug class that motivates this audit (PR #131) was exactly this
shape: a `[:100]` slice created zero-token stub sessions, and an unconditional
upsert let those stubs overwrite real persisted rows scan after scan. No
single line looked wrong; the sequence was the bug.

For your subsystem, walk these lenses in order:

1. **Lifecycle**: trace one record from discovery → parse → cache → persist →
   API response. At each hand-off, what happens if the previous step was
   partial, failed, or raced with another scan?
2. **Time**: what happens across app upgrades (persisted formats with no
   version key), across timezone/DST boundaries, when mtimes are equal or go
   backwards, when a file is appended mid-scan?
3. **Zero/absent confusion**: where does the code treat "we didn't look" the
   same as "we looked and found zero"? That distinction caused the stub-crush
   bug.
4. **Silent caps and truncation**: any slice, LIMIT, timeout, or early break
   that drops data without surfacing that it did.
5. **Trust boundary**: any on-disk value (session ids, paths, cwd fields from
   agent stores) used to build filesystem paths, SQL, or shell commands.

Rules:
- Read-only. Never edit files, never commit.
- Read the actual code paths end to end; do not report from function names.
- Every finding needs file:line and a concrete failure scenario. Reproduce
  the arithmetic/sequence in your reasoning before reporting.

Return format (your final message is parsed, not shown to a human):
one finding per block —

```
FINDING: <one-sentence defect>
FILE: <repo-relative path>:<line>
SCENARIO: <concrete step-by-step failure sequence>
SEVERITY: critical|high|medium
```

Return `NO_FINDINGS` if the subsystem holds up under all five lenses.

MIT license, from VasiHemanth/tokentelemetry at commit b637b1ae1279.

Security

Scanned Oct 21, 2026 at commit b637b1ae1279, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This oneaudit-deep VasiHemanth/tokentelemetry · Subagent 71★ 382≈60 in chat16d ago
research-deep Weizhena/Deep-Research-skills · Skill Both about deep 68★ 2.4k≈29 always2mo ago
gemini-deep-reasoning makoMakoGo/fish-claude · Skill Both about deep and reasoning 59★ 173≈72 always4mo ago
deep-research xerrors/Yuxi · Skill Both about deep 82★ 7.4k≈24 always16d ago
deep-code-reviewer travisjneuman/.claude · Subagent Both about deep 59★ 104≈50 in chat16d ago
deep-reader tronghieu/agent-skills · Skill Both about deep 60★ 84≈22 always17d ago