By Fergana-Labs
Stream Claude Code session activity to Stash for persistent history, audit logging, and collaborative workspaces. Track prompts, session lifecycles, and tool events for analytics and team visibility.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
api_keyAPI key (from Stash registration)
${user_config.api_key}agent_nameAgent identity name in Stash
${user_config.agent_name}Matches all tools
Hooks run on every tool call, not just specific ones
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_curateSpawn a headless `claude -p` at session end to curate workspace history into wiki pages (true/false, default true). Toggle stored in ~/.stash/config.json.
${user_config.auto_curate}api_endpointStash API base URL
${user_config.api_endpoint}workspace_idDefault workspace UUID (optional, set via `stash connect`)
${user_config.workspace_id}
Every session, paper, webpage, and conversation goes into one shared knowledge base.
A curation tool organizes it into a searchable wiki — so your whole team learns from every agent.
Curation — The Claude Code plugin's /stash:sleep command reads history data and organizes it into a categorized wiki with folders, summaries, and [[backlinks]]. It also runs automatically on SessionEnd, so knowledge stays structured without manual maintenance.
Wiki notebooks — Rich collaborative pages with [[wiki links]], page graph visualization, backlink tracking, and semantic search powered by pgvector embeddings.
Universal search — An agentic search loop (/stash:search in the Claude Code plugin) that queries across files, history, notebooks, tables, and chats in a single request. Ask a question, get answers from everything.
Real-time collaboration — Agents and humans chat side-by-side in workspace channels. Share findings, coordinate work, and keep everyone in sync.
Shareable pages — Create HTML documents (reports, dashboards, slide decks) that anyone with a link can view. Turn research into deliverables.
Go to stash.ac and register. Save your API key.
pip install stash
stash connect # Interactive: paste API key, pick a default workspace
stash history search "authentication patterns" # Full-text search over events
stash history push "session notes here" # Push an event
stash --help # Full command list
For cross-resource agentic search, install the Claude Code plugin and use /stash:search.
pip install stash
stash connect # Configure API key + default workspace
stash history push <content> # Push an event
stash history search <query> # Full-text search over history events
stash notebooks list --all # List notebooks across your workspaces
stash --help # Full command list
The plugins/claude-plugin directory ships a Claude Code plugin that turns any session into a persistent Stash agent: activity streams to history, memory injects into every prompt, and context carries across sessions.
# From the octopus repo
claude plugin add ./plugins/claude-plugin
# Or from the marketplace
claude plugin install stash
Slash commands include /stash:connect (onboarding), /stash:sleep (curate history into a wiki — also runs on SessionEnd), /stash:search (agentic cross-resource search), and /stash:status. See the plugin README for full setup.
git clone https://github.com/Fergana-Labs/stash.git
cd octopus
cp .env.example .env # fill in credentials + API keys
# edit Caddyfile → replace app.example.com with your domain
docker compose -f docker-compose.prod.yml up -d
Includes Caddy for automatic HTTPS. Requires PostgreSQL with pgvector. Optional: S3 storage, embedding provider (OpenAI, Hugging Face, local sentence-transformers, or BYO), Anthropic API key (curation + search).
Local development? Use
docker compose up -d(no-fflag) — simple setup with hardcoded dev credentials.
npx claudepluginhub fergana-labs/stash --plugin stashInteractive cohort analysis dashboard — engagement retention, revenue/GP cohorts, CAC/LTV payback. Point at CSV, Excel, or a database and get live charts.
Persistent memory across Claude Code sessions using Cognis
Persistent memory for Claude Code. Capture work across sessions and recall relevant context.
Auto-capture high-signal coding context into memctl memory
Ingest coding sessions into an AKB vault as structured notes.
Persistent memory for AI coding agents. Survives across sessions and compactions.
Personal AI Infrastructure — persistent memory, session continuity, and knowledge graph for Claude Code