AI Slop Code Risk Monitor

tree-sitter/tree-sitter

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

An incremental parsing system for programming tools

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for tree-sitter/tree-sitter, a Rust project with 27,341 GitHub stars. SynthScan examined 120,387 lines of code across 382 source files, recording 175 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
27.3K
Stars
Rust
Language
120.4K
Lines of Code
382
Files
175
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 6.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 0.2/100 · LOW

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

PR Review Velocity Impact 7.7/100 · LOW

Which changes need focused human review? 175 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 3MEDIUM 1LOW 171

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 175 distinct pattern matches across 7 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 Block161 hits · 156 pts
SeverityFileLineSnippetContext
LOWcrates/highlight/src/c_lib.rs61 attribute_strings,COMMENT
LOWcrates/highlight/src/c_lib.rs161///COMMENT
LOWcrates/highlight/src/c_lib.rs181///COMMENT
LOWcrates/highlight/src/c_lib.rs201#[unsafe(no_mangle)]COMMENT
LOWcrates/highlight/src/highlight.rs341 /// # ParametersCOMMENT
LOWcrates/language/wasm/include/inttypes.h1#ifndef TREE_SITTER_WASM_INTTYPES_H_COMMENT
LOWcrates/language/wasm/include/endian.h1#ifndef TREE_SITTER_WASM_ENDIAN_H_COMMENT
LOWcrates/language/wasm/include/assert.h1#ifndef TREE_SITTER_WASM_ASSERT_H_COMMENT
LOWcrates/language/wasm/include/stdint.h21COMMENT
LOWcrates/language/wasm/include/string.h1#ifndef TREE_SITTER_WASM_STRING_H_COMMENT
LOWcrates/language/src/language.rs1#![no_std]COMMENT
LOWcrates/cli/src/test.rs181 pub parse_results: TestResultHierarchy,COMMENT
LOWcrates/cli/src/test.rs201COMMENT
LOWcrates/cli/src/main.rs81#[derive(Args)]COMMENT
LOWcrates/cli/src/main.rs121 #[arg(long, short = '0')]COMMENT
LOWcrates/cli/src/main.rs161 default_value = "node"COMMENT
LOWcrates/cli/src/main.rs181 pub output: Option<PathBuf>,COMMENT
LOWcrates/cli/src/main.rs201 #[arg(long = "paths")]COMMENT
LOWcrates/cli/src/main.rs221 #[expect(COMMENT
LOWcrates/cli/src/main.rs241 /// Output the parse data in a pretty-printed CST formatCOMMENT
LOWcrates/cli/src/main.rs261 /// multiple timesCOMMENT
LOWcrates/cli/src/main.rs301#[derive(Args)]COMMENT
LOWcrates/cli/src/main.rs321 #[arg(long, requires = "lib_path")]COMMENT
LOWcrates/cli/src/main.rs341 /// The path to an alternative config.json fileCOMMENT
LOWcrates/cli/src/main.rs421 /// Only fuzz corpus test cases whose name matches the given regexCOMMENT
LOWcrates/cli/src/main.rs441 clippy::struct_field_names,COMMENT
LOWcrates/cli/src/main.rs461 /// Suppress main outputCOMMENT
LOWcrates/cli/src/main.rs481 /// contained within the provided row range will be returned.COMMENT
LOWcrates/cli/src/main.rs501 #[arg(short, long)]COMMENT
LOWcrates/cli/src/main.rs521 #[arg(long)]COMMENT
LOWcrates/cli/src/main.rs541 /// The source file(s) to useCOMMENT
LOWcrates/cli/src/main.rs561COMMENT
LOWcrates/cli/src/main.rs581 pub grammar_path: Option<PathBuf>,COMMENT
LOWcrates/cli/src/main.rs601 #[arg(long)]COMMENT
LOWcrates/cli/src/tests/query_test.rs2421 .unwrap();COMMENT
LOWcrates/cli/src/tests/query_test.rs4121 assert_eq!(captures.len(), 2 * count);COMMENT
LOWcrates/cli/src/tests/query_test.rs5121 // Row {COMMENT
LOWcrates/cli/src/templates/lib.rs1//! This crate provides TITLE_PARSER_NAME language support for the [tree-sitter] parsing library.COMMENT
LOWcrates/tags/src/c_lib.rs81/// Add a language to a [`TSTagger`].COMMENT
LOWcrates/tags/src/c_lib.rs241 drop(Box::from_raw(this));COMMENT
LOWcrates/tags/src/c_lib.rs261/// # SafetyCOMMENT
LOWcrates/tags/src/c_lib.rs281#[unsafe(no_mangle)]COMMENT
LOWcrates/tags/src/c_lib.rs301/// `this` must be non-null and a valid pointer to a [`TSTagsBuffer`] instance created byCOMMENT
LOWcrates/loader/src/loader.rs1161 let mut lock_path = etcetera::choose_base_strategy()?.cache_dir();COMMENT
LOWcrates/generate/src/render.rs1961COMMENT
LOWcrates/generate/src/generate.rs81#[derive(Debug, Error, Serialize, Deserialize, PartialEq, Eq)]COMMENT
LOWcrates/generate/src/node_types.rs181/// 1. `child_types` - The types of visible children that can appear within `N`.COMMENT
LOWcrates/generate/src/tables.rs161 offset: u32,COMMENT
LOWcrates/generate/src/templates/array.h1#ifndef TREE_SITTER_ARRAY_H_COMMENT
LOWcrates/generate/src/templates/array.h41 (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index])COMMENT
LOWcrates/generate/src/templates/array.h161/// `needle` should be inserted in order to preserve the sorting, and `exists`COMMENT
LOWcrates/generate/src/templates/array.h181COMMENT
LOWcrates/generate/src/templates/array.h321COMMENT
LOWcrates/generate/src/templates/alloc.h21#define ts_malloc ts_current_mallocCOMMENT
LOWcrates/generate/src/templates/alloc.h41#ifndef ts_reallocCOMMENT
LOWcrates/generate/src/build_tables/item_set_builder.rs141/// Items are ordered by `step_index` first, so the items at their first step come beforeCOMMENT
LOWcrates/generate/src/build_tables/item_set_builder.rs381 // each of that symbol's productions. These productions might themselves beginCOMMENT
LOWcrates/generate/src/build_tables/item.rs261 ///COMMENT
LOWcrates/generate/src/build_tables/build_parse_table.rs61/// symbols in progress along the path to that state, and their parents: the non-auxiliaryCOMMENT
LOWcrates/generate/src/prepare_grammar/pattern.rs1//! Parsing of token patterns.COMMENT
101 more matches not shown…
Cross-Language Confusion (JS/TS)3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH⚡lib/binding_web/test/node.test.ts85 elif two:CODE
HIGH⚡lib/binding_web/test/node.test.ts87 elif three:CODE
HIGH⚡lib/binding_web/test/node.test.ts89 elif four:CODE
Unused Imports5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcrates/cli/src/templates/__init__.py3CODE
LOWlib/lldb_pretty_printers/tree_sitter_types.py5CODE
LOWlib/lldb_pretty_printers/tree_sitter_types.py6CODE
LOWlib/lldb_pretty_printers/tree_sitter_types.py7CODE
LOWlib/lldb_pretty_printers/tree_sitter_types.py7CODE
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcrates/cli/src/templates/test_binding.py11 except Exception:CODE
MEDIUMcrates/cli/src/templates/test_binding.py8def test_can_load_grammar(self):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlib/lldb_pretty_printers/ts_tree.py53CODE
LOWlib/lldb_pretty_printers/ts_tree.py69CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/cli/src/templates/__init__.py32__all__ = [CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlib/binding_web/src/marshal.ts172export function unmarshalLanguageMetadata(address: number): LanguageMetadata {CODE