Claude Code session

Claude Mega Brain

OKF-powered knowledge context for Claude Code — injects your project's knowledge base at every session

128 stars 18 forksSessions & history Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add guhcostan/claude-mega-brain

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/guhcostan/claude-mega-brain.git

From the README

claude-mega-brain

*Loads the knowledge. Skips the search.*

100% accuracy · 0 tool calls · −66% tokens vs Obsidian+MCP

Real agentic sessions. Benchmark →

Install

Then in any project:

Start a new session — the knowledge base loads automatically.

The problem

Without claude-mega-brain, Claude guesses from training data:

With claude-mega-brain, the exact schema is injected at SessionStart:

Benchmark

10 questions with project-specific values unknowable from training data.
Real agentic sessions — not simulated.

† raw and Obsidian+MCP reach 100% agentic accuracy by using tool calls to explore the project — spending 3–4× more tokens and time. Without tools, they drop to 50% and 13%.

CLAUDE.md (raw files) matches mega-brain on accuracy but uses 25% more tokens and is 25% slower. mega-brain's compressed OKF index is smaller and faster — the gap widens as knowledge bases grow.

Full results · Reproduce

How it works

At SessionStart, a hook scans the entire project for any .md file with type: in its YAML frontmatter and injects a compact index:

No dedicated folder needed — documents can live anywhere in the project. When Claude reads an OKF file, linked concepts surface automatically via PostToolUse.

Zero overhead when not in use — if no documented concepts are found, the hook exits in

License

MIT — The shortest license that works.
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
22 July 2026
Topics
ai-agentsclaude-codeclaude-code-pluginknowledge-basemega-brainokfsecond-brain

FAQ

What is Claude Mega Brain?

OKF-powered knowledge context for Claude Code — injects your project's knowledge base at every session It is a session for Claude Code, from guhcostan/claude-mega-brain on GitHub.

How do I install Claude Mega Brain?

Run /plugin marketplace add guhcostan/claude-mega-brain inside Claude Code, then follow the setup in the README.

Is Claude Mega Brain popular?

guhcostan/claude-mega-brain has 128 GitHub stars and 18 forks. It was last updated on 22 July 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.