Context is everything.

A distributed knowledge protocol—built for concurrent agents, at enormous scale.

GitKB is a companion protocol to Git, built for knowledge instead of code. Cross-platform and harness-agnostic, it lets your agents compound and discover knowledge so you never have to think about how—open source, just in case you do.

  • git-kb 1.0 CLI (macOS & Linux) & GitKB Desktop free
  • Per-document SHA-256 history & 3-way diff3 merges
  • 10 built-in harnesses · 134 local MCP tools
  • 19-language persistent call graph
GitKB Desktop · Operator+ atc tui (28s standup-to-merge walkthrough)
One distributed knowledge record shared across every harness you run—shown here coordinating Claude and Codex from standup to merged PRs, with every spec, task, and decision versioned on disk.

Backed by

One stack, from a weekend project to your entire organization

Start a free knowledge base in your repo for a weekend project, no account needed. Sync it when your team joins, publish it when the world should see it, and run it in your own environment when your company requires it. Same files and same commands at every scale.

Install GitKB Desktop for free

Download for macOS Free · Operator built in

Prefer the terminal? Install the CLI

  1. Local tools & protocol

    $ git-kb commit

    The git-kb CLI (macOS & Linux) and GitKB Desktop (macOS, Linux soon) are free, with no account or server required. Work offline on plain Markdown, isolated per-agent workspaces, and a 19-language persistent call graph.

    • Free & offline
    • macOS & Linux CLI
    • Desktop (macOS, Linux soon)
    • 19-language call graph
  2. Every harness

    $ git-kb mcp

    134 local MCP tools and 10 built-in harness setups connect Claude Code, Codex, Cursor, Grok, Antigravity, Windsurf, OpenCode, and more to one shared record—on any model you choose.

    • 134 MCP tools
    • 10 built-in harnesses
    • Model-agnostic
  3. Distributed sync

    $ git-kb push origin

    Per-document commit chains let concurrent agents converge reliably where they would otherwise collide—saving turns and tokens with automatic 3-way diff3 and field-aware merges, selective local checkouts, and SHA-256 verification on every transfer.

    • Per-document convergence
    • Sparse checkout
    • SHA-256 integrity
  4. GitKB.com or your infra

    $ git-kb login

    Managed team sync and public KBs on GitKB.com with per-path RBAC—or deploy to private and on-prem servers (by arrangement).

    • Waitlist open
    • Per-path RBAC
    • Private & Public KBs
    • On-prem by arrangement

Enterprise

Bring agents to the whole organization as one connected system, not one developer at a time. On the infrastructure you choose, with per-path RBAC, policy audit history, and SSO rollout support.

Every decision you save becomes context for the next task.

What your agents get on day one

Your agents write the code; your team engineers the knowledge they verify against. GitKB is the knowledge layer your harnesses and custom factories run on, turning every spec, decision, and parsed code symbol into repeatable, verifiable outcomes—owned by you on disk.

Know what an edit reaches

Agents query a persistent call graph—callers, callees, impact paths, and dead code across 19 languages—before changing a function.

Grep and text search force every session to rediscover code structure from scratch.

A typed, versioned record across sessions

Specs, decisions, tasks, and incidents stay linked in one structured graph with full log, blame, and diff—readable through 134 local MCP tools (core, code, and semantic).

Unversioned notes and isolated chat memory lose history, links, and accountability.

Per-document SHA-256 history and merges

Every document carries its own SHA-256 chain beside your code, with 3-way diff3 and field-aware metadata merges plus persisted local indexes rebuilt from the canonical store.

One conflict stays isolated to one document instead of burning agent turns across unrelated work—and code diffs stay clean.

Isolated workspaces and governed sync

