Skip to main content
Self-Hosting

Self-hosting Gitslice: give 2,000 coding agents an instant interface to your existing Git repo

Run Gitslice in your own VPC or Kubernetes cluster with any OIDC provider, any S3-compatible store, and PostgreSQL — mounting a 100 GiB monorepo in 203 ms, landing 1,000–2,000 concurrent agents at up to 297.9 commits/s, and continuously mirroring every change back to Git.

  • self hosting
  • agents
  • benchmarks
5 min read

Coding agents are changing how software gets written — and breaking every assumption Git was built on.

When a single developer clones a repository once a week, waiting a few minutes and burning a few gigabytes of disk is fine. When 100 or 2,000 autonomous agents spin up ephemeral sandboxes against your monorepo, Git turns into the bottleneck: every agent clones gigabytes of history it will never touch, git status stalls on massive trees, and concurrent push-and-rebase loops drown CI in merge conflicts.

You shouldn't have to throw away GitHub, GitLab, or your existing CI to fix this.

Think of Gitslice as the agent-native interface in front of your existing Git repository:

  • Your existing Git repo stays the source of truth. Connect a repository with one command (gs migrate github owner/repo), and Gitslice continuously mirrors landed changes — and even open draft branches for GitHub Actions CI — straight back to Git. Remove the mirror anytime with zero lock-in. See Keep your GitHub Actions, try Gitslice with zero risk.
  • Agents get scoped slices instead of full clones. Mount a 100 GiB monorepo in 203 milliseconds using 3 MiB of disk (gs init --lazy), or skip local workspaces altogether and connect agents over MCP (gs mcp) or gRPC.
  • Disjoint edits land concurrently without rebase storms. Thousands of agents can branch from the same commit, propose changesets in parallel, and land atomically — while overlapping edits are caught cleanly before merge.

Gitslice self-hosted agent swarm interface syncing continuously with an existing Git repository

Today, self-hosted Gitslice is ready to run inside your own VPC or Kubernetes cluster — backed purely by standard infrastructure and verified on real cloud hardware.

#1. Self-hosting options: your cloud, your identity, your storage

Gitslice runs as two stateless containers (gitslice-server and gitslice-web) backed exclusively by standard infrastructure you already operate:

Layer Supported Options What It Powers
Identity (OIDC) Okta, Microsoft Entra ID, Keycloak, Google Workspace, Dex (AUTH_PROVIDER=oidc) Browser login, CLI auth, revocable sessions, and 19.3 ms instant cross-replica logout
Object Storage (S3) AWS S3, Google Cloud Storage (S3-interop), MinIO, VersityGW, Ceph RGW (OBJECT_STORE_TYPE=s3) Content-addressed blobs & packed trees with streaming parallel multipart upload and server-side copy
Database PostgreSQL 16+ (RDS, Cloud SQL, self-managed) Metadata, path-level conflict validation, rate limiting, and multi-replica HA coordination
Git Mirroring GitHub, GitLab, Bitbucket, or any Git remote Continuous push of landed commits + draft changeset branches (gitslice/cs-*) for existing CI checks

#Two ways to deploy today

  1. Docker Compose (deploy/docker-compose/) — up in 60 seconds. A complete single-host stack including PostgreSQL 16, an S3-compatible object store, Dex OIDC, Caddy, gitslice-server, and gitslice-web — ideal for local evaluation, team VMs, and air-gapped environments.
  2. Kubernetes Helm Chart (deploy/helm/gitslice) — production multi-replica HA. Ships out of the box with Horizontal Pod Autoscaler (HPA), PodDisruptionBudget, NetworkPolicy, pre-upgrade schema setup, and graceful SIGTERM draining for zero-downtime rolling upgrades.

#2. 100 GiB unique monorepo & LLVM (193,039 files)

We benchmarked self-hosted Gitslice across a 3-VM GCP VPC topology (2 × gitslice-server capped at 2 vCPU / 2 GiB RAM each, PostgreSQL 16, and real Google Cloud Storage via S3-interop).

To avoid synthetic best-case tricks, our 100 GiB benchmark used 1,000 × 100 MiB (104.86 GB) of incompressible random binary assets (0% deduplication) plus 10,000 unique source files across 100 services — alongside a full import of the real llvm/llvm-project (193,039 files, 3.25 GiB).

Benchmark comparison: Self-hosted Gitslice vs Git and Git LFS on 100 GiB unique monorepo and 193k-file LLVM repository

