AI Slop Code Risk Monitor

nvbn/thefuck

SlopCodeMonitor badge for nvbn/thefuck Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Magnificent app which corrects your previous console command.

34.6 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nvbn/thefuck, a Python project with 97,974 GitHub stars. SynthScan examined 17,654 lines of code across 427 source files, recording 197 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 34.6 (High 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.

34.6
Adjusted Signal
34.6
Raw Pattern Score
100%
Time Factor
2024-07-19
Last Push
98.0K
Stars
Python
Language
17.7K
Lines of Code
427
Files
197
Pattern Hits
2026-11-27
Scan Date
0.20
HC Hit Rate

Risk Review · Payload v1

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-11-27.

Cognitive Ownership Risk 26.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 97 finding(s).

Hallucinated Dependency & Supply Chain Risk 72.3/100 · HIGH

Are imports declared and package/API names verified? 82 finding(s).

Agent Over-Engineering Ratio 33.3/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 101 finding(s).

PR Review Velocity Impact 83.3/100 · CRITICAL

Which changes need focused human review? 197 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 86MEDIUM 2LOW 109

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 197 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.

Cross-Language Confusion79 hits · 450 pts
SeverityFileLineSnippetContext
HIGHthefuck/shells/tcsh.py12 return ("alias {0} 'setenv TF_SHELL tcsh && setenv TF_ALIAS {0} && "CODE
HIGH⚡tests/test_types.py35 "git brunch || fuck --repeat --force-command 'git brunch'",CODE
HIGH⚡tests/test_types.py38 "git brunch || fuck --repeat --debug --force-command 'git brunch'",CODE
HIGHtests/shells/test_tcsh.py35 assert shell.and_('ls', 'cd') == 'ls && cd'CODE
HIGHtests/shells/test_tcsh.py38 assert shell.or_('ls', 'cd') == 'ls || cd'CODE
HIGHtests/shells/test_zsh.py38 assert shell.and_('ls', 'cd') == 'ls && cd'CODE
HIGHtests/shells/test_zsh.py41 assert shell.or_('ls', 'cd') == 'ls || cd'CODE
HIGHtests/shells/test_bash.py39 assert shell.and_('ls', 'cd') == 'ls && cd'CODE
HIGHtests/shells/test_bash.py42 assert shell.or_('ls', 'cd') == 'ls || cd'CODE
HIGHtests/shells/test_generic.py19 assert shell.and_('ls', 'cd') == 'ls && cd'CODE
HIGHtests/shells/test_generic.py22 assert shell.or_('ls', 'cd') == 'ls || cd'CODE
HIGH⚡tests/rules/test_git_push_pull.py62 (Command('git push', git_err), 'git pull && git push'),STRING
HIGH⚡tests/rules/test_git_push_pull.py64 'git pull nvbn && git push nvbn'),STRING
HIGH⚡tests/rules/test_git_push_pull.py66 'git pull nvbn master && git push nvbn master'),STRING
HIGH⚡tests/rules/test_git_push_pull.py67 (Command('git push', git_err2), 'git pull && git push'),STRING
HIGH⚡tests/rules/test_git_push_pull.py69 'git pull nvbn && git push nvbn'),STRING
HIGH⚡tests/rules/test_git_push_pull.py71 'git pull nvbn master && git push nvbn master')])STRING
HIGHtests/rules/test_git_pull_unstaged_changes.py19 == "git stash && git pull && git stash pop")CODE
HIGHtests/rules/test_python_module_error.py39 "pip install more_itertools && python some_script.py",CODE
HIGHtests/rules/test_git_pull_uncommitted_changes.py19 == "git stash && git pull && git stash pop")CODE
HIGHtests/rules/test_touch.py33 assert fixed_command == 'mkdir -p /a/b && touch /a/b/c'CODE
HIGH⚡tests/rules/test_git_branch_0flag.py45 ("git branch 0a", "git branch -D 0a && git branch -a"),CODE
HIGH⚡tests/rules/test_git_branch_0flag.py46 ("git branch 0v", "git branch -D 0v && git branch -v"),CODE
HIGH⚡tests/rules/test_git_branch_0flag.py47 ("git branch 0d foo", "git branch -D 0d && git branch -d foo"),CODE
HIGH⚡tests/rules/test_git_branch_0flag.py48 ("git branch 0D foo", "git branch -D 0D && git branch -D foo"),CODE
HIGH⚡tests/rules/test_git_branch_0flag.py49 ("git branch 0l 'maint-*'", "git branch -D 0l && git branch -l 'maint-*'"),CODE
HIGH⚡tests/rules/test_git_branch_0flag.py50 ("git branch 0u upstream", "git branch -D 0u && git branch -u upstream"),CODE
HIGHtests/rules/test_brew_cask_dependency.py32 'brew cask install osxfuse && brew install sshfs')])CODE
HIGHtests/rules/test_sudo.py32 ('mkdir && touch a', 'sudo sh -c "mkdir && touch a"')])CODE
HIGHtests/rules/test_terraform_init.py29 (Command('terraform plan', ''), 'terraform init && terraform plan'),CODE
HIGHtests/rules/test_terraform_init.py30 (Command('terraform apply', ''), 'terraform init && terraform apply'),CODE
HIGH⚡tests/rules/test_vagrant_up.py27 (Command('vagrant ssh', 'VM must be running to open SSH connection. Run `vagrant up`\nto start the virtual machine.'CODE
HIGH⚡tests/rules/test_vagrant_up.py28 (Command('vagrant ssh devbox', 'VM must be running to open SSH connection. Run `vagrant up`\nto start the virtual maCODE
HIGH⚡tests/rules/test_vagrant_up.py30 'VM must be created before running this command. Run `vagrant up` first.'), 'vagrant up && vagrant rdp'),CODE
HIGH⚡tests/rules/test_vagrant_up.py32 'VM must be created before running this command. Run `vagrant up` first.'), ['vagrant up devbox && vagrant CODE
HIGHtests/rules/test_cd_mkdir.py23 (Command('cd foo', ''), 'mkdir -p foo && cd foo'),CODE
HIGHtests/rules/test_cd_mkdir.py24 (Command('cd foo/bar/baz', ''), 'mkdir -p foo/bar/baz && cd foo/bar/baz')])CODE
HIGH⚡tests/rules/test_pacman.py46sudo_vim_possibilities = ['{} -S extra/gvim && sudo vim',CODE
HIGH⚡tests/rules/test_pacman.py47 '{} -S extra/gvim-python3 && sudo vim',CODE
HIGH⚡tests/rules/test_pacman.py48 '{} -S extra/vim && sudo vim',CODE
HIGH⚡tests/rules/test_pacman.py49 '{} -S extra/vim-minimal && sudo vim',CODE
HIGH⚡tests/rules/test_pacman.py50 '{} -S extra/vim-python3 && sudo vim']CODE
HIGH⚡tests/rules/test_pacman.py53vim_possibilities = ['{} -S extra/gvim && vim',CODE
HIGH⚡tests/rules/test_pacman.py54 '{} -S extra/gvim-python3 && vim',CODE
HIGH⚡tests/rules/test_pacman.py55 '{} -S extra/vim && vim',CODE
HIGH⚡tests/rules/test_pacman.py56 '{} -S extra/vim-minimal && vim',CODE
HIGH⚡tests/rules/test_pacman.py57 '{} -S extra/vim-python3 && vim']CODE
HIGH⚡tests/rules/test_pacman.py66 (Command('convert', ''), ['{} -S extra/imagemagick && convert'.format(pacman_cmd)]),CODE
HIGH⚡tests/rules/test_pacman.py67 (Command('sudo convert', ''), ['{} -S extra/imagemagick && sudo convert'.format(pacman_cmd)])])CODE
HIGH⚡tests/rules/test_pacman.py75 (Command('convert', ''), ['{} -S extra/imagemagick && convert'.format(pacman_cmd)], PKGFILE_OUTPUT_CONVERT),CODE
HIGH⚡tests/rules/test_pacman.py76 (Command('sudo', ''), ['{} -S core/sudo && sudo'.format(pacman_cmd)], PKGFILE_OUTPUT_SUDO),CODE
HIGH⚡tests/rules/test_pacman.py77 (Command('sudo convert', ''), ['{} -S extra/imagemagick && sudo convert'.format(pacman_cmd)], PKGFILE_OUTPUT_CONVERTCODE
HIGH…sts/rules/test_docker_image_being_used_by_container.py26 expected = 'docker container rm -f e5e2591040d1 && docker image rm -f cd809b04b6ff'STRING
HIGHtests/rules/test_git_pull.py29 == "git branch --set-upstream-to=origin/master master && git pull")STRING
HIGHtests/rules/test_open.py46 ('open nonest', ['touch nonest && open nonest',CODE
HIGHtests/rules/test_open.py47 'mkdir nonest && open nonest'])])CODE
HIGHtests/rules/test_git_stash.py33 'git stash && git cherry-pick a1b2c3d'),CODE
HIGHtests/rules/test_git_stash.py35 'git stash && git rebase -i HEAD~7')])CODE
HIGHtests/rules/test_docker_login.py36 assert get_new_command(Command('docker build -t artifactory:9090/foo/bar:fdb7c6d .', '')) == 'docker login && dockerSTRING
HIGHtests/rules/test_docker_login.py37 assert get_new_command(Command('docker push artifactory:9090/foo/bar:fdb7c6d', '')) == 'docker login && docker push STRING
19 more matches not shown…
Hyper-Verbose Identifiers83 hits · 95 pts
SeverityFileLineSnippetContext
LOWthefuck/utils.py313def get_valid_history_without_current(command):CODE
LOWthefuck/argument_parser.py54 def _add_conflicting_arguments(self):CODE
LOWthefuck/shells/generic.py149 def _create_shell_configuration(self, content, path, reload):CODE
LOWthefuck/rules/git_push.py12def _get_upstream_option_index(command_parts):CODE
LOWthefuck/rules/apt_invalid_operation.py28def _parse_apt_get_and_cache_operations(help_text_lines):CODE
LOWthefuck/rules/path_from_history.py28def _get_all_absolute_paths_from_history(command):CODE
LOWthefuck/rules/brew_cask_dependency.py20def _get_script_for_brew_cask(output):CODE
LOWthefuck/rules/brew_unknown_command.py21def _get_brew_tap_specific_commands(brew_path_prefix):CODE
LOWthefuck/rules/brew_unknown_command.py48def _get_directory_names_only(path):CODE
LOWthefuck/entrypoints/not_configured.py29def _get_not_configured_usage_tracker_path():CODE
LOWtests/test_utils.py91def test_get_all_executables_pathsep(path, pathsep):CODE
LOWtests/test_utils.py101def test_get_all_executables_exclude_paths(path, pathsep, excluded, settings):CODE
LOWtests/test_utils.py143def test_get_all_matched_commands(stderr, result):CODE
LOWtests/test_utils.py274 def test_get_valid_history_without_current(self, script, result):CODE
LOWtests/test_conf.py92 def test_create_if_doesnt_exists(self, settings):CODE
LOWtests/test_ui.py56 def commands_with_side_effect(self):CODE
LOWtests/test_ui.py69 def test_without_confirmation(self, capsys, commands, settings):CODE
LOWtests/test_ui.py74 def test_without_confirmation_with_side_effects(CODE
LOW⚡tests/test_ui.py87 def test_with_confirmation_abort(self, capsys, patch_get_key, commands):CODE
LOW⚡tests/test_ui.py93 def test_with_confirmation_with_side_effct(self, capsys, patch_get_key,CODE
LOW⚡tests/test_ui.py101 def test_with_confirmation_select_second(self, capsys, patch_get_key, commands):CODE
LOWtests/test_corrector.py43def test_get_rules_rule_exception(mocker, glob):CODE
LOWtests/test_corrector.py51def test_get_corrected_commands(mocker):CODE
LOW⚡tests/test_types.py48 def test_from_path_rule_exception(self, mocker):CODE
LOWtests/test_types.py69 def test_from_path_excluded_rule(self, mocker, settings):CODE
LOW⚡tests/test_types.py96 def test_isnt_match_when_rule_failed(self, capsys):CODE
LOW⚡tests/test_types.py102 def test_get_corrected_commands_with_rule_returns_list(self):CODE
LOW⚡tests/test_types.py109 def test_get_corrected_commands_with_rule_returns_command(self):CODE
LOW⚡tests/output_readers/test_rerun.py28 def test_get_output_invalid_continuation_byte(self, popen_mock):CODE
LOW⚡tests/output_readers/test_rerun.py37 def test_get_output_unicode_misspell(self, wait_output_mock):CODE
LOW⚡tests/output_readers/test_rerun.py45 def test_wait_output_is_not_slow(self, settings):CODE
LOWtests/output_readers/test_rerun.py57 def test_wait_output_timeout_children(self, kill_process_mock):CODE
LOWtests/output_readers/test_rerun.py69 def test_kill_process_access_denied(self, logs_mock):CODE
LOWtests/shells/test_tcsh.py60 def test_how_to_configure_when_config_not_found(self, shell,CODE
LOWtests/shells/test_zsh.py56 def test_app_alias_variables_correctly_set(self, shell):CODE
LOWtests/shells/test_zsh.py72 def test_how_to_configure_when_config_not_found(self, shell,CODE
LOWtests/shells/test_bash.py56 def test_app_alias_variables_correctly_set(self, shell):CODE
LOWtests/shells/test_bash.py77 def test_how_to_configure_when_config_not_found(self, shell,CODE
LOWtests/shells/test_fish.py30 def test_get_overridden_aliases(self, shell, os_environ, key, value):CODE
LOWtests/shells/test_fish.py88 def test_app_alias_alter_history(self, settings, shell):CODE
LOWtests/shells/test_fish.py117 def test_how_to_configure_when_config_not_found(self, shell,CODE
LOWtests/rules/test_omnienv_no_such_command.py36def test_match_goenv_output_quote():CODE
LOW⚡tests/rules/test_git_branch_0flag.py53def test_get_new_command_branch_exists(script, output_branch_exists, new_command):CODE
LOWtests/rules/test_git_branch_0flag.py69def test_get_new_command_not_valid_object(script, output_not_valid_object, new_command):CODE
LOWtests/rules/test_docker_not_command.py249def test_match_management_cmd(script, output):STRING
LOWtests/rules/test_docker_not_command.py258def test_match_management_subcmd(script, output):STRING
LOWtests/rules/test_docker_not_command.py282def test_get_new_management_command(wrong, fixed):STRING
LOWtests/rules/test_docker_not_command.py291def test_get_new_management_command_subcommand(wrong, fixed, output):STRING
LOWtests/rules/test_git_not_command.py16def git_not_command_one_of_this():STRING
LOW⚡tests/rules/test_brew_install.py7def brew_no_available_formula_one():CODE
LOW⚡tests/rules/test_brew_install.py12def brew_no_available_formula_two():CODE
LOW⚡tests/rules/test_brew_install.py17def brew_no_available_formula_three():CODE
LOWtests/rules/test_pacman_invalid_option.py13def test_not_match_good_output(option):STRING
LOWtests/rules/test_pacman_invalid_option.py18def test_not_match_bad_output(option):STRING
LOW⚡tests/rules/test_pacman.py80def test_get_new_command_mocked(subp_mock, command, new_command, return_value):CODE
LOWtests/rules/test_fix_file.py211def test_get_new_command_with_settings(mocker, monkeypatch, test, settings):STRING
LOWtests/rules/test_composer_not_command.py24def composer_not_command_one_of_this():CODE
LOWtests/rules/test_composer_not_command.py43def composer_require_instead_of_install():CODE
LOWtests/rules/test_pip_unknown_command.py7def pip_unknown_cmd_without_recommend():CODE
LOWtests/rules/test_mercurial.py99def test_extract_possibilities(command, possibilities):CODE
23 more matches not shown…
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsetup.py14except pkg_resources.DistributionNotFound:CODE
HIGHthefuck/rules/dirty_untar.py50except OSError:CODE
HIGHthefuck/rules/dirty_unzip.py54except OSError:CODE
HIGHthefuck/rules/brew_unknown_command.py59except OSError:CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/specific/test_npm.py0lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/STRING
HIGHtests/rules/test_npm_missing_script.py0lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/STRING
HIGHtests/rules/test_npm_run_script.py0lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/STRING
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWthefuck/ui.py11CODE
LOWthefuck/ui.py59CODE
LOWthefuck/conf.py101CODE
LOWthefuck/utils.py49CODE
LOWthefuck/specific/archlinux.py34CODE
LOWthefuck/output_readers/read_log.py15CODE
LOWthefuck/shells/generic.py56CODE
LOWthefuck/system/unix.py22CODE
LOWthefuck/rules/switch_lang.py79CODE
LOWthefuck/rules/path_from_history.py28CODE
LOWthefuck/rules/npm_wrong_command.py23CODE
LOWthefuck/entrypoints/fix_command.py13CODE
LOWthefuck/entrypoints/main.py16CODE
Excessive Try-Catch Wrapping11 hits · 13 pts
SeverityFileLineSnippetContext
LOWthefuck/conf.py36 except Exception:CODE
LOWthefuck/conf.py41 except Exception:CODE
LOWthefuck/types.py40 except Exception:CODE
LOWthefuck/types.py144 except Exception:CODE
LOWthefuck/types.py182 except Exception:CODE
LOWthefuck/utils.py208 except Exception:CODE
MEDIUMthefuck/utils.py115def _safe(fn, fallback):CODE
LOWthefuck/specific/brew.py14 except Exception:CODE
LOWthefuck/shells/generic.py144 except Exception as e:CODE
LOWthefuck/rules/dirty_unzip.py11 except Exception:CODE
MEDIUMthefuck/rules/dirty_unzip.py7def _is_bad_zip(file):CODE
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsetup.py6CODE
LOWthefuck/system/__init__.py5CODE
LOWthefuck/system/__init__.py7CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfastentrypoints.py1# Copyright (c) 2016, Aaron ChristiansonCOMMENT