> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Graft: Open-Source Source Control for Large-Scale Monorepos
- URL: https://www.stirup.si/graft-open-source-source-control-for-large-scale-monorepos-e953c678/
- Published: 2026-10-14T10:46:46.000Z
- Updated: 2026-10-14T10:46:46.000Z
- Description: Graft is an open-source source control system designed for managing agent-scale monorepos, featuring efficient data retrieval, access control, and compatibility with existing workflows.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Graft's Design and Features

Graft is an open-source source control system designed for managing agent-scale monorepos, as described in [Anthropic](https://www.anthropic.com/?ref=stirup.si)'s "Redesigning source control at Anthropic". It introduces a "want-only" fetch mechanism through identical tiers, including a node daemon, regional cache, and server, ensuring efficient data retrieval. The `gft mount` command provides a writable virtual checkout that fetches files on first read, commits only modified content, and allows instant switching between revisions. Graft also supports repository and directory-level access control, along with review gates that distinguish comment-only, whitespace, and documentation changes from logic changes. According to [Anthropic](https://www.anthropic.com/?ref=stirup.si), synthetic testing on a monorepo with 100,000 files and 20,001 commits of small agent changes demonstrated its performance capabilities.

## Performance and Efficiency

Graft demonstrates strong performance and efficiency in managing large-scale monorepos. According to [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si), graft stores objects using write-time deltas and trained dictionaries, eliminating the need for repacking. This approach contributes to its compact storage footprint. [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si) highlights that graft uses SHA-256 IDs, enabling direct comparisons with git's SHA-256 columns. In synthetic monorepo and real-world repository benchmarks, graft consistently shows smaller storage sizes than git's repack and aggressive garbage collection configurations, as noted in [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si) and [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si). After running `gft compact`, graft is smaller than every git configuration across three tested repositories. [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si) confirms graft's correctness through extensive checks, including matching git diffs, blame outputs, and commit histories, ensuring reliability in real-world use cases.

## Integration and Compatibility

Graft integrates with existing workflows through standard command-line tools and supports sparse checkouts for efficient development. It uses Go 1.26+ for building and running, and its tiered architecture includes server, cache, and daemon components that can be configured independently. For high availability, Graft employs Raft consensus for shard replicas, ensuring continuity even if the leader node fails. The system scales horizontally by distributing workloads across multiple VMs, with performance benchmarks measured on Google Cloud using e2-standard-4 instances. Read throughput increases from 20,200 to 38,500 reads/s when scaling from one to a fleet of servers, while land operations show a 1.4x improvement across multiple refs. Access control is managed via policies, which define token-based permissions and directory-level read/write rules, ensuring secure collaboration. These policies are enforced on every path-based query, providing granular control over repository access.

## Open Source and Community

Graft is an open-source source control system designed for managing agent-scale monorepos, emphasizing collaboration and transparency within the developer community. By leveraging open-source principles, Graft enables teams to contribute, review, and maintain code across large-scale projects with greater efficiency. The platform supports native SDKs, allowing developers to integrate OpenTelemetry LLM tracing with a simple `openlit.init()` command. Additionally, Graft includes features like GPU monitoring for LLM inference, providing insights into utilization, memory, temperature, and power consumption. With 56+ integrations, Graft supports a wide range of LLMs, agent frameworks, and vector databases, making it a flexible tool for modern AI development. The project is actively maintained by the community, ensuring continuous improvements and robust security practices.

## Self-Hosting and Scalability

Graft is designed with self-hosting and scalability in mind, offering teams the flexibility to deploy it using Docker Compose or Kubernetes (Helm) without restrictive licensing. The platform is Apache 2.0 licensed, allowing unlimited self-hosted usage, and encourages contributions through its active open-source community. It supports OpenTelemetry-native traces and metrics, enabling seamless integration with tools like Grafana and Datadog, as well as custom OTLP backends. Teams can bring their own OpenTelemetry instrumentation, ensuring full control over their data and APIs. Built for scale, Graft leverages ClickHouse-backed storage to handle high-volume telemetry from LLMs, agent frameworks, and vector databases. The project is actively maintained, with contributions welcomed on GitHub, and provides guidance through resources like *llms.txt* to help teams determine when Graft is the appropriate tool for their needs.

## Sources and reporting notes

- [Hacker News Show](https://github.com/VishiATChoudhary/graft?ref=stirup.si)
- [frizky.dev](https://frizky.dev/products/sonder?ref=stirup.si)
- [openlit.io](https://openlit.io/?ref=stirup.si)
- [langfuse.com](https://langfuse.com/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.