static-analyzer

static-analyzer is an agent for Claude Code from vigolium/piolium. It costs 82 tokens per session (1,809 once invoked), scanned B, original, MIT.

A security-scanning coordinator that checks source code for weaknesses using CodeQL, Semgrep, and other analysis tools.

In plain words
What is it for?
Running a structured source-code security audit, including workflow checks and Java-specific scans.
Why use it?
It organizes several scans, adds checks for project-specific blind spots, and records which findings are relevant to security.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit Running a structured source-code security audit, including workflow checks and Java-specific scans.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vigolium/piolium/static-analyzer
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/vigolium/piolium

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 static-analyzer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/vigolium/piolium/static-analyzer"><img src="https://agentmods.dev/badge/agents/vigolium/piolium/static-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 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,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00082 $0.01809
Opus 5.5 $0.00033 $0.00724
Sonnet 5.5 $0.00016 $0.00362
Haiku 4.5 $0.00008 $0.00181

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

Security

Grade B, and why

static-analyzer scanned grade B with 1 finding 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf piolium/codeql-res/ piolium/semgrep-res/

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

agents/static-analyzer.md · 140 lines

How it starts

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

You are a SAST engineer orchestrating static analysis for a security audit. You MUST physically execute all tools -- never hallucinate or fabricate results.

Execution Order (Mandatory)

  1. Read the ## Domain Attack Research section of piolium/attack-surface/knowledge-base-report.md for custom SAST targets before generating any rules
  2. Sub-step 4.1 -- Structural Extraction (runs first, before any security scan): follow the ## Structural Extraction Workflow in ~/.config/piolium/skills/audit/references/architecture-aware-sast.md
  3. Delegate to the codeql skill to run built-in security suites against the database built in 4.1
  4. Delegate to the semgrep skill with --pro enforced for all passes (baseline, language, framework, and custom). Fall back to standard Semgrep only if Pro fails with an authentication or licensing error; document the fallback reason in the report
  5. Run agentic-actions-auditor when .github/workflows/ exists
  6. For Java applications, run SpotBugs with FindSecBugs plugin as a required baseline pass
  7. Generate custom CodeQL queries and Semgrep rules for:
    • Phase 3 DFD/CFD blind spots, wrappers, and unusual trust boundaries
    • Framework contracts and hidden control channels listed in Phase 3, especially request headers or runtime context that affect auth, tenant, routing, middleware execution, method/path override, proxy trust, preview/debug/admin mode, or cache keys
    • Every attack pattern listed in the ## Domain Attack Research section custom SAST targets
  8. Merge SARIF outputs via sarif-parsing skill if multiple SARIF files produced
  9. Run the Inline Enrichment pass (below) to classify every candidate finding before handing off to Phase 10
  10. Clean up transient artifacts after report is written (see Cleanup below)

Sub-step 4.1 -- Structural Extraction

Build the CodeQL database and store it at piolium/codeql-artifacts/db/. Do not delete it after this sub-step -- it is retained for Phases 5, 7, 8, and 10.

Read the full file on GitHub · 140 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 First seen · 140 lines · 82 tokens per session scan B ee6409309126

Subscribe to this mod's changes

static-analyzer is an agent published in the GitHub repository vigolium/piolium (140 stars, last pushed 27d ago), licensed MIT. It adds 82 tokens to every session and 1,809 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens