Repository Analysis

basecamp/kamal

Deploy web apps anywhere.

5.1 Low AI signal View on GitHub

Analysis Overview

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).

5.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-07-01
Last Push
14.4K
Stars
Ruby
Language
22.2K
Lines of Code
212
Files
96
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 6LOW 90

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block55 hits · 55 pts
SeverityFileLineSnippetContext
LOWlib/kamal/sshkit_with_ext.rb221 # Execute on hosts grouped by role.COMMENT
LOWlib/kamal/configuration/docs/boot.yml1# BootingCOMMENT
LOWlib/kamal/configuration/docs/alias.yml1# AliasesCOMMENT
LOWlib/kamal/configuration/docs/alias.yml21#COMMENT
LOWlib/kamal/configuration/docs/logging.yml1# Custom logging configurationCOMMENT
LOWlib/kamal/configuration/docs/output.yml1# OutputCOMMENT
LOWlib/kamal/configuration/docs/proxy.yml1# ProxyCOMMENT
LOWlib/kamal/configuration/docs/proxy.yml21 # requests for other apps deployed on that server that do have a host set.COMMENT
LOWlib/kamal/configuration/docs/proxy.yml41 # The host value must point to the server we are deploying to, and port 443 must beCOMMENT
LOWlib/kamal/configuration/docs/proxy.yml61 private_key_pem: PRIVATE_KEY_PEMCOMMENT
LOWlib/kamal/configuration/docs/proxy.yml81 forward_headers: trueCOMMENT
LOWlib/kamal/configuration/docs/proxy.yml101 - "/api"COMMENT
LOWlib/kamal/configuration/docs/proxy.yml121COMMENT
LOWlib/kamal/configuration/docs/proxy.yml181# servers:COMMENT
LOWlib/kamal/configuration/docs/ssh.yml1# SSH configurationCOMMENT
LOWlib/kamal/configuration/docs/ssh.yml21 #COMMENT
LOWlib/kamal/configuration/docs/ssh.yml41 #COMMENT
LOWlib/kamal/configuration/docs/ssh.yml61 # An array of strings, with each element of the array being a secret name.COMMENT
LOWlib/kamal/configuration/docs/env.yml1# Environment variablesCOMMENT
LOWlib/kamal/configuration/docs/env.yml21#COMMENT
LOWlib/kamal/configuration/docs/env.yml41# ```COMMENT
LOWlib/kamal/configuration/docs/registry.yml1# RegistryCOMMENT
LOWlib/kamal/configuration/docs/registry.yml41#COMMENT
LOWlib/kamal/configuration/docs/registry.yml61#COMMENT
LOWlib/kamal/configuration/docs/sshkit.yml1# SSHKitCOMMENT
LOWlib/kamal/configuration/docs/sshkit.yml21 # Kamal sets a long idle timeout of 900 seconds on connections to try to avoidCOMMENT
LOWlib/kamal/configuration/docs/builder.yml1# BuilderCOMMENT
LOWlib/kamal/configuration/docs/builder.yml21 #COMMENT
LOWlib/kamal/configuration/docs/builder.yml61 #COMMENT
LOWlib/kamal/configuration/docs/builder.yml81 # Referencing build argumentsCOMMENT
LOWlib/kamal/configuration/docs/builder.yml101 # # Install dependencies, including private repositories via access tokenCOMMENT
LOWlib/kamal/configuration/docs/builder.yml121COMMENT
LOWlib/kamal/configuration/docs/role.yml1# RolesCOMMENT
LOWlib/kamal/configuration/docs/role.yml21 - 172.1.0.2: experiment1COMMENT
LOWlib/kamal/configuration/docs/accessory.yml1# AccessoriesCOMMENT
LOWlib/kamal/configuration/docs/accessory.yml21 # where `<service>` is the main service name from the root configuration:COMMENT
LOWlib/kamal/configuration/docs/accessory.yml61COMMENT
LOWlib/kamal/configuration/docs/accessory.yml81 restart: alwaysCOMMENT
LOWlib/kamal/configuration/docs/accessory.yml141COMMENT
LOWlib/kamal/configuration/docs/configuration.yml1# Kamal ConfigurationCOMMENT
LOWlib/kamal/configuration/docs/configuration.yml21# extension. Kamal will ignore the extension and not raise an error.COMMENT
LOWlib/kamal/configuration/docs/configuration.yml61 ...COMMENT
LOWlib/kamal/configuration/docs/configuration.yml81COMMENT
LOWlib/kamal/configuration/docs/configuration.yml101hooks_output: :verboseCOMMENT
LOWlib/kamal/configuration/docs/configuration.yml121COMMENT
LOWlib/kamal/configuration/docs/configuration.yml141COMMENT
LOWlib/kamal/configuration/docs/configuration.yml161# How long to wait for a container to drain, default 30:COMMENT
LOWlib/kamal/configuration/docs/configuration.yml201#COMMENT
LOWlib/kamal/secrets/adapters/gcp_secret_manager.rb1class Kamal::Secrets::Adapters::GcpSecretManager < Kamal::Secrets::Adapters::BaseCOMMENT
LOWlib/kamal/cli/templates/deploy.yml1# Name of your application. Used to uniquely configure containers.COMMENT
LOWlib/kamal/cli/templates/deploy.yml21 ssl: trueCOMMENT
LOWlib/kamal/cli/templates/deploy.yml41 # args:COMMENT
LOWlib/kamal/cli/templates/deploy.yml61# user: appCOMMENT
LOWlib/kamal/cli/templates/deploy.yml81#COMMENT
LOWlib/kamal/cli/templates/deploy.yml101# directories:COMMENT
Hyper-Verbose Identifiers33 hits · 38 pts
SeverityFileLineSnippetContext
LOWtest/integration/integration_test.rb104 def assert_app_in_maintenance(message: nil)CODE
LOWtest/integration/integration_test.rb269 def assert_container_not_running(host:, name:)CODE
LOWtest/integration/main_test.rb289 def assert_accumulated_assets(*versions)CODE
LOWtest/integration/main_test.rb297 def assert_asset_volume_read_only(version)CODE
LOWtest/integration/main_test.rb324 def assert_hook_env_variables(output, version:)CODE
LOWtest/integration/accessory_test.rb61 def assert_accessory_not_running(name)CODE
LOWtest/integration/accessory_test.rb65 def assert_accessory_volume_mount_options(name)CODE
LOWtest/integration/accessory_test.rb70 def assert_accessory_file_mode_and_owner(name)CODE
LOWtest/integration/accessory_test.rb75 def assert_accessory_directory_mode_and_owner(name)CODE
LOWtest/secrets/bitwarden_adapter_test.rb259 def stub_noteitem_with_fields(session: nil)CODE
LOWtest/cli/main_test.rb846 def run_command_with_config_path(*command, config_path:, destination: nil)CODE
LOWtest/cli/build_test.rb477 def assert_local_registry_started_before_push(fixture:, remote_host:)CODE
LOWlib/kamal/env_file.rb30 def escape_docker_env_file_value(value)CODE
LOWlib/kamal/env_file.rb37 def escape_docker_env_file_ascii_value(value)CODE
LOWlib/kamal/configuration/accessory.rb223 def expand_host_path_for_volume(host_path)CODE
LOWlib/kamal/configuration/accessory.rb259 def extract_hosts_from_config_with_tag(tag)CODE
LOWlib/kamal/configuration/role.rb152 def asset_extracted_directory(version = config.version)CODE
LOWlib/kamal/secrets/adapters/bitwarden.rb44 def fetch_secrets_from_fields(fields, item, item_json)CODE
LOWlib/kamal/secrets/adapters/bitwarden_secrets_manager.rb37 def extract_command_and_project(secrets)CODE
LOWlib/kamal/secrets/adapters/enpass.rb51 def parse_result_and_take_secrets(unparsed_result, secrets)CODE
LOWlib/kamal/cli/accessory.rb313 def error_on_missing_accessory(name)CODE
LOWlib/kamal/cli/build.rb216 def forward_local_registry_port_for_remote_builder(&block)CODE
LOWlib/kamal/cli/build.rb225 def forward_local_registry_port(hosts, **ssh_options, &block)CODE
LOWlib/kamal/cli/build.rb234 def remote_builder_ssh_options(remote_uri)CODE
LOWlib/kamal/commands/app.rb85 def current_running_container(format:)CODE
LOWlib/kamal/commands/accessory.rb57 def execute_in_existing_container(*command, interactive: false)CODE
LOWlib/kamal/commands/accessory.rb76 def execute_in_existing_container_over_ssh(*command)CODE
LOWlib/kamal/commands/accessory.rb80 def execute_in_new_container_over_ssh(*command)CODE
LOWlib/kamal/commands/accessory.rb88 def ensure_local_file_present(local_file)CODE
LOWlib/kamal/commands/app/assets.rb37 def find_and_remove_older_siblings(path)CODE
LOWlib/kamal/commands/app/execution.rb2 def execute_in_existing_container(*command, interactive: false, env:)CODE
LOWlib/kamal/commands/app/execution.rb26 def execute_in_existing_container_over_ssh(*command, env:)CODE
LOWlib/kamal/commands/app/execution.rb30 def execute_in_new_container_over_ssh(*command, env:)CODE
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMlib/kamal/configuration/docs/proxy.yml91 # you can use path-based routing to mount services under different path prefixes.COMMENT
MEDIUMlib/kamal/configuration/docs/registry.yml3# The default registry is Docker Hub, but you can change it using `registry/server`.COMMENT
MEDIUMlib/kamal/configuration/docs/registry.yml29# AWS ECR’s access token is only valid for 12 hours. In order to avoid having to manually regenerate the token every timCOMMENT
MEDIUMlib/kamal/configuration/docs/accessory.yml104 # Or you can use the hash format for custom mode and ownership.COMMENT
MEDIUMlib/kamal/configuration/docs/accessory.yml129 # Or you can use the hash format for custom mode and ownership.COMMENT
MEDIUMlib/kamal/configuration/docs/configuration.yml129# This defaults to `web`, but if you have no web role, you can change this:COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/kamal/configuration/docs/logging.yml3# Set these to control the Docker logging driver and options.COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/secrets/gcp_secret_manager_adapter_test.rb106 stub_items(0, project: "some-project", version: "123", account: "user@example.com", impersonate_service_account: "seCODE