Many agents write concurrently in isolated local workspaces, and teammates check out only the slices they need—like team/A/*—governed by per-document and per-path RBAC.

Shared agent context stays structured, portable, and access-controlled instead of trapped in an all-or-nothing cloud folder.

See the knowledge layer at work

Switch between task-aware memory retrieval and AST call-graph impact analysis.

Run it your way on GitKB’s knowledge layer

With your harnesses

10 built-in setups (Claude Code, Codex, Cursor, Grok, Antigravity, Windsurf, OpenCode, and more) with hooks and skills.

With any MCP or CLI script

134 local MCP tools (core, code, and semantic) and the git-kb 1.0 CLI—works offline.

As your own factory

Build custom workflows and organization rollouts on GitKB’s knowledge layer.

See Enterprise rollouts →

Your inference. Your knowledge. Your infrastructure.

Individuals and companies should own their knowledge. GitKB brings the data you need into a shared, portable, local-first protocol layer—never trained on by GitKB—and extends your graph to reference data that remains in third-party systems, protected both at rest and in flight.

Own your data in the protocol layer

Plain Markdown, typed links, and SHA-256 commit chains on your disk—bringing the knowledge you need under your ownership while linking to records you leave in third-party systems, and never trained on by GitKB. Derived local indexes rebuild deterministically with git-kb reindex.

Build experiences around it

Data in the protocol layer works for you. Connect 10 built-in harnesses, custom apps, and workflows—or power the software services you provide—on top of data you control.

Protect data at rest

Keep shared agent context working offline, under strict privacy policies, or air-gapped with SHA-256 integrity checks. Sync with encryption at rest and tenant isolation on GitKB.com (waitlist open), or push to private and on-prem servers (by arrangement).

Protect inference data in flight

Bring your own frontier keys today, or pair an on-prem knowledge layer with self-hosted open-weight models—with per-path RBAC, audit history, and Enterprise SSO (OIDC today; SAML by arrangement).

Run a swarm. See every move.

Direct the whole swarm from one Operator session. Every message, commit, artifact and release is on the record, with who made it and when.

  • Claude Code
  • Codex
  • Cursor
  • OpenCode
  • OpenClaw
  • Hermes
  • DeepSeek
  • Pi
  • Grok
  • Antigravity
  • Any MCP client

GitKB.com · Waitlist open · Paid Team feature

Publish knowledge the world can build on

Public knowledge bases turn your runbooks, standards and research into a living reference, versioned like code and open to anyone.

  1. An address for every document

    Link to any guide, decision or spec from docs, tickets and chats. The link keeps working as the document evolves.

  2. History anyone can read

    Every change is a commit with an author and a diff, so readers can see how the knowledge got there.

  3. Built for people and agents

    Readers browse it on the web. Agents read the same documents as structured Markdown with typed links.

gitkb.com/acme/payments-handbook/specs/refund-states
spec active

Refund states

A refund moves requested → approved → settled, or ends rejected. No state is skipped.

  1. claudepartial refunds1d
  2. codexstate table5d
  3. youcreated2w
GET specs/refund-states.md · 200
---
title: Refund states
type: spec
status: active
---

# Refund states

A refund moves requested → approved → settled, or ends rejected. No state is skipped.

[[decisions/ledger-double-entry]]
[[guides/idempotency-keys]]

Common questions

GitKB is a companion protocol to Git for knowledge engineering, and the knowledge layer teams build their harnesses and factories on. Knowledge bases store typed Markdown documents in content-addressable storage and an embedded, accelerated graph index beside your code, with per-document SHA-256 history and AST code intelligence. The git-kb 1.0 CLI, GitKB Desktop, and 134 MCP tools run locally today; GitKB.com adds hosted team sync (waitlist open).

Yes. The git-kb 1.0 CLI and GitKB Desktop are free forever for local use with no account and no credit card. Hosted sync and shared team knowledge bases on GitKB.com are currently in waitlist (Free cloud tier plus Team at $15/seat/month or $12 annual-effective), and Enterprise offers private-hosted or on-prem deployments.

Yes. Public publishing is part of paid GitKB.com plans (currently in waitlist). Each public document gets a stable web address, readable SHA-256 commit history, and a raw .md twin for agents.

No. GitKB does not sell inference. Your agents run on your own accounts and API keys with the providers you already use, or on local models through an agent that supports them. You own the inference and the knowledge it produces.

Not in local use. Documents, the AST code index, and search indexes stay locally inside your project, and no knowledge-base content uploads unless you push to a configured remote. Official CLI builds send minimal anonymous usage telemetry (coarse command group, outcome, and duration bucket—never command arguments, paths, queries, or content); Desktop sends screen-level usage metrics and checks GitHub for updates. Turn telemetry off anytime with GITKB_ANALYTICS=0 for the CLI or under Settings → Product analytics in GitKB Desktop.

git-kb init configures 10 built-in harnesses out of the box—Claude Code, Codex, Cursor, Windsurf, OpenCode, oh-my-pi, Grok, OpenClaw, Antigravity, and Pi—with rules, skills, and MCP config. Any MCP client connects across 134 local MCP tools (110 core tools via git-kb mcp, 21 AST code intelligence tools via git-kb code mcp, and 3 semantic search tools via git-kb semantic mcp), and isolated per-agent workspaces let multiple agents work concurrently.

19 languages—18 tree-sitter language packs (Rust, Python, TypeScript, JavaScript, Go, Java, C, C++, C#, Ruby, Elixir, Kotlin, PHP, Swift, Scala, Haskell, Lua, and TLA+) plus Svelte script extraction. Symbols, call graphs, and impact analysis come from parsed ASTs rather than text matches.

No. git-kb code index works in any Git repo right after install. Run git-kb init when you want tasks, specs and decisions alongside the call graph.

No, GitKB is much more than a skill. It is a deterministic, distributed knowledge graph protocol, plus the client and server applications that implement it, including a performance-optimized embedded graph database. Links come from what you and your agents write, and code relationships from parsing your code, so the same files always produce the same graph; no model guesses it. Skills help your agents use all of it.

You can, and everyone starts there. Then every doc edit pollutes code diffs, concurrent agents fight shared-branch rebases, knowledge stops at the repo boundary, and grep is the only search. GitKB keeps knowledge in content-addressable storage and an embedded, accelerated graph index with per-document SHA-256 hash chains, 3-way diff3 autostash merges, isolated agent workspaces, typed links to code, and ranked search across every repo. Git is brilliant for code; GitKB is the companion protocol for knowledge.

Hosted memory services keep your knowledge in a vendor database behind a remote API. GitKB is local-first: your knowledge stays in plain Markdown with SHA-256 history and derived persisted indexes you can rebuild deterministically from the canonical store with git-kb reindex. Agents use local files and 134 local MCP tools on your own inference, and you can move between local, GitKB.com, and private infrastructure by adding a remote and pushing.

Yes. Push to GitKB.com (waitlist open) and teammates check out and store only the slice they need via sparse selection (git-kb sync select, such as team/A/), governed by per-document and per-path RBAC. Enterprise plans add SSO (OIDC today; SAML by arrangement) and policy audit history on the infrastructure you choose.

The git-kb 1.0 CLI supports macOS and Linux via Homebrew, the install script, or mise. GitKB Desktop is available free for macOS 15 (Sequoia) or newer via DMG download or Homebrew cask.

Start growing the knowledge graph your team and agents share

  • Free to start
  • No credit card
  • Local use free forever
  • Leave anytime with your files