[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109676":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},109676,"aspen","reason-machines\u002Faspen","reason-machines","A self-hostable Git server for agent-scale traffic: packs in object storage, per-branch history in Postgres. Pre-alpha.","https:\u002F\u002Fplace.reasonmachines.com",null,"Rust",137,10,55,0,3,60,50.62,"Apache License 2.0",false,"main",[23,24,25,26,27,28],"agents","git","git-server","object-storage","postgres","rust","2026-11-18 21:41:41","2026-11-20 11:06:19","# Aspen\n\n![Aspen: Git for a thousand agents at once.](docs\u002Fassets\u002Faspen-banner.png)\n\nAspen is a Git server you run yourself, built for repositories that hundreds\nof agents, CI jobs and people push to and fetch from at the same time. It\nspeaks plain Git over HTTP and SSH, so stock `git` works with no client\nchanges. It stores packs in object storage, keeps branch history in\nPostgreSQL, and runs on one machine or on any cloud.\n\n> **Status: pre-alpha.** Aspen works end to end, but it has not passed its\n> own launch gate, there are no published releases, and storage formats may\n> still change. Do not put data you cannot afford to lose in it yet. See\n> [Pre-alpha status](#pre-alpha-status) for exactly what is and is not\n> verified.\n\n**Live demo:** \u003Chttps:\u002F\u002Fplace.reasonmachines.com>, a shared pixel canvas\nwhere every brush stroke is a `git push`\n([mirror on GitHub](https:\u002F\u002Fgithub.com\u002Freason-machines\u002Fplace-canvas)):\n\n```bash\ngit clone https:\u002F\u002Fplace.reasonmachines.com\u002Fcanvas.git\n```\n\nAspen's design follows OpenAI's\n\"[Scaling Git at OpenAI](https:\u002F\u002Fopenai.com\u002Findex\u002Fscaling-git-at-openai\u002F)\",\nwhich describes their internal Git service, Pando, and takes further\ninspiration from Cursor's\n\"[Git at any scale](https:\u002F\u002Fcursor.com\u002Fblog\u002Fgit-at-any-scale)\",\nwhich describes the storage behind their Git server, Origin. Aspen is an\nindependent implementation, not affiliated with OpenAI or Cursor;\n[Where the design comes from](#where-the-design-comes-from) says which idea\ncame from which. The launch post,\n\"[Aspen: scaling agentic commits beyond what Git was built for](https:\u002F\u002Freasonmachines.com\u002Fblog\u002Faspen)\",\nwalks through the design with interactive diagrams.\n\n## Why\n\nA classic Git server keeps each repository as a directory on one disk. Every\npush takes a lock on the repository, and every fetch makes the server build a\nnew pack for that client. With a thousand agents pushing to their own\nbranches and CI fetching after every push, the server spends its time on\nlocks and on compressing the same objects again and again.\n\nA Git server has to scale two ways: many writers pushing to different\nbranches, and many readers fetching the same history. Following Pando, Aspen\ngives up two guarantees most Git servers treat as fixed:\n\n- **One snapshot of every branch.** Each branch is a chain of versions in the\n  database and moves on its own, with one compare-and-swap on that branch's\n  tip: \"move this branch from commit A to commit B, but only if it still\n  points at A\". Pushes to different branches never wait for each other. Two\n  pushes to the same branch race on that row; one wins and the other gets\n  Git's usual \"fetch first\". The cost: a reader looking at several branches\n  may see each one at a slightly different moment.\n- **A custom pack for every client.** Aspen never unpacks a push. It checks\n  the pack, adds the objects Git left out because the server already had\n  them, and stores it in object storage as one self-contained pack. A fetch\n  streams the stored packs the client is missing, recompressing nothing, or\n  hands out URLs so the client downloads them from the bucket, a pack cache\n  or a CDN.\n\nTwo more choices keep this fast as a repository grows:\n\n- **A push sees only the trunk branch**, so what a client reads before it\n  pushes stays the same size however many branches exist, and anyone who\n  has trunk can fetch the branch with the one pack the push sent.\n- **Small packs are merged in the background** in levels, like an LSM tree,\n  so a client thousands of pushes behind gets a few dozen packs, not\n  thousands.\n\n## Where the design comes from\n\nAspen takes its inspiration from two published write-ups, and does some\nthings its own way.\n\n**OpenAI, \"[Scaling Git at OpenAI](https:\u002F\u002Fopenai.com\u002Findex\u002Fscaling-git-at-openai\u002F)\"** (Aaron Friel, Taylor Blau\nand Ted Nyman, November 2026) describes Pando, OpenAI's Git backend. Aspen\nis an independent implementation of that design and shares no code with it.\nFrom Pando:\n\n- Per-branch (causal) consistency: each push records a ref version (the new\n  tip, the pack that brought it, and the versions it depends on) in a\n  metadata store, and the only contended write is a compare-and-swap on the\n  branch's pointer.\n- Pushed packs are kept as immutable blobs and reused to answer later\n  fetches, instead of building a pack for each client.\n- A push is advertised only the trunk branch.\n- A push's metadata write is split into a synchronous part, so the new\n  commit can be fetched at once, and asynchronous work recorded in the same\n  transaction, so the database work per push stays bounded however large\n  the push is.\n- Fetch planning maps a client's haves and wants to ref versions and selects\n  stored packs, which can be delivered as `packfile-uri` links through a\n  regional pack cache. Pando calls its cache Express; Aspen's is\n  `aspen-express`.\n- Compaction in geometric levels, like a log-structured merge tree, with the\n  levels doubling as a skip list over versions, so planning a fetch takes\n  logarithmic time in how far behind the client is.\n- Running as a read- and write-through proxy in front of an existing Git\n  host while traffic moves over (Aspen's mirror mode), and checking behaviour\n  against stock Git (Aspen's differential suite).\n\n**Cursor, \"[Git at any scale](https:\u002F\u002Fcursor.com\u002Fblog\u002Fgit-at-any-scale)\"** (Vicent Martí, August 2026)\ndescribes Continuity, the storage behind Cursor's Git server, Origin. From\nCursor:\n\n- The bar a push is measured against: acknowledged only once it is durable\n  in object storage, and counted in pushes a second to one repository. Aspen\n  holds its own throughput to Origin's published numbers\n  ([How fast](#how-fast)).\n- Batch the write that publishes pushes, not the pushes' data. Continuity\n  stores each push as its own object and batches the update that publishes\n  them; Aspen's group commit (`ASPEN_GROUP_COMMIT`, off by default) likewise\n  keeps one pack per push and batches the database transactions that\n  publish concurrent pushes.\n\n**Where Aspen differs:**\n\n- **No repository-wide log.** Continuity orders every push to a repository\n  through one write-ahead log in S3, which gives a consistent view of every\n  ref. Aspen, like Pando, orders only pushes to the same branch, so no\n  single log's compare-and-swap latency caps a repository's push rate, and\n  there is no single snapshot of all branches.\n- **No Git repository on disk.** Continuity keeps a normal Git repository on\n  local NVMe as a cache and avoids a relational database. Aspen keeps no\n  repository on disk: packs live in object storage and metadata in\n  PostgreSQL (or SQLite on one machine), so any server can answer any\n  request.\n- **Stitched packs for stock clients.** Pando's post describes sending\n  `packfile-uri` links only, with an empty inline pack. Aspen sends links to\n  clients that opt in (`fetch.uriprotocols`) and streams everyone else the\n  planned packs joined into one pack, so an unconfigured `git` is served\n  without the server building a pack.\n- **Self-contained packs.** A thin pushed pack is completed with its missing\n  bases before it is stored, so every stored pack can be served on its own.\n- **Force pushes and deletes take `-o force`**, a lease or the\n  branch-scoped URL. OpenAI's Git fork adds an `explicit-haves` extension\n  so plain `--force-with-lease` works; Aspen targets stock clients and does\n  not implement it.\n- **Exact shallow packs.** CI fetches with `--depth=1`, so a `--depth=N`\n  fetch of a branch tip is served a shallow pack built once per version and\n  depth and stored like any other pack.\n- **A server-side merge queue** (`ASPEN_MERGE_QUEUE`, off by default) lands\n  many changes, each its own commit, in one update of trunk.\n- **One process for development:** `aspen dev` runs the whole server with\n  SQLite and a local directory.\n\n## How fast\n\nThese numbers are from the [launch post](https:\u002F\u002Freasonmachines.com\u002Fblog\u002Faspen). On one 8-core server with\nS3 Standard and a 4-core PostgreSQL, pushing to a copy of git.git (about\n4,500 files and 75,000 commits) through Aspen's branch-scoped URL, Aspen\nsustained 567 pushes a second for five minutes with no errors. Every push was\nin S3 and PostgreSQL before Git printed `ok`. The median push took 208 ms and\nthe 99th percentile 314 ms, and another client saw each push 30 ms after it\nwas acknowledged, at the median.\n\n| Pushes a second to one repository, each durable before it is acknowledged | Rate |\n|---|---|\n| Cursor Origin, S3 Standard (as published) | 120 |\n| Cursor Origin, S3 Express One Zone (as published) | more than 300 |\n| Aspen, S3 Standard (one 8-core server, git.git, branch-scoped URL) | 567 |\n\nThe setups differ: Cursor's numbers come from a replicated cluster serving\nits own monorepo, whose size its post does not give. OpenAI did not publish\na push rate for Pando; it reports median push latency down by nearly 80%\nagainst its previous system and nearly a petabyte of Git data served a day.\n\nWhat the number does not cover:\n\n- Each push still costs more as a repository grows, so very large monorepos\n  see lower rates today.\n- Landing on trunk is a different number. Each landing builds on the one\n  before it, so separate landings run one at a time: about 4 a second,\n  limited by round trips rather than load. The merge queue lands many\n  changes in one trunk update; its rate has not been measured yet.\n- None of these numbers include CI.\n- The raw results of this run are not in this repository. The benchmarks you\n  can reproduce from it are in [site\u002Fsrc\u002Fbenchmarks.md](site\u002Fsrc\u002Fbenchmarks.md)\n  and [bench\u002Fcampaign](bench\u002Fcampaign\u002FREADME.md).\n\n## How it works\n\n![How a push and a fetch flow through Aspen](docs\u002Fassets\u002Farchitecture.png)\n\nA push is verified, completed into a self-contained pack and uploaded to\nobject storage; then one compare-and-swap moves that branch's tip in the\nmetadata store. A fetch asks the metadata store which stored packs cover what\nthe client wants, and the stitcher streams them as one pack or hands out\npackfile URIs for a CDN. Compaction merges small packs in the background.\n\nIt runs with one binary, PostgreSQL and any S3-compatible bucket, or with\nSQLite and a local directory on one machine. Mirror mode puts Aspen in front\nof GitHub or GitLab, so you can try it without migrating.\n\n## Quickstart (5 minutes once built)\n\nThere are no published binaries yet, so you build from source. You need\n`git`, a Rust toolchain from [rustup](https:\u002F\u002Frustup.rs) (the version is\npinned in `rust-toolchain.toml` and installed on first use) and a C compiler\n(`build-essential` on Debian and Ubuntu, the Xcode command line tools on\nmacOS). The build is the slow part and can take over ten minutes on a\nsmall machine.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Freason-machines\u002Faspen\ncd aspen\ncargo install --locked --path crates\u002Faspen-cli\naspen --version\n```\n\nStart a development server in an empty directory. `aspen dev` runs the whole\nserver in one process with SQLite and a local pack directory under `.\u002F.aspen`,\ncreates a repository named `demo`, and listens on `127.0.0.1:7070` only,\nbecause anyone who can reach it may push.\n\n```bash\nmkdir aspen-try && cd aspen-try\naspen dev\n```\n\nIn a second terminal, push, clone back, push a branch and make a shallow\nclone:\n\n```bash\ngit init -b main hello && cd hello\necho \"hello, aspen\" > README.md\ngit add README.md && git commit -m \"first commit\"\ngit push http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git main\ncd ..\ngit clone http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git copy\ngit -C copy fsck --strict\ncd hello\ngit switch -c feature\necho \"more\" >> README.md && git commit -am \"on a branch\"\ngit push http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git feature\ngit ls-remote http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git\ncd ..\ngit clone --depth=1 http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git shallow\n```\n\nWhat you should see, with your own commit IDs in place of `\u003Ccommit>`\n(output from git 2.39):\n\n```text\nTo http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git\n * [new branch]      main -> main\nCloning into 'copy'...\nTo http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git\n * [new branch]      feature -> feature\n\u003Ccommit>\tHEAD\n\u003Ccommit>\trefs\u002Fheads\u002Ffeature\n\u003Ccommit>\trefs\u002Fheads\u002Fmain\nCloning into 'shallow'...\n```\n\nStop the server with Ctrl-C; it finishes requests in flight first.\n\nOne thing behaves differently from other Git servers: because a push only\nsees trunk, a force push needs `git push --force -o force` and a branch\ndelete needs `-o force` (or the branch-scoped URL). To delete the `feature`\nbranch from the quickstart:\n\n```bash\ngit push -o force http:\u002F\u002F127.0.0.1:7070\u002Fdemo.git --delete refs\u002Fheads\u002Ffeature\n```\n\n[Using Git with Aspen](site\u002Fsrc\u002Fusing-git.md) explains why.\n\nIf you push the same branch again and again (an agent pushing after every\nchange, say), turn on `push.negotiate` in the clones that push:\n\n```bash\ngit config --global push.negotiate true\n```\n\nBecause a push only sees trunk, Git otherwise assumes the server lacks\nevery commit of your branch that is not on trunk, and resends all of them\non every push: the 40th push of a 40-commit branch sends 40 commits. With\n`push.negotiate`, `git push` first asks Aspen which of your commits it\nalready has, then sends only the new ones, so each push costs the same\nhowever long the branch gets. In Aspen's tests the 40th push sent about\n500 bytes instead of 15 KB, at the price of one extra request per push.\nIt needs protocol version 2 (Git's default since 2.26) and was tested with\nGit 2.39. Aspen never stores a resent commit twice either way; the setting\nsaves the upload and the server's work reading it.\n\nNext steps: [require tokens with `aspen serve`](site\u002Fsrc\u002Fgetting-started.md#2-require-tokens),\nrun the [single-host stack](site\u002Fsrc\u002Fgetting-started.md) with PostgreSQL and\nMinIO (`docker compose up`), or deploy with the Helm chart or Terraform for\nAWS, Google Cloud, Azure or Hetzner ([deploy\u002FREADME.md](deploy\u002FREADME.md)).\n\n## Pre-alpha status\n\nBefore calling Aspen ready, the project set itself a launch gate\n([docs\u002FPLAN.md section 7](docs\u002FPLAN.md#7-launch-gate-all-true-before-the-demo-is-public)).\nAspen is being published before that gate is met. Here is where each item\nstands:\n\n| Launch-gate item | Status |\n|---|---|\n| 24-hour chaos run with no lost acknowledged push | **Not done.** The run was stopped after 11.59 clean hours of mixed load in three segments (longest 8.01 hours), with no violations, all on a build from before the storage fix in #231. A continuous 24-hour run did not fit the test host's disk (#225, open, has the per-segment results). Required CI runs a short chaos smoke on every change. |\n| Fuzzers ran 24 hours clean | **Not done.** The 13 fuzz targets run for 180 seconds each every night ([fuzz\u002FREADME.md](fuzz\u002FREADME.md)). |\n| Benchmarks reproduced from scratch by a teammate following the docs | **Not done.** The [How fast](#how-fast) numbers come from one run on one 8-core server, and the reproducible campaign ([bench\u002Fcampaign](bench\u002Fcampaign\u002FREADME.md)) from one 4-vCPU machine running server and clients together; treat both as indicative, not as performance claims. |\n| `docker compose up` and AWS Terraform verified from a clean account using only the docs | **Not done.** The Terraform modules pass validation and mocked-provider tests in CI, and the compose stack is smoke-tested nightly, but nobody has followed the docs end to end in a fresh account. |\n| Differential suite: 0 divergences over 1 million random operations | **Not done at that scale.** Required CI runs the suite against Aspen on every change and the nightly job runs thousands of operations; no divergences are known. |\n| Interop client matrix all green | **Not signed off.** The matrix (git 2.30 to latest, JGit, libgit2, go-git, gitoxide) runs nightly against Aspen. |\n| Public endpoint security review done; quotas and kill switch tested | **Review done** ([docs\u002FSECURITY.md](docs\u002FSECURITY.md)); quotas and the kill switch have not been tested on the deployed demo yet. One review finding is still open and must be fixed before the demo is public: bounding concurrent fetches, pushes and stitch work per caller and per instance (#118, being fixed). |\n| Budget alarm live | **Pending** with the demo deployment. |\n| Depth-1 fetch storm at most 1.2× stock `git upload-pack` bytes | **Measured:** 1.029× on git.git, 1.000× on a small synthetic repository ([site\u002Fsrc\u002Fbenchmarks.md](site\u002Fsrc\u002Fbenchmarks.md)). |\n\n### Known limits\n\n- No partial clones: `--filter` is not advertised, so `git clone --filter=...`\n  falls back to a full clone.\n- Shallow fetches other than `--depth=N` (N up to 64) of a branch tip are\n  served the full history of what they ask for, with a correct shallow\n  boundary.\n- No SHA-256 repositories, no web UI, no code review or issues (keep those on\n  GitHub or GitLab with mirror mode).\n- `git fetch` does not follow new annotated tags on its own; `git fetch\n  --tags` and `git clone` do.\n- Force pushes and branch deletes need `-o force`, a lease or the\n  branch-scoped URL (see above).\n- SSH accepts Ed25519 and ECDSA keys only.\n- Rate limits are per instance, in memory; there are no per-repository\n  storage quotas.\n- Object storage: S3 and S3-compatible stores and the local file system.\n  Google Cloud Storage works through its S3 API with an HMAC key; Azure\n  Blob Storage is not supported yet.\n- Mirror mode: HTTP(S) upstreams only (no SSH; credentials only over HTTPS\n  or to loopback), no Git LFS.\n- Storage overhead from compaction and multi-ref pushes has not been measured\n  on a large repository.\n\nThe full list, with the reason behind each, is\n[site\u002Fsrc\u002Flimitations.md](site\u002Fsrc\u002Flimitations.md).\n\n## Documentation\n\n- [site\u002Fsrc](site\u002Fsrc): getting started, using Git with Aspen, self-hosting,\n  configuration, architecture, operations and limitations. Build it as a\n  site with `site\u002Finstall-mdbook.sh && python3 site\u002Fbuild.py`.\n- [deploy\u002FREADME.md](deploy\u002FREADME.md): the container image, Compose, Helm,\n  Terraform and releases.\n- [docs\u002FPLAN.md](docs\u002FPLAN.md): the design, the execution plan, its progress\n  and a log of every design decision and why it was made. Aspen was built by\n  a coding agent coordinating one agent session per piece of the plan, with\n  every change reviewed and merged as a pull request; the plan is its record.\n- [docs\u002FSECURITY.md](docs\u002FSECURITY.md): the threat model and security review.\n\n## Repository layout\n\n| Path | What |\n|---|---|\n| `crates\u002Faspen-core` | Contracts every crate builds on: IDs, names, the commit check, store, pack and planner traits, errors |\n| `crates\u002Faspen-proto` | Git wire protocol: pkt-line, receive-pack, upload-pack v0 and v2 |\n| `crates\u002Faspen-pack` | Streaming pack ingest and indexing, thin-pack completion, the pack stitcher |\n| `crates\u002Faspen-meta` | The metadata store on PostgreSQL and SQLite, and its migrations |\n| `crates\u002Faspen-blob` | Object storage: S3-compatible stores and the local file system |\n| `crates\u002Faspen-planner` | Fetch planning: which stored packs a fetch needs |\n| `crates\u002Faspen-compact` | Background compaction and commit indexing |\n| `crates\u002Faspen-express` | A regional pack cache for packfile URIs |\n| `crates\u002Faspen-mirror` | Mirror mode for GitHub and GitLab |\n| `crates\u002Faspen-auth` | Tokens, OIDC, SSH keys, access policy, rate limits |\n| `crates\u002Faspen-server` | The HTTP and SSH server |\n| `crates\u002Faspen-cli` | The `aspen` binary |\n| `testkit`, `tests` | Differential oracle against stock Git, interop, chaos suite |\n| `fuzz`, `bench` | Fuzz targets; the `aspen-bench` load generator and baselines |\n| `deploy` | Image, Compose, Helm, Terraform, release tooling, dashboards |\n| `demo\u002Fplace` | The `place` demo: web front end and its server |\n| `site` | The documentation site (mdBook) |\n\n## Contributing and security\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for building, testing and sending\nchanges. Please report vulnerabilities privately as described in\n[SECURITY.md](SECURITY.md), not in public issues.\n\n## License\n\nApache License 2.0; see [LICENSE](LICENSE) and [NOTICE](NOTICE).\n","Aspen 是一个可自托管的高性能 Git 服务器，专为支持大量 AI 代理、CI 任务和开发者并发读写而设计。其核心采用分层存储架构：Git 对象包存于对象存储（如 S3 兼容服务），分支历史元数据（含提交链、引用更新）由 PostgreSQL 管理，完全兼容标准 Git 协议（HTTP\u002FSSH），无需修改客户端。通过消除全局仓库锁、避免重复 pack 生成、支持分支级乐观并发控制，显著提升高并发场景下的吞吐与一致性。适用于 AI 代理协同开发、大规模 CI\u002FCD 流水线、实时协作式代码编辑等需高频分支操作与海量轻量推送的场景。",2,"2026-11-24 04:37:08","CREATED_QUERY"]