Code Repository
Git repositories with the throughput, governance, and checks to handle every contributor, human or agent.
The top reasons agent-heavy teams choose Harness Code Repository.
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.
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.
Legacy SCMs offer no native tooling for agents.
Works with Cursor, Claude, Devin, and other coding agents, plus a native Harness CLI.
Pull requests land continuously, each one picked up by AI Code Review and carried through CI before it merges.
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.
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.
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.
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.
Delivery frequency
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
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.
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.
Start with Harness Code Repository for Git source control with governance and permissions built for human and agent contributors alike.