Getting Started with The One Code
This guide walks you through connecting your first organization and getting your repositories backed up, analyzed, and documented.
Prerequisitesâ
Before you begin:
- You have a Hub account with Admin or Owner role
- You have access to a GitHub organization, GitLab group, or Azure DevOps organization
- For GitHub: you have permission to install third-party GitHub Apps on that organization
Navigating to The One Codeâ
- Sign in to any One Stack product (or go to my.theonestack.com)
- Click the grid icon (waffle menu) in the top-left corner
- Under the Intelligence section, click Code
- You'll land at app.theonecode.app
Initial Setup Checklistâ
| Step | Description | Required |
|---|---|---|
| Connect organization | Link GitHub, GitLab, or Azure DevOps | Yes |
| Verify repo sync | Confirm all repos were discovered | Yes |
| Configure backup schedule | Set hourly, daily, or weekly | Recommended |
| Set retention period | Default is 90 days | Recommended |
| Trigger initial analysis | Start AI documentation and security scan | Recommended |
| Configure integrations | Link PSA and CMDB | Optional |
Key Conceptsâ
Organization (Org) â A GitHub organization, GitLab group, or Azure DevOps organization that you've connected to The One Code. One MSP tenant can connect multiple orgs, spanning multiple client environments.
Repository â An individual code repository within a connected org. Each repo gets its own backup history, application profile, security scan results, and generated documentation.
Application Profile â An AI-analyzed summary of a repository: detected app type (web-app, API, library, CLI, etc.), tech stack, frameworks, languages, health score, dependency counts, and commit activity.
Health Score â A 0â100 score computed from five signals: commit recency, open issue count, dependency freshness, security findings, and CI/CD presence. Scores above 70 are healthy; 40â70 are warning; below 40 are critical.
Technical Debt Score â A 0â100 score (higher = more debt) across seven categories: code quality, dependency health, documentation, test coverage, architecture, security, and CI/CD health.
Backup Job â A queued task that copies a repository's git data, issues, PRs, wiki, releases, and workflow files to Azure Blob Storage. Full backups capture everything; incremental backups capture only what changed.
SBOM â Software Bill of Materials. A complete list of all direct and transitive dependencies with version, ecosystem, license, and known CVEs.
Compliance Evidence â Data collected from your repositories and org settings that maps to specific controls in SOC 2 or ISO 27001. The One Code collects evidence automatically; you download or share the report.
Handoff Package â A curated bundle containing all AI-generated documentation for a repository, plus a list of critical files, known issues, and suggested first tasks for an incoming developer or client team.
Connecting Your First Organizationâ
GitHub (Recommended)â
The GitHub connection uses a GitHub App installation, which is more secure and more capable than OAuth tokens. The app uses RS256 JWT authentication and never stores your GitHub credentials.
Step 1: Start the connection
- From The One Code, click Connect Organization (or navigate to Organizations â Connect)
- Select GitHub as the provider
- Click Install GitHub App
- You'll be redirected to GitHub
Step 2: Install the GitHub App on GitHub
- On the GitHub App installation page, choose whether to install on your entire organization or selected repositories
- Click Install (or Install & Authorize)
- GitHub redirects you back to The One Code automatically
Step 3: Confirm the connection
Back in The One Code, you'll see:
- The organization name and avatar
- A count of discovered repositories
- Backup jobs queued for all repositories (this starts immediately)
What the GitHub App accesses:
- Repository contents (read) â for backup, documentation, and scanning
- Organization members â for access audits
- Repository metadata â branches, settings, protection rules
- Issues and pull requests â included in backup bundles
- Webhooks â to detect new repos added to the org after connection
GitLabâ
- Click Connect Organization and select GitLab
- You'll be redirected to GitLab's OAuth consent page
- Authorize The One Code to access your groups and repositories
- After redirect, select which GitLab group to connect
- Click Complete Connection
GitLab connections use OAuth tokens stored encrypted. Tokens are refreshed automatically.
Azure DevOpsâ
- Click Connect Organization and select Azure DevOps
- You'll be redirected to Microsoft's OAuth consent page
- Authorize The One Code to access your Azure DevOps organization
- After redirect, select which organization to connect
- Click Complete Connection
Verifying the Connectionâ
After connecting, go to Organizations to see your connected orgs. Each org card shows:
- Repo count â total active repositories
- Backup errors â repositories with failed backups (should be 0)
- Last sync â when The One Code last checked for new/removed repos
- Status badge â Active, Disconnected, or Error
Click on an organization to drill into individual repositories.
Configuring Backup Settingsâ
From the organization detail page, click Settings (or Edit) to configure:
Backup Schedule
hourlyâ Backup runs every hour. Best for active development environments or compliance-sensitive clients.dailyâ Backup runs once per day at a scheduled time. Recommended default.weeklyâ Backup runs once per week. Suitable for archived or low-change repositories.
Retention Period The number of days to keep backup snapshots before they expire. Default is 90 days. Increase for compliance requirements (SOC 2 commonly needs 1 year).
You can also configure per-repository settings by clicking into an individual repo and selecting Settings:
- Override the backup schedule for just that repo
- Set a data classification (public, internal, confidential, restricted)
- Add an owner name and business purpose description
- Enable on-push backups in addition to scheduled backups
Triggering Your First Analysisâ
Repository backup happens automatically. AI analysis and documentation generation do not run automatically on first connect â you initiate them after backup completes:
- Go to Portfolio and find a repository with status Backed Up
- Click into the repository detail page
- Click Generate Documentation to start the AI documentation pipeline
- Click Analyze Tech Debt to start the debt scoring pipeline
- Click Scan for Secrets to trigger the secret scan
Each pipeline runs in the background. Documentation generation typically takes 2â5 minutes per repository. Progress is visible on the repository detail page.
Next Stepsâ
- GitHub Integration â Deep dive on the GitHub App, webhooks, and multi-org management
- AI Documentation â Understanding generated docs, handoff packages, and sharing
- Security Scanning â Secret detection and access audits in detail
- Application Portfolio â Portfolio view, health scores, and filtering
- Reports â Generating and scheduling QBR-style client reports