Skip to main content

Stash

Help your agents learn from experience.

Agents generate valuable experience every time they work: successful approaches,
failed attempts, and human corrections. Stash captures that history and makes
its lessons available to future runs.

CI License: MIT Website Discord

This repository provides the open-source foundation: trace collection, persistent knowledge, and reusable skills, accessible through a Python SDK, REST API, MCP, and CLI. It works alongside your existing agents and models.

flowchart LR
    A[Agent runs and human corrections] --> B[Capture sessions via hooks or API]
    B --> C[Curate durable knowledge]
    C --> D[Retrieve knowledge or package skills]
    D --> E[Use in the next agent run]
    E --> A

Try Stash · Read the docs

For CLI setup, local development, and self-hosting, see Running this repository.

How it works

  1. Capture experience. Hooks for coding agents record prompts, tool calls, and responses when session recording is enabled. Use the SDK or API to send events from your own agents.
  2. Extract durable lessons. A scheduled curator reads new sessions and source material, then updates linked pages in your Memory wiki. The knowledge stays available after the original session ends.
  3. Make lessons reusable. Agents search and read that knowledge through the CLI, MCP, API, or virtual filesystem. You and your agents can package related instructions and files into a Skill: a folder containing a SKILL.md.
  4. Carry them into future runs. Install skills into your agent with stash skills install. Installed skills auto-update at session start, so changes to shared instructions can reach the next run without changing the underlying model's weights.

Example: a correction becomes a reusable instruction

Illustrative workflow:

Stage What happens
Trace An agent proposes a database migration. The reviewer points out that it would discard existing customer data.
Durable lesson Record the project rule: schema changes must migrate existing data forward.
Reusable skill Package a migration checklist that requires a data migration and verification that existing records survive.
Next run The agent loads the checklist while planning another schema change. Reviewers check whether it applied the lesson.

The output is inspectable knowledge and instructions that another agent can read, use, and revise. Whether they improve results should be checked on subsequent tasks.

In an internal experiment, we measured a 49% speedup for long-running Claude Code instances using Stash. See the experiment for its setup and results.

Metadata

Release files for stashai 0.1.493

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stashai 0.1.493
File Size Uploaded Provenance Actions
stashai-0.1.493.tar.gz 227.7 kB With provenance Details for stashai-0.1.493.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stashai 0.1.493
File Interpreter ABI Platform Actions
stashai-0.1.493-py3-none-any.whl Python 3 none any Details for stashai-0.1.493-py3-none-any.whl

Total release size: 509.9 kB

Release files / stashai-0.1.493.tar.gz

Download URL stashai-0.1.493.tar.gz
Size 227.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c65ae491a671cb2ec37e3f40e19346deb314d2e953a6959bf4af83d7e896afd
BLAKE2b-256 checksum
How to use checksums
d6577255abbb0969da14811bbd6d36e5dd9d8f0c2c61e60c23d5650ef26e0281
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / stashai-0.1.493-py3-none-any.whl

Download URL stashai-0.1.493-py3-none-any.whl
Size 282.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e44237ed33b6e9a63256b9bdfce25436b7488d63b9d79054fcf1bac566e2a1ef
BLAKE2b-256 checksum
How to use checksums
ab54681744409127dbb63c7b158ad2c189d91db45876e6b6ef44216ec2e00fd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for stashai 0.1.493

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stashai-0.1.493.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.493 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page