arks-hash 2.0.1

In-engine Git object-format hashing (SHA-1-CD / SHA-256)
Documentation

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 arks binary. 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)
curl -fsSL https://raw.githubusercontent.com/modootoday/arks/main/scripts/install.sh | bash
arks doctor
# 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:

brew install modootoday/tap/arks                                      # Homebrew (macOS / Linux)
scoop bucket add modootoday https://github.com/modootoday/scoop-bucket && scoop install modootoday/arks  # Scoop (Windows)
nix run github:modootoday/arks -- --version                           # Nix Flake (Linux / macOS)
cargo install arks                                                    # crates.io (Rust 1.89+)
pip install arks-cli                                                  # PyPI (8 binary wheels, Production/Stable)
npm install -g @modootoday/arks                                       # npm (or: npx @modootoday/arks)
gem install arks                                                      # RubyGems (7 platform gems)
docker pull ghcr.io/modootoday/arks:latest                            # Multi-arch server image (amd64 / arm64)

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+):

git clone https://github.com/modootoday/arks.git
cd arks
cargo build -p arks --release

Run everyday Git commands directly on a standard .git repository:

arks init my-repo
cd my-repo
echo "hello" > README.md
arks add README.md
arks commit -m "Initial commit"
arks status
arks log

Adopt as a drop-in replacement with shell aliases or PATH shims:

alias git=arks
alias gh=arks          # optional forge-client peer
# Or install non-interactive PATH shims:
arks shim install

More onboarding steps and remote migration (arks migrate --from-url): Quickstart & Migration and Getting started.

Architecture

One binary (arks) groups five capabilities under the arks family: Arks Core (Git-symmetric CLI + scoped leases + shared-index on standard .git), Arks Kinetic (opt-in dual-plane stacks, undo, workspaces, portable refs/notes/arks/meta history, and Zero-Node arks ui on .git/arks/kinetic/), 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 Swarm] --> B["Single binary: arks (20 default crates)"]
    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 Kinetic · opt-in| P5["Arks Kinetic<br/>sl, absorb, undo, history, ws, stack, ui, swarm"]
    B -->|Arks Serve| P3["Arks Serve<br/>HTTP + SSH + TLS + REST/Kinetic 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
    P5 --> G
    P5 -.->|isolated sidecar| K[(".git/arks/kinetic/<br/>meta · conflicts · K-Journal · attestations")]
    G <-->|100% git fsck pure| SG["Stock Git"]

Why arks

Challenge How arks responds
Multi-agent / multi-session orchestration contends on one repository Arks Core scoped leases, batch-apply, ref-shard, shared-index N-way, plus Arks Kinetic 100-agent in-memory/CoW workspaces (arks ws) and server-side atomic push --onto
Switching VCS tools breaks muscle memory and CI scripts Git-symmetric CLI (git / gh / arks personalities) adoptable via alias or PATH shim, with opt-in Arks Kinetic (arks kinetic enable) keeping git/gh personalities 100% isolated
Proprietary object stores or .jjconflict-* trees break existing Git tooling Dual-plane architecture keeps standard filesystem .git 100% stock git fsck --full --strict pure while isolating all arks internal state under .git/arks/ (kinetic/, leases/, forge/) and mirroring portable metadata via refs/notes/arks/meta
Self-hosting requires stitching together separate services and Node.js runtimes Single-process Arks Serve (arks serve) ships Smart HTTP, SSH, TLS, REST/Kinetic APIs, .arks/↔.github/ symmetry, and strict-CSP Zero-Node SSR Web UI + interactive arks ui graph

arks is not an agent framework. It is the deterministic revision layer that multi-session and autonomous agent environments share. Optional arks agent … is an explicit LLM review extension on the same binary, separate from core revision primitives.

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 commands verified; 1,852/1,852 Git 2.39.5 options; 1:1 stock-Git oracle PASS; 19/19 journeys faster; 22/24 v1.3.0 scale workloads ≤1.00× (0.697× geomean; scale report).
Arks Kinetic (opt-in) Dual-plane .git stacks, undo, workspaces, push --onto, arks ui, swarms 21/21 Docker suites PASS (0 v1.x regressions, 0/140 CVEs; /dev/fuse host-gated): 23 verbs incl. history, zero-coercion interop, 100 workspaces, 100k graph, 32-agent push --onto, 24-agent swarm (integrated · integrity).
Arks Serve (arks serve) Single-process Git HTTP + SSH + TLS + Forge & Kinetic API Smart HTTP, in-process SSH & TLS, zero-downtime SIGHUP/mtime reload, RwLock cache, TCP_NODELAY, 503 overload cap, 256-req Keep-Alive soak (fd_delta=0), gzip 413 cap (receipt).
Embedded Forge & Kinetic Web UI Multi-repo SSR Web UI, /graph, /stacks, /agents/topology, RBAC, 2FA, LFS 0/140 OSV CVEs (dalek 3.0), atomic ForgeStoreTx, 0 prod .unwrap(), PBKDF2/CSRF/RBAC, 2FA, Device Flow auth, private 401, archived 403, SSRF-guarded webhooks (receipt).
Arks Daemon (arks daemon) git:// peer (git-daemon symmetry) 37/37 options verified (+ 2 arks-only, 0 missing) vs stock git 2.39.5 in Docker and Windows CI; byte-identical ustar archive and POSIX syslog.
Arks Hub (arks pr / issue / auth …) Flat gh-peer forge client (never spawns gh) 171/171 v1 commands verified (0 missing, 0 deferred) + 12-agent concurrent local-forge receipt; HTTPS remote verified; unsupported groups exit 2.
Optional Agent (arks agent …) Automated LLM review 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):
arks serve --no-ssh --no-forge /path/to/repos

