AI Slop Code Risk Monitor

pqrs-org/Karabiner-Elements

SlopCodeMonitor badge for pqrs-org/Karabiner-Elements Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Karabiner-Elements is a powerful tool for customizing keyboards on macOS

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pqrs-org/Karabiner-Elements, a C++ project with 23,032 GitHub stars. SynthScan examined 95,861 lines of code across 945 source files, recording 111 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
23.0K
Stars
C++
Language
95.9K
Lines of Code
945
Files
111
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 5.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 0.5/100 · LOW

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

PR Review Velocity Impact 6.1/100 · LOW

Which changes need focused human review? 111 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 1HIGH 0MEDIUM 0LOW 110

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 111 distinct pattern matches across 5 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 Block90 hits · 90 pts
SeverityFileLineSnippetContext
LOWappendix/GamePadViewer/src/game_pad_viewer.cpp1#include "game_pad_viewer.hpp"COMMENT
LOWappendix/get_frontmost_application_history/main.cpp1#include "console_user_server_client.hpp"COMMENT
LOWtests/src/types/src/test.cpp1#include "device_identifiers_test.hpp"COMMENT
LOW…src/core_configuration/src/core_configuration_test.hpp1#include "../../share/ut_helper.hpp"COMMENT
LOW…src/core_configuration/src/core_configuration_test.hpp1021 // "from 3": "to 3",COMMENT
LOW…src/core_configuration/src/core_configuration_test.hpp1041 // "": "",COMMENT
LOW…src/core_configuration/src/core_configuration_test.hpp1061 profile.get_simple_modifications()->push_back_pair();COMMENT
LOWtests/src/share/manipulator_helper.hpp1#pragma onceCOMMENT
LOWsrc/bin/cli/src/set_variables_from_stdin.hpp1#pragma onceCOMMENT
LOWsrc/bin/cli/src/main.cpp1#pragma clang diagnostic pushCOMMENT
LOWsrc/bin/cli/src/Bridging-Header.h1#include "pqrs/osx/process_info/impl/Bridging-Header.h"COMMENT
LOW…vice/include/core_service/agent/components_manager.hpp1#pragma onceCOMMENT
LOW…vice/include/core_service/agent/permission_checker.hpp1#pragma onceCOMMENT
LOW…ice/include/core_service/daemon/components_manager.hpp1#pragma onceCOMMENT
LOW…Service/include/core_service/daemon/device_grabber.hpp1#pragma onceCOMMENT
LOW…Service/include/core_service/daemon/device_grabber.hpp21#include "manipulator/manipulator_managers_connector.hpp"COMMENT
LOW…s/CoreService/include/core_service/daemon/receiver.hpp1#pragma onceCOMMENT
LOW…on/device_grabber_details/game_pad_stick_converter.hpp1#pragma onceCOMMENT
LOW…on/device_grabber_details/game_pad_stick_converter.hpp21// This event should be properly ignored.COMMENT
LOW…e/core_service/daemon/device_grabber_details/entry.hpp1#pragma onceCOMMENT
LOW…c/apps/CoreService/include/core_service/main/agent.hpp1#pragma onceCOMMENT
LOW…c/apps/CoreService/include/core_service/main/agent.hpp101COMMENT
LOW…/apps/CoreService/include/core_service/main/daemon.hpp1#pragma onceCOMMENT
LOWsrc/apps/CoreService/swift/Bridging-Header.h1#include "pqrs/osx/accessibility/impl/Bridging-Header.h"COMMENT
LOW…ver/include/console_user_server/components_manager.hpp1#pragma onceCOMMENT
LOW…oleUserServer/include/console_user_server/receiver.hpp1#pragma onceCOMMENT
LOW…lude/console_user_server/software_function_handler.hpp1#pragma onceCOMMENT
LOW…lude/console_user_server/software_function_handler.hpp41 void add_frontmost_application_history(const application& application) {COMMENT
LOW…lude/console_user_server/software_function_handler.hpp61 // 1. MailCOMMENT
LOWsrc/apps/ConsoleUserServer/swift/Bridging-Header.h1#include "console_user_server/runtime.h"COMMENT
LOWsrc/apps/ConsoleUserServer/src/runtime.cpp1#include "console_user_server/runtime.h"COMMENT
LOWsrc/apps/ConsoleUserServer/src/runtime.cpp81COMMENT
LOWsrc/apps/MultitouchExtension/src/Bridging-Header.h1#include "MultitouchPrivate.h"COMMENT
LOWsrc/apps/SettingsWindow/src/ContentViewStates.swift61 context.servicesEnabled = nilCOMMENT
LOWsrc/apps/SettingsWindow/src/Bridging-Header.h1#include "cpp/settings.hpp"COMMENT
LOW…ettingsWindow/src/cpp/settings_configuration_store.hpp1#pragma onceCOMMENT
LOWsrc/apps/SettingsWindow/src/cpp/settings.cpp1#include "settings.hpp"COMMENT
LOWsrc/apps/EventViewer/src/event_viewer.cpp1#include "event_viewer.hpp"COMMENT
LOWsrc/apps/share/swift/ServiceManagementHelper.swift41 var pendingServices = servicesCOMMENT
LOWsrc/share/hid_device_events_monitor.hpp1#pragma onceCOMMENT
LOWsrc/share/complex_modifications_assets_file.hpp1#pragma onceCOMMENT
LOWsrc/share/console_user_server_peer.hpp1#pragma onceCOMMENT
LOWsrc/share/iokit_utility.hpp1#pragma onceCOMMENT
LOWsrc/share/app_icon.hpp1#pragma onceCOMMENT
LOWsrc/share/notification_message_manager.hpp1#pragma onceCOMMENT
LOWsrc/share/event_tap_utility.hpp61 return (flags & kCGEventFlagMaskSecondaryFn) ? event_type::key_down : event_type::key_up;COMMENT
LOWsrc/share/event_tap_utility.hpp81 // JIS | 0x0251 | Wired Keyboard 2007 B JIS Map | 48COMMENT
LOWsrc/share/event_queue.hpp1#pragma onceCOMMENT
LOWsrc/share/hid_keyboard_caps_lock_led_state_manager.hpp1#pragma onceCOMMENT
LOWsrc/share/constants.hpp1#pragma onceCOMMENT
LOWsrc/share/keyboard_suppression.hpp1#pragma onceCOMMENT
LOWsrc/share/keyboard_suppression.hpp21// Behavior:COMMENT
LOWsrc/share/keyboard_suppression.hpp41 // necessarily produce a CGEvent immediately, or at all. With CGEventTap fallbackCOMMENT
LOWsrc/share/caps_lock_led_override_manager.hpp1#pragma onceCOMMENT
LOWsrc/share/xpc_client.hpp1#pragma onceCOMMENT
LOWsrc/share/process_lifecycle_manager.hpp1#pragma onceCOMMENT
LOWsrc/share/device_properties.hpp81 //COMMENT
LOWsrc/share/device_properties.hpp161 // The is_consumer property was added later, so compatibility with previous versions must be maintained.COMMENT
LOWsrc/share/types.hpp1#pragma onceCOMMENT
LOWsrc/share/types.hpp21#include "types/momentary_switch_event.hpp"COMMENT
30 more matches not shown…
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/scripts/format_test_json.py21def find_compactable_object_spans(text):CODE
LOWtests/src/localization/test.py19 def test_key_prefixes_match_resource_paths(self):CODE
LOWtests/src/localization/test.py28 def test_application_translation_references(self):CODE
LOWtests/src/localization/test.py75 def test_nested_resources_and_format(self):CODE
LOWtests/src/localization/test.py121 def test_no_missing_translations_are_not_printed(self):CODE
LOWtests/src/localization/test.py154 def test_duplicates_prevent_any_formatting(self):CODE
LOWtests/src/localization/test.py171 def test_compile_catalog_and_preserve_output_on_invalid_sources(self):CODE
LOWtests/src/localization/test.py218 def test_duplicate_keys_inside_one_file(self):CODE
LOWtests/src/localization/test.py230 def test_empty_directory_is_rejected(self):CODE
LOWsrc/apps/localization/scripts/localizations.py128def print_missing_translations(resources):CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…gsWindow/src/View/ComplexModificationsAssetsView.swift56 settings.configuration.selectedProfile.complexModifications.rules.contains(CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWREADME.md58#### Step 1: Get the source codeCOMMENT
LOWREADME.md68#### Step 2: Prepare code signing identitiesCOMMENT
LOWREADME.md104#### Step 3: Build a packageCOMMENT
LOWREADME.md115#### Step 4: Install the package you builtCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/scripts/format_test_json.py21CODE
LOWtests/scripts/format_test_json.py92CODE
LOWtests/scripts/format_test_json.py127CODE
LOWtests/scripts/format_test_json.py172CODE
LOWtests/scripts/update_tests_input_json.py9CODE
LOWscripts/update_version.py10CODE