gstack
Gives a Claude Code session helpers for product and engineering work: challenging a plan's scope, judging whether an idea is worth building before any code, tracing a bug to its root cause, and reviewing recent work patterns each week.
Brain knowledge base for Claude Code, with skills for ingesting content, linking and synthesizing concept pages, auditing always-loaded context, and running read-write cycles over a personal knowledge graph.
Claude Code
> /plugin marketplace add garrytan/gbrain> /plugin install gbrain@gbrain
Codex
$ npx skills add garrytan/gbrain --skill brain-ingest-gate brain-link-discipline brain-ops concept-synthesis context-audit correction-pipeline data-loss-gate db-repair enrich functional-area-resolver idea-ingest idea-lineage ingest maintain mcp-access measure-before-you-fix postgres-adopt query repo-architecture resolve-before-asking signal-detector blog-ingest briefing bulk-ingestion conversation-archive daily-task-manager daily-task-prep data-research gbrain-advisor media-ingest meeting-ingestion perplexity-research reports research-compendium strategic-reading voice-note-ingest academic-verify archive-crawler article-enrichment ask-user book-mirror brain-pdf brain-taxonomist capture chat-connectors citation-fixer citation-graph-ingest cold-start company-brainify cron-scheduler cross-modal-review draft-in-voice eiirp fact-check frontmatter-guard gbrain-upgrade google-loops migrate minion-orchestrator publish remote-mcp schema-author schema-unify setup skill-creator skill-optimizer skillpack-check smoke-test soul-audit two-tier-extraction webhook-transforms voice-persona-mars voice-persona-venus voice-post-call retrieval-reflex skill-autobench skillify skillpack-harvest testing -a codex
Cursor
$ npx skills add garrytan/gbrain --skill brain-ingest-gate brain-link-discipline brain-ops concept-synthesis context-audit correction-pipeline data-loss-gate db-repair enrich functional-area-resolver idea-ingest idea-lineage ingest maintain mcp-access measure-before-you-fix postgres-adopt query repo-architecture resolve-before-asking signal-detector blog-ingest briefing bulk-ingestion conversation-archive daily-task-manager daily-task-prep data-research gbrain-advisor media-ingest meeting-ingestion perplexity-research reports research-compendium strategic-reading voice-note-ingest academic-verify archive-crawler article-enrichment ask-user book-mirror brain-pdf brain-taxonomist capture chat-connectors citation-fixer citation-graph-ingest cold-start company-brainify cron-scheduler cross-modal-review draft-in-voice eiirp fact-check frontmatter-guard gbrain-upgrade google-loops migrate minion-orchestrator publish remote-mcp schema-author schema-unify setup skill-creator skill-optimizer skillpack-check smoke-test soul-audit two-tier-extraction webhook-transforms voice-persona-mars voice-persona-venus voice-post-call retrieval-reflex skill-autobench skillify skillpack-harvest testing -a cursor
Gemini CLI
$ npx skills add garrytan/gbrain --skill brain-ingest-gate brain-link-discipline brain-ops concept-synthesis context-audit correction-pipeline data-loss-gate db-repair enrich functional-area-resolver idea-ingest idea-lineage ingest maintain mcp-access measure-before-you-fix postgres-adopt query repo-architecture resolve-before-asking signal-detector blog-ingest briefing bulk-ingestion conversation-archive daily-task-manager daily-task-prep data-research gbrain-advisor media-ingest meeting-ingestion perplexity-research reports research-compendium strategic-reading voice-note-ingest academic-verify archive-crawler article-enrichment ask-user book-mirror brain-pdf brain-taxonomist capture chat-connectors citation-fixer citation-graph-ingest cold-start company-brainify cron-scheduler cross-modal-review draft-in-voice eiirp fact-check frontmatter-guard gbrain-upgrade google-loops migrate minion-orchestrator publish remote-mcp schema-author schema-unify setup skill-creator skill-optimizer skillpack-check smoke-test soul-audit two-tier-extraction webhook-transforms voice-persona-mars voice-persona-venus voice-post-call retrieval-reflex skill-autobench skillify skillpack-harvest testing -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add garrytan/gbrain$ copilot plugin install gbrain@gbrain
OpenCode
$ npx skills add garrytan/gbrain --skill brain-ingest-gate brain-link-discipline brain-ops concept-synthesis context-audit correction-pipeline data-loss-gate db-repair enrich functional-area-resolver idea-ingest idea-lineage ingest maintain mcp-access measure-before-you-fix postgres-adopt query repo-architecture resolve-before-asking signal-detector blog-ingest briefing bulk-ingestion conversation-archive daily-task-manager daily-task-prep data-research gbrain-advisor media-ingest meeting-ingestion perplexity-research reports research-compendium strategic-reading voice-note-ingest academic-verify archive-crawler article-enrichment ask-user book-mirror brain-pdf brain-taxonomist capture chat-connectors citation-fixer citation-graph-ingest cold-start company-brainify cron-scheduler cross-modal-review draft-in-voice eiirp fact-check frontmatter-guard gbrain-upgrade google-loops migrate minion-orchestrator publish remote-mcp schema-author schema-unify setup skill-creator skill-optimizer skillpack-check smoke-test soul-audit two-tier-extraction webhook-transforms voice-persona-mars voice-persona-venus voice-post-call retrieval-reflex skill-autobench skillify skillpack-harvest testing -a opencode
Windsurf
$ npx skills add garrytan/gbrain --skill brain-ingest-gate brain-link-discipline brain-ops concept-synthesis context-audit correction-pipeline data-loss-gate db-repair enrich functional-area-resolver idea-ingest idea-lineage ingest maintain mcp-access measure-before-you-fix postgres-adopt query repo-architecture resolve-before-asking signal-detector blog-ingest briefing bulk-ingestion conversation-archive daily-task-manager daily-task-prep data-research gbrain-advisor media-ingest meeting-ingestion perplexity-research reports research-compendium strategic-reading voice-note-ingest academic-verify archive-crawler article-enrichment ask-user book-mirror brain-pdf brain-taxonomist capture chat-connectors citation-fixer citation-graph-ingest cold-start company-brainify cron-scheduler cross-modal-review draft-in-voice eiirp fact-check frontmatter-guard gbrain-upgrade google-loops migrate minion-orchestrator publish remote-mcp schema-author schema-unify setup skill-creator skill-optimizer skillpack-check smoke-test soul-audit two-tier-extraction webhook-transforms voice-persona-mars voice-persona-venus voice-post-call retrieval-reflex skill-autobench skillify skillpack-harvest testing -a windsurf
Give the agent you already use a memory you control. GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents. Start with keyless memory and keyword retrieval; add semantic search, synthesis, and background enrichment when you need them.
GBrain is MIT-licensed and free to self-host; gbrain.io is optional paid hosting.
Tip Need hosted? First time running an agent? Try gbrain.io, hosted GBrain, for the easiest experience: one brain for you and your team, connected to ChatGPT, Claude and Cursor, with nothing to install or keep online. Stuck? Email support@gbrain.io and a person will set it up with you, free.
Keep skills beside knowledge. New local brains include memory skills in their content root. Agents can join an authorized catalog; only approved editors can publish. Managed coding-agent installs add an owned native router; restart and real-use verification are separate steps. Staged migration preserves sharing choices and personal edits. See shared brain skills.
gbrain mcp expose (add --funnel for cloud agents such as Grok Bot, Muse and ChatGPT). Follow use your brain from anywhere over MCP. Say to your agent: "use my brain over mcp" — "put my brain on tailscale".Grok Bot and Grok Build are different products. Muse's personal agent and Muse Code are different products too. Muse already has native editable memory; GBrain adds an explicit, portable record with provenance and shared access. See each guide's dated evidence and remaining verification steps.
I'm Garry Tan, President and CEO of Y Combinator. I built GBrain to run my own AI agents. It's the production brain behind my OpenClaw and Hermes deployments: 155,795 pages, 24,589 people, 5,340 companies, 66 cron jobs running autonomously. My agent ingests meetings, emails, tweets, voice calls, and original ideas while I sleep. It enriches every person and company it encounters. It fixes its own citations and consolidates memory overnight. I wake up smarter than when I went to bed — and so will you.
It works as a company brain too. Authenticated remote clients are constrained by source and operation grants plus visibility filters. Local files and shared database credentials are a different trust boundary: sources alone do not isolate those callers. The authorization tests exercise specific access paths, not a universal no-leak guarantee. Read the sharing boundaries and company-brain tutorial before setting up shared access.
Alongside keyword and semantic retrieval, GBrain offers two optional ways to use your stored knowledge:
put_page edges arrive later, via sweeps, maintenance or add_link. Ask "who works at acme-example?": walks are breadth-first, milliseconds on dense clusters (how). On BrainBench relationship questions, relationship retrieval lifts production R@5 from 0.6626 to 0.7241 (benchmark); 0.9791 is the graph-oracle-parse upper bound, not a product score.The point of building a 150K-page brain is to use it as a strategic moat. To never lose context. To query what's in your own head without re-reading it. The brain layer is what makes the moat usable. The 24/7 dream cycle is what keeps it sharp. Both run on your hardware, your DB, your keys.
It's easier to ship a daemon that runs 24/7 to ingest, enrich, and consolidate than it is to keep an agent in chat working hard. GBrain is that daemon, generalized. Install in 30 minutes. Your agent does the work. As my personal agent gets smarter, so does yours.
Start keyless. Your harness subscription and any separately configured model API usage are different costs. The optional personal-agent bootstrap takes about 15 minutes; always-on enrichment needs its own compute and API configuration.
Durable preferences and facts can be shared across agents; transient task and harness configuration state stay local. Configured cloud embedding, reranking, extraction, and synthesis providers can receive text, and the harness model sees recalled memory even in keyless mode. Markdown export is not a full database backup. Read memory boundaries.
LLMs: fetch
llms.txtfor the documentation map, orllms-full.txtfor the same map with core docs inlined in one fetch. Agents: start withAGENTS.md(orCLAUDE.mdif you're Claude Code).
Say you have a meeting with Alice tomorrow. You want to walk in remembering what she works on, when you last talked, and what's still open between you. Here's what you'd type, and what you'd get back.
You ask:
"What do I need to know before my meeting with Alice tomorrow?"
Most personal-knowledge tools give you back a list of pages. Something like:
1. people/alice — Alice runs engineering at Acme...
2. meetings/2026-03-15-alice-q1 — Q1 product review with Alice...
3. meetings/2026-01-08-acme-kickoff — Kickoff meeting with Acme team...
4. customers/acme — Acme is a series-B fintech we work with...
5. notes/2026-04-22 — Quick chat with Alice about pricing...
Five pages you now have to open and read yourself to actually prepare. The tool found the right material, but it didn't do the work.
GBrain gives you back the answer, with sources:
Alice runs engineering at Acme (a series-B fintech). You last spoke
on April 22 in a quick pricing chat. Three things are still open
from that conversation:
1. She owes you the security review for the new tier
(deadline was May 1; no update since).
2. You committed to pricing for a 500-seat tier
(you sent it April 25; no response yet).
3. She mentioned they're hiring a CISO; you said you'd intro
someone from your network.
Heads up: nothing's been added to the brain about Alice or Acme
since April 22, six weeks ago. She may have replied through email
or Slack DM, channels the brain doesn't see. Worth asking her to
catch up before assuming any of this is still current.
Every claim has a source page behind it. The "heads up" at the end tells you what the brain doesn't know yet, so you can ask Alice about it directly instead of being surprised. The brain just did your meeting prep.
This is the difference between a search engine and a brain. Search finds the pages. The brain reads them for you and writes the answer.
Tip Fastest: hosted GBrain at gbrain.io, for any harness. One command launches a GBrain hosted on gbrain.io; Claude Code, Codex, ChatGPT, Cursor and every other AI you use connect to it, with nothing to keep online.
curl -sSL https://gbrainio.terminalwire.sh | bash gbrainio terminal connect # in a new terminal gbrainio workspace new # pick a plan in the browser curl -fsSL https://bun.sh/install | bash # skip if Bun 1.4.4+ is installed export PATH="$HOME/.bun/bin:$PATH" bun install -g github:garrytan/gbrain#stable # the gbrain CLI only; no local brain # Claude Code (an existing gbrain entry is kept): (claude mcp get gbrain >/dev/null 2>&1 || claude mcp add --transport http --scope user gbrain https://gbrain.io/mcp) && gbrain setup claude-code --instructions-only # Codex (an existing gbrain entry is kept): (codex mcp get gbrain >/dev/null 2>&1 || codex mcp add gbrain --url https://gbrain.io/mcp) && gbrain setup codex --instructions-only
gbrain setup <harness> --instructions-onlytells the agent the brain is there; agents seldom call an MCP server nobody told them about. It writes the brain-first block into~/.claude/CLAUDE.mdor Codex'sAGENTS.md(a non-emptyAGENTS.override.mdinstead when Codex has one) with a per-turn rule hook, and leaves the MCP entry alone; the same command with--no-instructionsadded takes them out.The installer is a shell script for macOS and Linux; read it before you run it.
GBrain is MIT-licensed and free to self-host. It needs Bun 1.4.4 or newer; existing worker installs read the authorization and queue upgrade guide before restarting on this version.
Warning GBrain is NOT distributed on npm. The npm
gbrainpackage is unrelated and can shadow the real binary, so never runnpm install -g gbrainorbun add -g gbrain. Install only viabun install -g github:garrytan/gbrain#stable(the soaked stable channel;#latest-stableis the alpha line with every release) orgit clone --branch stable+bun install && bun link. Installed by mistake?gbrain doctorgives the fix. Schema not migrated (#218)? Rungbrain apply-migrations --yes --no-autopilot-install; if it exits 1, rungbrain doctor --json, not another--yes(wedged: relay its fix).
bun install -g github:garrytan/gbrain#stable
gbrain setup claude-code # or: gbrain setup codex
gbrain init --pglite --no-embedding # any other harness, or no agent
gbrain setup shows what it will write first (--dry-run previews, --remove undoes), creates a keyless brain only if none exists, wires MCP, hooks and a brain-first block in the agent's instruction file (--no-instructions skips it), and smoke-tests them (setup guide). For any other coding agent, paste:
Add GBrain memory to this existing agent. Read and follow:
https://raw.githubusercontent.com/garrytan/gbrain/master/INSTALL_FOR_AGENTS.md
Keep my current identity and instructions, start keyless, and show me the
search-mode choice. Verify a remember/recall round trip with real GBrain calls.
Postgres, thin clients, API keys and upgrades: docs/INSTALL.md. Agents: INSTALL_FOR_AGENTS.md. Memory-only walkthrough: give your coding agent a memory.
Gives a Claude Code session helpers for product and engineering work: challenging a plan's scope, judging whether an idea is worth building before any code, tracing a bug to its root cause, and reviewing recent work patterns each week.
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
Install it with the command on its page. It includes brain-ingest-gate, brain-link-discipline, brain-ops. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it