Skip to main content

CLI for Stash — shared memory for AI coding agents

Project description

Stash

Sessions, files, and Product Stashes for agent work.

Stash is a workspace for coding-agent sessions, pages, and publishable Product Stashes.
It captures every coding-agent run across your team and makes
the important work easy to search, organize, and share.

CI License: MIT Website Self-hostable Opt-in transcripts Discord

When we tested this internally, we found that it sped up long-running instances of Claude Code by 49%.

Stash visualizations — embedding space, file tree, agent activity

Stash in action — agent queries shared memory and gets cited answers

How it works

  • Stash installs a hook for your coding agents that automatically uploads session transcripts to a shared store.
  • It exposes a CLI, MCP server, and app-level virtual filesystem shell that let humans and agents query sessions, browse Stash with bash-shaped commands, write pages, and create Product Stashes.
  • Product Stashes bundle pages and sessions into shareable links. You can publish them publicly, list them in Discover, or fork external Stashes into your workspace.

Why shared beats individual

When five engineers run Claude on the same repo, they generate valuable session transcripts. However, their coding agent can only access transcripts generated on the machine where the agent is currently running. As a result, engineering effort is duplicated and eng velocity is decreased. This is especially true as coding agents begin to run autonomously for significant periods of time.

With Stash, every agent on the repo has context about every session created from that repo. Here are some use cases:

  • Code Faster / Don't Duplicate Work: "Has anyone else tried fixing the memory leak in our API gateway? What was attempted?"
  • Look Organized During Standup: "What did I get done this week? What other work did I do that isn't tracked in Git?"
  • Don't Be Blocked on Collaborators: "Why did Sam increase the timeout to 30s? The git history is unhelpful."
  • Align With Your Team Faster: "Please add a feedback endpoint to our API" -> Claude: "FYI, Sam decided not to add a feedback endpoint since we want to encourage churned users to hop on a call directly"

"raw data from a given number of sources is collected, then compiled by an LLM into a .md knowledge base, then operated on by various CLIs by the LLM to do Q&A and to incrementally enhance it… I think there is room here for an incredible new product instead of a hacky collection of scripts."

— Andrej Karpathy, LLM Knowledge Bases

Stash is that product. For teams of coding agents working on the same repo. Your agents' streamed sessions are the raw data. Files is where humans and agents write durable pages. Product Stashes are the publishable bundles you share with collaborators or add back into a workspace. AI usage becomes a shared, searchable asset, not individual effort.

Quick Start

Run this in a terminal:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Fergana-Labs/stash/main/install.sh)"

Stash welcome screen after install

Then try it: ask your coding agent if it has access to Stash.

Coding agent confirming access to the Stash CLI

Agents can browse Stash with an app-level virtual filesystem shell:

stash vfs ls /
stash vfs "tree /workspaces -L 2"
stash vfs "find /workspaces -maxdepth 3 -type f | head -n 20"
stash vfs "rg \"database migration\" /workspaces"

Integrations

Stash supports the following coding agents:

  • Claude Code
  • Cursor
  • Codex
  • OpenCode
  • Gemini CLI
  • Openclaw

Stash supports opt in per-coding agent. Mix and match — different teammates can use different agents against the same shared brain.

CLI Reference

See here for a CLI reference.

Self-Hosted

To self host, just run docker compose on infrastructure of your choice.

git clone https://github.com/Fergana-Labs/stash.git
cd stash
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

Set EMBEDDING_PROVIDER to use a third-party embedding provider (otherwise we'll just use local sentence-transformers). Set S3_ENDPOINT, S3_BUCKET, and S3_ACCESS_KEY to use S3-compatible object storage (R2, S3, MinIO) for file uploads.

Local development? Use docker compose up -d (no -f flag) — simple setup with hardcoded dev credentials.

Local seed data

Once PostgreSQL is running, populate a realistic local dataset for UI smoke testing:

python scripts/seed_dev_data.py

The seeder creates demo users, one shared workspace, folders/pages, sessions, tables, stashes, and sample table/file-collection data when S3 storage is configured. If S3_* is not set, file rows are skipped with a warning.

Privacy

Stash is built for engineering teams working in private repos.

  • No LLM calls from the server. Search runs inside your agent (Claude Code, Cursor, etc.) using the keys it already has. The Stash backend itself makes no model calls.
  • Permissioned workspaces. Only invited members can access a workspace. Public visibility is controlled by Product Stashes.
  • Transcripts are opt-in. If you don't want to share your agent trasncripts, you can give your agent shared read access to the workspace's memory without uploading any of your own session data.

FAQ

What LLMs does Stash use? None on the server. Agents can use the CLI and MCP server to search sessions, write pages, and create Product Stashes, but there is no background page-writing agent in v0.

Can I use this without Claude Code? Yes. You can use the CLI with anything, and Stash has native plugins for Cursor, Codex, Opencode, Gemini CLI, and more.

Contributing

Contributions are welcome. See CONTRIBUTING.md to get started.

Found a bug? Open an issue.

License

MIT — Copyright (c) 2026 Fergana Labs


Built by Fergana Labs.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stashai-0.1.16.tar.gz (110.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stashai-0.1.16-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

Details for the file stashai-0.1.16.tar.gz.

File metadata

  • Download URL: stashai-0.1.16.tar.gz
  • Upload date:
  • Size: 110.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stashai-0.1.16.tar.gz
Algorithm Hash digest
SHA256 e3dfcbb56ca430e9572cf7b9d0c722feb0e41b8247c03c6133db691583af794e
MD5 f2fcc1f349a7e37b8e1202edc1e56e4d
BLAKE2b-256 f8beca5f1c3a7c38b83a5a43e38c75816ceb0e4b64f5163466a5e980a1c2d2c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for stashai-0.1.16.tar.gz:

Publisher: publish.yml on Fergana-Labs/stash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stashai-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: stashai-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 131.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stashai-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 414ed21a3eddc79179b6b9e1cdc0de8f8806491ef5b38fa7731cb4d4ea8ae379
MD5 9bf1303785a88946a8dd43decf95a957
BLAKE2b-256 6b7026c586fb03e6a512c96b0f37b560f82876ccc6645a552d31a8738408e3bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for stashai-0.1.16-py3-none-any.whl:

Publisher: publish.yml on Fergana-Labs/stash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page