CLI platform to experiment with codegen. Precursor to: https://lovable.dev
This report summarizes scanner evidence for AntonOsika/gpt-engineer, a Python project with 54,937 GitHub stars. SynthScan examined 13,106 lines of code across 121 source files, recording 198 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 29.3 (Elevated 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-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 148 finding(s).
Are imports declared and package/API names verified? 31 finding(s).
Are wrappers, guards, and repeated structures necessary? 110 finding(s).
Which changes need focused human review? 198 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 198 distinct pattern matches across 16 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 |
|---|---|---|---|---|
| HIGH⚡ | tests/tools/example_snake_files.py | 125 | var food = null; | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 134 | if (event.keyCode == 37 && d != "RIGHT") { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 136 | } else if (event.keyCode == 38 && d != "DOWN") { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 138 | } else if (event.keyCode == 39 && d != "LEFT") { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 140 | } else if (event.keyCode == 40 && d != "UP") { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 170 | if (snakeX == food.x && snakeY == food.y) { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 172 | food = null; | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 182 | if (snakeX < 0 || snakeY < 0 || snakeX > 19 * box || snakeY > 19 * box || collision(newHead, snake)) { | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 1545 | if (i == y && j == x) | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 1547 | else if (i == fruitY && j == fruitX) | CODE |
| HIGH⚡ | tests/tools/example_snake_files.py | 1555 | if (tailX[k] == j && tailY[k] == i) | CODE |
| HIGH | tests/tools/example_snake_files.py | 152 | if (food == null) { | CODE |
| HIGH | tests/tools/example_snake_files.py | 193 | if (head.x == array[i].x && head.y == array[i].y) { | CODE |
| HIGH | tests/tools/example_snake_files.py | 562 | if (newHead.X == game.Food.X && newHead.Y == game.Food.Y) | CODE |
| HIGH | tests/tools/example_snake_files.py | 576 | if (head.X < 0 || head.Y < 0 || head.X >= 10 || head.Y >= 10) | CODE |
| HIGH | tests/tools/example_snake_files.py | 580 | if (game.Snake.Body.Take(game.Snake.Body.Count - 1).Any(p => p.X == head.X && p.Y == head.Y)) | CODE |
| HIGH | tests/tools/example_snake_files.py | 744 | @snake[1..-1].include?(head) || head[0] == 0 || head[1] == 0 || head[0] == 9 || head[1] == 9 | CODE |
| HIGH | tests/tools/example_snake_files.py | 1052 | if head.X < 0 || head.Y < 0 || head.X >= game.Width || head.Y >= game.Height { | CODE |
| HIGH | tests/tools/example_snake_files.py | 1075 | return true | CODE |
| HIGH | tests/tools/example_snake_files.py | 1078 | return false | CODE |
| HIGH | tests/tools/example_snake_files.py | 1254 | if (x[0] == apple_x && y[0] == apple_y) { | CODE |
| HIGH | tests/tools/example_snake_files.py | 1288 | if (z > 4 && x[0] == x[z] && y[0] == y[z]) { | CODE |
| HIGH | tests/tools/example_snake_files.py | 1644 | if (tailX[i] == x && tailY[i] == y) | CODE |
| HIGH | tests/tools/example_snake_files.py | 1647 | if (x == fruitX && y == fruitY) | CODE |
| HIGH | tests/tools/example_snake_files.py | 1752 | if (snake->body[0].x == fruit->position.x && snake->body[0].y == fruit->position.y) { | CODE |
| HIGH | tests/tools/example_snake_files.py | 1785 | if (snake->body[0].x <= 0 || snake->body[0].x >= WIDTH || snake->body[0].y <= 0 || snake->body[0].y >= HEIGHT) | CODE |
| HIGH | tests/tools/example_snake_files.py | 1789 | if (snake->body[0].x == snake->body[i].x && snake->body[0].y == snake->body[i].y) | CODE |
| HIGH | gpt_engineer/core/default/disk_execution_env.py | 56 | self.files.push(files) | CODE |
| HIGH | gpt_engineer/applications/cli/main.py | 550 | files.push(files_dict) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/ai_cache.json | 1 | {"[{\"type\": \"system\", \"data\": {\"content\": \"You will get instructions for code to write.\\nYou will write a very | CODE |
| LOW | tests/test_project_config.py | 70 | def test_config_from_dict_with_openapi(): | CODE |
| LOW | tests/test_install.py | 89 | def test_installed_main_execution(tmp_path, monkeypatch): | CODE |
| LOW | tests/benchmark/test_BenchConfig.py | 57 | def test_from_dict_valid_dict(self): | CODE |
| LOW | tests/benchmark/test_BenchConfig.py | 84 | def test_from_toml_invalid_path(self): | CODE |
| LOW⚡ | tests/core/test_chat_to_files.py | 183 | def test_case_insensitivity_and_whitespace(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 188 | def test_length_and_character_frequency(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 198 | def insert_string_in_lined_string(string, to_insert, line_number): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 204 | def test_diff_changing_one_file(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 212 | def test_diff_adding_one_file(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 220 | def test_diff_changing_two_files(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 228 | def test_validate_diff_correct(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 235 | def test_correct_distorted_numbers(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 244 | def test_correct_skipped_lines(): | STRING |
| LOW | tests/core/test_chat_to_files.py | 265 | def test_correct_skipped_lines_and_number_correction(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 353 | def test_simple_calculator_diff(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 357 | def test_complex_temperature_converter_diff(): | STRING |
| LOW⚡ | tests/core/test_chat_to_files.py | 361 | def test_complex_task_master_diff(): | STRING |
| LOW⚡ | tests/core/test_salvage_correct_hunks.py | 46 | def test_validation_and_apply_complex_diff(): | CODE |
| LOW⚡ | tests/core/test_salvage_correct_hunks.py | 51 | def test_validation_and_apply_long_diff(): | CODE |
| LOW⚡ | tests/core/test_salvage_correct_hunks.py | 56 | def test_validation_and_apply_wrong_diff(): | CODE |
| LOW⚡ | tests/core/test_salvage_correct_hunks.py | 63 | def test_validation_and_apply_non_change_diff(): | CODE |
| LOW | tests/core/test_salvage_correct_hunks.py | 78 | def test_create_two_new_files(): | CODE |
| LOW | tests/core/test_file_selector_enhancements.py | 19 | def set_file_selector_tmpproject(tmp_path): | CODE |
| LOW | tests/core/test_file_selector_enhancements.py | 42 | def test_file_selector_enhancement_skip_file_selector(tmp_path): | CODE |
| LOW | tests/core/test_file_selector_enhancements.py | 51 | def test_file_selector_enhancement_sort(tmp_path): | CODE |
| LOW | tests/core/test_git.py | 16 | def test_verify_git_installed(): | CODE |
| LOW⚡ | tests/core/test_git.py | 63 | def test_filter_by_uncommitted_changes(): | CODE |
| LOW⚡ | tests/core/test_git.py | 84 | def test_filter_by_uncommitted_changes_ignore_staged_files(): | CODE |
| LOW⚡ | tests/core/test_git.py | 98 | def test_filter_by_uncommitted_changes_ignore_untracked(): | CODE |
| LOW | tests/core/test_token_usage.py | 80 | def test_list_type_message_with_image(): | CODE |
| LOW | tests/core/default/test_disk_execution_env.py | 21 | def test_successful_execution(self): | CODE |
| LOW | tests/core/default/test_disk_execution_env.py | 43 | def test_keyboard_interrupt_handling(self): | STRING |
| LOW | tests/core/default/test_disk_execution_env.py | 60 | def test_execution_with_output(self): | STRING |
| LOW | tests/core/default/test_steps.py | 81 | def test_generates_code_using_ai_model(self): | STRING |
| LOW | tests/core/default/test_steps.py | 100 | def test_generated_code_saved_to_disk(self): | STRING |
| LOW | tests/core/default/test_steps.py | 118 | def test_raises_type_error_if_keys_not_strings_or_path_objects(self): | STRING |
| LOW | tests/core/default/test_steps.py | 133 | def test_raises_type_error_if_values_not_strings(self): | STRING |
| LOW | tests/core/default/test_steps.py | 148 | def test_raises_key_error_if_file_not_exist_in_database(self): | STRING |
| LOW | tests/core/default/test_steps.py | 164 | def test_called_from_function(self): | STRING |
| LOW | tests/core/default/test_steps.py | 177 | def test_constructs_system_prompt_with_predefined_instructions_and_philosophies( | STRING |
| LOW | tests/core/default/test_steps.py | 191 | def test_constructs_system_prompt(self): | STRING |
| LOW | tests/core/default/test_steps.py | 215 | def test_valid_input_generates_valid_entrypoint(self): | STRING |
| LOW | tests/core/default/test_steps.py | 245 | def test_empty_codebase_returns_empty_entrypoint(self): | STRING |
| LOW | tests/core/default/test_steps.py | 269 | def test_improve_existing_code(self, tmp_path): | STRING |
| LOW | tests/core/default/test_disk_file_repository.py | 105 | def test_delete_file_or_directory(self, tmp_path): | CODE |
| LOW | tests/core/default/test_simple_agent.py | 45 | "main.py": "def write_hello_world_to_file(filename):\n \"\"\"\n Writes 'Hello World!' to the specified | CODE |
| LOW | tests/applications/cli/test_learning.py | 9 | def test_human_review_input_no_concent_returns_none(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 16 | def test_human_review_input_consent_code_ran_no_comments(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 29 | def test_human_review_input_consent_code_ran_not_perfect_but_useful_no_comments(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 42 | def test_check_collection_consent_yes(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 53 | def test_check_collection_consent_no_ask_collection_consent(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 64 | def test_ask_collection_consent_yes(): | CODE |
| LOW | tests/applications/cli/test_learning.py | 71 | def test_ask_collection_consent_no(): | CODE |
| LOW | tests/applications/cli/test_cli_agent.py | 20 | def test_init_standard_config(monkeypatch): | CODE |
| LOW | tests/applications/cli/test_cli_agent.py | 83 | def test_init_clarified_gen_config(monkeypatch): | CODE |
| LOW | tests/applications/cli/test_cli_agent.py | 115 | def test_improve_standard_config(monkeypatch): | CODE |
| LOW | tests/applications/cli/test_cli_agent.py | 120 | "main.py": "def write_hello_world_to_file(filename):\n \"\"\"\n Writes 'Hello World!' to the specified | CODE |
| LOW⚡ | tests/applications/cli/test_collection_consent.py | 33 | def test_check_consent_file_exists_and_true(cleanup): | CODE |
| LOW⚡ | tests/applications/cli/test_collection_consent.py | 38 | def test_check_consent_file_exists_and_false(cleanup): | CODE |
| 29 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_install.py | 14 | # Define the directory for the virtual environment. | COMMENT |
| MEDIUM | tests/test_install.py | 31 | # Create a virtual environment with pip available. | COMMENT |
| MEDIUM | tests/benchmark/test_BenchConfig.py | 14 | # Creating a BenchConfig object with default values should return an instance of BenchConfig with all attributes se | COMMENT |
| MEDIUM | tests/benchmark/test_BenchConfig.py | 30 | # Creating a BenchConfig object with specific values should return an instance of BenchConfig with the specified at | COMMENT |
| MEDIUM | tests/core/test_git.py | 33 | # Create a file and stage it | COMMENT |
| MEDIUM⚡ | tests/core/test_git.py | 68 | # Create a file and commit it | COMMENT |
| MEDIUM⚡ | tests/core/test_git.py | 89 | # Create a file but and stage it | COMMENT |
| MEDIUM⚡ | tests/core/test_git.py | 103 | # Create a file but don't track it | COMMENT |
| MEDIUM⚡ | tests/core/default/test_steps.py | 284 | # Create a Code object with existing code | STRING |
| MEDIUM⚡ | tests/core/default/test_steps.py | 293 | # Create a BaseRepository object for memory | STRING |
| MEDIUM⚡ | tests/core/default/test_steps.py | 296 | # Define the user prompt | STRING |
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | gpt_engineer/core/default/disk_memory.py | 35 | # This class represents a simple database that stores its tools as files in a directory. | COMMENT |
| MEDIUM | gpt_engineer/applications/cli/file_selector.py | 145 | # Define the toml file path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .readthedocs.yaml | 21 | - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs | COMMENT |
| LOW | tests/applications/cli/test_collect.py | 1 | """ | COMMENT |
| LOW | tests/applications/cli/test_collect.py | 21 | # ) | COMMENT |
| LOW | tests/applications/cli/test_collect.py | 41 | # } | COMMENT |
| LOW | tests/applications/cli/test_main.py | 121 | ) | COMMENT |
| LOW | tests/applications/cli/test_main.py | 301 | # monkeypatch.setattr("builtins.input", lambda _: next(gen)) | COMMENT |
| LOW | tests/applications/cli/test_main.py | 321 | # File: main.py | COMMENT |
| LOW | tests/applications/cli/test_main.py | 341 | # ) -> FilesDict: | COMMENT |
| LOW | tests/applications/cli/test_main.py | 361 | # # Call the original function with modified messages or define your own logic | COMMENT |
| LOW | tests/applications/cli/test_main.py | 381 | # ) | COMMENT |
| LOW | tests/applications/cli/test_main.py | 401 | # ) | COMMENT |
| LOW | tests/applications/cli/test_main.py | 421 | # mock_salvage_correct_hunks, | COMMENT |
| LOW | tests/applications/cli/test_main.py | 441 | # ``` | COMMENT |
| LOW | docs/conf.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | docs/conf.py | 41 | author = " Anton Osika & Contributors" | COMMENT |
| LOW | docs/conf.py | 121 | COMMENT | |
| LOW | docs/conf.py | 141 | COMMENT | |
| LOW | .github/workflows/automation.yml | 21 | # Add additional jobs as needed | COMMENT |
| LOW | gpt_engineer/__init__.py | 1 | # Adding convenience imports to the package | COMMENT |
| LOW | gpt_engineer/applications/cli/collect.py | 121 | except RuntimeError: | COMMENT |
| LOW | gpt_engineer/applications/cli/cli_agent.py | 221 | # combined_dict = {**files_dict, **entrypoint} | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | gpt_engineer/benchmark/benchmarks/mbpp/load.py | 0 | module for loading apps evaluation tasks. this module provides functionality to load tasks for evaluating gpt-based mode | STRING |
| HIGH | gpt_engineer/benchmark/benchmarks/gptme/load.py | 0 | module for loading apps evaluation tasks. this module provides functionality to load tasks for evaluating gpt-based mode | STRING |
| HIGH | gpt_engineer/benchmark/benchmarks/apps/load.py | 0 | module for loading apps evaluation tasks. this module provides functionality to load tasks for evaluating gpt-based mode | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/core/test_git.py | 39 | # Check if the file is staged | COMMENT |
| LOW⚡ | tests/core/test_git.py | 78 | # Check if the file is staged | COMMENT |
| LOW⚡ | tests/core/test_git.py | 94 | # Check if the file is staged | COMMENT |
| LOW⚡ | tests/core/test_git.py | 107 | # Check if the file is staged | COMMENT |
| LOW | tests/core/test_token_usage.py | 59 | # Check if the image file exists | COMMENT |
| LOW | scripts/legacy_benchmark.py | 194 | # Write the file | COMMENT |
| LOW | gpt_engineer/core/git.py | 72 | # Check if there's a git repo and verify that there aren't any uncommitted changes | COMMENT |
| LOW | gpt_engineer/applications/cli/file_selector.py | 491 | if root.is_dir(): # Check if root is a directory before iterating | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_install.py | 44 | except Exception as e: | CODE |
| LOW | gpt_engineer/core/linting.py | 25 | except Exception as error: | CODE |
| LOW | gpt_engineer/core/token_usage.py | 295 | except Exception as e: | CODE |
| MEDIUM | gpt_engineer/core/token_usage.py | 296 | print(f"Error calculating usage cost: {e}") | CODE |
| LOW | gpt_engineer/core/default/steps.py | 383 | except Exception as e: | STRING |
| LOW | gpt_engineer/applications/cli/file_selector.py | 238 | except Exception: | CODE |
| LOW | gpt_engineer/applications/cli/file_selector.py | 245 | except Exception: | CODE |
| LOW | gpt_engineer/applications/cli/file_selector.py | 338 | except Exception as e: | CODE |
| MEDIUM | gpt_engineer/applications/cli/file_selector.py | 339 | print("An error occurred while trying to display the file tree:", e) | CODE |
| LOW | gpt_engineer/applications/cli/main.py | 263 | except Exception as e: | CODE |
| MEDIUM | gpt_engineer/applications/cli/main.py | 254 | def get_installed_packages(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | projects/example-improve/controller.py | 9 | CODE | |
| LOW | projects/example-improve/view.py | 8 | CODE | |
| LOW | scripts/clean_benchmarks.py | 17 | CODE | |
| LOW | gpt_engineer/core/chat_to_files.py | 69 | CODE | |
| LOW | gpt_engineer/core/chat_to_files.py | 123 | CODE | |
| LOW | gpt_engineer/core/chat_to_files.py | 164 | CODE | |
| LOW | gpt_engineer/core/token_usage.py | 142 | CODE | |
| LOW | gpt_engineer/core/diff.py | 133 | CODE | |
| LOW | gpt_engineer/core/diff.py | 200 | CODE | |
| LOW | gpt_engineer/core/default/file_store.py | 52 | CODE | |
| LOW | gpt_engineer/applications/cli/main.py | 281 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docker-compose.yml | 13 | # - OPENAI_API_KEY=YOUR_API_KEY | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | gpt_engineer/applications/cli/file_selector.py | 238 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gpt_engineer/core/chat_to_files.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | gpt_engineer/core/ai.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | gpt_engineer/core/token_usage.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | gpt_engineer/core/token_usage.py | 193 | def update_log(self, messages: List[Message], answer: str, step_name: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/ai_cache.json | 1 | {"[{\"type\": \"system\", \"data\": {\"content\": \"You will get instructions for code to write.\\nYou will write a very | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/test_api.py | 26 | CODE | |
| LOW | gpt_engineer/applications/cli/main.py | 281 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gpt_engineer/core/diff.py | 347 | # make sure to not cut so much that the start_line gets out of range | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gpt_engineer/core/ai.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/core/default/test_steps.py | 166 | def test_function(): | STRING |