a code review TUI with vim keybindings
This report summarizes scanner evidence for agavra/tuicr, a Rust project with 3,497 GitHub stars. SynthScan examined 120,901 lines of code across 200 source files, recording 151 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.5 (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? 142 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 151 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 151 distinct pattern matches across 10 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 | skills/tuicr/tuicr-wrapper-herdr.sh | 121 | # under fish. Wrap the payload in `bash -c` so the pane's shell only has to | COMMENT |
| LOW | src/terminal_state.rs | 141 | COMMENT | |
| LOW | src/slug.rs | 1 | //! Deterministic identifiers for review targets. | COMMENT |
| LOW | src/editor.rs | 1 | use std::ffi::OsString; | COMMENT |
| LOW | src/editor.rs | 21 | /// review a read-only snapshot of the reviewed revision. | COMMENT |
| LOW | src/editor.rs | 41 | } | COMMENT |
| LOW | src/editor.rs | 81 | } | COMMENT |
| LOW | src/main.rs | 501 | COMMENT | |
| LOW | src/process.rs | 141 | } | COMMENT |
| LOW | src/cli.rs | 201 | /// Non-interactive review session commands. | COMMENT |
| LOW | src/cli.rs | 221 | #[arg(long, value_name = "SESSION")] | COMMENT |
| LOW | src/cli.rs | 241 | #[arg(long = "target-file", value_name = "PATH")] | COMMENT |
| LOW | src/cli.rs | 281 | /// Repo selector used to resolve a local session slug (path or | COMMENT |
| LOW | src/ui/diff_unified.rs | 81 | let mut line_idx: usize = 0; | COMMENT |
| LOW | src/ui/row_height.rs | 1 | //! Wrap-aware visual row-height helper for a single annotation. | COMMENT |
| LOW | src/app/file_filter.rs | 1 | //! File-tree include/exclude filters and `/` search. | COMMENT |
| LOW | src/app/commits.rs | 321 | /// `ReviewSession::commit_range` is written oldest-first by | COMMENT |
| LOW | src/app/commits.rs | 781 | /// Whether a comment should be visible given the current commit | COMMENT |
| LOW | src/app/submit.rs | 1 | use super::*; | COMMENT |
| LOW | src/app/sessions_tab.rs | 1 | //! State for the Sessions tab in the review target selector. | COMMENT |
| LOW | src/app/mod.rs | 601 | Summary, | COMMENT |
| LOW | src/app/mod.rs | 641 | Unstaged, | COMMENT |
| LOW | src/app/mod.rs | 821 | /// Background-thread events that the PR tab consumes through `pr_load_rx`. | COMMENT |
| LOW | src/app/mod.rs | 921 | }, | COMMENT |
| LOW | src/app/mod.rs | 941 | Done { | COMMENT |
| LOW | src/app/mod.rs | 961 | pub struct DiffWatchReload { | COMMENT |
| LOW | src/app/mod.rs | 981 | pub mappable: Vec<crate::forge::submit::InlineComment>, | COMMENT |
| LOW | src/app/mod.rs | 1141 | pub(crate) session_path: Option<PathBuf>, | COMMENT |
| LOW | src/app/mod.rs | 1261 | /// Explicit `--repo-url` or `--remote` override. When `Some`, the canonical resolver | COMMENT |
| LOW | src/app/mod.rs | 1281 | /// `Receiver` is only present while a fetch is in flight. | COMMENT |
| LOW | src/app/mod.rs | 1301 | /// loading window. | COMMENT |
| LOW | src/app/mod.rs | 1321 | /// and compared against existing comment authors so the comment pane can | COMMENT |
| LOW | src/app/mod.rs | 1361 | pub show_file_list: bool, | COMMENT |
| LOW | src/app/mod.rs | 1381 | /// arms the flag and parks the cursor on max; a deliberate second | COMMENT |
| LOW | src/app/mod.rs | 1421 | pub diff_row_to_annotation: Vec<usize>, | COMMENT |
| LOW | src/app/mod.rs | 1441 | pub comment_cursor_screen_pos: Option<(u16, u16)>, | COMMENT |
| LOW | src/app/mod.rs | 1461 | /// Empty outside PR mode. Used as the source of truth for resolving a | COMMENT |
| LOW | src/app/mod.rs | 1741 | /// Selection + scroll offset into the filtered view. A `ratatui::List` | COMMENT |
| LOW | src/app/mod.rs | 1881 | pub file_path: Option<&'a str>, | COMMENT |
| LOW | src/app/diff_load.rs | 621 | /// re-found by commit id, which the two synthetic rows carry as well | COMMENT |
| LOW | src/app/diff_load.rs | 661 | /// Which diff a commit-selector subrange means. | COMMENT |
| LOW | src/app/diff_load.rs | 741 | )), | COMMENT |
| LOW | src/app/diff_load.rs | 881 | COMMENT | |
| LOW | src/app/diff_load.rs | 1001 | ms => { | COMMENT |
| LOW | src/app/diff_load.rs | 1321 | } | COMMENT |
| LOW | src/app/diff_load.rs | 1401 | // Falls back to clamping when the anchored commit is gone, which | COMMENT |
| LOW | src/app/diff_load.rs | 1461 | /// A row this does not recognise is kept. `is_special_commit` decides what | COMMENT |
| LOW | src/app/diff_load.rs | 1561 | /// An endpoint of the selection is missing from the rebuilt pane, because | COMMENT |
| LOW | src/app/editor_target.rs | 1 | //! Read-only snapshots of a reviewed revision for the external editor. | COMMENT |
| LOW | src/app/init.rs | 901 | // and the GitHub parser would otherwise claim the host. Gitea next: | COMMENT |
| LOW | src/app/pr.rs | 881 | // Clone the summary so we drop the immutable borrow before mutating | COMMENT |
| LOW | src/app/theme_picker.rs | 181 | /// `self.theme`, without touching the VCS. Cheap: proportional to one | COMMENT |
| LOW | src/app/tests/diff_watch_tests.rs | 521 | COMMENT | |
| LOW | src/app/tests/diff_watch_tests.rs | 601 | /// are keyed by hunk content rather than by position. An edited hunk | COMMENT |
| LOW | src/config/mod.rs | 101 | /// top-level `export_legend` key also feeds: `[export]` may only override it | COMMENT |
| LOW | src/config/mod.rs | 181 | /// `<leader>s` or `:set commits!`. | COMMENT |
| LOW | src/config/mod.rs | 201 | /// Where wrapped unified diff rows continue: `"flow"` (the default) or | COMMENT |
| LOW | src/terminal_state/keyboard_probe.rs | 1 | //! Startup probe for kitty keyboard protocol support. | COMMENT |
| LOW | src/input/keybindings.rs | 121 | /// Begin editing the local filter inside the PR tab (`/`). | COMMENT |
| LOW | src/input/keybindings.rs | 301 | (KeyCode::Char('O'), _) => Action::CollapseAll, | COMMENT |
| 72 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/demo/drive_demo.py | 106 | except (pexpect.TIMEOUT, pexpect.EOF): | CODE |
| HIGH | scripts/demo/drive_demo.py | 118 | except pexpect.TIMEOUT: | CODE |
| HIGH | scripts/demo/drive_demo.py | 295 | except (pexpect.TIMEOUT, pexpect.EOF): | CODE |
| HIGH | scripts/demo/drive_demo.py | 314 | except (pexpect.TIMEOUT, pexpect.EOF): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/tuicr/tuicr-wrapper.sh | 79 | # Check if tuicr is already running in any tmux pane | COMMENT |
| LOW | skills/tuicr/tuicr-wrapper.sh | 126 | # Check if --stdout is supported and set up output capture | COMMENT |
| LOW | skills/tuicr/tuicr-wrapper.sh | 189 | # Check if we're in tmux | COMMENT |
| LOW | skills/tuicr/tuicr-wrapper.sh | 203 | # Check if tuicr is already running | COMMENT |
| LOW | skills/tuicr/tuicr-wrapper-zellij.sh | 233 | # Check if we're in zellij | COMMENT |
| LOW | skills/tuicr/tuicr-wrapper-zellij.sh | 247 | # Check if tuicr is already running | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/demo/drive_demo.py | 236 | except Exception: | CODE |
| MEDIUM | scripts/demo/drive_demo.py | 196 | def read_pasteboard() -> str: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skills/tuicr/tuicr-wrapper.sh | 140 | # Create the split pane with tuicr, signal when done | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/ui/diff_view.rs | 1147 | /// File-section header lines (the `═══ path/to/file [M] …══════` rows that | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 31 | │ ├── install.rs # `tuicr update` orchestration, release verification, and runtime adapter | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/demo/drive_demo.py | 210 | def expected_comments_missing(content: str) -> list[str]: | CODE |
| LOW | scripts/demo/drive_demo.py | 240 | def resolve_clipboard_markdown(captured_output: str) -> str: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/demo/drive_demo.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/forge/gerrit/models.rs | 430 | "owner": {"username": "jdoe", "name": "John Doe"}, | CODE |