# Full self-hosted forge (HTTP + SSH + embedded Forge & Kinetic API + Web UI):
arks serve /path/to/repos

# Local interactive Kinetic Graph UI (single binary, zero Node.js):
arks 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
Arks Kinetic: stacks & undo arks kinetic enable, arks sl --live, arks draft -m "…", arks absorb, arks undo --preview, arks revset 'draft()'
Arks Kinetic: workspaces & swarms arks ws spawn a1 --in-memory, arks push origin --onto main, arks stack submit --trunk main, arks sandbox fork --count 4 --in-memory, arks swarm integrate … --onto main, arks ui

Full reference: Workflows, Arks Kinetic, or run arks --help.

Performance & Resilience (Evidence, Not Slogans)

Clean-room Docker runs compared stock Git 2.39.5 to release arks on a 19-journey contention suite. We also run cgroup-capped overload, 10k-monorepo, endurance soak, chaos stress (--cpus=1.5, --memory=512m), and Arks Kinetic scale suites. Read these results as scoped receipts, not blanket speed marketing:

Target Result Clean-Room / Stress Receipts
≤0.8× median wall-clock across all 19 journeys 19/19 Measurement c1b0b24 · Baseline
Aggressive ≤0.5× median wall-clock 19/19 (sole Docker hardlink run) 19/19 receipt · Archival 8/8
Overload, 10k monorepo, soak & chaos (Docker cgroup) 6/6 suites PASS · 0 findings (100-agent 100% / 71.0 c/s, 340-client Forge 0 lost updates, <64 MiB RSS, SIGKILL/ENOSPC/EMFILE, 5m soak 0.0 kB RSS growth) Final 6/6 receipt · Stress & resilience
Arks Kinetic multi-agent scale (Docker) 100/100 agent workspaces on 50k files, 64-proc journal (0 lost ops), 32/32 first-attempt push --onto, 24/24 swarm attested, 100k change graph Integrated receipt · Engine integrity · Arks Kinetic

Charts and methodology: Performance and Stress & resilience. Prefer ratios over raw milliseconds across receipts. Host-only timings are advisory.

Limits & Out-of-Scope Boundaries

  • No desktop Tk GUI embeds or unrelated tools: gitk / git-gui hand off externally (arks ui is a separate zero-Node browser UI); scalar and arks host-env are out of scope.
  • Standard .git object store only: CELIR was not adopted and is withdrawn from the Cargo workspace. Arks Kinetic stores metadata under .git/arks/kinetic/ while keeping .git/objects 100% stock Git.
  • Opt-in kernel VFS mount (--features vfs): Container clean-room runners lack /dev/fuse (dev_fuse_kernel_mount_available: false); FUSE v7 framing and VirtualTreeFs projection are clean-room verified while kernel VFS mounts stay host-gated.
  • 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 .git is 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
Arks Kinetic Arks Kinetic overview · Workspaces & monorepo scale · Stacks, push --onto & UI · Agent swarms & headless API · From Git / jj / Sapling
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