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.15.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.15-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stashai-0.1.15.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.15.tar.gz
Algorithm Hash digest
SHA256 8a47359a0e5d18e0313d3b9ae1a801349fbfaffb230f0680fddc94b0a2980a5e
MD5 aeabf659e103e278e6e374a40b9701e7
BLAKE2b-256 89f89be8eabc0fa011e2a7fa7a4f319cc343fcafef435e9efedd19219f169520

See more details on using hashes here.

Provenance

The following attestation bundles were made for stashai-0.1.15.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.15-py3-none-any.whl.

File metadata

  • Download URL: stashai-0.1.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c09a9d188ee24fb1fe653ff8812668784a9dd5878d03777c7bfc5223969d67b4
MD5 0d78990e923161f6fd90723188a952c0
BLAKE2b-256 a2b98a4b16dc29dbacd0218c83d186b6127eb397c3bff9458ea9e3e8b9601ecb

See more details on using hashes here.

Provenance

The following attestation bundles were made for stashai-0.1.15-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