✨ Making your shell magical
This report presents the forensic synthetic code analysis of atuinsh/atuin, a Rust project with 30,548 GitHub stars. SynthScan v2.0 examined 91,748 lines of code across 438 source files, recording 242 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 5.0 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 242 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/atuin-ai/src/stream.rs | 1 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/stream.rs | 3 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/snapshots.rs | 183 | // ── sanitize_path ────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/snapshots.rs | 241 | // ── atomic_write_file ────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/snapshots.rs | 291 | // ── SnapshotStore ────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/driver.rs | 74 | // ─── From FSM ─────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/driver.rs | 82 | // ─── Session metadata (set once) ──────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/driver.rs | 87 | // ─── View-only ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/driver.rs | 97 | // ─── Pre-computed for rendering ──────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/driver.rs | 103 | // ─── Ephemeral interaction state ──────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 560 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 562 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 822 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 824 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/events.rs | 11 | // ─── User actions ─────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/events.rs | 25 | // ─── Stream lifecycle ─────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/events.rs | 54 | // ─── Suggest command (terminal tool call) ─────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/events.rs | 62 | // ─── Tool lifecycle ───────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/events.rs | 87 | // ─── Timers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 98 | // ─── Session management ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 102 | // ─── Slash commands ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 111 | // ─── Model selection ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 119 | // ─── Skills ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/effects.rs | 26 | // ─── Network ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/effects.rs | 35 | // ─── Tool orchestration ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/effects.rs | 56 | // ─── Persistence ──────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/effects.rs | 72 | // ─── Timers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/effects.rs | 80 | // ─── Exit ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 131 | // ─── View state (owned by FSM for atomic transitions) ─────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 596 | // ─── Cancel during Turn ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 731 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 733 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 53 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 57 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 178 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 180 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 282 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 284 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 331 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 333 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 461 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 463 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 784 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 786 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 816 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 818 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 847 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 849 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 866 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 868 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 895 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 897 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 949 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 951 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 981 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 983 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 998 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 1000 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 1040 | // ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 1042 | // ──────────────────────────────────────────────────────────── | COMMENT |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 81 | # This section is considered when running `cargo deny check sources`. | COMMENT |
| LOW | cliff.toml | 1 | # git-cliff ~ default configuration file | COMMENT |
| LOW | .rustfmt.toml | 1 | reorder_imports = true | COMMENT |
| LOW | crates/atuin-client/config.toml | 1 | ## Base directory for Atuin data files (databases, keys, session, etc.) | COMMENT |
| LOW | crates/atuin-client/config.toml | 21 | COMMENT | |
| LOW | crates/atuin-client/config.toml | 41 | ## is ran, so sync intervals may well be longer | COMMENT |
| LOW | crates/atuin-client/config.toml | 61 | COMMENT | |
| LOW | crates/atuin-client/config.toml | 81 | ## when atuin is invoked from a shell up-key binding | COMMENT |
| LOW | crates/atuin-client/config.toml | 101 | COMMENT | |
| LOW | crates/atuin-client/config.toml | 121 | ## prevent commands matching any of these regexes from being written to history. | COMMENT |
| LOW | crates/atuin-client/config.toml | 141 | ## Useful when you have long scripts in your history that you want to distinguish | COMMENT |
| LOW | crates/atuin-client/config.toml | 161 | ## 1. AWS key id | COMMENT |
| LOW | crates/atuin-client/config.toml | 181 | ## mode in the Atuin search is forced to be the specified one. | COMMENT |
| LOW | crates/atuin-client/config.toml | 201 | # common_subcommands = [ | COMMENT |
| LOW | crates/atuin-client/config.toml | 221 | # "tmux", | COMMENT |
| LOW | crates/atuin-client/config.toml | 241 | COMMENT | |
| LOW | crates/atuin-client/config.toml | 261 | ## static: length of the longest command stored in the history. | COMMENT |
| LOW | crates/atuin-client/config.toml | 281 | ## The daemon pidfile used for lifecycle management. | COMMENT |
| LOW | crates/atuin-client/config.toml | 301 | ## If you provide a custom theme file, it should be called "NAME.toml" and the theme below | COMMENT |
| LOW | crates/atuin-client/config.toml | 321 | # enabled = false | COMMENT |
| LOW | crates/atuin-client/config.toml | 341 | ## time (8) - Relative time since execution (e.g., "59m ago") | COMMENT |
| LOW | crates/atuin-client/config.toml | 361 | # columns = ["duration", { type = "directory", width = 30 }, "command"] | COMMENT |
| LOW | crates/atuin-client/src/hub.rs | 161 | } | COMMENT |
| LOW | crates/atuin-client/src/encryption.rs | 401 | } | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 41 | pub(crate) const HISTORY_VERSION: &str = HISTORY_VERSION_V1; | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 61 | // New fields must be added to `History::{serialize,deserialize}` in a backwards | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 361 | _ => bail!("unknown version {version:?}"), | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 381 | /// ``` | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 401 | /// let history: History = History::import() | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 421 | /// .timestamp(time::OffsetDateTime::now_utc()) | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 441 | builder::HistoryCaptured::builder() | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 461 | /// .cwd("/home/user") | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 481 | /// ``` | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 361 | /// This setting is primarily for development/testing. When not explicitly set, | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 381 | /// | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 881 | // max_preview_height is used as fixed height. | COMMENT |
| LOW | crates/atuin-client/src/settings/watcher.rs | 1 | //! Config file watching for automatic settings reload. | COMMENT |
| LOW | crates/atuin-client/src/history/store.rs | 21 | COMMENT | |
| LOW | crates/atuin-client/src/import/zsh_histdb.rs | 1 | // import old shell history from zsh-histdb! | COMMENT |
| LOW | crates/atuin-client/src/import/zsh_histdb.rs | 21 | // commands.argv | COMMENT |
| LOW | crates/atuin-pty-proxy/src/osc133.rs | 1 | //! Streaming parser for OSC 133 (FinalTerm semantic prompt) escape sequences. | COMMENT |
| LOW | crates/atuin-pty-proxy/src/osc133.rs | 21 | //! * **Non-blocking** — [`Parser::push_located`] processes whatever bytes are | COMMENT |
| LOW | crates/atuin-pty-proxy/src/osc133.rs | 81 | /// The OSC 133 event that was parsed. | COMMENT |
| LOW | crates/atuin-pty-proxy/src/screen.rs | 61 | }); | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/pattern.rs | 21 | Ignore, | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/pattern.rs | 41 | } | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/pattern.rs | 61 | /// prefix. This atom kind is parsed from the following syntax: `^foo` and | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/pattern.rs | 361 | matcher.postfix_indices(haystack, self.needle.slice(..), indices) | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/pattern.rs | 501 | /// configuration from `matcher`), calculates a ranking score and the match | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/utf32_str.rs | 21 | string.is_ascii() && memmem::find(string.as_bytes(), b"\r\n").is_none() | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/utf32_str.rs | 41 | /// Despite the name, this type is quite far from being a true string type. Here are some | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/utf32_str.rs | 61 | /// strings containing `\r\n` will still result in a `Unicode` variant. | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/utf32_str.rs | 81 | /// Of course, this comes at extra memory cost as we usually still need the UTF-8 | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/lib.rs | 101 | mod tests; | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/lib.rs | 121 | /// should be used when rendering the best N matches. Note that the `indices` | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/lib.rs | 141 | /// `foo hello-world bar` ranks higher. | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/lib.rs | 201 | /// To avoid slowdowns it automatically falls back to | COMMENT |
| LOW | crates/atuin-nucleo/matcher/src/score.rs | 21 | COMMENT | |
| LOW | crates/atuin-nucleo/matcher/src/chars/normalize.rs | 1 | /// Normalize a Unicode character by converting Latin characters which are variants | COMMENT |
| 60 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/atuin-client/benches/_util/context.rs | 8 | /// Generally useful for establishing stable and robust benchmarks. It's an anti-pattern to use a | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/components/markdown.rs | 3 | //! More robust than eye-declare's built-in Markdown component: | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 70 | # robust way to detect the command for keybindings, but at least we | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 118 | # With ble.sh, we utilize the shell variable `_ble_exec_time_ata` | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 459 | # To realize the enter_accept feature in a robust way, we need to call the | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 462 | # `accept-line', we may utilize string macros of readline. When we bind KEYSEQ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/atuin-client/config.toml | 195 | ## Set this to true and Atuin will minimize motion in the UI - timers will not update live, etc. | COMMENT |
| LOW | crates/atuin/src/shell/atuin.zsh | 96 | # Check if tmux popup is available (tmux >= 3.2) | COMMENT |
| LOW | crates/atuin/src/shell/atuin.bash | 278 | # Check if tmux popup is available (tmux >= 3.2) | COMMENT |
| LOW | scripts/release.sh | 267 | # Check if the entry is empty (just a heading with no content) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/docs/guide/delete-history.md | 36 | # Step 1: preview - see what matches | COMMENT |
| LOW | docs/docs/guide/delete-history.md | 39 | # Step 2: delete - once you're satisfied the results are correct | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/release.yml | 266 | # Create a GitHub Release while uploading all files to it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/atuin-client/src/record/encryption.rs | 252 | let fake_key = Key::<V4, Local>::new_os_random(); | CODE |
| LOW | crates/atuin-client/src/record/encryption.rs | 265 | let _ = PASETO_V4::decrypt(encrypted, ad, &fake_key.to_bytes()).unwrap_err(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/atuin-client/src/database.rs | 203 | // TODO: implement IntoIterator | COMMENT |