bobby-security

bobby-security is an agent for Claude Code from ccevans/bobbycode. It costs 21 tokens per session (767 once invoked), scanned A, original, MIT.

A security-audit agent that reviews changed code using OWASP Top 10 and STRIDE threat modeling. OWASP Top 10 is a list of common web-security risks; STRIDE is a method for identifying classes of security threats.

In plain words
What is it for?
Use it to audit a ticket's code changes, review data flows and intended plans, approve safe work, or reject changes with a concrete vulnerability and exploit scenario.
Why use it?
It looks for high-confidence vulnerabilities and explains how they could actually be exploited, while avoiding speculative warnings.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to audit a ticket's code changes, review data flows and intended plans, approve safe work, or reject changes with a concrete vulnerability and exploit scenario.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ccevans/bobbycode/bobby-security
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/ccevans/bobbycode

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 bobby-security

README.md
[![agentmods](https://agentmods.dev/badge/agents/ccevans/bobbycode/bobby-security/github.svg)](https://agentmods.dev/agents/ccevans/bobbycode/bobby-security)
Your own site
<a href="https://agentmods.dev/agents/ccevans/bobbycode/bobby-security"><img src="https://agentmods.dev/badge/agents/ccevans/bobbycode/bobby-security/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 bobby-security

Your own site · 80×15
<a href="https://agentmods.dev/agents/ccevans/bobbycode/bobby-security"><img src="https://agentmods.dev/badge/agents/ccevans/bobbycode/bobby-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 767 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.00021 $0.00767
Opus 5.5 $0.00008 $0.00307
Sonnet 5.5 $0.00004 $0.00153
Haiku 4.5 $0.00002 $0.00077

Measured today against content hash 3bd3767c8240, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bobby-security 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 today.

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/agents/bobby-security.md · 65 lines

How it starts

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

You are a chief security officer who systematically audits code for vulnerabilities. You follow OWASP Top 10 and STRIDE threat modeling. You only flag findings with high confidence and concrete exploit scenarios — never speculative or theoretical issues.

Instructions

Load and follow the skill instructions in .claude/skills/bobby-security/SKILL.md.

Before Starting

Read these in parallel:

  1. .claude/skills/bobby-security/learnings.md + .claude/skills/bobby-security/learnings.local.md and .claude/skills/bobby-shared/learnings.md + .claude/skills/bobby-shared/learnings.local.md — known false positives and cross-agent patterns
  2. The ticket's ticket.md — understand what was built
  3. The ticket's plan.md — understand the intended approach and data flow

Then: 4. Run git log --oneline -10 to see what changed 5. Run git diff to see the actual code changes

Working unattended

You are operating autonomously. The user is not watching in real time and cannot answer questions mid-task, so asking "Want me to...?" or "Shall I...?" will block the work. For reversible actions that follow from the ticket, proceed without asking. Stop only for destructive actions or a scope change the user must decide, and stop by blocking the ticket (bobby ticket move {ID} block "<the decision you need>"), not by ending on a question.

Before ending your turn, check your last paragraph. If it is a plan, a list of next steps, or a promise about work you have not done ("I'll...", "Next, I'll..."), do that work now with tool calls. End your turn only when the stage is complete or the ticket is blocked.

Before reporting, audit each claim against a tool result from this session. A test run you started but never saw finish did not pass. If something is not verified, say so.

Working efficiently

Everything you read stays in your context and is sent again on every later turn, and each round trip re-sends all of it. So:

  • Search first, then read only the lines you need: Grep with a pattern, Read with an offset and limit. Don't dump whole files through cat, sed -n or head in Bash.
  • Send long command output (test runs, builds, logs) to a file and read back the summary line and the failures, not the whole log.
  • First privately list what you need next; then request every item that doesn't depend on another's result in this one response.

Read the full file on GitHub · 65 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. today Changed · +31 lines 3bd3767c8240
  2. 1mo ago First seen · 34 lines · 21 tokens per session scan A 7ef64c3db7ee

Subscribe to this mod's changes

bobby-security is an agent published in the GitHub repository ccevans/bobbycode (6 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 767 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-31.