Oak
Version control for agents.
We're building a new collaboration system for a non-human future. Below is why you might use Oak instead of git.
Install the CLI:
curl -fsSL oak.space/install | sh
On Windows, in PowerShell:
irm https://oak.space/install.ps1 | iex
Or download a binary:
| Platform | Download |
|---|---|
| macOS, Apple Silicon | oak-darwin-arm64 |
| macOS, Intel | oak-darwin-x86_64 |
| Linux x86_64 | oak-linux-x86_64 |
| Linux ARM64 | oak-linux-arm64 |
| Windows x86_64 | oak-windows-x86_64.exe |
The install script covers macOS and Linux x86_64. On Linux ARM64, use the
download above. Rename the file to oak (oak.exe on Windows), make it
executable and put it on your PATH. oak upgrade keeps it current.
Quick start
oak clone acme/app # or `oak init` in a new directory
cd app
oak switch -c fix-login # a new branch off the latest main
# ...make changes...
oak commit # checkpoint everything; commits have no message
oak desc "Fix the login redirect" # the branch description becomes the merge message
oak push # publish the branch
oak merge # squash-merge it onto main
oak finish --desc-file desc.md sets the description, checkpoints and pushes
in one step. To teach your agent how Oak differs from git, run
oak skill install.
The docs are in docs/, served at
oak.space/oak/oak/docs and readable with
oak docs. Every command has oak <command> --help.
Philosophy
Imagine what making software will be like in two years. Agents are going to write a lot of perfect code, and we're nearly there already.
If agents can write perfect code, several things change.
Reviews are meaningless. In the old world, reviews were useful for improving code, catching bugs and enforcing conventions. Agents don't make those kinds of mistakes. They already write code better than humans, and having agents review code that other agents wrote is duplicate effort, and slow. Good code doesn't need to be reviewed.
CI is useless. Agents already run tests locally while they make their changes. Running builds and tests in the cloud, separate from development, is expensive and slow compared to leaving that work with the agent already doing the task.
Coordination is hard. With agents rapidly changing huge amounts of code, every agent needs to stay as up to date as possible so it doesn't change, or depend on, stale code.
Security and permissions matter. If you want your agents to be as powerful as possible, they need as much context as possible. That also makes it important to limit that power and put guardrails in place where you can.
We're building Oak to be opinionated for these extremes:
- No review system
- No CI system
- Monorepos are first-class
- Trunk-based development is first-class
No review system. Agents push their work when it's done and merge it in. There are no extra steps between done and merged.
No CI system. Agents test their work locally and merge when it passes.
That cuts the time and cost of every merge. When you want a shared record of
what has passed, marks are named pointers on
main that people and bots move forward.
Monorepos are first-class. Coordinating changes across groups and services becomes linear, which makes keeping agents up to date simpler. Path rules let you control who can see and change each folder, and shallow and sparse clones let an agent start on a big repo without pulling all of it.
Trunk-based development is first-class. Every branch comes off main
and merges back as soon as possible, which reduces the chance of conflicts.
Changes land quickly, and get fixed quickly when needed.
Scale
Oak is aiming to meet the needs of software development two years from now. That means:
- 1M+ open branches
- 1K+ merges a second into one
main - 100M to 1B files per repo
- 1 PB per repo
- 100K+ repos
These are goals, not where Oak is today.
This repository
| Path | What it is |
|---|---|
cli/ | The oak command-line client, published as oakvcs-cli |
core/ | The VCS library the CLI builds on, published as oakvcs-core |
docs/ | The docs, one page per file |
notes/ | Release notes (release-X.Y.Z.md) and design notes |
Build from source with Cargo:
cargo install oakvcs-cli # install the latest release
cargo build --workspace # or build this checkout
Found a bug or want something? oak feedback -m "..." files it from the
terminal.
License
Apache-2.0. See LICENSE.
AI
Much of Oak's code and documentation is written by AI agents, with human oversight. If you see anything that needs fixing or would like to contribute, email zach@oak.space or reach out on Discord.