Benchmark Self-Hosted Gitslice (GCP + GCS) Git / Git LFS Baseline Speedup / Savings
100 GiB unique repo — cold mount / clone 0.203 s (gs init --lazy) ~334 s local NVMe (15–30m WAN) 1,600×+ faster
100 GiB unique repo — client disk used 3 MiB ~195.3 GiB (working copy + LFS cache) ~65,000× less disk
100 GiB unique repo — sustained ingest to GCS 188.0 MiB/s (531.9 s, 0 OOMs in 2 GiB cap) ~524 s local NVMe before push Line-rate streaming
100 GiB unique repo — status / diff / submit 313 ms / 13 ms / 1.03 s 1,052 ms git status (on 10 GiB LFS) Constant-time loop
LLVM (193,039 files) — full workspace setup 4.62 s (48 MiB disk) 73.11 s (3,252 MiB disk, --depth 1) 15.8× faster, 68× less disk
LLVM (193,039 files) — status latency 60 ms 926 ms (229 ms even on sparse lld/) 15.4× faster
LLVM (193,039 files) — rg across lld/ 2.26 s cold → 83 ms warm — Instant cached search
250 MiB single blob (GCS S3-interop) 65.0 MiB/s up / 217.2 MiB/s down — SHA-256 verified

Compact footprint: Storing 101 GiB of unique blobs, 224,427 live file paths, 2,148 commits, and 3,562 changesets used just 1.09 GiB of PostgreSQL disk — with steady-state server memory at 518–741 MiB per replica.

#3. Up to 2,000 simultaneous coding agents on one slice

All agents started behind a barrier from the exact same base commit on a single slice, simultaneously uploading edits, creating changesets, updating patchsets, and landing — running against a single server replica on the default 32-connection PostgreSQL pool.

2,000 concurrent coding agents on a single slice achieving 297.9 commits per second and 833.5 submits per second burst admission with zero errors

Swarm Workload (Single Slice, Single Replica) Landed / Total Conflicts / Errors Wall Time Throughput
256 simultaneous agents (full end-to-end) 256 / 256 (100%) 0 / 0 0.77 s 332.6 commits/s
1,000 simultaneous agents (full end-to-end, default 32-conn DB) 1,000 / 1,000 (100%) 0 / 0 3.36 s 297.9 commits/s
2,000 simultaneous agents (full end-to-end, default 32-conn DB) 2,000 / 2,000 (100%) 0 / 0 8.79 s 227.5 commits/s
1,000 simultaneous agents (full end-to-end, 30 ms cloud RTT) 1,000 / 1,000 (100%) 0 / 0 5.38 s 185.9 commits/s
1,000 simultaneous submit burst (0 ms / 30 ms RTT) 1,000 / 1,000 (100%) 0 / 0 2.95 s / 4.60 s 833.5/s admit · 338.9/s (217.4/s cloud) land
100 agents contending on 10 shared files (GCP) 10 winners 90 exact / 0 err 34.46 s Zero silent overwrites

#High availability & real infrastructure cost

We verified failover under active multi-agent traffic across two replicas behind a load balancer:

  • Graceful SIGTERM rolling restart: Drained cleanly in 3.39 s with 318 / 319 (99.7%) submits landed and 0 lost changesets.
  • Hard SIGKILL crash: Killed a replica mid-flight; the surviving replica automatically took over and landed 275 / 276 (99.6%) submits with 0 lost changesets.
  • Instant OIDC logout revocation: Logging out on replica 1 invalidated the session on replica 2 in 19.3 ms.
  • Cross-replica read-after-write: Blobs uploaded to replica 1 were immediately readable byte-for-byte from replica 2.

Based on observed resource usage, running a full HA cluster for 50 developers + 100 active coding agents on a 100 GiB monorepo costs roughly $590–$780 / month on GCP or AWS (managed HA PostgreSQL + 2–3 server pods + S3/GCS + load balancer) — about $6–$15 per seat.

#4. Try it on your repo in 5 minutes

You don't need to move your team off GitHub to try Gitslice with your coding agents today.

#Start a self-hosted instance

Install the gs CLI from the Getting Started guide (full command list in the CLI Reference), check out the gitslice/gitslice slice, and start the Docker Compose stack:

Shell
gs init gitslice/gitslice ./gitslice-src
cd gitslice-src/gitslice/deploy/docker-compose
cp .env.example .env
docker compose up -d

Or deploy multi-replica HA on Kubernetes with Helm:

Shell
helm upgrade --install gitslice ./gitslice-src/gitslice/deploy/helm/gitslice \
  --namespace gitslice --create-namespace \
  -f your-values.yaml

#Mirror your existing Git repo (zero lock-in)

Point Gitslice at any GitHub repository to import it, turn on continuous mirroring back to main, and keep your existing GitHub Actions gating every gs submit:

Shell
gs migrate github owner/repo --token-env GITHUB_TOKEN

Want to disconnect later? Run gs slice mirror rm <account>/<slice> — your Git repo already has every commit and stays untouched.

#Give your agents a slice

Shell
# Instant lazy FUSE workspace (milliseconds, megabytes of disk)
gs init --lazy acme/backend ./agent-workspace

# Or connect Claude, Cursor, or custom agents directly over MCP — no clone at all
gs mcp

We'd love for you to try it — and push it to its limits. Spin up the Docker Compose stack or Helm chart on your largest repo, point your coding agents at it, and let us know what works or what you'd like to see next: