AI Slop Code Risk Monitor

avante-corp/avante.nvim

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

Use your Neovim like using Cursor AI IDE!

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for avante-corp/avante.nvim, a Lua project with 18,183 GitHub stars. SynthScan examined 62,149 lines of code across 237 source files, recording 60 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.2 (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.

2.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
18.2K
Stars
Lua
Language
62.1K
Lines of Code
237
Files
60
Pattern Hits
2026-10-31
Scan Date
0.05
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 4.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 5.0/100 · LOW

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

Agent Over-Engineering Ratio 1.9/100 · LOW

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

PR Review Velocity Impact 10.8/100 · LOW

Which changes need focused human review? 60 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 12MEDIUM 11LOW 37

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 60 distinct pattern matches across 12 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.

Magic Placeholder Names9 hits · 60 pts
SeverityFileLineSnippetContext
HIGH⚡README.md938> export ANTHROPIC_API_KEY=your-api-keyCODE
HIGH⚡README.md944> export OPENAI_API_KEY=your-api-keyCODE
HIGH⚡README.md950> export AZURE_OPENAI_API_KEY=your-api-keyCODE
HIGHREADME.md1125 export MORPH_API_KEY="your-api-key"CODE
HIGH⚡README_zh.md631> export ANTHROPIC_API_KEY=your-api-keyCODE
HIGH⚡README_zh.md637> export OPENAI_API_KEY=your-api-keyCODE
HIGH⚡README_zh.md643> export AZURE_OPENAI_API_KEY=your-api-keyCODE
HIGHlua/avante/config.lua126--- export MORPH_API_KEY="your-api-key"CODE
HIGHdoc/avante.txt291 export MORPH_API_KEY="your-api-key"CODE
Modern AI Meta-Vocabulary8 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md1177## RAG ServiceCOMMENT
MEDIUMREADME.md1205### RAG configurationCOMMENT
MEDIUMREADME.md1232### RAG usageCOMMENT
MEDIUMREADME.md1510### How to disable agentic mode?COMMENT
MEDIUMREADME_zh.md804## RAG 服务COMMENT
MEDIUMpy/rag-service/README.md1# RAG Service ConfigurationCOMMENT
MEDIUMpy/rag-service/src/service.py1495 # Initialize embedding model and LLM based on provider using the factoryCOMMENT
MEDIUMlua/avante/providers/claude.lua637 if prompt_opts.tools and #prompt_opts.tools > 0 and Config.mode == "agentic" thenCODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpy/rag-service/src/providers/factory.py20 Initialize embedding model based on specified provider and configuration. Dynamically loads the provider modulSTRING
HIGHpy/rag-service/src/providers/factory.py104 Create LLM model with the specified configuration. Dynamically loads the provider module based on the llm_provSTRING
Hyper-Verbose Identifiers10 hits · 9 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/tests/test_indexing_status.py15 async def test_indexing_status_response(self) -> None:CODE
LOWpy/rag-service/tests/test_cli.py14 def test_help_without_dependencies(self) -> None:CODE
LOWpy/rag-service/tests/test_cli.py28 def test_invalid_argument_without_dependencies(self) -> None:CODE
LOWpy/rag-service/src/service.py352def is_remote_resource_exists(url: str) -> bool:CODE
LOWpy/rag-service/src/service.py790 def append_embedding_sized_documents(doc: Document, base_metadata: dict[str, object] | None = None) -> None:CODE
LOWpy/rag-service/src/service.py869async def index_remote_resource_async(resource: Resource) -> None:CODE
LOWpy/rag-service/src/service.py934async def index_local_resource_async(resource: Resource) -> None:CODE
LOWpy/rag-service/src/service.py1319async def get_indexing_status_for_resource(request: IndexingStatusRequest):STRING
LOWpy/rag-service/src/services/resource.py29 def update_resource_indexing_status(self, uri: str, indexing_status: str, indexing_status_message: str) -> None:CODE
LOWpy/rag-service/src/services/indexing_history.py26 def delete_indexing_status_by_document_id(self, document_id: str) -> None:CODE
Redundant / Tautological Comments8 hits · 9 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/src/service.py477 # Check if the file was recently processedCOMMENT
LOWpy/rag-service/src/service.py491 # Check if the text mainly contains printable charactersCOMMENT
LOWpy/rag-service/src/service.py515 # Check if document with same hash has already been successfully processedCOMMENT
LOWpy/rag-service/src/service.py1429 # Check if provider or model has changedCOMMENT
LOW⚡py/rag-service/src/service.py1146 # Check if the file path starts with the specified directorySTRING
LOW⚡py/rag-service/src/service.py1149 # Check if directory is a parent of file_pathSTRING
LOWpy/rag-service/src/service.py1003 # Check if resource already existsSTRING
LOWpy/rag-service/src/services/indexing_history.py64 # Check if record existsCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/src/service.py186CODE
LOWpy/rag-service/src/service.py506CODE
LOWpy/rag-service/src/service.py617CODE
LOWpy/rag-service/src/service.py1124CODE
LOWpy/rag-service/src/service.py1140CODE
LOWpy/rag-service/src/services/indexing_history.py106CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/src/providers/factory.py61 except Exception as err:CODE
LOWpy/rag-service/src/providers/factory.py88 except Exception as err:CODE
LOWpy/rag-service/src/providers/factory.py149 except Exception as e:CODE
LOWpy/rag-service/src/providers/factory.py171 except Exception as e:CODE
MEDIUMlua/avante/repo_map.lua162 print("Error watching directory " .. project_root .. ":", err)CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpy/rag-service/src/service.py720except FileNotFoundError:CODE
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/src/service.py743def update_index_for_file(directory: Path, abs_file_path: Path) -> None:CODE
LOWpy/rag-service/src/libs/logger.py5logger = logging.getLogger(__name__)CODE
LOWpy/rag-service/src/services/resource.py29 def update_resource_indexing_status(self, uri: str, indexing_status: str, indexing_status_message: str) -> None:CODE
LOWpy/rag-service/src/services/resource.py52 def update_resource_status(self, uri: str, status: str, error: str | None = None) -> None:CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpy/rag-service/src/service.py3CODE
LOWpy/rag-service/src/main.py3CODE
LOWpy/rag-service/src/providers/factory.py8CODE
LOWpy/rag-service/src/libs/utils.py1CODE
Self-Referential Comments2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUM⚡py/rag-service/src/service.py1139 # Create a filter function to only include documents from the specified directorySTRING
MEDIUMpy/rag-service/src/service.py1173 # Create a custom post processorSTRING
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlua/avante/suggestion.lua186L4: # just passCODE