AI Slop Code Risk Monitor

bpftrace/bpftrace

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

High-level tracing language for Linux

2.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for bpftrace/bpftrace, a C++ project with 10,399 GitHub stars. SynthScan examined 143,068 lines of code across 652 source files, recording 385 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.8 (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.8
Adjusted Signal
2.8
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
10.4K
Stars
C++
Language
143.1K
Lines of Code
652
Files
385
Pattern Hits
2026-10-31
Scan Date
0.00
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 12.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.8/100 · LOW

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

PR Review Velocity Impact 13.2/100 · LOW

Which changes need focused human review? 385 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 1MEDIUM 7LOW 377

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 385 distinct pattern matches across 9 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 Block355 hits · 352 pts
SeverityFileLineSnippetContext
LOWtests/async_action.cpp1#include <regex>COMMENT
LOWtests/utils.cpp1#include <climits>COMMENT
LOWtests/type_resolver.cpp1#include <gmock/gmock-matchers.h>COMMENT
LOWtests/child.cpp1#include <csignal>COMMENT
LOWtests/portability_analyser.cpp1#include "ast/passes/portability_analyser.h"COMMENT
LOWtests/field_analyser.cpp1#include "ast/passes/field_analyser.h"COMMENT
LOWtests/probe.cpp1#include "ast/passes/ap_probe_expansion.h"COMMENT
LOWtests/bpftrace.cpp1#include <chrono>COMMENT
LOWtests/required_resources.cpp1#include <iostream>COMMENT
LOWtests/type_checker.cpp1#include <gmock/gmock-matchers.h>COMMENT
LOWtests/clang_parser.cpp1#include <llvm/Config/llvm-config.h>COMMENT
LOWtests/mocks.h1#pragma onceCOMMENT
LOWtests/pre_type_check.cpp1#include <gmock/gmock-matchers.h>COMMENT
LOWtests/parser.cpp1#include <climits>COMMENT
LOWtests/include/libbpf-usdt/usdt.h301COMMENT
LOWtests/include/libbpf-usdt/usdt.h321#define USDT_NOP nopCOMMENT
LOWtests/include/libbpf-usdt/usdt.h341#ifdef __usdt_va_optCOMMENT
LOWtests/include/libbpf-usdt/usdt.h361#define __usdt_asm5(x, ...) __usdt_str(x) "," __usdt_asm4(__VA_ARGS__)COMMENT
LOWtests/include/libbpf-usdt/usdt.h461#define __usdt_argref(id) %I[id]%[id]COMMENT
LOWtests/include/libbpf-usdt/usdt.h521__usdt_maybe_signed(wchar_t);COMMENT
LOWtests/include/libbpf-usdt/usdt.h541#define __usdt_asm_ops6(a,b,c,d,e,x) __usdt_asm_ops5(a,b,c,d,e), __usdt_asm_op(6, x)COMMENT
LOWtests/testlibs/usdt_tp.h1#ifndef _USDTLIBX_H_COMMENT
LOWtests/testprogs/mountns_pivot_wrapper.c1#ifndef _GNU_SOURCECOMMENT
LOWtests/testprogs/syscall.c1#include <ctype.h>COMMENT
LOWtests/testprogs/mountns_wrapper.c1#ifndef _GNU_SOURCECOMMENT
LOWdocs/language.md2101COMMENT
LOWscripts/clang_tidy.sh61# to keep it simple.COMMENT
LOWscripts/create-assets.sh1#!/bin/bashCOMMENT
LOWscripts/sync_headers.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/async_action.cpp1#include <fstream>COMMENT
LOWsrc/struct.cpp1#include <algorithm>COMMENT
LOWsrc/bpfbytecode.h1#pragma onceCOMMENT
LOWsrc/bfd-disasm.cpp1#include <fcntl.h>COMMENT
LOWsrc/btf.cpp1#include "scopeguard.h"COMMENT
LOWsrc/btf.cpp21#pragma GCC diagnostic popCOMMENT
LOWsrc/btf.cpp541 // string.GetSize() will return len + 1, which is a mismatch with the actualCOMMENT
LOWsrc/types.h1#pragma onceCOMMENT
LOWsrc/run_bpftrace.cpp1#include <csignal>COMMENT
LOWsrc/globalvars.cpp1#include <bpf/bpf.h>COMMENT
LOWsrc/btf.h1#pragma onceCOMMENT
LOWsrc/bpftrace.cpp1#include "bpfbytecode.h"COMMENT
LOWsrc/bpftrace.cpp21#include <ranges>COMMENT
LOWsrc/bpftrace.cpp41#include "bpftrace.h"COMMENT
LOWsrc/bpffeature.cpp1#include "bpffeature.h"COMMENT
LOWsrc/usyms.cpp1#include "types.h"COMMENT
LOWsrc/required_resources.h1#pragma onceCOMMENT
LOWsrc/required_resources.h141COMMENT
LOWsrc/attached_probe.cpp1#ifndef _GNU_SOURCECOMMENT
LOWsrc/attached_probe.cpp21#include <bpf/libbpf.h>COMMENT
LOWsrc/probe_matcher.cpp1#include <algorithm>COMMENT
LOWsrc/bpftrace.h1#pragma onceCOMMENT
LOWsrc/bpftrace.h21#include "bpfbytecode.h"COMMENT
LOWsrc/bpfbytecode.cpp1#include "bpfbytecode.h"COMMENT
LOWsrc/bpfbytecode.cpp141COMMENT
LOWsrc/log.h121 : LogStream(file, line, LogType::BUG, out) {};COMMENT
LOWsrc/log.h141#define LOGSTREAM_ERROR(...) LOGSTREAM_COMMON(__VA_ARGS__)COMMENT
LOWsrc/parser.cpp1#include "parser.h"COMMENT
LOWsrc/main.cpp1#include <bpf/libbpf.h>COMMENT
LOWsrc/main.cpp21#include "ast/passes/clang_build.h"COMMENT
LOWsrc/main.cpp41#include "build_info.h"COMMENT
295 more matches not shown…
Excessive Try-Catch Wrapping9 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/runtime/engine/runner.py296 except Exception as err:CODE
MEDIUMtests/runtime/engine/runner.py254def check_expect(expect, output):CODE
MEDIUMscripts/generate_stdlib_docs.py74 print(f"Error: File '{file_path}' not found.")CODE
MEDIUM⚡scripts/generate_stdlib_docs.py136 print(f"Error: Permission denied to read '{file_path}'.")CODE
MEDIUM⚡scripts/generate_stdlib_docs.py139 print(f"Error: Unable to decode '{file_path}' as UTF-8.")CODE
MEDIUM⚡scripts/generate_stdlib_docs.py142 print(f"Error: Missing :summary for helper '{e}' in '{file_path}'.")CODE
MEDIUM⚡scripts/generate_stdlib_docs.py145 print(f"Error: Missing :variant or :deprecated_variant for helper '{e}' in '{file_path}'.")CODE
LOW⚡scripts/generate_stdlib_docs.py147 except Exception as e:CODE
MEDIUM⚡scripts/generate_stdlib_docs.py148 print(f"Error reading file '{file_path}': {e}")CODE
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/runtime/engine/runner.py96CODE
LOWtests/runtime/engine/runner.py171CODE
LOWtests/runtime/engine/runner.py215CODE
LOWtests/runtime/engine/runner.py254CODE
LOWtests/runtime/engine/parser.py62CODE
LOWtests/runtime/engine/parser.py92CODE
LOWtests/runtime/engine/parser.py135CODE
LOWscripts/generate_stdlib_docs.py70CODE
LOWscripts/generate_stdlib_docs.py151CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/stdlib/include/linux/netlink.h67#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */COMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/shellcheck.sh6# Example usage:COMMENT
LOWscripts/clang_tidy.sh6# Example usage:COMMENT
LOWscripts/bpftrace_tidy.sh6# Example usage:COMMENT
LOWscripts/sync_headers.sh16# Example usage:COMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/runtime/engine/runner.py504 def print_befores_and_after_output():CODE
LOWscripts/generate_stdlib_docs.py39def parse_deprecated_variant_string(line: str) -> Optional[str]:CODE
LOWscripts/generate_stdlib_docs.py51def parse_function_name_string(line: str) -> Optional[str]:CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/runtime/engine/main.py4CODE
LOW.github/include/ci.py25CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/runtime/engine/parser.py113 # Check if test should run based on ARCH directiveCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/ast/passes/fold_literals.cpp706 // First, we need to check if this directly wraps a positional parameter.COMMENT