👻 Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 268 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 279 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # CMake wrapper for libghostty-vt | COMMENT |
| LOW | CMakeLists.txt | 21 | # | COMMENT |
| LOW | CMakeLists.txt | 41 | # Option 2 — find_package (after installing to a prefix): | COMMENT |
| LOW | CMakeLists.txt | 61 | # | COMMENT |
| LOW | CMakeLists.txt | 261 | # Zig target triple. For native builds, use the IMPORTED targets above | COMMENT |
| LOW | macos/GhosttyUITests/GhosttyCustomConfigCase.swift | 1 | // | COMMENT |
| LOW | macos/Tests/BenchmarkTests.swift | 1 | // | COMMENT |
| LOW | macos/Tests/Terminal/TerminalRestorableTests.swift | 41 | @MainActor | COMMENT |
| LOW | macos/Tests/Terminal/TerminalRestorableTests.swift | 61 | #expect(v5.surfaceTree.contains(where: { $0.id.uuidString == "926F3F2A-824C-40C9-87CA-2CDCA4E11049" })) | COMMENT |
| LOW | macos/Tests/Terminal/TerminalRestorableTests.swift | 81 | #expect(v7.effectiveFullscreenMode == .native) | COMMENT |
| LOW | macos/Tests/Splits/SplitTreeTests.swift | 301 | COMMENT | |
| LOW | macos/Sources/App/ghostty-bridging-header.h | 1 | // C imports here are exposed to Swift. | COMMENT |
| LOW | macos/Sources/App/AppDelegate.swift | 421 | COMMENT | |
| LOW | macos/Sources/App/AppDelegate.swift | 501 | config.workingDirectory = filename | COMMENT |
| LOW | macos/Sources/Features/AppleScript/ScriptTerminal.swift | 1 | import AppKit | COMMENT |
| LOW | macos/Sources/Features/AppleScript/ScriptTab.swift | 1 | import AppKit | COMMENT |
| LOW | macos/Sources/Features/AppleScript/ScriptWindow.swift | 1 | import AppKit | COMMENT |
| LOW | macos/Sources/Features/AppleScript/ScriptWindow.swift | 21 | /// Canonical representative for this scripting window's tab group. | COMMENT |
| LOW | …ces/Features/AppleScript/AppDelegate+AppleScript.swift | 1 | import AppKit | COMMENT |
| LOW | …ces/Features/AppleScript/AppDelegate+AppleScript.swift | 21 | /// Backing collection for `application.windows`. | COMMENT |
| LOW | …cos/Sources/Features/Terminal/TerminalController.swift | 481 | tabCreated = parent.addTabbedWindowSafely(window, ordered: .above) | COMMENT |
| LOW | …cos/Sources/Features/Terminal/TerminalController.swift | 1141 | // its own tabbing so we DONT want this behavior. This detects this scenario and undoes | COMMENT |
| LOW | …Sources/Features/Terminal/BaseTerminalController.swift | 1 | import Cocoa | COMMENT |
| LOW | …Sources/Features/Terminal/BaseTerminalController.swift | 21 | /// | COMMENT |
| LOW | …Sources/Features/Terminal/BaseTerminalController.swift | 1081 | /// | COMMENT |
| LOW | …al/Window Styles/TitlebarTabsTahoeTerminalWindow.swift | 141 | /// is removed from the view hierarchy. | COMMENT |
| LOW | …os/Sources/Features/App Intents/IntentPermission.swift | 1 | import AppKit | COMMENT |
| LOW | …s/Features/QuickTerminal/QuickTerminalController.swift | 501 | // This works around a really funky bug where if the terminal is | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitView.swift | 1 | import SwiftUI | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 261 | /// operation. For up/down resizing, it finds the nearest parent vertical split and adjusts | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 841 | /// - Relative bounds for each node based on split ratios | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 881 | let slots = spatialSlots(in: CGRect(x: 0, y: 0, width: width, height: height)) | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 941 | /// The calculation process: | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 1021 | /// This method finds all slots positioned in the given direction from the reference node: | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 1081 | $0.node != referenceNode && $0.bounds.minY >= refSlot.bounds.maxY | COMMENT |
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 1381 | /// This is useful for SwiftUI's `id()` modifier to detect when a tree's structure | COMMENT |
| LOW | macos/Sources/Helpers/ExpiringUndoManager.swift | 1 | /// An UndoManager subclass that supports registering undo operations that automatically expire after a specified durati | COMMENT |
| LOW | macos/Sources/Helpers/ExpiringUndoManager.swift | 81 | // but we want to make sure it happens right now. | COMMENT |
| LOW | macos/Sources/Helpers/NonDraggableHostingView.swift | 1 | import SwiftUI | COMMENT |
| LOW | macos/Sources/Helpers/Backport.swift | 121 | /// | COMMENT |
| LOW | macos/Sources/Helpers/Extensions/NSMenu+Extension.swift | 1 | import AppKit | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Surface.swift | 1 | import GhosttyKit | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Surface.swift | 161 | /// Send a mouse position event to the terminal. | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Input.swift | 201 | COMMENT | |
| LOW | macos/Sources/Ghostty/Ghostty.Input.swift | 241 | } | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Shell.swift | 21 | COMMENT | |
| LOW | macos/Sources/Ghostty/Ghostty.Shell.swift | 41 | /// path at the cursor of a terminal instead, use ``escape(_:)``. | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Shell.swift | 61 | /// rather than text, such as Return, Tab, Escape, and Ctrl-U. This | COMMENT |
| LOW | macos/Sources/Ghostty/Ghostty.Shell.swift | 81 | /// safely ask the user to confirm a string that contains them. Reject | COMMENT |
| LOW | …/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift | 881 | owner: self, | COMMENT |
| LOW | …/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift | 1201 | // grabbed it and do nothing. | COMMENT |
| LOW | …/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift | 1301 | /// Concretely: Command+Period will do: performKeyEquivalent, doCommand ("cancel:"). In doCommand, | COMMENT |
| LOW | …/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift | 2201 | forSendType sendType: NSPasteboard.PasteboardType?, | COMMENT |
| LOW | …s/Sources/Ghostty/Surface View/SurfaceScrollView.swift | 1 | import SwiftUI | COMMENT |
| LOW | …s/Sources/Ghostty/Surface View/SurfaceScrollView.swift | 281 | guard row != lastSentRow else { return } | COMMENT |
| LOW | …s/Sources/Ghostty/Surface View/SurfaceScrollView.swift | 301 | return | COMMENT |
| LOW | …s/Sources/Ghostty/Surface View/SurfaceScrollView.swift | 321 | /// | COMMENT |
| LOW | macos/Sources/Ghostty/Surface View/SurfaceView.swift | 541 | /// A surface is terminology in Ghostty for a terminal surface, or a place where a terminal is actually drawn | COMMENT |
| LOW | nix/build-support/check-zig-cache.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | include/ghostty.h | 1 | // Ghostty's internal embedder API, a.k.a. "libghostty-internal". | COMMENT |
| 175 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 110 | * ### Defining a write_pty callback | COMMENT |
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 113 | * ### Defining a bell callback | COMMENT |
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 116 | * ### Defining a title_changed callback | COMMENT |
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 119 | * ### Defining a clipboard_write callback | COMMENT |
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 122 | * ### Defining a clipboard_read callback | COMMENT |
| MEDIUM⚡ | include/ghostty/vt/terminal.h | 125 | * ### Defining an unknown_sequence callback | COMMENT |
| MEDIUM | include/ghostty/vt/sys.h | 33 | * ### Defining a PNG decode callback | COMMENT |
| MEDIUM | src/shell-integration/bash/bash-preexec.sh | 205 | # This function is installed as part of the PROMPT_COMMAND; | COMMENT |
| MEDIUM | src/shell-integration/bash/bash-preexec.sh | 221 | # This function is installed as part of the PROMPT_COMMAND. | COMMENT |
| MEDIUM | src/shell-integration/bash/bash-preexec.sh | 323 | # This function is installed as the DEBUG trap. It is invoked before each | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …cos/Sources/Features/Terminal/TerminalController.swift | 1825 | // Initial size as requested by the configuration (e.g. `window-width`) | COMMENT |
| HIGH | …os/Sources/Helpers/Extensions/NSScreen+Extension.swift | 57 | /// - Returns: CGPoint suitable for setFrameOrigin that positions the window as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 12 | # --------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 23 | # --------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 48 | # ------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 132 | ### I've implemented a feature | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …cos/Sources/Features/Terminal/TerminalController.swift | 520 | // is used in the tab bar. This fixes that. If we can find a more robust | COMMENT |
| MEDIUM | macos/Sources/Features/Splits/SplitTree.swift | 633 | // be robust against it. | COMMENT |
| LOW | nix/build-support/fetch-zig-cache.sh | 8 | # at all and packagers can just use `zig build --fetch`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/terminal/snapshot/verify-kaitai.py | 67 | CODE | |
| LOW | src/terminal/snapshot/verify-kaitai.py | 382 | CODE | |
| LOW | src/terminal/snapshot/verify-kaitai.py | 585 | CODE | |
| LOW | src/font/nerd_font_codegen.py | 336 | CODE | |
| LOW | src/font/nerd_font_codegen.py | 446 | CODE | |
| LOW | src/font/nerd_font_codegen.py | 80 | CODE | |
| LOW | src/font/nerd_font_codegen.py | 141 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | macos/GhosttyUITests/GhosttyMouseStateTests.swift | 16 | let lines = (1...200).map { "Line \($0): The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet | CODE |
| LOW | macos/GhosttyUITests/GhosttyMouseStateTests.swift | 16 | let lines = (1...200).map { "Line \($0): The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet | CODE |
| LOW | src/cli/lorem_ipsum.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras hendrerit aliquet | CODE |
| LOW | src/cli/lorem_ipsum.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras hendrerit aliquet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/ghostty.h | 1071 | typedef ghostty_clipboard_read_result_e (*ghostty_runtime_read_clipboard_cb)( | CODE |
| LOW | src/terminal/snapshot/verify-kaitai.py | 356 | def validate_kitty_image_payload( | CODE |
| LOW | src/terminal/snapshot/verify-kaitai.py | 451 | def validate_complete_snapshot(snapshot: Any, data: bytes) -> None: | CODE |
| LOW | src/font/nerd_font_codegen.py | 336 | def generate_codepoint_tables( | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | macos/Sources/Features/Splits/SplitTree.swift | 1385 | /// Example usage: | COMMENT |
| LOW | macos/Sources/Helpers/ExpiringUndoManager.swift | 6 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | include/ghostty/vt/wasm.h | 50 | * Here's a simple example that creates a terminal, writes bytes, and safely | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/shell-integration/bash/ghostty.bash | 99 | # Check if argument is '-e' or '--edit' (sudoedit flags) | COMMENT |
| LOW | src/shell-integration/bash/ghostty.bash | 104 | # Check if argument is neither an option nor a key-value pair | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/font/nerd_font_codegen.py | 177 | """Zig literal for one constraint value. stage3 index 0 is null, not this.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/terminal/snapshot/verify-kaitai.py | 28 | CODE | |
| LOW | src/terminal/c/types-schema-verify.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/shell-integration/bash/bash-preexec.sh | 56 | # WARNING: This variable is no longer used and should not be relied upon. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/terminal/snapshot/verify-kaitai.py | 620 | except Exception as error: | CODE |