AI Slop Code Risk Monitor

ast-grep/ast-grep

SlopCodeMonitor badge for ast-grep/ast-grep Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ast-grep/ast-grep, a Rust project with 16,401 GitHub stars. SynthScan examined 91,204 lines of code across 304 source files, recording 63 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
16.4K
Stars
Rust
Language
91.2K
Lines of Code
304
Files
63
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 51 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

Are imports declared and package/API names verified? 8 finding(s).

Agent Over-Engineering Ratio 1.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 8 finding(s).

PR Review Velocity Impact 4.5/100 · LOW

Which changes need focused human review? 63 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 4MEDIUM 1LOW 58

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 63 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block45 hits · 45 pts
SeverityFileLineSnippetContext
LOWcrates/core/src/pinned.rs1use crate::Doc;COMMENT
LOWcrates/core/src/source.rs1//! This module defines the `Doc` and `Content` traits to abstract away source code encoding issues.COMMENT
LOWcrates/core/src/tree_sitter/traversal.rs1//! # Traverse Node ASTCOMMENT
LOWcrates/core/src/tree_sitter/mod.rs21pub enum TSParseError {COMMENT
LOWcrates/config/src/rule_config.rs81COMMENT
LOWcrates/config/src/rule_config.rs101 pub message: String,COMMENT
LOWcrates/config/src/rule/selector.rs1#![allow(clippy::doc_lazy_continuation)]COMMENT
LOWcrates/config/src/rule/referent_rule.rs41#[derive(Clone, Default)]COMMENT
LOWcrates/config/src/rule/parameterized_util.rs1//! Parameterized utility rules have two parts:COMMENT
LOWcrates/config/src/rule/mod.rs41///COMMENT
LOWcrates/config/src/rule/mod.rs61 /// It specifies the position in nodes' sibling list.COMMENT
LOWcrates/config/src/rule/mod.rs81 pub precedes: Maybe<Box<Relation>>,COMMENT
LOWcrates/wasm/tests/web.rs1//! Integration tests for ast-grep-wasm.COMMENT
LOWcrates/language/src/lib.rs1//! This module defines the supported programming languages for ast-grep.COMMENT
LOWcrates/language/src/lib.rs201COMMENT
LOWcrates/language/src/lib.rs221// https://developer.hashicorp.com/terraform/language/syntax/configuration#identifiersCOMMENT
LOWcrates/cli/src/config.rs41 /// test configurationsCOMMENT
LOWcrates/cli/src/run.rs61#[derive(Args)]COMMENT
LOWcrates/cli/src/verify.rs161// for result in summary {COMMENT
LOWcrates/cli/src/verify.rs181 /// Conflicts with --update-all.COMMENT
LOWcrates/cli/src/new.rs21 name: Option<String>,COMMENT
LOWcrates/cli/src/new.rs101 }COMMENT
LOWcrates/cli/src/new.rs121 ///COMMENT
LOWcrates/cli/src/scan.rs41 /// --inline-rules is incompatible with --rule.COMMENT
LOWcrates/cli/src/scan.rs61 #[clap(flatten)]COMMENT
LOWcrates/cli/src/completions.rs1//! How to use generate shell completions.COMMENT
LOWcrates/cli/src/outline.rs41 /// One source/signature line per top-level item.COMMENT
LOWcrates/cli/src/outline.rs61 /// You can pass optional value to this flag by using `--json=<STYLE>` syntaxCOMMENT
LOWcrates/cli/src/outline.rs81 /// if the TERM environment variable is not set or set to 'dumb'.COMMENT
LOWcrates/cli/src/outline.rs101 /// The regex is matched against item names, signatures, first source lines,COMMENT
LOWcrates/cli/src/utils/worker.rs21 /// `consume_items` will run in a separate single thread.COMMENT
LOWcrates/cli/src/utils/args.rs21pub struct InputArgs {COMMENT
LOWcrates/cli/src/utils/args.rs41 /// Enable search code from StdIn.COMMENT
LOWcrates/cli/src/utils/args.rs121}COMMENT
LOWcrates/cli/src/utils/args.rs161 )]COMMENT
LOWcrates/cli/src/utils/args.rs241 /// Search hidden files and directories. By default, hidden files and directories are skipped.COMMENT
LOWcrates/cli/src/utils/args.rs301 }COMMENT
LOWcrates/cli/src/utils/args.rs321 ///COMMENT
LOWcrates/cli/src/utils/args.rs341 /// Set rule severity to hintCOMMENT
LOWcrates/cli/src/utils/inspect.rs1//! See https://github.com/ast-grep/ast-grep/issues/905COMMENT
LOWcrates/cli/src/print/mod.rs141 /// N.B. this can be different from node.text() becauseCOMMENT
LOWcrates/outline/src/extractor.rs121///COMMENT
LOWcrates/outline/src/combined_extractor.rs1//! Combined outline extraction.COMMENT
LOWcrates/outline/src/model.rs1//! Serializable outline result model.COMMENT
LOWcrates/outline/src/model.rs61///COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/pyo3/tests/test_simple.py0function test() { let a = 123 let b = 456 let c = 789 }STRING
HIGHcrates/pyo3/tests/test_wrong_usage.py0function test() { let a = 123 let b = 456 let c = 789 }STRING
HIGHcrates/pyo3/tests/test_traversal.py0function test() { let a = 123 let b = 456 let c = 789 }STRING
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcrates/pyo3/ast_grep_py/__init__.py1CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
LOWcrates/pyo3/ast_grep_py/__init__.py4CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHcrates/napi/__test__/index.spec.ts51 print("ザ・ワールド")`CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/napi/src/lib.rs75/// It utilize multiple CPU cores when **concurrent processing sources**.COMMENT
Hyper-Verbose Identifiers4 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/pyo3/tests/test_rule.py97def test_complex_config_dict_not_found():STRING
LOWcrates/pyo3/tests/test_wrong_usage.py14def test_wrong_use_pattern_as_dict():STRING
LOWcrates/pyo3/tests/test_wrong_usage.py41def test_error_for_invalid_kind():STRING
LOWcrates/pyo3/tests/test_wrong_usage.py45def test_no_error_for_invalid_pattern():STRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/config/src/rule/mod.rs388// TODO: implement positive/non positiveCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/pyo3/ast_grep_py/__init__.py73__all__ = [CODE