Skip to content

Guide · Agent skill

How to use the gbrain Company Brain Access agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The gbrain skill gives an AI agent access to your organization's central 'brain', a searchable store of company docs, shared channel knowledge, and notes written by other agents. This guide explains what the skill does, how to install it, how to trigger it with plain requests, and what it needs before it works. It is written for readers who have not used agent skills before.

gbrain Company Brain Accessgarrytan/gbrain · MIT

Quick start

  1. 1Download and unzip. Download the gbrain ZIP from this page and unzip it to get SKILL.md, tool.json, and provision-scopes.sh.
  2. 2Place the skill folder. Copy the unzipped folder into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. You can also upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Install the gbrain CLI. Make sure the gbrain CLI is installed in the environment where the agent runs.
  4. 4Get your credentials. Obtain the OAuth client ID and client secret your organization issues through its secret handoff.
  5. 5Run the init command. Run gbrain init --mcp-only with your organization's brain host, MCP URL, client ID, and client secret, passing the secret with --oauth-client-secret.
  6. 6Confirm the connection. Run gbrain whoami. It must succeed before you use any other command.
  7. 7Ask a natural question. Ask the agent about a person, project, decision, or past event, and it will search the brain before answering.

What the gbrain skill makes the agent do

The skill connects the agent to the gbrain CLI, which is set up as a thin client to your organization's central brain. The brain is the deep, indexed, cross-source memory: org docs, shared channel knowledge, and every agent's durable notes.

Before answering questions about people, projects, decisions, or history, the agent is instructed to search the brain first. When it produces conclusions with lasting value, it can save them back. Reads and writes are limited by the server: the agent only sees sources its client is entitled to, and it can only write under its permitted prefixes.

  • Search the brain with hybrid semantic and keyword search
  • Read a single page by its slug
  • Write durable conclusions under the agent's own namespace and the channels it belongs to
  • Link related pages together

Install the gbrain skill from the ZIP

Download the gbrain ZIP from this page and unzip it. The package contains three files: SKILL.md, tool.json, and provision-scopes.sh. SKILL.md holds the instructions the agent reads.

For a personal setup, place the unzipped folder in ~/.claude/skills/. To scope it to one project, place it in that project's .claude/skills/ folder instead.

If you use the Claude apps, you can upload the skill instead under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/
  • Project install: the project's .claude/skills/ folder
  • Claude apps: Settings → Capabilities → Skills

Connect the agent to your brain server

Before the skill works, the gbrain CLI must be installed and connected to your organization's brain server. Your organization issues the OAuth client ID and client secret through its secret handoff, either as a keychain entry or a one-time secret drop named gbrain.

Run the setup once per sandbox. If gbrain remote doctor already passes, you can skip it. Replace the brain.<org>.com placeholders with your organization's host and the credential values from the handoff.

Pass the client secret with --oauth-client-secret rather than the GBRAIN_REMOTE_CLIENT_SECRET environment variable. According to the skill, an env-sourced secret is not written to ~/.gbrain/config.json, so later commands fail with 'No client_secret available' once the variable goes out of scope. The flag saves it to the config file.

Do not run gbrain remote doctor. It needs admin scope, which a standard client does not have. Use gbrain whoami as the read-scope health check.

gbrain init --mcp-only \ --issuer-url "https://brain.<org>.com" \ --mcp-url "https://brain.<org>.com/mcp" \ --oauth-client-id "<client id from the handoff>" \ --oauth-client-secret "<client secret from the handoff>" gbrain whoami # must succeed before using any other command

Search and read the brain

Reading is the safe, frequent operation. The skill says to do it liberally. Search works on meaning and keywords together, so you can ask in natural language. Use query with --json when the output is for agent consumption.

  • gbrain search "who decided X and why" runs a hybrid semantic and keyword search
  • gbrain get <slug> reads one page
  • gbrain query "question" --json runs a search tuned for agents
gbrain search "who decided X and why" gbrain get <slug> gbrain query "question" --json

Save durable knowledge to the brain

Writing is limited to durable knowledge. The skill says to save conclusions and facts, not chat transcripts. Write one page per entity, decision, or topic, and update an existing page instead of creating near-duplicates. Pages use Markdown with YAML frontmatter.

