Skip to content

Documentation

Welcome to the DebtDrone documentation. DebtDrone is an automated technical debt and code complexity scanner designed to run seamlessly alongside your development workflows. By continuously analyzing your repositories, we pinpoint actionable hotspots so your team can tackle technical debt before it becomes a liability.

The platform operates by parsing your source code into Abstract Syntax Trees (AST) to measure cyclomatic complexity and using powerful industry-standard security scanners (like Trivy) to identify vulnerabilities. All of this is presented in a centralized dashboard for engineering leaders to make informed prioritization decisions.

Authentication & Accounts

DebtDrone supports three ways to sign in: standard email and password, one-click Google OAuth, or GitHub OAuth. All three work for both signing up and logging back in.

Account Workflows

  • Email Verification: If registering with email/password, your password must include an uppercase letter, a lowercase letter, a number, and a special character (8+ characters total). After registering, we email a 6-digit verification code — it expires after 10 minutes, and you get 5 attempts to enter it correctly before needing to restart signup.
  • Password Security: Passwords are securely hashed, never stored in plain text. If you lose access, the "Forgot Password" flow emails a secure, time-limited reset link (valid for 1 hour). Resetting your password automatically signs you out of every other active session for security.
  • Profile Management: Inside the Dashboard, navigate to Profile to update your display name, avatar, and account details.
  • Impersonation (Admins only): System administrators have the ability to securely impersonate users for troubleshooting. When active, an unmistakable yellow banner is displayed across the screen to indicate the impersonated state.

Connecting GitHub

Connect an account to discover repositories. Install the DebtDrone GitHub App on the repositories where you want pull-request scans, comments, and approved Advisor fixes.

1. Connect your repositories

Open Settings → Integrations → Code Hosting and add a GitHub connection. Authorize the account, then choose repositories to scan under Repositories. Open the connection again to sync repositories, reconnect, or replace a personal access token where applicable.

2. Install the GitHub App

Open your GitHub connection under Code Hosting to check the App status for that connection's repositories. Use Install GitHub App or Manage GitHub App on GitHub as shown. Install it on the account or organization and grant access to the intended repositories. If the server has no GitHub App configured, the connection reports that it is unavailable; contact the operator.

Security Architecture & Permissions

The DebtDrone GitHub App requests read and write access to repository contents and pull requests, plus read access to metadata. Write access allows Advisor to open a fix pull request after the requester approves the patch. Review the requested permissions on GitHub before approving or updating an installation.

Your source code is analyzed inside isolated, ephemeral worker containers — we don't maintain a persistent clone of your repository outside of what's needed to run a scan.

Connecting GitLab

An organization owner or admin can open Settings → Integrations → Code Hosting → Add New Connection → GitLab. Choose GitLab.com or Self-hosted GitLab.

GitLab.com

Select Connect GitLab and approve access on GitLab.com. DebtDrone requests only read_api and read_repository, to discover projects and clone them for scanning. This connects repositories; it does not add GitLab as a way to sign in to DebtDrone.

Self-hosted GitLab

  1. Enter the instance URL, such as https://gitlab.company.com. Include its deployment path if it uses one, such as https://tools.company.com/gitlab.
  2. Create a personal access token in GitLab with read_api and read_repository, and paste it into the token field.
  3. Select Test connection, then Save connection. Editing the URL or token requires another test.

The instance must be publicly reachable over HTTPS with a trusted certificate. VPN-only or private-network instances and private certificate authorities are not supported. Tokens are stored encrypted and are not displayed again. A connection error distinguishes URL, TLS, connectivity, authentication, and scope problems.

Import, sync, and disconnect

Accessible personal, group, and subgroup projects appear under Repositories, including private projects the credential can read. Choose repositories to scan or rescan. Several GitLab instances can share a workspace; host and account identify each connection. Renames and group moves preserve a project's history.

Reopen a connection to test saved credentials, sync now, set automatic repository sync, or reconnect. Automatic sync discovers repository changes; it does not start a scan on every push. Disconnect removes stored credentials and keeps repositories and scan history. GitLab.com authorization revocation is attempted; if it cannot be confirmed, remove DebtDrone from GitLab's Applications settings. Revoke self-hosted tokens in GitLab yourself. Delete connection permanently removes its imported repositories and history after confirmation.

GitLab supports import and scanning, plus Advisor discussion of scan findings. Advisor source reads and fixes, merge-request comments, and webhook-triggered scans remain unavailable for GitLab.

Running & Managing Scans

After connecting your repositories, they appear in the Repositories table. Each repository displays its last scan status, active issues count, and historical debt score.

