New GBrain AI Memory System Launched

GBrain is a new AI memory system that helps AI agents remember things. It is built with TypeScript and runs on Bun.

A new system, dubbed GBrain, is gaining traction as a method for providing artificial intelligence agents with a persistent, self-organizing memory. Developed by Garry Tan, President and CEO of Y Combinator, GBrain appears to function as a knowledge graph, allowing AI agents to retain and recall information across interactions.

A Step-by-Step Coding Tutorial to Implement GBrain: The Self-Wiring Memory Layer Built by ... - 1

The system is built using TypeScript and runs on Bun, a modern JavaScript runtime. GBrain installation is streamlined, often involving a global bun install -g github:garrytan/gbrain command. Initialization creates a local PGLite database, typically located at ~/.gbrain/brain.pglite, which supports pgvector for embeddings. For its worker daemon, however, the gbrain jobs supervisor component requires a full PostgreSQL setup.

A Step-by-Step Coding Tutorial to Implement GBrain: The Self-Wiring Memory Layer Built by ... - 2

GBrain's architecture emphasizes a "Thin Harness, Fat Skills" philosophy, meaning the core GBrain system is relatively lean, while intelligence is vested in the external "skills" that interact with it. This approach allows for flexibility in agent design. The system facilitates data import via commands like gbrain import, which handles content-hash deduplication of sources such as Markdown notes.

Read More: GPU Hackathon Questions Chess Mastery and Training Methods

A Step-by-Step Coding Tutorial to Implement GBrain: The Self-Wiring Memory Layer Built by ... - 3

Core Functionality and Configuration

GBrain distinguishes between the "Brain" itself – the central database (Postgres or PGLite) – and "Sources," which are the origins of the data being ingested. Initialization, via the gbrain init command, configures the engine and prepares the necessary database schema.

A Step-by-Step Coding Tutorial to Implement GBrain: The Self-Wiring Memory Layer Built by ... - 4

"GBrain connects directly via the PostgreSQL wire protocol."

For embedding generation, GBrain has evolved. New installations default to using ZeroEntropy for embeddings, a change from earlier versions that required an OPENAI_API_KEY. The ZEROENTROPY_API_KEY is now necessary for this function. For specific configurations, such as with Supabase, users must employ the Shared Pooler connection string (port 6543), as direct connections on port 5432 can falter in IPv4-only networks.

Agent Integration and Use Cases

GBrain is designed for integration with various agent platforms. For instance, it can be added to agent environments like Claude Code using commands such as claude mcp add gbrain -- gbrain serve. This allows agents to access GBrain's functionalities, which include operations like get_page, put_page, delete_page, list_pages, search, and query.

Read More: OpenAI Launches GPT-5.5 on May 24 2026 for Better AI Safety

The system supports multi-hop traversal through its graph structure using gbrain graph-query. This capability is detailed in documentation such as docs/architecture/RETRIEVAL.md.

Recent discussions highlight GBrain's role in addressing agent memory limitations. By acting as a persistent memory layer, it aims to resolve issues where agents "forget" information. A practical demonstration involves setting up GBrain to synchronize data from platforms like X (formerly Twitter), using cron jobs to periodically update the GBrain database with user activity.

Background and Development

GBrain’s development, as detailed in its origin story within docs/ethos/ORIGIN.md, presents it not as a mere proof-of-concept but as a system already deployed at scale, powering production workflows. The project has garnered significant attention from developers and tech news outlets, with detailed installation and usage guides appearing across multiple platforms. Its connection to established frameworks like GStack, a popular coding engine, further indicates its potential for broad adoption.

Read More: Sintrone ABOX-5210G for Edge AI GPU Computing Released

Frequently Asked Questions

Q: What is GBrain and who made it?
GBrain is a new system that gives AI agents a memory. Garry Tan, CEO of Y Combinator, developed it. It helps AI remember and use information over time.
Q: How is GBrain installed and what does it use?
GBrain is installed using a command like 'bun install -g github:garrytan/gbrain'. It uses TypeScript and runs on Bun. It also uses a PGLite database and pgvector for storing information.
Q: How does GBrain help AI agents?
GBrain acts as a memory for AI agents, helping them to not forget information between different tasks or conversations. This makes the AI more helpful and consistent.
Q: What are the main features of GBrain?
GBrain works like a knowledge graph, allowing AI to store and find data. It uses a 'Thin Harness, Fat Skills' design, meaning the main system is simple and intelligence comes from connected 'skills'. It also supports importing data and searching through it.
Q: What is needed to generate embeddings with GBrain?
New versions of GBrain use ZeroEntropy for generating embeddings, requiring a ZEROENTROPY_API_KEY. Older versions might have used an OPENAI_API_KEY.