By sashabogi
Unified codebase intelligence, semantic memory, and multi-provider LLM routing
Show unified memory statistics from Gaia and Open Brain. Displays total memories, tier breakdown, top topics, and more. Trigger: /foundation:brain-stats
Seldon — reconcile a project's documentation against reality: classify every doc (category/status/boundary), resolve version/supersession clusters, and optionally scan the code to find work that's BUILT but undocumented (and docs describing unbuilt features). Trigger: /foundation:doc-inventory
Seldon — generate a browsable HTML documentation portal from a project's markdown docs. Markdown stays the source of truth; the portal is generated (never hand-maintained), styled with the project's design system, and served locally. Run after /foundation:doc-restructure. Trigger: /foundation:doc-portal
Seldon — restructure a project's docs into a standard taxonomy and build the hierarchical AGENTS.md context tree. Moves docs into typed folders, archives superseded ones, generates an INDEX, and authors root + per-boundary AGENTS.md. Run /foundation:doc-inventory first. Trigger: /foundation:doc-restructure
Launch the Foundation dashboard UI in the browser. Starts the local server on port 3333 showing Demerzel snapshots, Gaia memories, and session history. Trigger: /foundation:foundation-ui
Matches all tools
Hooks run on every tool call, not just specific ones
Admin access level
Server config contains admin-level keywords
Executes bash commands
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Hook triggers when Bash tool is used
Hook triggers when Bash tool is used
Requires secrets
Needs API keys or credentials to function
Requires secrets
Needs API keys or credentials to function
"The future is not set, but it can be guided." -- Hari Seldon

Codebase intelligence and semantic memory for Claude Code, inspired by Asimov's Foundation universe.
Foundation is a Claude Code plugin that wraps the @sashabogi/foundation npm package and gives your AI assistant persistent memory, deep codebase understanding, and automatic session lifecycle management. The plugin itself is a thin shell: it contributes hooks that fire on lifecycle events at zero token cost, skills that load instructions only when you invoke them, a local UI server, and a stable adapter to the bundled MCP server. The MCP server (shipped by the npm package) registers 29 tools spanning Demerzel (codebase intelligence), Gaia (local memory), and a small provider registry (provider_list / provider_test). In Claude Code 2.1+ those tools are loaded on demand via the deferred-tool system, so they cost no context until you call them.
The naming comes from Isaac Asimov's Foundation series. In the novels, Hari Seldon created the Foundation to preserve human knowledge through the collapse of the Galactic Empire -- a millennia-long dark age where everything would otherwise be forgotten. This plugin does the same thing for your development work: it preserves architectural decisions, codebase understanding, and project context across sessions, projects, and tools, so nothing is lost when a conversation ends or a context window resets.
Three core systems power the plugin:
/foundation:doc-inventory, /foundation:doc-restructure, /foundation:doc-portal) plus a SessionStart hook that auto-loads the nearest AGENTS.md context tree. (Seldon was previously Foundation's multi-agent orchestrator; that role has been sunsetted -- orchestration now lives in Scrooge and Claude Code's native agents -- and the name was repurposed for the documentation pillar.) See the Seldon section below for details.# Add the marketplace
claude plugin marketplace add sashabogi/foundation-plugin
# Install the plugin
claude plugin install foundation
# Restart Claude Code
That's it. No environment variables required for core functionality. Open Brain cloud memory is optional (see setup below).
"I have been watching for 20,000 years."
Demerzel creates a structural understanding of your codebase without requiring Claude to read every file. When you generate a snapshot (via /foundation:snapshot), Demerzel walks your project tree, parses imports and exports, builds a symbol index, maps the dependency graph, and writes a compact representation to .foundation/snapshot.txt.
From that snapshot, Claude can:
The snapshot captures: file paths, line counts, import/export relationships, symbol locations, and the full dependency graph (both import graph and reverse export graph). Search operations against the snapshot are free -- they cost zero tokens beyond the results themselves.

npx claudepluginhub sashabogi/foundation-plugin --plugin foundationTrantor — the hub-world for AI agent crews: live message bus, presence, project Kanban/flow board + crew orchestration for independent AI coding agents (Claude, Codex, Gemini, Kimi, DeepSeek)
Memory compression system for Claude Code - persist context across sessions
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Streamline people operations — recruiting, onboarding, performance reviews, compensation analysis, and policy guidance. Maintain compliance and keep your team running smoothly.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.