Plexium gives your repository a persistent, agent-maintained wiki that compounds with every commit.
Plexium is a repo memory system for human developers and coding agents. It does not replace your source code or your existing docs. It adds a durable knowledge layer beside them: a .wiki/ vault that agents can read before they work, update after they work, and query later through CLI or MCP instead of rebuilding context from scratch every session.
The short version is simple: LLM agents are good at coding, but they are terrible at remembering. Plexium turns that repeated rediscovery into a shared project memory that can compound over time.
When you run Plexium in a repository, it creates two project-local surfaces:
.wiki/becomes the durable knowledge layer: pages, navigation, change log, raw source material, and agent instructions..plexium/becomes the control plane: config, manifest, templates, reports, integrations, and generated instruction files for agents.
From there, Plexium gives you three ways to use that memory:
- read and maintain it as a browsable wiki in GitHub Wiki or Obsidian
- retrieve answers from it with
plexium retrieveor PageIndex over MCP - keep it in sync with your code through hooks, CI, and optional background automation
Plexium is also deliberately per repository. You install the plexium binary once on your machine, but you run plexium init or plexium setup <agent> inside each repository you want Plexium to manage. It does not silently apply itself to every repo on your machine.
Core vs optional: The core product is the wiki, manifest, compile/lint flow, and retrieval CLI. MCP setup, marketplace plugins, daemon automation, Ollama/OpenRouter providers, and Memento ingestion are optional layers you can add when you want more leverage.
The day-to-day loop looks like this:
- A user or agent retrieves context from the wiki instead of starting cold.
- Code changes happen in the normal repo workflow.
- Plexium updates or validates the wiki, navigation, and state manifest.
- Hooks and CI catch drift so the memory stays aligned with the codebase.
That means Plexium is not just a wiki generator. It is a system for keeping project understanding durable, queryable, and enforceable while real work is happening.
Plexium stores durable project understanding in .wiki/: architecture pages, module pages, ADRs, concepts, guides, log entries, contradictions, and raw source material. Agents read it before they work and write back to it after they work.
Plexium includes a built-in retrieval engine over the wiki. You can query it directly from the CLI with plexium retrieve "query", or expose the same engine over MCP with plexium pageindex serve so Claude, Codex, or other agents can pull relevant wiki context inside their own sessions. The marketplace/plugin bundles wrap that same retrieval surface instead of inventing a second system.
If you want the raw MCP setup path, use:
plexium pageindex connect claude
plexium pageindex connect codexIf you want Plexium to guide the repo setup and optionally write the native MCP config for you, use:
plexium setup claude --write-config
plexium setup codex --write-configPlexium can stay passive, or it can stay alive while you code. Git hooks can enforce that wiki changes accompany source changes. CI can check coverage at PR time. The daemon can watch for stale pages, lint issues, and wiki debt. Claude and Codex integrations keep setup, verification, retrieval, and MCP wiring on a single happy path instead of making users memorize the raw commands.
If you want autonomous wiki upkeep, Plexium can run background maintenance through a daemon runner such as claude, codex, or gemini, and it can also route provider-cascade tasks to local or remote model providers. Ollama is the zero-cost local path. OpenRouter or another OpenAI-compatible endpoint is the remote path. This layer is optional: the core wiki and retrieval workflow do not require a paid provider. Our current OpenRouter picks balance long context, quality, and cost: google/gemma-4-31b-it, qwen/qwen3.5-35b-a3b, openai/gpt-5.4-nano, and nvidia/nemotron-3-super-120b-a12b.
Plexium now stores assistive behavior in an editable prompt pack under .plexium/prompts/, with simple capability profiles such as constrained-local, balanced, and frontier-large-context. That lets teams tune how aggressive or conservative the assistive layer should be without editing Go code.
When Memento is enabled, Plexium can treat session transcripts as raw source material instead of letting rationale vanish after the commit lands. That gives the assistive layer access to design intent, tradeoffs, and decision history that ordinary code scans miss.
Plexium is shaped by the LLM Wiki idea, but it goes further in a few important ways:
- It uses a deterministic manifest, compile, and lint model instead of relying on best-effort wiki generation alone.
- It gives agents a native retrieval layer through CLI, MCP, and marketplace/plugin surfaces, not just static pages.
- It can actively maintain knowledge through hooks, CI, and background automation instead of waiting for humans to remember.
- It can ingest Memento session history so rationale and tradeoffs have a path into the wiki, not just the final code diff.
Plexium is per-repo. Install the binary once, then run the setup commands below inside each repository you want to instrument.
Prerequisites:
- Go 1.25+
- Git
- A Git repository
- Optional: git-memento for session provenance. If you opt into it with
--with-memento, Plexium can offer to install it for you.
go install github.com/Clarit-AI/Plexium/cmd/plexium@latest
# Go install is quiet on success. If `plexium` is not found, add Go's bin dir to PATH.
BIN_DIR="${GOBIN:-$(go env GOPATH)/bin}"
export PATH="$BIN_DIR:$PATH"
hash -r
plexium --version
# Run setup inside your repo
cd /path/to/your/repo
git init # if this is a new project
plexium setup claude
# or
plexium setup codex
plexium verify claude
# or
plexium verify codexAdd --write-config if you want Plexium to run the native MCP configuration command for you. Add --with-memento if you also want repo-local session provenance:
plexium setup claude --write-config --with-memento
plexium setup codex --write-config --with-mementoAfter setup, the next default move is plexium convert. Setup wires the tooling, retrieval, MCP path, and agent instructions; convert turns the starter scaffold into a useful first-pass wiki. If no assistive provider is configured yet, Plexium now offers Ollama/OpenRouter setup during onboarding and otherwise falls back cleanly to convert plus your main coding agent.
For Claude Code and Codex, Plexium currently installs a temporary repo-local Memento compatibility shim while upstream git-memento catches up with their current session models.
Plexium only pushes .wiki/ content when the local config allows it. Set githubWiki.enabled: true in .plexium/config.yml before publishing. GitHub must also have the Wiki feature enabled, and GitHub creates the backing .wiki.git repository only after the first wiki page exists, so a brand-new GitHub Wiki may need one starter page created in the GitHub web UI before CLI publishing works.
githubWiki:
enabled: trueplexium publish --dry-run
plexium publishIf publish reports that the wiki repository was not found, verify your active GitHub credentials with gh auth status, enable Wiki in the repository settings, create the first wiki page in the GitHub web UI if needed, confirm .plexium/config.yml has githubWiki.enabled: true, then rerun plexium publish.
/plugin marketplace add Clarit-AI/Plexium
/plugin install plexium-tools@clarit-ai
/plexium-install
/plexium-setup
Use /plexium-setup-auto when you want the plugin to apply the Claude MCP configuration automatically.
Claude supports a true remote marketplace install from the Plexium GitHub repository today. Codex is not there yet: the current Codex plugin flow still uses the repo-local marketplace entry in .agents/plugins/marketplace.json until self-serve remote publishing to the official Codex Plugin Directory is available.
For the full walkthrough, see Getting Started.
Plexium pulls together four ideas: Karpathy's LLM Wiki as the conceptual starting point, OpenAI Symphony as the orchestration influence, PageIndex as the retrieval pattern, and Memento as the provenance layer. The interesting part is not just that these projects are cited, but how Plexium combines them into one repo-native system.
Read the full breakdown in Inspirations.
- How Plexium Works
- Retrieval and MCP
- Automation and Hooks
- Assistive Prompts
- Memento Integration
- Inspirations
- Getting Started
- User Guide
- CLI Reference
- Implementation Status
Never paste API keys, tokens, or other secrets into an AI chat window. In Plexium workflows, that is especially important when Memento is enabled, because session context can later be attached to commits as git notes or copied into raw transcript material.
Prefer terminal-native flows such as:
export OPENROUTER_API_KEY="sk-or-v1-..."
plexium agent setup
# or script the exact model you want:
plexium agent setup --model google/gemma-4-31b-itIf a secret was already pasted into chat, rewind that session if possible and do not commit its Memento note.
Plexium is part of the Clarit.AI open-source ecosystem. Plexium solves agent amnesia at the repository knowledge layer: it gives agents a persistent, shared understanding of the codebase that compounds across sessions. Engram approaches memory at the conversation and inference layer. Synapse approaches it at the hardware layer with hybrid NPU/CPU routing for edge devices.
See CONTRIBUTING.md for build instructions, testing, and PR workflow.
