Code Repository

Git source control for humans and agents alike

Git repositories with the throughput, governance, and checks to handle every contributor, human or agent.

4xFaster delivery frequency
1,500+Concurrent PRs, diffs touching 1,000+ files
50GBFree repo storage, including Git LFS
Why teams switch

Legacy SCM → Agent-Ready SCM

The top reasons agent-heavy teams choose Harness Code Repository.

Scale & Governance

Legacy SCMs cap repo size and buckle under concurrent load.

Scale-tested for 1000s of concurrent PRs, agent-scoped RBAC on every repo, 99.99% uptime.

AI Code Reviewer

Reviews miss the incident history and system context behind the diff.

AI Code Review connects to your delivery history and knowledge graph to cite the right context.

Developer Tooling

Legacy SCMs offer no native tooling for agents.

Works with Cursor, Claude, Devin, and other coding agents, plus a native Harness CLI.

Every commit, human or agent, gets the same path to production

Pull requests land continuously, each one picked up by AI Code Review and carried through CI before it merges.

Scale-tested

From commit to production at scale

A Git-based home for source code, wired into pipelines that move every commit into build, test, and release. The Harness Software Delivery Agent takes what's committed here to being production-ready.

Git repository hosting. Full Git support, with one-click migration and mirroring.

Native pipeline triggers. Trigger CI/CD pipelines automatically on push, PR, or branch update.

Built for scale. Scale-tested to handle 1,500+ concurrent PRs, diffs touching 1,000+ files, and TBs of clone and fetch traffic a day — no rate limiting, no bandwidth throttling.

Generous storage. 50 GB per account on Free, 500 GB per account on paid plans, covering both Git and Git LFS.

Learn more about pipeline triggers
Governance & permissions

Governance for humans and agents

Branch rules, ownership, and access controls apply equally to human and agent contributors.

Branch, tag, and push rules. Protect branches, restrict tags, block force pushes, and require a rebase by blocking merges when the target commit isn't an ancestor.

CODEOWNERS. Auto-assign and require approval from the right owners.

RBAC and OPA policies. Unified RBAC plus OPA policies that scope exactly what an agent identity can access, merge, or deploy.

Secret & vulnerability scanning. Blocks pushes containing hardcoded secrets and flags known open-source vulnerabilities before they reach your repo.

Learn more about branch rules
Built-in Code Review

Agent-ready review, built into every commit

Git workflows built for agent contributors, gated by AI Code Review on every pull request.

Works with AI Code Review. Pairs with AI Code Review to gate every pull request.

Auto-generated PR summaries. Harness AI drafts PR descriptions straight from your commits.

Learn more about AI Code Review
Developer Tooling

Agent-ready tooling, from your terminal

Structured, self-describing commands keep token cost low and let agents drive the CLI on their own.

Structured commands. Search PRs by author email or pull every open PR into one cross-repository inbox, straight from the terminal.

Lower token cost per call. Each command returns only the fields that operation needs, not the full page or object graph a browser flow or generic API call would return.

Discoverable and self-describing. Agents can find the right operation and drive it on their own, without a human mapping out the workflow first.

Harness MCP. Access Code Repository directly from coding agents like Cursor, Claude, and Devin through the Harness MCP server.

Learn more about Harness CLI
Customer story

Trusted by regulated engineering teams

4x

Delivery frequency

2x

Cognitive load reduction

All our code is very close to the rest of the tools in our SDLC. This gives the best and most secure experience for my developers.

Gonzalo Garcia Campos, Architect, Platform Engineering, Gentera

Read more
Seamless migration

Ready to migrate?

Import repositories with one click, or use the open-source harness-migrate CLI for full history.

One-click UI import. Import Git data directly from GitHub, GitLab, Bitbucket, Bitbucket Server, Azure DevOps, Gitea, or Gogs.

Full metadata migration. The harness-migrate CLI brings over pull requests, labels, webhooks, and branch rules along with your Git history.

Run it anywhere. Run harness-migrate from your laptop, your self-hosted SCM server, or directly inside a CI/CD pipeline.

Open source. harness-migrate is open source, so your team can see exactly what it does before you run it.

Learn more about migrating repositories
FAQs

Frequently asked questions

Harness Code Repository is a Git-based source control service in the Harness platform. Teams can host code, manage pull requests, and connect repositories directly to CI/CD pipelines, with governance and permissions built for human and agent contributors alike.

Yes. Repositories can trigger Harness CI and CD workflows, enforce review and branch controls, and preserve source-to-build traceability across delivery pipelines.

It can be used as the native SCM inside Harness when teams want source control bundled with their delivery platform. Teams can also keep using external repositories where that is the right fit.

AI Code Review is a separate capability, not a built-in feature of Code Repository. It works with Code Repository to evaluate pull requests against risk, group diffs by what they actually change, and gate merges with customizable AI Checks. Learn more about AI Code Review.

Get started with Harness Code Repository

Start with Harness Code Repository for Git source control with governance and permissions built for human and agent contributors alike.