National Cyber Warfare Foundation (NCWF)login

agentgg for reasoning-driven static analysis of your own code


0 user ratings
2026-11-07 01:31:17
milo
Red Team (CNA)
"agentgg

agentgg is an agentic SAST scanner whose LLM-driven agents read code, follow call graphs, and validate findings before reporting — built for defenders and authorized security teams reviewing code they own.








Toolagentgg-dev/agentgg — agentic white-box SAST scanner with LLM-driven code reasoning, CI-ready
CategoryStatic analysis / AI-assisted application security testing
Primary UseScanning repositories or git diffs you own with agentgg scan, triaging findings via agentgg view, and wiring PR review into CI
Safe UseEducational and documentary analysis for authorized professionals: run agentgg only on codebases you own or are explicitly authorized to assess, such as internal development, CI pipelines, and lab environments
Telemetry Noteagentgg requires an external model provider (Anthropic, OpenAI, Bedrock, Vertex, OpenRouter, Ollama), so code context is sent to whichever provider is configured — local Ollama keeps analysis on-host; scans write plaintext findings to ./out/ as markdown

agentgg positions itself against traditional static analysis in a single sentence: white box, agentic, CI ready. Where a conventional SAST engine pattern-matches signatures across a tree and dumps a noisy list, agentgg dispatches agents that actually read the code. According to the README, these agents follow imports, walk the call graph, and confirm a finding before reporting it — a validation step that directly addresses the false-positive problem that has historically made SAST output something triage teams dread. The project is written in TypeScript, ships under Apache-2.0, and sits at roughly 295 stars, which is respectable for a beta-stage tool in the crowded AI-security space.


The architecture, as the README describes it, is worth unpacking. Every scan opens with a fast recon pass that briefs the agents on what the project actually is — language, structure, purpose — before any finding-hunting begins. That briefing matters because context is what separates reasoning from guessing; an agent that knows it is looking at a GraphQL server will reason differently about input handling than one looking at a CLI utility. After recon, agents work through the repository either in full (agentgg scan ./src) or in diff mode (--diff origin/main...HEAD), which scopes the scan to only what changed in a pull request.


The agent model itself is unusually transparent. Each agent is one markdown file: YAML frontmatter declares where the agent should look, an optional precondition decides whether the agent is even worth running against a given repo, and the markdown body is the prompt itself. This is a design choice senior reviewers should appreciate — agent logic is inspectable, versionable, and editable without touching the engine. An agent that declares neither extensions nor filePatterns in its where block gets no pre-selected files and instead searches the entire repository with its own tools, which trades efficiency for breadth.


Two operational details stand out from the README. First, the agent catalog auto-downloads on first scan from a companion repository, agentgg-dev/agentgg-agents, so the tool ships with a maintained baseline of detection logic. Second, agentgg create can turn a past incident report into a reusable agent — effectively converting institutional memory of a real bug class into a repeatable check. That is the most interesting feature in the whole project: it closes the loop between remediation history and future scanning, which is exactly how mature security teams encode lessons learned.


Installation is a one-liner: npm install -g agentgg, requiring Node.js 20+. There is a hard external dependency worth flagging for anyone with data-residency concerns: you need an account with a model provider — Anthropic, OpenAI, AWS Bedrock, Google Vertex AI, OpenRouter, or a local Ollama — configured via agentgg init. Teams that cannot ship source code to a third-party API can point the tool at a local Ollama instance and keep everything on-host, though the README does not claim parity in reasoning quality across providers.


The lifecycle commands reveal a thoughtfully engineered scan pipeline. agentgg scan ./src -o ./out writes a summary.md plus one markdown file per finding, alongside a state/ directory that powers resume, status, and revalidate. Re-running with the same -o skips unchanged files; a different output directory starts fresh. For long-running scans against large monorepos, interrupted-scan resume is not a nicety, it is a requirement — anyone who has watched a 40-minute SAST run die at minute 39 knows this. agentgg view ./out then presents findings in a local web UI for triage.


Live validation is where the tool crosses from reading code into confirming behavior. The --live-validate flag requires Docker, and the README notes that if Docker is missing or stopped, agentgg offers to install or start it when the command begins. The implication is that findings are exercised in a contained environment to confirm reachability before being surfaced — the same confirm-before-report philosophy applied at runtime rather than at the call graph. Note that this validation happens locally and within the operator's own environment, which keeps the feature squarely in white-box territory.


From a defensive and workflow standpoint, agentgg slots into the pull-request gate. The diff-scanning mode means a CI job can flag security-relevant changes before merge rather than running a weekly full-repo scan whose findings arrive too late to matter. The project's topic tags — security-automation, code-review, static-analysis, vulnerability-scanner — match that placement, and the "CI ready" claim is backed by the resumable state/ design and deterministic output directory structure that pipeline tooling can parse.


There are honest caveats. The README states plainly that agentgg is in beta, that things will move, and that edges will be rough — bug reports are explicitly solicited via GitHub issues, with a private SECURITY.md channel for vulnerability reports in the tool itself. The marketing claim in the repo description about "hundreds of disclosed zero-days" is unverified in the documentation and should be treated as vendor narrative rather than evidence; the technical description in the README itself is more measured and more credible.


Telemetry and data-handling considerations deserve a paragraph of their own. Because the agents reason via an LLM provider, source code flows to whatever provider is configured — this is a disclosure that reviewing teams should document in their own tooling approvals. The hosted platform at app.agentgg.dev runs the same scanner without a local install or a personal provider key, which is convenient but shifts code custody to the vendor entirely. For authorized internal assessments where source confidentiality is a hard constraint, local CLI plus Ollama is the conservative configuration.


For the intended audience — application security engineers, code reviewers, and developers hardening their own projects — agentgg represents the current architectural consensus of where SAST is heading: fewer signatures, more reasoning, validation before reporting, and human-readable, inspectable detection logic. The markdown-agent format lowers the barrier for security teams to encode their own checks without writing a parser, and the diff-scoped mode fits modern trunk-based development. As with any beta, results should be verified rather than trusted blindly, but the confirm-before-report design means each finding already ships with the reasoning behind it.


In sum, agentgg is best understood as a reasoning layer over your own codebase, not an attack tool. Its outputs are findings files and summaries in markdown, its runtime footprint is your own output directory plus a model-provider API, and its natural home is a CI pipeline gating your own pull requests. For authorized professionals doing white-box review of code they control, it is one of the more coherent takes on agentic security analysis currently published — inspectable agents, resumable scans, and a validation step that respects the triage engineer's time.



Official project repository for agentgg-dev/agentgg.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/agentgg-for-reasoning-driven-static.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.