AI Slop Code Risk Monitor

ghostty-org/ghostty

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

👻 Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.

2.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ghostty-org/ghostty, a Zig project with 63,056 GitHub stars. SynthScan examined 120,572 lines of code across 462 source files, recording 279 pattern matches distributed across 16 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-31
Last Push
63.1K
Stars
Zig
Language
120.6K
Lines of Code
462
Files
279
Pattern Hits
2026-10-31
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-10-31.

Cognitive Ownership Risk 12.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 0.6/100 · LOW

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

PR Review Velocity Impact 12.8/100 · LOW

Which changes need focused human review? 279 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 4MEDIUM 16LOW 259

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 279 distinct pattern matches across 16 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 Block235 hits · 224 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# CMake wrapper for libghostty-vtCOMMENT
LOWCMakeLists.txt21#COMMENT
LOWCMakeLists.txt41# Option 2 — find_package (after installing to a prefix):COMMENT
LOWCMakeLists.txt61#COMMENT
LOWCMakeLists.txt261# Zig target triple. For native builds, use the IMPORTED targets aboveCOMMENT
LOWmacos/GhosttyUITests/GhosttyCustomConfigCase.swift1//COMMENT
LOWmacos/Tests/BenchmarkTests.swift1//COMMENT
LOWmacos/Tests/Terminal/TerminalRestorableTests.swift41 @MainActorCOMMENT
LOWmacos/Tests/Terminal/TerminalRestorableTests.swift61 #expect(v5.surfaceTree.contains(where: { $0.id.uuidString == "926F3F2A-824C-40C9-87CA-2CDCA4E11049" }))COMMENT
LOWmacos/Tests/Terminal/TerminalRestorableTests.swift81 #expect(v7.effectiveFullscreenMode == .native)COMMENT
LOWmacos/Tests/Splits/SplitTreeTests.swift301COMMENT
LOWmacos/Sources/App/ghostty-bridging-header.h1// C imports here are exposed to Swift.COMMENT
LOWmacos/Sources/App/AppDelegate.swift421COMMENT
LOWmacos/Sources/App/AppDelegate.swift501 config.workingDirectory = filenameCOMMENT
LOWmacos/Sources/Features/AppleScript/ScriptTerminal.swift1import AppKitCOMMENT
LOWmacos/Sources/Features/AppleScript/ScriptTab.swift1import AppKitCOMMENT
LOWmacos/Sources/Features/AppleScript/ScriptWindow.swift1import AppKitCOMMENT
LOWmacos/Sources/Features/AppleScript/ScriptWindow.swift21 /// Canonical representative for this scripting window's tab group.COMMENT
LOW…ces/Features/AppleScript/AppDelegate+AppleScript.swift1import AppKitCOMMENT
LOW…ces/Features/AppleScript/AppDelegate+AppleScript.swift21 /// Backing collection for `application.windows`.COMMENT
LOW…cos/Sources/Features/Terminal/TerminalController.swift481 tabCreated = parent.addTabbedWindowSafely(window, ordered: .above)COMMENT
LOW…cos/Sources/Features/Terminal/TerminalController.swift1141 // its own tabbing so we DONT want this behavior. This detects this scenario and undoesCOMMENT
LOW…Sources/Features/Terminal/BaseTerminalController.swift1import CocoaCOMMENT
LOW…Sources/Features/Terminal/BaseTerminalController.swift21///COMMENT
LOW…Sources/Features/Terminal/BaseTerminalController.swift1081 ///COMMENT
LOW…al/Window Styles/TitlebarTabsTahoeTerminalWindow.swift141 /// is removed from the view hierarchy.COMMENT
LOW…os/Sources/Features/App Intents/IntentPermission.swift1import AppKitCOMMENT
LOW…s/Features/QuickTerminal/QuickTerminalController.swift501 // This works around a really funky bug where if the terminal isCOMMENT
LOWmacos/Sources/Features/Splits/SplitView.swift1import SwiftUICOMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift261 /// operation. For up/down resizing, it finds the nearest parent vertical split and adjustsCOMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift841 /// - Relative bounds for each node based on split ratiosCOMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift881 let slots = spatialSlots(in: CGRect(x: 0, y: 0, width: width, height: height))COMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift941 /// The calculation process:COMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift1021 /// This method finds all slots positioned in the given direction from the reference node:COMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift1081 $0.node != referenceNode && $0.bounds.minY >= refSlot.bounds.maxYCOMMENT
LOWmacos/Sources/Features/Splits/SplitTree.swift1381 /// This is useful for SwiftUI's `id()` modifier to detect when a tree's structureCOMMENT
LOWmacos/Sources/Helpers/ExpiringUndoManager.swift1/// An UndoManager subclass that supports registering undo operations that automatically expire after a specified duratiCOMMENT
LOWmacos/Sources/Helpers/ExpiringUndoManager.swift81 // but we want to make sure it happens right now.COMMENT
LOWmacos/Sources/Helpers/NonDraggableHostingView.swift1import SwiftUICOMMENT
LOWmacos/Sources/Helpers/Backport.swift121///COMMENT
LOWmacos/Sources/Helpers/Extensions/NSMenu+Extension.swift1import AppKitCOMMENT
LOWmacos/Sources/Ghostty/Ghostty.Surface.swift1import GhosttyKitCOMMENT
LOWmacos/Sources/Ghostty/Ghostty.Surface.swift161 /// Send a mouse position event to the terminal.COMMENT
LOWmacos/Sources/Ghostty/Ghostty.Input.swift201COMMENT
LOWmacos/Sources/Ghostty/Ghostty.Input.swift241}COMMENT
LOWmacos/Sources/Ghostty/Ghostty.Shell.swift21COMMENT
LOWmacos/Sources/Ghostty/Ghostty.Shell.swift41 /// path at the cursor of a terminal instead, use ``escape(_:)``.COMMENT
LOWmacos/Sources/Ghostty/Ghostty.Shell.swift61 /// rather than text, such as Return, Tab, Escape, and Ctrl-U. ThisCOMMENT
LOWmacos/Sources/Ghostty/Ghostty.Shell.swift81 /// safely ask the user to confirm a string that contains them. RejectCOMMENT
LOW…/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift881 owner: self,COMMENT
LOW…/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift1201 // grabbed it and do nothing.COMMENT
LOW…/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift1301 /// Concretely: Command+Period will do: performKeyEquivalent, doCommand ("cancel:"). In doCommand,COMMENT
LOW…/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift2201 forSendType sendType: NSPasteboard.PasteboardType?,COMMENT
LOW…s/Sources/Ghostty/Surface View/SurfaceScrollView.swift1import SwiftUICOMMENT
LOW…s/Sources/Ghostty/Surface View/SurfaceScrollView.swift281 guard row != lastSentRow else { return }COMMENT
LOW…s/Sources/Ghostty/Surface View/SurfaceScrollView.swift301 returnCOMMENT
LOW…s/Sources/Ghostty/Surface View/SurfaceScrollView.swift321 ///COMMENT
LOWmacos/Sources/Ghostty/Surface View/SurfaceView.swift541 /// A surface is terminology in Ghostty for a terminal surface, or a place where a terminal is actually drawnCOMMENT
LOWnix/build-support/check-zig-cache.sh1#!/usr/bin/env bashCOMMENT
LOWinclude/ghostty.h1// Ghostty's internal embedder API, a.k.a. "libghostty-internal".COMMENT
175 more matches not shown…
Self-Referential Comments10 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUM⚡include/ghostty/vt/terminal.h110 * ### Defining a write_pty callbackCOMMENT
MEDIUM⚡include/ghostty/vt/terminal.h113 * ### Defining a bell callbackCOMMENT
MEDIUM⚡include/ghostty/vt/terminal.h116 * ### Defining a title_changed callbackCOMMENT
MEDIUM⚡include/ghostty/vt/terminal.h119 * ### Defining a clipboard_write callbackCOMMENT
MEDIUM⚡include/ghostty/vt/terminal.h122 * ### Defining a clipboard_read callbackCOMMENT
MEDIUM⚡include/ghostty/vt/terminal.h125 * ### Defining an unknown_sequence callbackCOMMENT
MEDIUMinclude/ghostty/vt/sys.h33 * ### Defining a PNG decode callbackCOMMENT
MEDIUMsrc/shell-integration/bash/bash-preexec.sh205# This function is installed as part of the PROMPT_COMMAND;COMMENT
MEDIUMsrc/shell-integration/bash/bash-preexec.sh221# This function is installed as part of the PROMPT_COMMAND.COMMENT
MEDIUMsrc/shell-integration/bash/bash-preexec.sh323# This function is installed as the DEBUG trap. It is invoked before eachCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…cos/Sources/Features/Terminal/TerminalController.swift1825 // Initial size as requested by the configuration (e.g. `window-width`)COMMENT
HIGH…os/Sources/Helpers/Extensions/NSScreen+Extension.swift57 /// - Returns: CGPoint suitable for setFrameOrigin that positions the window as requestedCOMMENT
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt12# ---------------------------------COMMENT
MEDIUMCMakeLists.txt23# ---------------------------------------------COMMENT
MEDIUMCMakeLists.txt48# -------------------COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md132### I've implemented a featureCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…cos/Sources/Features/Terminal/TerminalController.swift520 // is used in the tab bar. This fixes that. If we can find a more robustCOMMENT
MEDIUMmacos/Sources/Features/Splits/SplitTree.swift633 // be robust against it.COMMENT
LOWnix/build-support/fetch-zig-cache.sh8# at all and packagers can just use `zig build --fetch`.COMMENT
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/terminal/snapshot/verify-kaitai.py67CODE
LOWsrc/terminal/snapshot/verify-kaitai.py382CODE
LOWsrc/terminal/snapshot/verify-kaitai.py585CODE
LOWsrc/font/nerd_font_codegen.py336CODE
LOWsrc/font/nerd_font_codegen.py446CODE
LOWsrc/font/nerd_font_codegen.py80CODE
LOWsrc/font/nerd_font_codegen.py141CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWmacos/GhosttyUITests/GhosttyMouseStateTests.swift16 let lines = (1...200).map { "Line \($0): The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit ametCODE
LOWmacos/GhosttyUITests/GhosttyMouseStateTests.swift16 let lines = (1...200).map { "Line \($0): The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit ametCODE
LOWsrc/cli/lorem_ipsum.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras hendrerit aliquetCODE
LOWsrc/cli/lorem_ipsum.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras hendrerit aliquetCODE
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWinclude/ghostty.h1071typedef ghostty_clipboard_read_result_e (*ghostty_runtime_read_clipboard_cb)(CODE
LOWsrc/terminal/snapshot/verify-kaitai.py356def validate_kitty_image_payload(CODE
LOWsrc/terminal/snapshot/verify-kaitai.py451def validate_complete_snapshot(snapshot: Any, data: bytes) -> None:CODE
LOWsrc/font/nerd_font_codegen.py336def generate_codepoint_tables(STRING
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmacos/Sources/Features/Splits/SplitTree.swift1385 /// Example usage:COMMENT
LOWmacos/Sources/Helpers/ExpiringUndoManager.swift6/// Example usage:COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMinclude/ghostty/vt/wasm.h50 * Here's a simple example that creates a terminal, writes bytes, and safelyCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/shell-integration/bash/ghostty.bash99 # Check if argument is '-e' or '--edit' (sudoedit flags)COMMENT
LOWsrc/shell-integration/bash/ghostty.bash104 # Check if argument is neither an option nor a key-value pairCOMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHsrc/font/nerd_font_codegen.py177 """Zig literal for one constraint value. stage3 index 0 is null, not this."""STRING
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/terminal/snapshot/verify-kaitai.py28CODE
LOWsrc/terminal/c/types-schema-verify.py4CODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/shell-integration/bash/bash-preexec.sh56# WARNING: This variable is no longer used and should not be relied upon.COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/terminal/snapshot/verify-kaitai.py620 except Exception as error:CODE