AI Slop Code Risk Monitor

jtroo/kanata

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

Improve keyboard comfort and usability with advanced customization

1.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for jtroo/kanata, a Rust project with 8,056 GitHub stars. SynthScan examined 71,499 lines of code across 218 source files, recording 133 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.9
Adjusted Signal
1.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
8.1K
Stars
Rust
Language
71.5K
Lines of Code
218
Files
133
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 8.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 9.2/100 · LOW

Which changes need focused human review? 133 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 0LOW 132

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 133 distinct pattern matches across 4 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 Block122 hits · 119 pts
SeverityFileLineSnippetContext
LOWwindows_key_tester/src/windows/interception.rs141 ScanCode::F20 => OsCode::KEY_F20,COMMENT
LOWkeyberon/src/action.rs61 /// not used in the flow of typing, like escape for example. IfCOMMENT
LOWkeyberon/src/action.rs81 ///COMMENT
LOWkeyberon/src/action.rs141/// If the key is held more than `timeout` ticks (usuallyCOMMENT
LOWkeyberon/src/action.rs161 pub hold: Action<'a, T>,COMMENT
LOWkeyberon/src/action.rs181 ///COMMENT
LOWkeyberon/src/action.rs201 /// Action to activate until timeout expires or exactly one non-one-shot key is activated.COMMENT
LOWkeyberon/src/action.rs361 /// Action to release either a keycode state or a layer state.COMMENT
LOWkeyberon/src/action.rs381 /// key will hold space until either another key is pressed or the timeout occurs, which willCOMMENT
LOWkeyberon/src/action.rs401 Chords(&'a ChordsGroup<'a, T>),COMMENT
LOWkeyberon/src/layout.rs1//! Layout management.COMMENT
LOWkeyberon/src/layout.rs61COMMENT
LOWkeyberon/src/layout.rs121 pub historical_keys: History<KeyCode>,COMMENT
LOWkeyberon/src/layout.rs921 //COMMENT
LOWkeyberon/src/layout.rs1021/// of items in array-based stack implementations.COMMENT
LOWkeyberon/src/layout.rs1041 /// Used to keep track of already-pressed keys for the release variants.COMMENT
LOWkeyberon/src/layout.rs1961 // is immediately re-added again. This means the release is never observed..COMMENT
LOWkeyberon/src/layout.rs2021 // of `do_action`.COMMENT
LOWkeyberon/src/chord.rs121 // Like a layout, this should be destroyed and recreated on a live reload.COMMENT
LOWkeyberon/src/tap_hold_tracker.rs1//! Tracks tap-hold activation events for external consumers (e.g. TCP broadcast).COMMENT
LOWkeyberon/src/action/switch.rs1//! Handle processing of the switch action for Keyberon.COMMENT
LOWdocs/config-stylesheet.css121b.button::after{content:"]";padding:0 2px 0 3px}COMMENT
LOWdocs/config-stylesheet.css141#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}COMMENT
LOWdocs/config-stylesheet.css161#toc.toc2{width:20em}COMMENT
LOWparser/src/subset.rs1//! Collection where keys are slices of a type, and supports a get operation to check if the keyCOMMENT
LOWparser/src/subset.rs21// larger than 1, the point at which an `Arc` would be better would need to be measured.COMMENT
LOWparser/src/gamepad/analog.rs1//! Analog values and the transformations that turn them into digital edgesCOMMENT
LOWparser/src/gamepad/analog.rs281 /// Overshoot past the rim clamps, which is also what stops a stick at aCOMMENT
LOWparser/src/gamepad/mod.rs1//! Game controller support: the control vocabulary and the configuration treeCOMMENT
LOWparser/src/gamepad/mod.rs341/// whatever glyph the vendor printed on it, so one configuration works acrossCOMMENT
LOWparser/src/gamepad/mod.rs601 /// A diagonal presses two cardinal controls, the way holding two keysCOMMENT
LOWparser/src/gamepad/mod.rs621#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]COMMENT
LOWparser/src/gamepad/mod.rs641pub struct Digital {COMMENT
LOWparser/src/gamepad/project.rs1//! Projection: controller readings in, the set of held controls out.COMMENT
LOWparser/src/gamepad/project.rs181 config: GamepadConfig,COMMENT
LOWparser/src/cfg/deftemplate.rs1//! This file is responsible for template expansion.COMMENT
LOWparser/src/cfg/sequence.rs181COMMENT
LOWparser/src/cfg/mod.rs1//! This parses the configuration language to create a `kanata_keyberon::layout::Layout` as well asCOMMENT
LOWparser/src/cfg/mod.rs21//!COMMENT
LOWparser/src/cfg/mod.rs301 /// walking the layout, so it does not depend on where the action ends up. macOS uses this toCOMMENT
LOWparser/src/cfg/alloc.rs1//! This module contains a helper struct for generating 'static lifetime allocations while stillCOMMENT
LOWparser/src/cfg/defgamepad.rs1//! Parsing for the `defgamepad` declaration, which says what physicalCOMMENT
LOWparser/src/cfg/deflocalkeys.rs61 // Trying to convert a number to OsCode is OS-dependent and is fallible.COMMENT
LOWparser/src/cfg/zippychord.rs1//! Zipchord-like parsing. Probably not 100% compatible.COMMENT
LOWparser/src/cfg/zippychord.rs21//! "r df => recipient"COMMENT
LOWparser/src/cfg/zippychord.rs141 ///COMMENT
LOWparser/src/cfg/zippychord.rs221 #[derive(Debug)]COMMENT
LOWparser/src/keys/macos.rs701 code: 0x29F,COMMENT
LOWparser/src/keys/mod.rs1261 KEY_762 = 762,COMMENT
LOWparser/src/keys/mod.rs1361 )COMMENT
LOWsimulated_passthru/src/log_win.rs1//! A logger that prints to OutputDebugString (Windows only)COMMENT
LOWkey-sort-add/src/main.rs1//! one:COMMENT
LOWsrc/main_lib/args.rs1use clap::Parser;COMMENT
LOWsrc/main_lib/args.rs81COMMENT
LOWsrc/main_lib/args.rs101 /// option to false. Useful if you are experimenting with a newCOMMENT
LOWsrc/main_lib/args.rs121 /// users get an unmodified keyboard. Off by default to preserve theCOMMENT
LOWsrc/oskbd/macos.rs41COMMENT
LOWsrc/oskbd/macos.rs61/// Per-button cursor position captured at button press in `button_action`.COMMENT
LOWsrc/oskbd/macos.rs101/// later live reload without needing the original `event_loop` context.COMMENT
LOWsrc/oskbd/macos.rs121/// event. The Arc points to the same `parking_lot::Mutex` that the live-reloadCOMMENT
62 more matches not shown…
Fake / Example Data9 hits · 10 pts
SeverityFileLineSnippetContext
LOWkeyberon/src/layout.rs2407 for fake_key in self.states.clone().iter() {CODE
LOWkeyberon/src/layout.rs2408 if let FakeKey { keycode } = *fake_key {CODE
LOW⚡parser/src/cfg/mod.rs77mod fake_key;CODE
LOW⚡parser/src/cfg/mod.rs78use fake_key::*;CODE
LOW⚡parser/src/cfg/mod.rs80pub use fake_key::{FAKE_KEY_ROW, NORMAL_KEY_ROW};CODE
LOWsrc/tcp_server.rs349 "tcp server fake-key action: {name},{action:?}"CODE
LOWsrc/tcp_server.rs415 "fake-key-names".to_string(),CODE
LOWsrc/tcp_server.rs421 "fake-key".to_string(),CODE
LOWsrc/main_lib/args.rs218 Args::try_parse_from(["kanata", "msg", "-p", "9999", "act-on-fake-key", "fk"]).unwrap();CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHparser/src/keys/mod.rs487/// I've added the Copy trait and I'll be ableCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/test_linux_list_devices.sh94 # Check if it's a permission issueCOMMENT