By XTraceAI
Auto-capture Claude Code sessions into MemHub team memory. Incremental flushes on commit/PR events (PostToolUse hooks) plus a SessionEnd backstop read the transcript and save it via the memhub-staging MCP, which runs tool-aware (agentic) extraction of facts, episodes, and artifacts with watermark-based delta dedup. Also ships /memhub:save-artifact for terminal artifact uploads.
Executes bash commands
Hook triggers when Bash tool is used
External network access
Connects to servers outside your machine
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.
Auto-capture your Claude Code sessions into MemHub team memory. At the end of
each session, an agent hook reads the transcript and saves it through the
memhub-staging MCP server, which runs tool-aware (agentic) extraction of
facts, episodes, and artifacts.
This repo is both a marketplace and a single plugin:
.claude-plugin/marketplace.json # makes the plugin installable
plugins/memhub/
├── .claude-plugin/plugin.json # plugin manifest
├── .mcp.json # the memhub-staging MCP server (per-user OAuth)
└── hooks/hooks.json # SessionEnd → agent hook → import_conversation
/plugin marketplace add XTraceAI/memhub-claude-plugin
/plugin install memhub@memhub
Then authenticate the MCP server once (the hook can't run until it's connected):
/mcp
Select memhub-staging, choose Authenticate, and approve in the browser.
.jsonl and calls import_conversation, passing the raw transcript records
and the session_id as the conversation_id.agentic prompt variant (the agent is treated as a valid belief source;
facts/episodes/artifacts land in your personal team-LTM).conversation_id keys a deterministic
re-import), so nothing is double-saved.Besides the SessionEnd backstop, a PostToolUse hook watches for git commit,
gh pr create, and gh pr merge and flushes the transcript-so-far in the
background (async — never blocks your session). Commits are semantic work
boundaries: flushing there makes memory available mid-session (parallel
sessions see fresh decisions minutes after each commit), shapes episodes into
work-unit narratives, and survives sessions that never end cleanly. All
triggers share one conversation_id (= session_id) and one server-side
watermark, so the full transcript is re-sent but only the delta is ever
processed — total extraction cost is the same as a single end-of-session
import.
Extra prerequisite for the flush hook: it authenticates with the
memhub CLI token (the async hook can't reuse the session's MCP OAuth), so
run once:
uvx memhub login
Without it the hook degrades silently (the SessionEnd agent hook still captures everything at close).
/mcp. The first time the hook
tries to use the server you'll see a trust/permission prompt; that's by design.import_conversation tool (MemHub-Backend branch
fm-feat/mcp-agentic-session-ingest) to be deployed to staging.To point at a different MemHub instance, edit plugins/memhub/.mcp.json
(url and oauth.clientId).
npx claudepluginhub xtraceai/memhub-claude-plugin --plugin memhubMemory compression system for Claude Code - persist context across sessions
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.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.