✨ Making your shell magical
This report presents the forensic synthetic code analysis of atuinsh/atuin, a Rust project with 31,448 GitHub stars. SynthScan v2.0 examined 99,944 lines of code across 493 source files, recording 322 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 5.4 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 322 distinct pattern matches across 9 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 | 176 | // ── sanitize_path ────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/snapshots.rs | 224 | // ── atomic_write_file ────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/snapshots.rs | 275 | // ── SnapshotStore ────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 249 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 251 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 306 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 308 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 443 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 445 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 581 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 583 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 663 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 665 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 736 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 738 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 832 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/tui/view/mod.rs | 834 | // ─────────────────────────────────────────────────────────────────── | 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 | 93 | // ─── Timers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 104 | // ─── Session management ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 108 | // ─── Slash commands ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 117 | // ─── Model selection ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/events.rs | 125 | // ─── 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 | 65 | // ─── Persistence ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/effects.rs | 85 | // ─── Turn lifecycle ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/effects.rs | 90 | // ─── Timers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/fsm/effects.rs | 98 | // ─── Exit ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 153 | // ─── View state (owned by FSM for atomic transitions) ─────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 613 | // ─── Cancel during Turn ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 761 | // ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/fsm/mod.rs | 763 | // ──────────────────────────────────────────────────────────────────── | 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 | 175 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 177 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 273 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 275 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 322 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 324 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 452 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/permissions/shell.rs | 454 | // ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 158 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 207 | // ─── Build FSM ─────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/commands/inline.rs | 274 | // ─── Snapshot store ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/commands/inline.rs | 279 | // ─── Discover skills ─────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/atuin-ai/src/commands/inline.rs | 283 | // ─── Resume notice (frozen at startup) ────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 295 | // ─── Slash commands + skills ──────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 304 | // ─── IO context ───────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 345 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin-ai/src/commands/inline.rs | 347 | // ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 140 | #------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 309 | #------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 450 | #------------------------------------------------------------------------------ | COMMENT |
| 25 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cross.toml | 1 | [target.x86_64-unknown-illumos] | COMMENT |
| LOW | cliff.toml | 1 | # git-cliff ~ default configuration file | COMMENT |
| LOW | .vale.ini | 41 | # 14 of 15 hits are FAQ headings in the reader's own voice. | COMMENT |
| LOW | crates/atuin-domain/src/caps/client.rs | 41 | /// Client-side capability set: advertises its own capabilities and can read the server's. | COMMENT |
| LOW | crates/atuin-domain/src/caps/axum.rs | 21 | #[allow(clippy::unused_async, reason = "must be async to implement axum::handler::Handler")] | COMMENT |
| LOW | crates/atuin-domain/src/caps/mod.rs | 1 | //! Capability system used by atuin. | COMMENT |
| LOW | crates/atuin-domain/src/caps/mod.rs | 21 | //! with a 412, after which the client polls `/api/v0/capabilities` to get the new capability list | COMMENT |
| LOW | crates/atuin-domain/src/caps/middleware.rs | 21 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | COMMENT |
| LOW | crates/atuin-history/src/stats.rs | 381 | #[rstest] | COMMENT |
| LOW | crates/atuin-history/src/stats.rs | 401 | #[case::following_word("cargo build foo bar", "cargo build foo")] | 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 | ## either "l", "local" to use the system's current local timezone, or an offset | COMMENT |
| LOW | crates/atuin-client/config.toml | 41 | ## set it to 0 to sync after every command | COMMENT |
| LOW | crates/atuin-client/config.toml | 61 | # filter_mode_shell_up_key_binding = "global" | COMMENT |
| LOW | crates/atuin-client/config.toml | 81 | ## the accepted values are identical to those of "inline_height" | COMMENT |
| LOW | crates/atuin-client/config.toml | 101 | ## number of context lines to show when scrolling by pages | COMMENT |
| LOW | crates/atuin-client/config.toml | 121 | ## Note that these regular expressions are unanchored, i.e. if they don't start | COMMENT |
| LOW | crates/atuin-client/config.toml | 141 | ## by more than the first few lines. | COMMENT |
| LOW | crates/atuin-client/config.toml | 161 | ## 2. Github pat (old and new) | COMMENT |
| LOW | crates/atuin-client/config.toml | 181 | # keymap_mode = "emacs" | COMMENT |
| LOW | crates/atuin-client/config.toml | 201 | ## Set this to true and Atuin will minimize motion in the UI - timers will not update live, etc. | COMMENT |
| LOW | crates/atuin-client/config.toml | 221 | # "kubectl", | COMMENT |
| LOW | crates/atuin-client/config.toml | 241 | # "vi" | COMMENT |
| LOW | crates/atuin-client/config.toml | 261 | ## which preview strategy to use to calculate the preview height (respects max_preview_height). | COMMENT |
| LOW | crates/atuin-client/config.toml | 281 | ## - if systemd_socket is false: $TMPDIR/atuin-$UID/atuin.sock | COMMENT |
| LOW | crates/atuin-client/config.toml | 301 | ## so you don't need a separate `eval "$(atuin pty-proxy init)"` line in your shell | COMMENT |
| LOW | crates/atuin-client/config.toml | 321 | ## Whether the theme manager should output normal or extra information to help fix themes. | COMMENT |
| LOW | crates/atuin-client/config.toml | 341 | COMMENT | |
| LOW | crates/atuin-client/config.toml | 361 | ## | COMMENT |
| LOW | crates/atuin-client/config.toml | 381 | ## | COMMENT |
| LOW | …/atuin-client/proptest-regressions/packfile/packer.txt | 1 | # Seeds for failure cases proptest has generated in the past. It is | COMMENT |
| LOW | crates/atuin-client/src/hub.rs | 41 | pub enum HubAuthStatus { | COMMENT |
| LOW | crates/atuin-client/src/hub.rs | 201 | COMMENT | |
| LOW | crates/atuin-client/src/database.rs | 181 | fn get_session_start_time(session_id: &str) -> Option<i64> { | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 201 | // The database column `hostname` is a misnomer -- it actually refers to the `cmd_origin`. Some | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1521 | db | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1621 | .unwrap(); | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1641 | let db = db_with(&["ls /home/ellie"]).await; | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1661 | #[case::negated_term("!ellie", 1)] | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1701 | "curl", "corburl", | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1721 | ) { | COMMENT |
| LOW | crates/atuin-client/src/database.rs | 1981 | .unwrap(); | COMMENT |
| LOW | crates/atuin-client/src/theme.rs | 721 | } | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 181 | /// This is deliberately not [`Version::min_fields`]: fields appended to the latest version grow | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 201 | /// - [`History::import()`] to import an entry from the shell history file | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 221 | /// The command that was run. | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 461 | /// ``` | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 481 | /// .build() | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 501 | /// Builder for a history entry that is captured via hook. | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 521 | /// ```compile_fail | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 541 | /// It does, however, include information that can usually be inferred. | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 561 | /// ```compile_fail | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 581 | /// ```compile_fail | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 661 | ..Settings::utc() | COMMENT |
| LOW | crates/atuin-client/src/history.rs | 701 | COMMENT | |
| LOW | crates/atuin-client/src/history.rs | 761 | COMMENT | |
| LOW | crates/atuin-client/src/settings.rs | 341 | Self { | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 361 | /// Use Hub authentication (Bearer token from Hub OAuth flow) | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 521 | #[derive(Clone, Debug, Default, Deserialize, Serialize)] | COMMENT |
| LOW | crates/atuin-client/src/settings.rs | 621 | COMMENT | |
| 151 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/app.rs | 1385 | fn tail_renders_conversation_turns(#[from(harness)] h: Harness) { | CODE |
| MEDIUM⚡ | crates/atuin-ai/src/tui/app.rs | 1394 | fn esc_exits_with_cancel(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM⚡ | crates/atuin-ai/src/tui/app.rs | 1399 | fn exit_erases_the_input_box(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin-ai/src/tui/app.rs | 1415 | fn typing_renders_in_the_editor(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin-ai/src/tui/app.rs | 1427 | fn enter_submits_and_pushes_the_user_turn(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin-ai/src/tui/app.rs | 1469 | fn slash_suggestions_and_tab_accept(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin-ai/src/tui/app.rs | 1480 | fn ctrl_j_inserts_newline(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin-ai/src/tui/app.rs | 1488 | fn shift_enter_inserts_newline(#[from(harness)] mut h: Harness) { | CODE |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 58 | # robust way to detect the command for keybindings, but at least we | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 106 | # With ble.sh, we utilize the shell variable `_ble_exec_time_ata` | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 475 | # To realize the enter_accept feature in a robust way, we need to call the | COMMENT |
| MEDIUM | crates/atuin/src/shell/atuin.bash | 478 | # `accept-line', we may utilize string macros of readline. When we bind KEYSEQ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | crates/atuin-ai/src/tui/tips.rs | 36 | relevant: Some(|ctx| ctx.settings.ai.capabilities.enable_command_execution.unwrap_or(true)), | CODE |
| CRITICAL | crates/atuin-ai/src/tui/tips.rs | 71 | relevant: Some(|ctx| !ctx.settings.ai.opening.send_last_command.unwrap_or(false)), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/atuin-client/config.toml | 201 | ## 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 | 124 | # Check if tmux popup is available (tmux >= 3.2) | COMMENT |
| LOW | crates/atuin/src/shell/atuin.bash | 311 | # 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 | crates/atuin-domain/src/record/mod.rs | 561 | let fake_key = paseto_v4::Key::new_os_random(); | CODE |
| LOW | crates/atuin-domain/src/record/mod.rs | 579 | &fake_key, | CODE |
| LOW | crates/atuin-domain/src/record/mod.rs | 589 | fake_key.key_id() | CODE |
| 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/database.rs | 265 | // TODO: implement IntoIterator | COMMENT |