Skip to main content

What happens when Coolhand scans a newly connected repository?

Last updated 4 min read

When you connect a repository, Coolhand scans its code to detect AI SDK usage and determine whether automated monitoring fits. Workspace administrators receive an email explaining the scan, with options to skip the repository or trigger immediate setup. Repositories connected with no commits are automatically scanned after their first push.

When you connect your source control account through GitHub, GitLab, or GitHub Enterprise Server, Coolhand discovers the repositories you selected and initiates an onboarding scan. This guide covers how the scan works, what notifications administrators receive, how to skip or accelerate setup, and what happens with empty repositories.


How the initial repository scan works

After a repository is connected, Coolhand inspects the codebase to check whether it uses supported AI and LLM libraries (such as OpenAI, Anthropic, AWS Bedrock, and others).

  • If AI code is detected: Coolhand plans a setup pull request or merge request containing the SDK installation and instrumentation needed for your stack.
  • If no AI code is detected: Coolhand completes the scan without opening a pull request, leaving the repository inactive unless you choose to set it up manually.

To learn more about how Coolhand monitors your repositories and proposes fixes, see What is the Coolhand GitHub App and what does it do?.


Scan notification emails

As soon as a repository is added or granted access, Coolhand sends an email notification to workspace administrators (or all workspace members if no administrator role is assigned). If you connect multiple repositories simultaneously, Coolhand groups them into a single digest email.

The email arrives with the subject "Checking [repository] to see if Coolhand monitoring fits" and explains the three-step onboarding process:

  1. Check for AI code: Coolhand scans the repository for LLM calls and provider SDKs.
  2. Open a setup pull request: If monitoring fits, Coolhand generates a pull request or merge request with the initial configuration.
  3. Review and merge: Your team reviews the suggested changes and merges them into your default branch.

You do not need to take any action if you want this default automated scan to run.


Skipping a repository or setting up immediately

For teams that want direct control over the onboarding workflow, the scan notification email includes two action buttons for each repository:

  • Skip the check and set up Coolhand: Bypasses the AI code detection step and immediately prepares a setup pull request or merge request. Choose this option if your repository does not yet include AI SDK calls or uses custom wrappers that you want to instrument right away.
  • Skip this repo: Cancels scanning for that repository. Coolhand terminates the pending scan, will not open automated setup pull requests, and excludes the repository from both automated background scan sweeps and manual Scan All Repos runs.

Each link in the notification email is securely signed and valid for 14 days. Selecting a button opens a confirmation page to verify your selection.

If your team previously chose to skip a repository but later decides to monitor it, you can override the cancellation and start setup at any time from your repository settings in Coolhand.


Empty repositories and the first push

If you connect a brand-new repository that contains no commits yet, Coolhand cannot inspect the code. Instead of generating a scan failure, Coolhand marks the repository as awaiting its first commit.

How Coolhand handles subsequent activity depends on your provider:

  • GitHub (github.com) and GitLab: Coolhand listens for webhook push events. As soon as you push your first commit to an empty repository, Coolhand automatically queues it for an initial scan.
  • GitHub Enterprise Server: Because GitHub Enterprise Server connections do not receive push webhook events, newly pushed commits on previously empty repositories are not scanned instantly. They will be picked up during the next routine repository sync, or immediately when you select Scan All Repos on the Repositories page.

Managing scan notifications

Repository scan emails belong to the Integration alerts notification category. You can update your email preferences at any time:

  1. In Coolhand, open your user menu and navigate to User preferences.
  2. Scroll to the Emails section.
  3. Toggle Integration alerts on or off.

You can also opt out directly using the unsubscribe link located in the footer of any notification email.

Related articles