tmux source code
This report summarizes scanner evidence for tmux/tmux, a C project with 50,081 GitHub stars. SynthScan examined 168,892 lines of code across 571 source files, recording 198 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.2 (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? 124 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 72 finding(s).
Which changes need focused human review? 198 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 198 distinct pattern matches across 8 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 |
|---|---|---|---|---|
| MEDIUM | regress/decrqm-sync.sh | 47 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 49 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 64 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 66 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 81 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 83 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 98 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 100 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 119 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/decrqm-sync.sh | 121 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | regress/pane-ops.sh | 126 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 165 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 232 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 273 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 445 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 466 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 500 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 535 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 641 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 717 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 745 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/pane-ops.sh | 794 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/session-ops.sh | 206 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/session-ops.sh | 248 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/session-ops.sh | 264 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/session-ops.sh | 294 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/buffers.sh | 104 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/buffers.sh | 158 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/buffers.sh | 179 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/buffers.sh | 235 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 199 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 209 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 221 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 344 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 360 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 375 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 383 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 404 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 437 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 460 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 507 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 538 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 562 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 679 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 746 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 841 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/layout-custom.sh | 914 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 224 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 255 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 295 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 358 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 377 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/window-ops.sh | 428 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | regress/prompt-keys.sh | 80 | # =========================================================================== | COMMENT |
| MEDIUM | regress/prompt-keys.sh | 82 | # =========================================================================== | COMMENT |
| MEDIUM | regress/prompt-keys.sh | 208 | # =========================================================================== | COMMENT |
| MEDIUM | regress/prompt-keys.sh | 212 | # =========================================================================== | COMMENT |
| MEDIUM | regress/prompt-keys.sh | 306 | # =========================================================================== | COMMENT |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | format.c | 21 | COMMENT | |
| LOW | format.c | 101 | #define FORMAT_TIMESTRING 0x1 | COMMENT |
| LOW | format.c | 121 | #define FORMAT_NOT_NOT 0x100000 | COMMENT |
| LOW | tmux.c | 21 | #include <sys/utsname.h> | COMMENT |
| LOW | osdep-dragonfly.c | 21 | #include <sys/sysctl.h> | COMMENT |
| LOW | server.c | 21 | #include <sys/socket.h> | COMMENT |
| LOW | image-decode.c | 21 | COMMENT | |
| LOW | client.c | 21 | #include <sys/uio.h> | COMMENT |
| LOW | osdep-freebsd.c | 21 | #include <sys/stat.h> | COMMENT |
| LOW | compat.h | 21 | #include <sys/ioctl.h> | COMMENT |
| LOW | compat.h | 41 | #ifndef EVBUFFER_EOL_LF | COMMENT |
| LOW | compat.h | 61 | #endif | COMMENT |
| LOW | compat.h | 81 | #define ECHOPRT 0 | COMMENT |
| LOW | compat.h | 101 | #ifdef HAVE_PATHS_H | COMMENT |
| LOW | compat.h | 121 | #ifndef _PATH_DEV | COMMENT |
| LOW | compat.h | 141 | #ifdef HAVE_STDINT_H | COMMENT |
| LOW | compat.h | 161 | #else | COMMENT |
| LOW | compat.h | 181 | #endif | COMMENT |
| LOW | compat.h | 201 | #define CMSG_ALIGN(len) (((len) + sizeof(long) - 1) & ~(sizeof(long) - 1)) | COMMENT |
| LOW | compat.h | 221 | #define FNM_CASEFOLD 0 | COMMENT |
| LOW | compat.h | 261 | if ((vvp)->tv_usec < 0) { \ | COMMENT |
| LOW | compat.h | 281 | #endif | COMMENT |
| LOW | compat.h | 481 | #define optopt BSDoptopt | COMMENT |
| LOW | tty.c | 21 | COMMENT | |
| LOW | proc.c | 21 | #include <sys/uio.h> | COMMENT |
| LOW | tmux.h | 21 | COMMENT | |
| LOW | tmux.h | 101 | #define TMUX_TERM "screen" | COMMENT |
| LOW | tmux.h | 121 | /* Default pixel cell sizes. */ | COMMENT |
| LOW | tmux.h | 141 | #define VISUAL_ON 1 | COMMENT |
| LOW | tmux.h | 741 | #define MODE_WRAP 0x10 | COMMENT |
| LOW | tmux.h | 841 | #define GRID_ATTR_ITALICS 0x40 | COMMENT |
| LOW | tmux.h | 861 | #define GRID_FLAG_BG256 0x2 | COMMENT |
| LOW | tmux.h | 901 | #define CELL_LR 2 | COMMENT |
| LOW | tmux.h | 1201 | #define PANE_BORDER_OFF 0 | COMMENT |
| LOW | tmux.h | 1361 | int xoff; | COMMENT |
| LOW | tmux.h | 1581 | }; | COMMENT |
| LOW | tmux.h | 1721 | #define MOUSE_WHEEL_UP 64 | COMMENT |
| LOW | tmux.h | 1881 | #define TTY_FREEZE 0x2 | COMMENT |
| LOW | tmux.h | 2241 | typedef enum prompt_result (*status_prompt_input_cb)(struct client *, void *, | COMMENT |
| LOW | tmux.h | 2361 | #define CLIENT_TERMINAL 0x1 | COMMENT |
| LOW | tmux.h | 2381 | #define CLIENT_DOUBLECLICK 0x100000 | COMMENT |
| LOW | screen-redraw.c | 81 | COMMENT | |
| LOW | window.c | 21 | #include <sys/wait.h> | COMMENT |
| LOW | osdep-openbsd.c | 21 | #include <sys/proc.h> | COMMENT |
| LOW | tools/24-bit-color.sh | 1 | #!/bin/bash | COMMENT |
| LOW | compat/vis.h | 41 | #define VIS_OCTAL 0x01 /* use octal \ddd format */ | COMMENT |
| LOW | compat/systemd.c | 21 | COMMENT | |
| LOW | compat/imsg.c | 21 | #include <sys/socket.h> | COMMENT |
| LOW | compat/closefrom.c | 21 | #include <unistd.h> | COMMENT |
| LOW | compat/closefrom.c | 41 | # include <sys/dir.h> | COMMENT |
| LOW | compat/imsg-buffer.c | 21 | #include <sys/socket.h> | COMMENT |
| LOW | regress/respawn-pane-control-lag.sh | 1 | #!/bin/sh | COMMENT |
| LOW | regress/mode-kill.sh | 1 | #!/bin/sh | COMMENT |
| LOW | regress/floating-pane-drag-ghost.sh | 1 | #!/bin/sh | COMMENT |
| LOW | regress/screen-redraw-indicators.sh | 1 | #!/bin/sh | COMMENT |
| LOW | regress/tty-keys.sh | 341 | code=$1 | COMMENT |
| LOW | regress/tty-keys.sh | 361 | # assert_extended_key 77 'M' | COMMENT |
| LOW | regress/choose-tree.sh | 1 | #!/bin/sh | COMMENT |
| LOW | regress/choose-tree.sh | 121 | COMMENT | |
| LOW | regress/tty-keys-refresh-size.sh | 1 | #!/bin/sh | COMMENT |
| 48 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | regress/session-group-resize.sh | 21 | # Create a session with two windows, staying on window 0. | COMMENT |
| MEDIUM | regress/session-group-resize.sh | 40 | # Create a grouped session with a larger 30x10 client, also in control mode. It | COMMENT |
| MEDIUM | regress/session-group-resize.sh | 52 | # Create a third grouped session with a 25x8 client, switch to window 1 | COMMENT |
| MEDIUM | regress/floating-pane-drag-wide-right.sh | 152 | # Create the floating pane, then check its actual resulting position. Try | COMMENT |
| MEDIUM | regress/floating-pane-prompt-wide-character.sh | 123 | # Create the floating pane, then check its actual resulting position (the | COMMENT |
| MEDIUM | regress/floating-pane-drag-wide-character.sh | 151 | # Create the floating pane, then check its actual resulting position. Try | COMMENT |
| MEDIUM | regress/alerts.sh | 286 | # Creating a non-current window counts as activity when monitor-activity is | COMMENT |
| MEDIUM | regress/modal-pane.sh | 427 | # Creating a popup pane must not fire the split-window hook. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | regress/image-kitty-persistence.sh | 0 | build a kitty graphics apc with replies suppressed. | STRING |
| HIGH | regress/image-kitty-placements.sh | 0 | build a kitty graphics apc with replies suppressed. | STRING |
| HIGH | regress/image_test.py | 0 | build a kitty graphics apc with replies suppressed. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | regress/image_kitty.py | 20 | CODE | |
| LOW | regress/image_kitty.py | 76 | CODE | |
| LOW | regress/image_terminal.py | 31 | CODE | |
| LOW | regress/image_terminal.py | 85 | CODE | |
| LOW | regress/image_terminal.py | 135 | CODE | |
| LOW | regress/image_test.py | 268 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | regress/redraw-multiclient.sh | 12 | # nested-test-harness artifact, not a real tmux bug - confirmed by replaying | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | regress/cursor-test.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| LOW | regress/cursor-test.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tmux-protocol.h | 77 | * Don't forget to bump PROTOCOL_VERSION if any of these change! | COMMENT |