Review-first terminal diff viewer for agentic coders
This report summarizes scanner evidence for modem-dev/hunk, a TypeScript project with 9,731 GitHub stars. SynthScan examined 400,209 lines of code across 1472 source files, recording 890 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.3 (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? 876 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 875 finding(s).
Which changes need focused human review? 890 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 890 distinct pattern matches across 7 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 | test/smoke/tty.test.ts | 20 | function supportsControllableScript() { | CODE |
| LOW | test/smoke/tty.test.ts | 138 | function createLongWrapFixtureFiles() { | CODE |
| LOW | test/pty/open-keyboard-integration.test.ts | 17 | function createTestOpenKeyboardFixture() { | CODE |
| LOW | test/pty/watch-start-integration.test.ts | 13 | function createTestFirstInteractionWatchFixture(directory: string) { | CODE |
| LOW | test/pty/open-scroll-integration.test.ts | 30 | function createOpenScrollTestFixture() { | CODE |
| LOW | test/pty/terminal-theme-integration.test.ts | 74 | function createTestTerminalResponder(initialPalette: TestTerminalPalette) { | CODE |
| LOW | test/pty/shell-completion-integration.test.ts | 44 | async function createTestCompletionShell( | CODE |
| LOW | test/pty/empty-review-integration.test.ts | 15 | function createTestCleanRepoFixture() { | CODE |
| LOW | test/pty/file-views-integration.test.ts | 57 | function createInteractiveViewExtension(directory: string) { | CODE |
| LOW | test/pty/file-views-integration.test.ts | 107 | function createSyntaxViewExtension(directory: string) { | CODE |
| LOW | test/pty/harness.test.ts | 6 | function createTestTransitionSession(screens: string[]) { | CODE |
| LOW | test/pty/harness.ts | 272 | function createNumberedExportLines(start: number, count: number, valueOffset = 0) { | CODE |
| LOW | test/pty/harness.ts | 370 | function createWideCharacterFilePair() { | CODE |
| LOW | test/pty/harness.ts | 392 | function createDeletionOnlyFilePair() { | CODE |
| LOW | test/pty/harness.ts | 441 | function createGapAnnotatedAgentFilePair() { | CODE |
| LOW | test/pty/harness.ts | 479 | function createAgentNavigationRepoFixture() { | CODE |
| LOW | test/pty/harness.ts | 570 | function createExpandableContextFilePair() { | CODE |
| LOW | test/pty/harness.ts | 624 | function createLinkedWorktreeWatchFixture() { | CODE |
| LOW | test/pty/harness.ts | 658 | function createRepoExtensionFixture( | CODE |
| LOW | test/pty/harness.ts | 720 | function createMovedLinesRepoFixture() { | CODE |
| LOW | test/pty/harness.ts | 753 | function createNarrowHeaderTestRepoFixture() { | CODE |
| LOW | test/pty/harness.ts | 764 | function createUnicodePathRepoFixture() { | CODE |
| LOW | test/pty/harness.ts | 784 | function createElixirHeredocRepoFixture() { | CODE |
| LOW | test/pty/harness.ts | 812 | function createSmallMultiLanguageRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 847 | function createBinaryNavigationRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 877 | function createNestedSidebarRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 893 | function createManyShortFileRepoFixture(count = 8) { | STRING |
| LOW | test/pty/harness.ts | 904 | function createManyFileSidebarRepoFixture(count = 40) { | STRING |
| LOW | test/pty/harness.ts | 917 | function createPinnedHeaderRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 933 | function createRapidThemePreviewTestRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 943 | function createCollapsedTopRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 990 | function createSidebarJumpRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 1021 | function createBottomClampedRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 1047 | function createCrossFileHunkNavigationRepoFixture() { | STRING |
| LOW | test/pty/harness.ts | 1123 | function createMultiFilePagerPatchFixture() { | STRING |
| LOW | test/pty/harness.ts | 1215 | async function launchHunkWithFileBackedStdin(options: { | STRING |
| LOW | test/pty/lifecycle.test.ts | 163 | async function waitForLifecycleTestSession(cwd: string, runtimeDir: string, port: number) { | CODE |
| LOW | test/cli/install-vm/preflight.ts | 4 | export async function collectInstallVmPreflightFailures( | CODE |
| LOW | test/cli/install-vm/repo-layout.ts | 14 | export function resolveHunkBinWrapperPath(repoRoot: string) { | CODE |
| LOW | test/cli/install-vm/contract.ts | 115 | export function validateInstallVmCommandExpectation(expectation: string, exitCode?: number) { | CODE |
| LOW | test/cli/install-vm/contract.ts | 340 | export function evaluateCommandExpectation( | CODE |
| LOW | test/cli/install-vm/contract.ts | 417 | export function assertSafeInstallVmRuntimePath( | CODE |
| LOW | test/cli/install-vm/contract.ts | 469 | export function assertDistinctInstallVmRuntimePaths(paths: Record<string, string>) { | CODE |
| LOW | test/cli/install-vm/contract.ts | 504 | export function buildControllerImageCommand( | CODE |
| LOW | test/cli/install-vm/contract.ts | 563 | export function buildDockerVmShellCommand( | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 73 | export function buildSyntheticPackageManifests( | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 128 | export function computeInstallVmFixtureSourceIdentity(repoRoot: string) { | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 344 | export async function deriveVerifiedDaemonUpgradeBinaryDigests( | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 502 | async function stageDaemonUpgradePackage( | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 548 | async function stageSyntheticCurlArchive( | CODE |
| LOW | test/cli/install-vm/prepare-fixtures.ts | 578 | export function rewriteCurlInstallerForVmServer(installer: string) { | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 75 | export function computeDaemonUpgradeBuildInputIdentity( | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 127 | export function createDaemonUpgradeCompilerEnvironment( | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 163 | export function snapshotDaemonUpgradeDependencies(repoRoot: string, destination: string) { | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 205 | function assertNoDestinationParentSymlinks(root: string, relativePath: string) { | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 216 | export function copyDaemonUpgradeCheckoutFiles(repoRoot: string, destination: string) { | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 271 | export function rewriteDaemonUpgradeVariantSources( | CODE |
| LOW | test/cli/install-vm/prepare-daemon-upgrade-fixtures.ts | 344 | export async function prepareDaemonUpgradeBinaries(repoRoot: string, buildRoot: string) { | CODE |
| LOW | test/cli/install-vm/runtime-lock.ts | 24 | export function acquireInstallVmRuntimeLock( | CODE |
| LOW | test/cli/install-vm/results.ts | 231 | function validateAuthenticatedDaemonUpgradeEvidence( | CODE |
| 803 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | install.sh | 44 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 46 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 90 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 92 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 129 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 131 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 171 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 173 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 184 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 186 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 385 | # -------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | install.sh | 387 | # -------------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | install.sh | 21 | # HUNK_DISABLE_ANALYTICS | COMMENT |
| LOW | scripts/quality/source-boundaries.test.ts | 341 | COMMENT | |
| LOW | scripts/launch-video/promo/engine.js | 1 | // Hunk's release-promo style kit: a timeline page for @hunk/term-video/timeline. | COMMENT |
| LOW | packages/hunk/src/ui/fileViews/useFileViews.ts | 401 | // Effects clean up after render. Exact per-file filtering synchronously declines stale geometry | COMMENT |
| LOW | packages/hunk/src/ui/diff/lineHighlightPaint.test.ts | 421 | // recolor spans but never change the rendered width of a line. A column cut | COMMENT |
| LOW | packages/hunk/src/ui/diff/DiffSectionBody.tsx | 301 | // - one file-local visible body slice from DiffPane | COMMENT |
| LOW | packages/hunk/src/ui/components/panes/DiffPane.tsx | 2181 | COMMENT | |
| LOW | packages/hunk/src/ui/lib/stml/layout.ts | 1 | // STML -> styled terminal lines. Turns a parsed STML tree into a flat list of | COMMENT |
| LOW | .github/workflows/install-sh-e2e.yml | 1 | # Runs the hunk.dev install script end to end against the newest published release. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/cli/install-vm/guest/prepare-base-image.sh | 64 | # Older harness revisions cached an SSH identity; current runs use an ephemeral key. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/browser-review-rebuild.md | 21 | ## Phase 0 — seam contract and guardrails (this doc) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/hunk/src/ui/statusLine/extensionControls.ts | 116 | ["placeholder", placeholder], | CODE |
| LOW | packages/hunk/src/ui/diff/lineHighlightPaint.test.ts | 466 | before: lines("placeholder"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 9 | # Usage: | COMMENT |