The Scanning Lifecycle

  1. Triggering: Click the Trigger Scan button, or open a pull request on a repository with the GitHub App installed — either way, a job is queued for processing.
  2. Queued: The UI will update to indicate the repository is "Pending".
  3. Processing: A background worker picks up the job, fetches the codebase, and begins passing files through the complexity engine and security scanner (Trivy). Depending on the size of your monorepo, a scan can take 10 seconds to 15 minutes.
  4. Completion: Once finished, the interface instantly updates via polling, populating the new issues list and recalculating your dashboard metrics.

When a pull request is scanned, DebtDrone posts a single, continuously-updated comment summarizing the health grade and any new issues, and sets a GitHub commit status on the PR — which you can require as a passing check in your branch protection rules. DebtDrone never blocks a merge on its own; it only reports.

Understanding Your Metrics

Debt Score & Health Grade

The Health Grade is a holistic letter grade from A (excellent) to F (critical), calculated from your repository's open issues — critical security vulnerabilities weigh the grade down fastest, while accumulated complexity erodes it gradually. Tracking this grade over time helps visualize whether your refactoring velocity is outpacing new feature development.

Actionable Hotspots

Technical debt isn't equally dangerous. An ugly, untouched utility script is far less risky than a complex file modified daily. Our engine correlates Code Churn (commit frequency from git history) with Cyclomatic Complexity. Files ranking highest on both axes are surfaced natively on the dashboard as the highest priority "Actionable Hotspots."

Test Coverage (Beta)

Organizations can optionally enable coverage tracking by uploading the coverage report your CI pipeline already produces (lcov, Cobertura, JaCoCo, Clover, SimpleCov, and Go coverage formats are all supported). DebtDrone does not run your test suite. Without an uploaded report there is no coverage data for a repository — read that as unavailable, not 0%. Some views still display a missing report as 0.0% while we fix that. This feature is opt-in and still evolving — ask your admin to enable it under organization settings if you'd like to try it.

Intelligent Parsing & System Warnings

Massive auto-generated files natively distort analytics. DebtDrone uses heuristic detection to silently skip files like bundled JavaScript, package-lock.json, large JSON payloads, and generated protobuf/GraphQL definitions. This guarantees your metrics reflect strictly human-written code.

Issues & Advisor Fixes

The Issues tab serves as your technical backlog. Scans categorize findings into Security Vulnerabilities (e.g., exposed secrets, CVEs in dependencies) and Code Quality Issues (e.g., function too complex, duplicated blocks).

Granular Code Views

Clicking any issue opens the Issue Detail View. This interface provides the exact file path, the severity level, and a syntax-highlighted code snippet displaying the precise lines affected. You can mark issues as "Ignored" if they represent a false positive, filtering them permanently from future severity calculations.

Fix with Advisor

With Advisor enabled on an eligible Pro or Enterprise organization, open a supported GitHub source-code finding and select Fix with Advisor. Opening the page spends no allowance; select Generate fix to start.

  1. Generate: Advisor reads the affected file at the default branch's latest commit and proposes a patch.
  2. Review: inspect the exact diff, DebtDrone's deterministic checks, and the model's review. These checks do not build or run the code. Model advice is neither a test result nor approval.
  3. Approve: only the requester can select Approve and open pull request. Approval is bound to that patch and base context. If the affected file changes, regenerate the fix.
  4. Validate: use your repository's CI and normal code review before merging. Run a new scan to check the finding again.

If a file or prompt is too large, use Discuss with Advisor or choose another finding. No GitLab source fixes or merge requests are supported yet.

Advisor

Open Advisor in the sidebar or from a repository with a completed scan. Ask which findings to prioritize, why a function was flagged, or how a refactor might work. Answers include citations and limitations; check the cited findings and source before acting.

Scans and saved conversations

A repository chat stays pinned to its selected scan. Source, when available, is read at that scan's recorded commit rather than the latest push. Chats are saved by repository, and follow-up questions use recent conversation context. For a question spanning projects, start under All repositories and confirm the repositories and scans it should cover. Earlier answers provide context, not new evidence.

GitLab scan findings are available for discussion, but source retrieval currently requires GitHub. When evidence is missing or the question exceeds what the scanner measures, Advisor is designed to say so rather than invent an answer. Severity and complexity rankings do not measure business risk.

Access and allowance

Advisor requires an eligible Pro or Enterprise plan and access enabled for your organization. The workspace shows the shared AI allowance and its reset date. Questions and fix generation use that allowance; opening a chat or reading saved answers does not start a generation. If the allowance is exhausted, wait for the reset before starting new paid work. Stopping a request does not refund calls already made.

Advisor uses the service configured by DebtDrone. You do not need to add a personal AI API key in Settings. If Advisor is unavailable, check your organization's plan and enablement, then contact your administrator if access should be active.

MCP Connections

