Skip to main content

CLI for Stash — shared memory for AI coding agents

Project description

Stash

Knowledge bases for the agent era.

The one place your agents connect to all your data — GitHub, Drive, Gmail,
Notion, Slack and more — plus an agent-native Drive in Markdown and HTML
where their sessions, files, and pages all land.

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

  • Sessions stream in automatically. A hook for your coding agent pushes every transcript — prompts, tool calls, artifacts — to a shared workspace.
  • Files and sessions live side by side. Markdown, HTML, tables, PDFs. Humans and agents both write here; both sides see edits in real time.
  • Agents query it like a filesystem. A CLI, MCP server, and virtual-filesystem shell expose the workspace to any agent. Semantic and keyword search across pages, sessions, and tables.
  • Skills are the shareable slice. Bundle pages and sessions into one link. Publish to the world, share with collaborators, or fork a public Skill into your own 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. The one place your agents connect to all your data, with an agent-native Drive they write it back into — not a stack of shell scripts wrapped around a folder of markdown.

Built for —

Use case What teams put in it
Engineering live docs coding-agent plans, ADRs, and design notes that stay current
Company brain the shared context every agent and teammate reads from
Research knowledge base long-running PKBs with sources, transcripts, and tables
Ops playbooks release runbooks and on-call procedures
Brand voice editorial guidelines and copy standards agents write to
Personal knowledge management notes, drafts, and scratch files for a single operator

Quick Start

pip install stashai / uv tool install stashai
stash login

stash login walks you through account creation, picks a workspace, connects your current repo when you want uploads, and wires up coding-agent plugins. Use stash connect later when you are already authenticated and only need to bind another repo to a workspace.

Prefer a one-liner?
bash -c "$(curl -fsSL https://joinstash.ai/install)"

The installer uses uv to install or update stashai, bootstrapping uv when needed, and then runs stash login. Use this when you don't already have a Python toolchain on your machine.

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. stash login can auto-install hooks for Claude Code, Cursor, Codex, and OpenCode; Gemini CLI and Openclaw are available in plugins/ and are installed manually. Mix and match — different teammates can use different agents against the same shared brain.

CLI Reference

See here for a CLI reference.

Self-Hosted

Run Stash with prebuilt GHCR images:

To host locally:

git clone https://github.com/Fergana-Labs/stash.git
cd stash
cp .env.example .env
docker compose -f docker-compose.prod.yml -f docker-compose.local.yml pull
docker compose -f docker-compose.prod.yml -f docker-compose.local.yml up -d
curl http://localhost:3456/health
open http://localhost:3457/login

Docker Compose generates and persists the OAuth token encryption key when INTEGRATIONS_ENCRYPTION_KEY is unset. Set it yourself only if you manage deployment secrets outside Compose.

For a public domain with Caddy and HTTPS:

# Set PUBLIC_URL and CORS_ORIGINS in .env, then replace app.example.com in Caddyfile.
docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -d
curl https://app.example.com/health

docker-compose.prod.yml pins the image versions it was tested with. To upgrade, pull the latest compose file and restart:

git pull
docker compose -f docker-compose.prod.yml -f docker-compose.local.yml pull
docker compose -f docker-compose.prod.yml -f docker-compose.local.yml up -d

Then install the CLI:

pip install stashai   # or: uv tool install stashai
cd /path/to/the/repo/you/want/to/connect
stash login   # choose "Self-host" and enter http://localhost:3456

When connecting to a domain-backed install, enter your public URL (e.g. https://app.example.com) at the same prompt. To change the endpoint later, run stash settings.

Finally see it in action:

claude
> what did I get done last week? check stash.

Privacy

Stash is built for engineering teams working in private repos.

  • LLM calls are optional and scoped. When an Anthropic API key is configured, the server uses it for ask-the-workspace answers and auto-generated session titles. No key means those features are unavailable — the rest of Stash works without any LLM.
  • Permissioned workspaces. Only invited members can access a workspace. Public visibility is controlled by Skills.
  • Transcripts are opt-in. If you don't want to share your agent transcripts, 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? When an Anthropic API key is provided, the server calls Claude for ask-the-workspace (quality tier) and session title generation. Both are optional — without the key, Stash works but those features are disabled. There is no background page-writing agent.

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.89.tar.gz (133.2 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.89-py3-none-any.whl (157.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stashai-0.1.89.tar.gz
  • Upload date:
  • Size: 133.2 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.89.tar.gz
Algorithm Hash digest
SHA256 faf41e1ce69190984c1f310b13825424c33cfa8d245c7f43d50da401f2b6e411
MD5 7c9ce8f11c5a441be1da4ad4ad740188
BLAKE2b-256 e5ffe0a59323ed70c579ee331320e9f2d2cff43003649629beae58cea3e3a450

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: stashai-0.1.89-py3-none-any.whl
  • Upload date:
  • Size: 157.3 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.89-py3-none-any.whl
Algorithm Hash digest
SHA256 21ec9a9375c5006a850ac2016e3f8f1ee5a0595804143887eb1b492bad2b903e
MD5 155360e8c682727bbc71e164015b3643
BLAKE2b-256 0378d85ea4a7c979911ced134fa9c014eb6023e6d7c9f5e12654d5c7fb6987ad

See more details on using hashes here.

Provenance

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