Writes go under your own namespace (for personal memory) or under a channel prefix you belong to. Writes outside those prefixes are rejected by the server. When you learn something relevant to a channel during personal work, the skill asks the agent to copy the conclusion to the channel with a '(said in <where>)' provenance note.

  • Write conclusions and durable facts, not transcripts
  • Update existing pages rather than appending near-duplicates
  • Link from pages in your namespace to any readable page with gbrain link <from> <to>
  • Add a '(said in <where>)' note when mirroring to a channel
gbrain put emp-<your-slug>/people/jane-example --content "..." gbrain put chan-eng/decisions/2026-08-database-choice --content "..."

Trigger the skill with natural requests

You do not need a special command. The skill's description tells the agent to use it for questions about the organization, people, projects, decisions, or history, and for persisting knowledge beyond the current scope. Ask the way you would ask a colleague, and the agent should search the brain before it answers.

If results look wrong, for example authentication errors or empty results you did not expect, ask the agent to run gbrain whoami and report its output. That shows which client and scopes are in use.

  • "Who owns the billing service, and when did we decide that?"
  • "Search the brain for why we chose the current database."
  • "Save the decision we just made in the eng channel as a brain page."
  • "Check whether gbrain whoami still works."

Safety notes: scripts and network access

This skill runs scripts and uses the network. The CLI calls your organization's brain host, and provision-scopes.sh is included in the package. The operator requirements list bash, the gbrain CLI with admin access, and a roster file for running provision-scopes.sh. Those steps are for operators, not for ordinary users.

The server enforces read isolation and write fences, so the agent cannot read sources it lacks access to or write outside its prefixes. Still, treat the OAuth client secret as a credential and do not paste it into shared chats or public files. Review any script before you run it.

  • Network access to https://brain.<org>.com is required
  • The client secret must come from your organization's handoff
  • Operator-only: provision-scopes.sh requires bash, admin CLI access, and a roster file
  • Agent-written conclusions persisted to shared channels may spread unverified information, so review them

Tips for reliable use

Run gbrain whoami first in any new sandbox. Most later failures trace back to credentials or scope. Keep each brain page focused on one entity, decision, or topic, so search returns clear results. Use the agent's personal notebook for fast working memory and the brain for knowledge other people should find later.

  • Confirm gbrain whoami succeeds before anything else
  • Keep one topic per page and update pages instead of duplicating them
  • Save conclusions, not raw conversation logs
  • Use gbrain search before trusting an answer about org history

What people use it for

  • Finding out who made a past decision and the reasoning behind it
  • Looking up a teammate's role or project history before asking them directly
  • Saving a finalized architecture decision to a team channel prefix with a provenance note
  • Keeping durable notes that other agents you are entitled to can later search

Frequently asked questions

How do I install the gbrain agent skill?

Download the gbrain ZIP from this page and unzip it. Place the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder, or upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need before the gbrain skill works?

You need the gbrain CLI installed and connected to your organization's brain server, plus an OAuth client ID and client secret issued by your organization. You also need network access to the brain host, such as https://brain.<org>.com.

Is the gbrain skill free to use?

The source lists the licence as MIT. Using it still requires organization-issued credentials and access to a gbrain server, so it is not useful on its own.

Can I use gbrain without an organization brain server?

Not according to the source. The skill depends on a central remote brain, and setup requires credentials issued by an organization. It is not a standalone personal notes tool.

Why does gbrain whoami fail?

The skill says to run gbrain whoami to confirm which client and scopes are in use. If you see 'No client_secret available', the secret was likely passed through GBRAIN_REMOTE_CLIENT_SECRET; re-run init with --oauth-client-secret so it is saved to ~/.gbrain/config.json.

How does gbrain compare with a personal notes app?

gbrain is a shared, central company brain with server-enforced access rules, so everyone entitled to a source can search it. A personal notes app keeps notes for one person. Use gbrain for knowledge that should outlive a single scope or be found by others.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits teams running multi-agent deployments on a shared organizational knowledge base, and operators who provision access per employee and per channel. It is a poor fit for individuals without a gbrain server and organization-issued OAuth credentials, for anyone wanting a standalone personal notes tool, or for sensitive contexts where saving agent-written conclusions to shared channels could spread unverified or confidential information.

Download the skill