gbrain-lite

gbrain-lite is a skill for Claude Code, Codex from cosmicstack-labs/mercury-agent-skills. It costs 28 tokens per session (687 once invoked), scanned A, original, MIT.

A personal knowledge base made from searchable Markdown notes with YAML labels at the top of each file. It stores information about books, people, meetings, ideas, articles, projects, and news, with links between related notes.

In plain words
What is it for?
It is for searching existing notes, creating dated entries, recording summaries, and connecting related topics across a personal archive.
Why use it?
It gives an AI agent a structured place to find and update information instead of relying on limited conversation memory or scattered documents.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for gbrain. Also seen: built for gbrain.

Good fit It is for searching existing notes, creating dated entries, recording summaries, and connecting related topics across a personal archive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmicstack-labs/mercury-agent-skills --skill gbrain-lite
Clone the repo
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gbrain-lite

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite/github.svg)](https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite)
Your own site
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gbrain-lite

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/gbrain-lite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00687
Opus 5 $0.00014 $0.00344
Sonnet 5 $0.00006 $0.00137
Haiku 4.5 $0.00003 $0.00069

Measured 10d ago against content hash 504e415310c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gbrain-lite scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

categories/ai-ml/gbrain-lite/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GBrain Lite — Lightweight Personal Knowledge Base

Organize books, people, concepts, and news items from conversations into a searchable, cross-referenced markdown knowledge base.

Workspace

  • Knowledge base directory: brain/
  • Subdirectories by type: books/ people/ meetings/ ideas/ articles/ projects/ news/
  • One entry = one .md file
  • News entries by date: news/YYYY-MM-DD/

Workflow

  1. Trigger check — Book/person/concept/news mentioned in conversation → proactively check brain
  2. Search — Full-text search in brain/ directory (ripgrep/grep)
  3. Decide
    • Existing entry → reference it, update if needed
    • No entry + important → create immediately
    • No entry + uncertain → ask user
  4. Create — Write brain/{type}/{slug}.md
    • Slug: lowercase/hyphenated
    • Must include YAML frontmatter (title, type, date, tags, summary)
  5. Cross-reference — Update links field in related entries
  6. Sync — Keep key entry index in agent memory

Rules

  • Don't dump long content directly into agent memory — prefer brain
  • Don't create entries without title and date
  • Don't skip the summary field — search and listing depend on it
  • Don't manually write updated — it auto-updates on save
  • News entries must use item_id as dedup key (format: github:owner/repo / hn:12345 / arxiv:url)
  • Don't do full overwrite updates on existing entries — use targeted patches

Validation

  • New entry has complete frontmatter (title, type, date, tags, summary)
  • Full-text search finds the new entry
  • News entries contain item_id + first_seen + star_history (GitHub entries)
  • Agent memory usage below 90%, otherwise trigger distillation to brain

Pitfalls

Brain vs Memory confusion

  • Symptom: Long-form content consumed all agent memory space
  • Root cause: Everything dumped into memory instead of brain
  • Fix: >500 chars → brain entry; memory only keeps index pointers. (Fixed: 2026-05-12)

Missing item_id on news entries

  • Symptom: Duplicate news entries accumulate, dedup impossible
  • Root cause: Agent skipped item_id field when creating news entries
  • Fix: Always include item_id for news entries, validated in creation workflow

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 73 lines · 28 tokens per session scan A 504e415310c3

Subscribe to this mod's changes

gbrain-lite is a skill published in the GitHub repository cosmicstack-labs/mercury-agent-skills (470 stars, last pushed 15d ago), licensed MIT. It adds 28 tokens to every session and 687 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

addyosmani/agent-skills · 43 tokens

comet-memory

A review step for deciding whether information should become durable personal memory. It can keep, update, forget, or skip memory candidates based on bounded evidence.

rpamis/comet · 38 tokens

recall-memory

Recall relevant long-term memories on demand. Given a topic or question, judges relevance from pre-loaded metadata, loads only relevant files, and returns a concise summary to the main agent.

clacky-ai/openclacky · 40 tokens

agent-expert-creation

Create specialized agent experts with pre-loaded domain knowledge using the Act-Learn-Reuse pattern. Use when building domain-specific agents that maintain mental models via expertise files and self-improve prompts.

majiayu000/claude-skill-registry · 43 tokens

relevance-coarse-filter

Cheap, high-recall first-pass filter that removes obvious junk from a detector candidate pool before expensive story-origin research and PR judgment. Decides keep, monitoronly, or reject — never ranks, writes angles, verifies dates, or decides whether to pitch.

elvisun/newsjack · 57 tokens

self-improve

Extract lessons from the current session, or sweep the project's past sessions when asked, and route them to the appropriate knowledge layer (project AGENTS.md, auto memory, existing skills, or new skills). Use when the user asks to "self-improve", "distill this session", "distill past sessions", "sweep past…

tobihagemann/turbo · 125 tokens