---
title: "GBrain: Y Combinator CEO's Open-Source AI Agent Memory System With Hybrid Search and Self-Wiring Graph"
url: https://aideveloper44.com/blog/gbrain-garry-tan-open-source-ai-agent-brain-knowledge-graph
description: "GBrain is Garry Tan's open-source AI agent memory system — a self-wiring knowledge graph with hybrid search, structured timelines, and backlink-boosted ranking, powering 146K+ pages of agent memory in production."
lang: en
---

AI Tools (https://aideveloper44.com/blog/tag/ai-tools)

# GBrain: Garry Tan's Open-Source AI Agent Brain With Self-Wiring Knowledge Graph

GBrain is an open-source AI agent memory system built by Garry Tan, President and CEO of Y Combinator, to power his personal agents in production. It features a self-wiring typed knowledge graph, hybrid vector + graph search with P@5 of 49.1%, and a fully autonomous doctor command that optimizes brain health without human intervention.

A

AIDeveloper44 Team

May 22, 2026 · 5 min read

Image: GBrain: Garry Tan's Open-Source AI Agent Brain With Self-Wiring Knowledge Graph (https://media.base44.com/images/public/6a06e0a6db6965c708089f4b/ef2829ad1_generated_image.png)

## What Is GBrain?

GBrain (https://github.com/garrytan/gbrain) is an open-source AI agent memory system built by Garry Tan — President and CEO of Y Combinator — to run his actual AI agents. It's not a demo or prototype: the production brain currently manages **146,646 pages, 24,585 people, 5,339 companies, and 66 cron jobs** running autonomously.

The core thesis: your AI agent is smart but forgetful. GBrain gives it a brain that wires itself.

## How the Knowledge Graph Self-Wires

Every page write to GBrain automatically extracts entity references and creates typed links — `attended`, `works_at`, `invested_in`, `founded`, `advises` — with zero LLM calls. The graph builds itself as the agent ingests content, meaning:

- Ask "who works at Acme AI?" and get answers vector search alone can't reach
- Ask "what did Bob invest in this quarter?" and get structured timeline results
- Backlink-boosted ranking surfaces the most-connected knowledge automatically

## Benchmark Performance

GBrain has been benchmarked against standard retrieval baselines on a 240-page Opus-generated rich-prose corpus:

- **P@5: 49.1%, R@5: 97.9%** — full hybrid graph mode
- **+31.4 points P@5** over graph-disabled variant
- Outperforms ripgrep-BM25 + vector-only RAG by a similar margin

The default embedding model as of v0.36.2.0 is ZeroEntropy (`zembed-1` at 1280d via Matryoshka), which is 2.2× faster and 2.6× cheaper than OpenAI embeddings while winning 11 of 20 head-to-head queries.

## Autonomous Brain Maintenance

GBrain v0.36.4.0 introduced an autonomous health optimization loop:

```
gbrain doctor --remediate --yes --target-score 90 --max-usd 5
```

This single command computes a dependency-ordered remediation plan, submits each phase as a background job, re-checks the brain health score between steps, and refuses to exceed a user-defined cost cap. Cron can run it unattended nightly.

## Installation

GBrain installs in under 30 minutes and runs in three modes: as a skillpack scaffold for agent platforms (OpenClaw, Hermes), as a standalone CLI, or as an MCP server for any MCP-compatible client (Claude Code, Cursor, Windsurf). PGLite mode requires no server or Docker — database ready in 2 seconds.

```
bun install -g github:garrytan/gbrain
gbrain init --pglite
gbrain doctor
```

Full documentation at https://github.com/garrytan/gbrain.

Read more: https://github.com/garrytan/gbrain

agent memory: https://aideveloper44.com/blog/tag/agent-memory
knowledge graph: https://aideveloper44.com/blog/tag/knowledge-graph
open source: https://aideveloper44.com/blog/tag/open-source
GBrain: https://aideveloper44.com/blog/tag/gbrain
Garry Tan: https://aideveloper44.com/blog/tag/garry-tan
RAG: https://aideveloper44.com/blog/tag/rag
MCP: https://aideveloper44.com/blog/tag/mcp

### Enjoyed this?

Get more posts like this delivered to your inbox.

← Previous

TencentDB Agent Memory: Layered Long-Term Memory for AI Agents With 61% Token Reduction
https://aideveloper44.com/blog/tencentdb-agent-memory-layered-long-term-memory-ai-agents-token-reduction

Next →

NVIDIA Launches Verified Agent Skills: Transparency and Security for Agentic AI Pipelines
https://aideveloper44.com/blog/nvidia-verified-agent-skills-transparency-security-agentic-ai

## Related Articles

Tools

### Anthropic Introduces MCP Tasks and Elicitations for Claude Code

3 min read
https://aideveloper44.com/blog/anthropic-introduces-mcp-tasks-and-elicitations

Announcements

### Anthropic Introduces New Plugin Submission Portal for Claude

4 min read
https://aideveloper44.com/blog/anthropic-introduces-new-plugin-submission-portal

Announcements

### Laravel Releases Laravel MCP 1.0: Rapidly Build MCP Servers for Your Apps and Enable Search & Execute Tools for Your AI Agents

3 min read
https://aideveloper44.com/blog/laravel-mcp-1-0-release

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "@type": [
      "WebSite",
      "NewsArticle"
    ],
    "name": "AIDeveloper44",
    "url": "https://aideveloper44.com",
    "isAccessibleForFree": true,
    "isPartOf": {
      "productID": "CAowsfXgCw:openaccess",
      "@type": [
        "Product"
      ]
    }
  },
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "AIDeveloper44",
    "url": "https://aideveloper44.com",
    "logo": "https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/696b2bd107af20deac4cc200/9f77c0b91_a-digital-illustration-of-a-white-llama-_j4dyH5xoRnKf_3rtw-mvEQ_OdqL2BrSTtKHjJAuhTp_zg.png"
  },
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://aideveloper44.com/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Blog / Blog Index",
        "item": "https://aideveloper44.com/blog"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Blog Article",
        "item": "https://aideveloper44.com/blog/gbrain-garry-tan-open-source-ai-agent-brain-knowledge-graph"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "AINews.sh",
    "alternateName": "AI News",
    "url": "https://ai-dev-pulse-ac4cc200.base44.app",
    "logo": "https://ai-dev-pulse-ac4cc200.base44.app/logo.png",
    "description": "Developer-focused AI product releases, reviews, and news. Your source for the latest AI tools, open-source models, and platform updates.",
    "foundingDate": "2026",
    "slogan": "Stay ahead with AI product intelligence",
    "sameAs": [],
    "knowsAbout": [
      "Artificial Intelligence",
      "Machine Learning",
      "Large Language Models",
      "AI Tools",
      "Open Source AI",
      "AI Frameworks",
      "Developer Tools"
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "headline": "GBrain: Garry Tan's Open-Source AI Agent Brain With Self-Wiring Knowledge Graph",
    "description": "GBrain is an open-source AI agent memory system built by Garry Tan, President and CEO of Y Combinator, to power his personal agents in production. It features a self-wiring typed knowledge graph, hybrid vector + graph search with P@5 of 49.1%, and a fully autonomous doctor command that optimizes brain health without human intervention.",
    "image": "https://media.base44.com/images/public/6a06e0a6db6965c708089f4b/ef2829ad1_generated_image.png",
    "datePublished": "2026-05-22T09:52:00.000Z",
    "dateModified": "2026-05-22T16:57:17.620000",
    "author": {
      "@type": "Person",
      "name": "AIDeveloper44 Team"
    },
    "publisher": {
      "@type": "Organization",
      "name": "AIDeveloper44"
    },
    "mainEntityOfPage": {
      "@type": "WebPage",
      "@id": "https://aideveloper44.com/blog/gbrain-garry-tan-open-source-ai-agent-brain-knowledge-graph"
    },
    "isAccessibleForFree": true
  }
]
```