Deploy web apps anywhere.
This report presents the forensic synthetic code analysis of basecamp/kamal, a Ruby project with 14,398 GitHub stars. SynthScan v2.0 examined 22,153 lines of code across 212 source files, recording 96 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 5.1 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 96 distinct pattern matches across 5 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 |
|---|---|---|---|---|
| LOW | lib/kamal/sshkit_with_ext.rb | 221 | # Execute on hosts grouped by role. | COMMENT |
| LOW | lib/kamal/configuration/docs/boot.yml | 1 | # Booting | COMMENT |
| LOW | lib/kamal/configuration/docs/alias.yml | 1 | # Aliases | COMMENT |
| LOW | lib/kamal/configuration/docs/alias.yml | 21 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/logging.yml | 1 | # Custom logging configuration | COMMENT |
| LOW | lib/kamal/configuration/docs/output.yml | 1 | # Output | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 1 | # Proxy | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 21 | # requests for other apps deployed on that server that do have a host set. | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 41 | # The host value must point to the server we are deploying to, and port 443 must be | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 61 | private_key_pem: PRIVATE_KEY_PEM | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 81 | forward_headers: true | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 101 | - "/api" | COMMENT |
| LOW | lib/kamal/configuration/docs/proxy.yml | 121 | COMMENT | |
| LOW | lib/kamal/configuration/docs/proxy.yml | 181 | # servers: | COMMENT |
| LOW | lib/kamal/configuration/docs/ssh.yml | 1 | # SSH configuration | COMMENT |
| LOW | lib/kamal/configuration/docs/ssh.yml | 21 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/ssh.yml | 41 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/ssh.yml | 61 | # An array of strings, with each element of the array being a secret name. | COMMENT |
| LOW | lib/kamal/configuration/docs/env.yml | 1 | # Environment variables | COMMENT |
| LOW | lib/kamal/configuration/docs/env.yml | 21 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/env.yml | 41 | # ``` | COMMENT |
| LOW | lib/kamal/configuration/docs/registry.yml | 1 | # Registry | COMMENT |
| LOW | lib/kamal/configuration/docs/registry.yml | 41 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/registry.yml | 61 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/sshkit.yml | 1 | # SSHKit | COMMENT |
| LOW | lib/kamal/configuration/docs/sshkit.yml | 21 | # Kamal sets a long idle timeout of 900 seconds on connections to try to avoid | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 1 | # Builder | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 21 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 61 | # | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 81 | # Referencing build arguments | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 101 | # # Install dependencies, including private repositories via access token | COMMENT |
| LOW | lib/kamal/configuration/docs/builder.yml | 121 | COMMENT | |
| LOW | lib/kamal/configuration/docs/role.yml | 1 | # Roles | COMMENT |
| LOW | lib/kamal/configuration/docs/role.yml | 21 | - 172.1.0.2: experiment1 | COMMENT |
| LOW | lib/kamal/configuration/docs/accessory.yml | 1 | # Accessories | COMMENT |
| LOW | lib/kamal/configuration/docs/accessory.yml | 21 | # where `<service>` is the main service name from the root configuration: | COMMENT |
| LOW | lib/kamal/configuration/docs/accessory.yml | 61 | COMMENT | |
| LOW | lib/kamal/configuration/docs/accessory.yml | 81 | restart: always | COMMENT |
| LOW | lib/kamal/configuration/docs/accessory.yml | 141 | COMMENT | |
| LOW | lib/kamal/configuration/docs/configuration.yml | 1 | # Kamal Configuration | COMMENT |
| LOW | lib/kamal/configuration/docs/configuration.yml | 21 | # extension. Kamal will ignore the extension and not raise an error. | COMMENT |
| LOW | lib/kamal/configuration/docs/configuration.yml | 61 | ... | COMMENT |
| LOW | lib/kamal/configuration/docs/configuration.yml | 81 | COMMENT | |
| LOW | lib/kamal/configuration/docs/configuration.yml | 101 | hooks_output: :verbose | COMMENT |
| LOW | lib/kamal/configuration/docs/configuration.yml | 121 | COMMENT | |
| LOW | lib/kamal/configuration/docs/configuration.yml | 141 | COMMENT | |
| LOW | lib/kamal/configuration/docs/configuration.yml | 161 | # How long to wait for a container to drain, default 30: | COMMENT |
| LOW | lib/kamal/configuration/docs/configuration.yml | 201 | # | COMMENT |
| LOW | lib/kamal/secrets/adapters/gcp_secret_manager.rb | 1 | class Kamal::Secrets::Adapters::GcpSecretManager < Kamal::Secrets::Adapters::Base | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 1 | # Name of your application. Used to uniquely configure containers. | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 21 | ssl: true | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 41 | # args: | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 61 | # user: app | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 81 | # | COMMENT |
| LOW | lib/kamal/cli/templates/deploy.yml | 101 | # directories: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/integration/integration_test.rb | 104 | def assert_app_in_maintenance(message: nil) | CODE |
| LOW | test/integration/integration_test.rb | 269 | def assert_container_not_running(host:, name:) | CODE |
| LOW | test/integration/main_test.rb | 289 | def assert_accumulated_assets(*versions) | CODE |
| LOW | test/integration/main_test.rb | 297 | def assert_asset_volume_read_only(version) | CODE |
| LOW | test/integration/main_test.rb | 324 | def assert_hook_env_variables(output, version:) | CODE |
| LOW⚡ | test/integration/accessory_test.rb | 61 | def assert_accessory_not_running(name) | CODE |
| LOW⚡ | test/integration/accessory_test.rb | 65 | def assert_accessory_volume_mount_options(name) | CODE |
| LOW⚡ | test/integration/accessory_test.rb | 70 | def assert_accessory_file_mode_and_owner(name) | CODE |
| LOW⚡ | test/integration/accessory_test.rb | 75 | def assert_accessory_directory_mode_and_owner(name) | CODE |
| LOW | test/secrets/bitwarden_adapter_test.rb | 259 | def stub_noteitem_with_fields(session: nil) | CODE |
| LOW | test/cli/main_test.rb | 846 | def run_command_with_config_path(*command, config_path:, destination: nil) | CODE |
| LOW | test/cli/build_test.rb | 477 | def assert_local_registry_started_before_push(fixture:, remote_host:) | CODE |
| LOW | lib/kamal/env_file.rb | 30 | def escape_docker_env_file_value(value) | CODE |
| LOW | lib/kamal/env_file.rb | 37 | def escape_docker_env_file_ascii_value(value) | CODE |
| LOW | lib/kamal/configuration/accessory.rb | 223 | def expand_host_path_for_volume(host_path) | CODE |
| LOW | lib/kamal/configuration/accessory.rb | 259 | def extract_hosts_from_config_with_tag(tag) | CODE |
| LOW | lib/kamal/configuration/role.rb | 152 | def asset_extracted_directory(version = config.version) | CODE |
| LOW | lib/kamal/secrets/adapters/bitwarden.rb | 44 | def fetch_secrets_from_fields(fields, item, item_json) | CODE |
| LOW | lib/kamal/secrets/adapters/bitwarden_secrets_manager.rb | 37 | def extract_command_and_project(secrets) | CODE |
| LOW | lib/kamal/secrets/adapters/enpass.rb | 51 | def parse_result_and_take_secrets(unparsed_result, secrets) | CODE |
| LOW | lib/kamal/cli/accessory.rb | 313 | def error_on_missing_accessory(name) | CODE |
| LOW⚡ | lib/kamal/cli/build.rb | 216 | def forward_local_registry_port_for_remote_builder(&block) | CODE |
| LOW⚡ | lib/kamal/cli/build.rb | 225 | def forward_local_registry_port(hosts, **ssh_options, &block) | CODE |
| LOW⚡ | lib/kamal/cli/build.rb | 234 | def remote_builder_ssh_options(remote_uri) | CODE |
| LOW | lib/kamal/commands/app.rb | 85 | def current_running_container(format:) | CODE |
| LOW | lib/kamal/commands/accessory.rb | 57 | def execute_in_existing_container(*command, interactive: false) | CODE |
| LOW⚡ | lib/kamal/commands/accessory.rb | 76 | def execute_in_existing_container_over_ssh(*command) | CODE |
| LOW⚡ | lib/kamal/commands/accessory.rb | 80 | def execute_in_new_container_over_ssh(*command) | CODE |
| LOW⚡ | lib/kamal/commands/accessory.rb | 88 | def ensure_local_file_present(local_file) | CODE |
| LOW | lib/kamal/commands/app/assets.rb | 37 | def find_and_remove_older_siblings(path) | CODE |
| LOW | lib/kamal/commands/app/execution.rb | 2 | def execute_in_existing_container(*command, interactive: false, env:) | CODE |
| LOW | lib/kamal/commands/app/execution.rb | 26 | def execute_in_existing_container_over_ssh(*command, env:) | CODE |
| LOW | lib/kamal/commands/app/execution.rb | 30 | def execute_in_new_container_over_ssh(*command, env:) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/kamal/configuration/docs/proxy.yml | 91 | # you can use path-based routing to mount services under different path prefixes. | COMMENT |
| MEDIUM | lib/kamal/configuration/docs/registry.yml | 3 | # The default registry is Docker Hub, but you can change it using `registry/server`. | COMMENT |
| MEDIUM | lib/kamal/configuration/docs/registry.yml | 29 | # AWS ECR’s access token is only valid for 12 hours. In order to avoid having to manually regenerate the token every tim | COMMENT |
| MEDIUM | lib/kamal/configuration/docs/accessory.yml | 104 | # Or you can use the hash format for custom mode and ownership. | COMMENT |
| MEDIUM | lib/kamal/configuration/docs/accessory.yml | 129 | # Or you can use the hash format for custom mode and ownership. | COMMENT |
| MEDIUM | lib/kamal/configuration/docs/configuration.yml | 129 | # This defaults to `web`, but if you have no web role, you can change this: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/kamal/configuration/docs/logging.yml | 3 | # Set these to control the Docker logging driver and options. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/secrets/gcp_secret_manager_adapter_test.rb | 106 | stub_items(0, project: "some-project", version: "123", account: "user@example.com", impersonate_service_account: "se | CODE |