When tens to hundreds of sessions (agents, orchestrators, or developers) commit, check out, merge, or move worktrees at once, stock Git's revision contention becomes the bottleneck. arks keeps the same .git directory on disk and a symmetric CLI, so you can adopt via alias git=arks (or arks shim install) while keeping stock Git fully interoperable.
Compatibility with documented Git formats and commands comes first. Clean-room timings exist as evidence (Performance); this README does not market a blanket "faster than Git" slogan.
Runtime vs verification: End users run the single native
arksbinary. Docker clean-room compose is for maintainer verification of compatibility and timing claims, not the end-user install path.Honesty: Every verified claim below links to a clean-room receipt. Unimplemented or out-of-scope surfaces fail closed and are documented in Completeness and Limits.
Quick Install & Quick Start
Install the single arks binary (Linux, macOS, or Windows):
# Linux / macOS (verifies SHA256SUMS automatically)
|
# Windows (PowerShell; verifies SHA256SUMS automatically)
irm https://raw.githubusercontent.com/modootoday/arks/main/scripts/install.ps1 | iex
Or install from Homebrew, Scoop, Nix, container registry, or any of the four live language registries:
&&
Prebuilt release archives (SHA256SUMS, CycloneDX 1.5 SBOMs, Homebrew/Scoop/AUR packaging recipes, and GitHub build provenance attestations) ship on GitHub Releases (8 universal targets: Linux x86_64/arm64 glibc & static musl, macOS arm64/x86_64, Windows x86_64/arm64). Or build from source (Rust edition 2024, MSRV 1.89+):
Run everyday Git commands directly on a standard .git repository:
Adopt as a drop-in replacement with shell aliases or PATH shims:
# optional forge-client peer
# Or install non-interactive PATH shims:
More onboarding steps and remote migration (arks migrate --from-url): Quickstart & Migration and Getting started.
Architecture
One binary (arks) groups four v1.x GA capabilities under the arks family — Arks Core (Git-symmetric CLI + scoped leases + shared-index on standard .git), Arks Hub (flat gh-parity forge client), Arks Serve (single-process self-hosted forge), and Arks Daemon (git:// daemon parity). Product paths never spawn git or gh.
flowchart LR
U[Developer / Agent Session] --> B["Single binary: arks"]
B -->|Arks Core · git personality| P1["Arks Core<br/>add, commit, merge, rebase, leases..."]
B -->|Arks Hub · gh personality| P2["Arks Hub<br/>pr, issue, auth, release, actions..."]
B -->|Arks Serve| P3["Arks Serve<br/>HTTP + SSH + REST API + Web UI"]
B -->|Arks Daemon| P4["Arks Daemon<br/>git:// protocol server (git-daemon parity)"]
P1 --> G[("Standard .git on disk<br/>+ leases / ref-shard / shared-index")]
P3 --> G
P4 --> G
G <-->|100% interoperable| SG["Stock Git"]
Why arks
| Challenge | How arks responds |
|---|---|
| Multi-agent / multi-session orchestration contends on one repository | Arks Core native Rust engine with scoped leases, batch-apply, worktree/ref-shard, and shared-index N-way support |
| Switching VCS tools breaks muscle memory and CI scripts | Git-symmetric CLI (git / gh / arks personalities) adoptable via alias or PATH shim |
| Proprietary object stores break existing Git tooling | Standard filesystem .git object store; inspect or interop with stock git anytime |
| Self-hosting requires stitching together separate services | Single-process Arks Serve (arks serve) with Smart HTTP, SSH, TLS, REST API, and embedded SSR Web UI |
arks is not an agent framework. It is the revision layer that multi-session environments share. Optional arks agent … is an explicit extension on the same binary, not the core product story.
Verified Surface Summary
| Surface | Role | Clean-Room Verification Status |
|---|---|---|
Arks Core (git / arks personalities) |
Native Git engine, scoped leases, shared-index & argv symmetry | 185/185 CLI commands Verified (0 Partial); 1,852/1,852 Git 2.39.5 options accepted; 1:1 stock-Git oracle PASS; 19/19 journeys faster (0.17x–0.73x); 22/24 v1.3.0 10k-scale workloads ≤ 1.00x (0.697x geomean; scale report) |
Arks Serve (arks serve) |
Single-process Git HTTP + SSH + TLS + Forge API | Smart HTTP, in-process SSH & TLS, SIGHUP/mtime zero-downtime reload, ForgeStore RwLock cache, TCP_NODELAY, pre-spawn 503 cap, bounded Keep-Alive (fd_delta=0), gzip 413 cap, and TLS+SSH+LFS soak verified (soak · SSH · TLS) |
| Embedded Forge Web UI & Security | Multi-repo SSR Web UI, REST APIs, RBAC, 2FA, LFS | 0 OSV/RustSec CVEs, atomic ForgeStoreTx across 68 write paths, 32-thread contention & unique atomic temps, 0 production .unwrap(), PBKDF2/CSRF/RBAC/2FA, OAuth Device Flow, private 401, archived 403, SSRF-guarded webhooks (CVE-zero · atomic store) |
Arks Daemon (arks daemon) |
git:// peer (git-daemon symmetry) |
37/37 Parity + 2 arks-only, Missing=0 against stock git 2.39.5 in Docker (Windows CI-tested); byte-identical ustar archive and POSIX syslog verified |
Arks Hub (arks pr / issue / auth …) |
Flat gh-peer forge client (never spawns gh) |
171/171 v1 rows verified, Missing=0, Deferred=0 (Docker re-receipt + 6/12-agent concurrent local-forge receipt); HTTPS remote client verified; out-of-scope groups fail closed with exit 2 |
Optional Agent (arks agent …) |
Review & verification extension | Docker OpenAI-compatible fixture E2E verified; plain-HTTP smokes are diagnostics; HTTPS TLS client + live vendor smoke (host-advisory) |
Arks Serve quick start
# HTTP git wire only (opt out of SSH and forge modules):
# Full self-hosted forge (HTTP + SSH + embedded Forge API & Web UI):
Prefer normative ports 22 / 80 / 443 / 9418 in production; 2222 / 8080 are demo/alternate defaults. See Arks Serve and Ports.
Common Workflows
| Goal | Command |
|---|---|
| Verify / repair environment | arks doctor, arks doctor --fix, arks shim install |
| Migrate a remote repository | arks migrate --from-url <url> |
| Arks Core: stage, commit, inspect | arks add, arks commit -m "…", arks status, arks log, arks diff |
| Arks Core: branch, merge, replay | arks switch, arks branch, arks merge, arks replay |
| Arks Core: remotes & partial clone | arks clone --depth 1, arks fetch, arks pull, arks push |
| Sign & verify (SSH / OpenPGP / X.509) | arks commit -S, arks tag -s, arks verify-commit, arks verify-tag |
| Arks Hub (forge client) | arks pr list, arks issue list, arks auth status |
Full reference: Workflows or run arks --help.
Performance & Resilience (Evidence, Not Slogans)
Clean-room Docker verification compared stock Git 2.39.5 to release arks on a 19-journey contention suite, complemented by cgroup-capped Docker overload, 10k-monorepo, endurance soak, and chaos stress runs (--cpus=1.5, --memory=512m, --ulimit nofile=1024:1024). Read timings and stress measurements as scoped receipts, not as blanket speed marketing:
| Target | Result | Clean-Room / Stress Receipts |
|---|---|---|
| ≤0.8× median wall-clock across all 19 journeys | 19/19 | Measurement c1b0b24 · Baseline receipt |
| Aggressive ≤0.5× median wall-clock | 19/19 (sole Docker hardlink run) | 19/19 receipt · Prior partial · Archival 8/8 |
| Overload, 10k monorepo, soak & chaos (Docker cgroup) | 6/6 PASS · 0 findings: 100-agent 100% (71.0 c/s); 48/48 Slowloris 408; 340-client Forge 0 lost writes; 10k repo < 64 MiB RSS; SIGKILL/ENOSPC/EMFILE/SIGHUP chaos; 5m soak 46,898/46,898 200, 0.0 kB RSS growth, fd_delta=0 |
Final 6/6 receipt · v1.2.0 baseline · Stress & resilience |
Charts and methodology: Performance and Stress & resilience. Prefer ratios over raw milliseconds across receipts. Host-only timings are advisory.
Limits & Non-Goals
- No GUI embeds or unrelated tools:
gitk/git-guihand off externally;scalarandarks host-envare out of scope. - Standard
.gitobject store only: CELIR was not adopted and is withdrawn from the Cargo workspace. - Platform-specific forge extensions fail closed: GitHub-proprietary CLI groups (
codespace,copilot,extension) exit 2 rather than pretending to work. - Honest boundaries: Absolute SHA-1 collision immunity is impossible (collision detect-and-refuse is verified); multi-device cloud-sync over
.gitis unsupported; live third-party forge latency SLOs without secrets remain unmeasured (honest SKIP).
Full details: Limits and Git vs arks.
Documentation
Interactive documentation site: https://arks.build/
| Section | Pages |
|---|---|
| Get Started | Overview · Install & setup · Getting started · Quickstart & Migration · Workflows |
| Guides | Concurrent sessions · Alias git → arks · Reftable & native LFS · History & maintenance · Arks Serve (self-host) · Forge Web UI · Forge security & auth · Arks Hub (forge client) · Actions & local CI · Agent |
| Reference | CLI personality · REST API reference · Operations & deploy · Ports · Arks Daemon · Release channels · Forge scale |
| Honesty & Benchmarks | Completeness · Git vs arks · Performance · Stress & resilience · Limits |
Maintainer specifications, clean-room matrices, and agent routing live under .spec/, verify/, and AGENTS.md.
Contributing, License & Security
- Contributing: Bug reports and pull requests are welcome. See CONTRIBUTING.md and docs/contribute.md.
- License: Dual-licensed under Apache-2.0 OR MIT (
LICENSE,LICENSE-APACHE,LICENSE-MIT). - Security: Report vulnerabilities privately via GitHub Security Advisories. See
SECURITY.md.