AI Slop Code Risk Monitor

libracoder/kiri

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

A small, fast container runtime for macOS, Windows and Linux with free Ngrok alternative

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for libracoder/kiri, a Rust project with 7,117 GitHub stars. SynthScan examined 158,101 lines of code across 346 source files, recording 151 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.1 (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.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-11-16
Last Push
7.1K
Stars
Rust
Language
158.1K
Lines of Code
346
Files
151
Pattern Hits
2026-11-16
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-11-16.

Cognitive Ownership Risk 4.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 0.2/100 · LOW

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

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 151 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 4MEDIUM 0LOW 146

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 151 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 Block131 hits · 131 pts
SeverityFileLineSnippetContext
LOWpackaging/linux/build.sh1#!/bin/bashCOMMENT
LOWpackaging/linux/test.sh1#!/bin/bashCOMMENT
LOWbench/compare.sh1#!/bin/bashCOMMENT
LOWcrates/kiri-proto/src/lib.rs1//! Wire protocol between the Kiri host and the guest agent.COMMENT
LOWcrates/kiri-proto/src/lib.rs21/// Largest frame either side will accept. Anything bigger is a protocol error,COMMENT
LOWcrates/kiri-proto/src/lib.rs81 CloseStdin { id: &'a str },COMMENT
LOWcrates/kiri-proto/src/lib.rs101 /// before anything runs. No reply.COMMENT
LOWcrates/kiri-proto/src/lib.rs121 /// the VM's memory. No reply.COMMENT
LOWcrates/kiri-proto/src/lib.rs141 ContainerStats(ContainerStats),COMMENT
LOWcrates/kiri-proto/src/lib.rs161 /// the device was attached on (the agent's answer to it), PATH the nodeCOMMENT
LOWcrates/kiri-proto/src/lib.rs181 /// (attributes changed) or `D` (deleted), PATH the file's path in the VMCOMMENT
LOWcrates/kiri-proto/src/lib.rs321 /// What the guest holds and cannot give back: anonymous, shared andCOMMENT
LOWcrates/kiri-proto/src/lib.rs361 pub const REMOVE: u32 = 1;COMMENT
LOWcrates/kiri-proto/src/lib.rs401 pub dns_names: StrList<'a>,COMMENT
LOWcrates/kiri-image/src/registry.rs281 agentCOMMENT
LOWcrates/kiri-image/src/connect.rs1//! Opens TCP connections to registries the way browsers and curl do, HappyCOMMENT
LOWcrates/kiri-init/src/linux/fsnotify.rs1//! Files the Mac changed under bind mounts, raised as inotify events in theCOMMENT
LOWcrates/kiri-init/src/linux/netlink.rs541 rule.end();COMMENT
LOWcrates/kiri-init/src/linux/netlink.rs561/// ```COMMENT
LOWcrates/kiri-init/src/linux/netlink.rs641/// The input filter that keeps containers off the host's loopback:COMMENT
LOWcrates/kiri-init/src/linux/netlink.rs681 rule.nest(1).attr_str(1, "immediate").nest(2).attr_be32(1, 0).nest(2).nest(2).attr_be32(1, libc::NF_DROP as u32).endCOMMENT
LOWcrates/kiri-init/src/linux/netlink.rs801 let mut end = Msg::new(NFNL_MSG_BATCH_END, 0);COMMENT
LOWcrates/kiri-init/src/linux/dns.rs1//! The embedded DNS server for user-defined networks, as Docker has: atCOMMENT
LOWcrates/kiri-init/src/linux/pid1.rs1//! `--init`: the container's PID 1 stays ours and runs the program as itsCOMMENT
LOWcrates/kiri-init/src/linux/devices.rs1//! A container's device access, as Docker's default device cgroup is: aCOMMENT
LOWcrates/kiri-init/src/linux/mod.rs121 m(c"tmp", c"/tmp", c"tmpfs", libc::MS_NOSUID | libc::MS_NODEV, Some(c"mode=1777"))?;COMMENT
LOWcrates/kiri-init/src/linux/mod.rs241/// controllers down; containers go in its `kiri`.COMMENT
LOWcrates/kiri-init/src/linux/sys.rs161 }COMMENT
LOWcrates/kiri-init/src/linux/usb.rs1//! USB passthrough: the Mac captures a device and speaks USB/IP for it overCOMMENT
LOWcrates/kiri-init/src/linux/container.rs321 // The child makes its mounts before it waits for its network, and aCOMMENT
LOWcrates/kiri-init/src/linux/container.rs1041COMMENT
LOWcrates/kiri-init/src/linux/container.rs1481/// the container's /etc/passwd and /etc/group when not numeric.COMMENT
LOWcrates/kiri-init/src/linux/relay.rs1//! Port forwarding, guest side: the host opens a vsock stream per clientCOMMENT
LOWcrates/kiri-win/src/win.rs1//! Running Windows tools safely. `Command::new("reg")` (and friends) searchCOMMENT
LOWcrates/kiri-win/src/serve.rs21/// The connection is gone, both ways.COMMENT
LOWcrates/kiri-win/src/hub.rs1//! Pull image's suggestions: Docker Hub's search and each image's tags,COMMENT
LOWcrates/kiri-win/src/update.rs1//! Updates on Windows: the newest release, downloaded, checked and installed,COMMENT
LOWcrates/kiri-win/src/main.rs1//! kiri-win: Kiri's Windows side. Serves the Docker API on a named pipe,COMMENT
LOWcrates/kiri-win/src/main.rs21#[cfg(windows)]COMMENT
LOWcrates/kiri-win/src/main.rs41#[path = "../../kiri/src/hostrelay.rs"]COMMENT
LOWcrates/kiri-win/src/main.rs61#[cfg(windows)]COMMENT
LOWcrates/kiri-win/src/main.rs81// only Windows' lexical `..` forgives that.COMMENT
LOWcrates/kiri-win/src/main.rs101#[cfg(windows)]COMMENT
LOWcrates/kiri-win/src/k8s.rs1//! The window's Kubernetes section on Windows: Pods and Services of theCOMMENT
LOWcrates/kiri-win/src/k8s.rs41const API_PORT: u16 = 6443;COMMENT
LOWcrates/kiri-win/src/k8s.rs101 Err(_) => emit(notice("error", &tr("Couldn't copy to the clipboard"))),COMMENT
LOWcrates/kiri-win/src/engine.rs21// Share in the window, the Mac's own file: it needs only emit, notice, crate::client and crate::share.COMMENT
LOWcrates/kiri-win/src/engine.rs301 }COMMENT
LOWcrates/kiri-share-proto/src/lib.rs1//! Wire protocol between `kiri share` and the Kiri Share edge.COMMENT
LOWcrates/kiri-share-proto/src/lib.rs21//! Lanes: a client that sets [`FEATURE_LANES`] may be told in `Welcome` itCOMMENT
LOWcrates/kiri-share-proto/src/lib.rs141 /// Bytes per second each direction may use; 0 means no limit.COMMENT
LOWcrates/kiri-share-proto/src/attest.rs1//! Telling official Kiri builds from forks and scripts.COMMENT
LOWcrates/kiri/src/builds.rs301COMMENT
LOWcrates/kiri/src/kubeconfig.rs1//! The cluster's entry in kubectl's own file, written by Kiri itself withCOMMENT
LOWcrates/kiri/src/bridge.rs1//! `kiri bridge`: the WSL2 end of kiri-win.exe. The Windows docker CLI'sCOMMENT
LOWcrates/kiri/src/appwatch.rs1//! Noticing that Kiri's own program is gone from where it started: the appCOMMENT
LOWcrates/kiri/src/hostrelay.rs1//! `kiri hostrelay`: lets Kiri's engine in WSL2 reach a proxy on Windows' ownCOMMENT
LOWcrates/kiri/src/buildwith.rs1//! Which builder plain `docker build` uses: Docker's own, or Kiri's.COMMENT
LOWcrates/kiri/src/buildwith.rs21//! they did before Kiri: OrbStack's builds stay OrbStack's, and onceCOMMENT
LOWcrates/kiri/src/update.rs1//! Updates: the newest release, downloaded, checked and installed.COMMENT
71 more matches not shown…
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHscripts/ui-test.py55 " const answer = () => window.kiriWords && kiriWords({ [o.name]: HOST_WORDS[o.name] });\n"CODE
HIGHscripts/ui-test.py56 " if (hostHold) hostHeld.push(answer); else answer(); }; }\n")CODE
HIGHscripts/ui-test.py88 'window.webkit = { messageHandlers: { kiri: { postMessage: (m) => { const o = JSON.parse(m); sent.push({ CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALcrates/kiri/src/ui/xterm/xterm.js1!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof defineCODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcrates/kiri-win/src/setup.rs464/// Step 1: download WSL, then in one elevated run turn on Virtual MachineCOMMENT
LOWcrates/kiri-win/src/setup.rs526/// Step 2: Kiri Linux from the bundle, or Ubuntu (already here, or downloaded).COMMENT
LOWcrates/kiri-win/src/setup.rs613/// Step 3: the engine answers through the pipe and runs a container.COMMENT
LOWcrates/kiri-win/src/setup.rs686/// Step 4: the Docker tools (setup-tools.ps1), task by task.COMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcrates/kiri-win/src/setup.rs464/// Step 1: download WSL, then in one elevated run turn on Virtual MachineCOMMENT
LOWcrates/kiri-win/src/setup.rs526/// Step 2: Kiri Linux from the bundle, or Ubuntu (already here, or downloaded).COMMENT
LOWcrates/kiri-win/src/setup.rs613/// Step 3: the engine answers through the pipe and runs a container.COMMENT
LOWcrates/kiri-win/src/setup.rs686/// Step 4: the Docker tools (setup-tools.ps1), task by task.COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/testcontainers-api.py174except socket.timeout:CODE
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/testcontainers-api.py227 except Exception as e: # noqa: BLE001 — every failure is a lineCODE
LOWtests/lifecycle-status.py109 except Exception as error:CODE
LOWscripts/perf.py105 except Exception:CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/lifecycle-status.py21CODE
LOWscripts/i18n-check.py67CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/ui/langswitch.js17 const attrs = [...c.querySelectorAll("[title], [aria-label], [placeholder]")].map((el) => [el.title, el.getAttribute("CODE
LOWtests/ui/fixture.js44 for (const a of ["title", "aria-label", "placeholder"]) {CODE