Use DebtDrone's hosted Model Context Protocol (MCP) server from Claude, Claude Code, Codex, or Cursor. Your organization needs Advisor access and an eligible plan. MCP provides read-only tools for existing scan data; it does not run the in-app Advisor conversation or create fixes.

  1. Open Settings → General → MCP connections and copy the server URL shown there. For the hosted service it is https://api.debtdrone.net/mcp.
  2. Add that remote MCP server in your client's connector or MCP settings and start OAuth sign-in. DebtDrone does not issue a personal API key for this connection. Cursor uses the public client ID debtdrone-cursor in its auth.CLIENT_ID setting; no client secret is required.
  3. Sign in to DebtDrone, review the client and callback, then select one organization and the repositories it may read. Approve access and return to the client.
  4. Ask the client to list your DebtDrone repositories, then inspect findings or request the source of a flagged function. Ask it to cite returned evidence and respect reported limitations.

Tools are list_repositories, get_findings, get_function_source, and get_cve_details. Each call uses the latest completed scan; source retrieval requires GitHub. Unlike an in-app saved chat, the connection does not pin all future calls to one scan. It cannot change code, open pull requests, start scans, or read repositories outside your selection.

MCP tools do not call DebtDrone's model or consume the organization's Advisor allowance. Your client's model usage follows its own subscription or API billing. Findings and requested source are sent to that client and handled under its vendor's policies.

Disconnect and troubleshoot

Select Disconnect beside the client in Settings → General → MCP connections to revoke further reads. Disconnect and reconnect to change repository consent. Removing the connector only in the client does not revoke DebtDrone's grant, and revocation cannot remove results already saved in the client's history.

If no eligible organization appears, check plan and Advisor access. If the server reports MCP disabled, contact the operator. For an unrecognized client, verify the supported client's OAuth setup. If authorization expires or was revoked, sign in again. A missing repository must be connected and included in the consent selection; source is unavailable when its scan has no recorded commit or the provider is unsupported.

Project Management Integrations

We know developers hate context switching. DebtDrone bridges the gap between infrastructure health and project management by converting identified debt into trackable agile tickets directly from the UI.

Configuring External Trackers

  • Atlassian Jira: Navigate to Settings -> Integrations. Enter your Jira API Token, Atlassian Email, and Base URL. Once connected, a "Push to Jira" button appears on all issues. You can dynamically select the target Jira Project and customize the Issue Type (Task, Bug, Epic), directly syncing the vulnerability description to the Jira card.
  • Trello Configuration: Similarly, supply your Trello API Key and User Token. DebtDrone maps your Trello Workspaces; you can explicitly configure which Trello Board and target Column debt tickets should automatically populate upon synchronizing.

Note: Jira and Trello integrations are gated to our Pro and Enterprise tiers.

Reports

Engineers solve problems at the repository level, but Engineering Managers and CTOs need macro visibility. The Reports tab is your organization's full scan history — every analysis run across every connected repository, in one table.

What you'll see

  • Health grade per run: Each scan is stamped with an A–F grade, so you can spot regressions at a glance.
  • Trend indicators: See whether a repository's debt is trending up or down run-over-run.
  • Run detail drill-down: Click into any run to see exactly what changed and which issues were introduced or resolved.

Reports is part of our advanced analytics feature set, available on Pro and Enterprise plans.

Enterprise SAML Configuration

For organizations enforcing strict access boundaries, DebtDrone's Enterprise plan includes SAML 2.0 Single Sign-On, letting your team authenticate through your company's Identity Provider (IdP) — Okta, Google Workspace, Azure AD, JumpCloud, and others.

Because SSO setup involves securely exchanging metadata with your IdP, our team configures it for you rather than asking you to do it yourself. Once you're on the Enterprise plan, reach out to our support team and we'll get your organization connected.

Billing & Organization Management

DebtDrone operates on an Organizational model. An Organization encapsulates all connected Repositories, Teams, billing details, and customized settings securely partitioned from other users.

Role-Based Access Control (RBAC)

Invite team members via the Settings panel and assign one of four organizational roles:

  • Owner: Full control, including billing and the ability to delete the organization.
  • Admin: Can manage billing, invite members, and configure integrations.
  • Member: Can trigger scans, view issues, and use configured integrations.
  • Viewer: Strictly read-only access for browsing issues and reports.

Plans

  • Free: Up to 3 repositories, 10 scans per month.
  • Pro ($29/mo): Up to 100 repositories, unlimited scans, plus Jira/Trello integrations, Advisor where enabled for the organization, and advanced analytics (Reports).
  • Enterprise: Unlimited repositories and scans, custom integrations, and SAML SSO.

We use Paddle for secure checkout and subscription management — access the Billing tab in Settings to upgrade or change your plan at any time.