Capture, validate, and transfer AI agent expertise.
Project description
Stato
The Expertise Layer for AI Agents
Capture, validate, and transfer AI agent expertise.
What Is Stato?
Think: npm for agent expertise, with a built-in compiler.
Stato combines what pip does (install, share, registry) with what a compiler does (validate, reject invalid input) for a new kind of artifact: agent knowledge instead of code.
| If you know... | Stato is like... |
|---|---|
| npm / pip | Install, share, and version expertise packages |
| TypeScript / GCC | 7-pass compiler validates before anything hits disk |
| Docker | Package expertise so it works on any platform |
| Git | Snapshot, diff, and merge expertise |
What no existing tool does: the agent extracts its own knowledge (crystallization), privacy scanning before export, and a composition algebra for expertise modules.
Install
pip install stato
Install from GitHub (latest development version):
pip install git+https://github.com/genecell/stato.git
Quick Start
Across Sessions (Same Project)
Your agent forgets between sessions. Stato makes its knowledge persist on disk.
# Session 1: agent captures expertise
cd my-project
stato init
stato crystallize
# Saves prompt to .stato/prompts/crystallize.md
# Ask your coding agent to capture its expertise:
# "Read and follow .stato/prompts/crystallize.md"
# Agent writes .stato/ modules based on what it learned.
# Verify and generate bridge
stato validate .stato/
stato bridge --platform claude
# Session 2 (next day, after /compact, new terminal):
# CLAUDE.md and .stato/ files are still on disk.
# Agent reads CLAUDE.md automatically.
stato resume # structured recap if needed
No export. No import. Files on disk persist across every session.
Across Projects and People
Transfer expertise to a new project, a teammate, or the community.
# Export
stato snapshot --name scrna-expert --sanitize
# Import into new project
cd ~/new-project && stato init
stato import scrna-expert.stato
# Or install from the community registry
stato registry install genecell/scrna-expert
Composition algebra for working with expertise archives:
| Operation | Command | What it does |
|---|---|---|
| Snapshot | stato snapshot |
Bundle all expertise into a portable archive |
| Slice | stato slice --module skills/qc |
Extract specific skills with dependencies |
| Graft | stato graft external-skill.py |
Add one external skill with validation |
| Merge | stato merge a.stato b.stato |
Combine expertise from multiple sources |
Across Platforms
Same expertise, different coding agents. One command.
stato bridge --platform all
# Creates:
# CLAUDE.md -> Claude Code reads automatically
# .cursorrules -> Cursor reads automatically
# AGENTS.md -> Codex reads automatically
From Web AI to Coding Agent
Plan architecture in Claude.ai or ChatGPT. Build in any coding agent.
stato crystallize --web
# Paste prompt into web AI -> get bundle -> save as stato_bundle.py
stato import-bundle stato_bundle.py
stato bridge --platform cursor
Why Stato Exists
AI coding agents are powerful but stateless. Every session starts from zero. Expertise earned in one session, one project, or one platform stays trapped there.
Stato treats agent expertise like code: captured in structured modules, validated by a 7-pass compiler, composed with algebraic operations, and portable across any platform. Your agent's knowledge becomes a permanent, shareable, validated artifact.
Features
| Feature | Description |
|---|---|
| Crystallize | Agent captures its own knowledge into structured modules |
| 7-Pass Compiler | Validates syntax, structure, types, schema, semantics before writing |
| Composition Algebra | Snapshot, slice, graft, merge expertise archives |
| Cross-Platform Bridges | CLAUDE.md, .cursorrules, AGENTS.md from one source |
| Web AI Bridge | Import expertise from Claude.ai, ChatGPT, Gemini conversations |
| Privacy Scanner | 19 patterns detect secrets, emails, paths before export |
| Resume | Restore full context after /compact or session restart |
| Convert | Migrate existing CLAUDE.md, .cursorrules, SKILL.md into stato |
| Registry | Search and install community expertise packages |
| Diff | Field-level comparison between module versions |
CLI Reference
| Command | Description |
|---|---|
stato init |
Initialize a stato project |
stato crystallize |
Save prompt for agent to capture expertise |
stato crystallize --print |
Print full crystallize prompt to terminal |
stato crystallize --web |
Generate prompt optimized for web AI |
stato validate |
Run 7-pass compiler on modules |
stato status |
Show all modules, plan progress, warnings |
stato bridge |
Generate platform bridge files |
stato resume |
Generate context recap for session restoration |
stato diff |
Compare module versions |
stato snapshot |
Export expertise as portable archive |
stato import |
Import modules from .stato archive |
stato import-bundle |
Import from web AI bundle file |
stato inspect |
Preview archive contents |
stato slice |
Extract specific modules with dependencies |
stato graft |
Add external module with validation |
stato merge |
Combine two archives with conflict resolution |
stato convert |
Migrate from CLAUDE.md, .cursorrules, SKILL.md |
stato registry list |
List available packages |
stato registry search |
Search packages by keyword |
stato registry install |
Install a community package |
Full documentation: stato.hiniki.com | USAGE.md
Comparison
| Capability | Stato | Plain CLAUDE.md | SkillKit | MemGPT | CrewAI |
|---|---|---|---|---|---|
| Validated modules | 7-pass compiler | No validation | No validation | No | No |
| Cross-platform | 4 platforms | Claude only | Claude only | OpenAI only | Framework-locked |
| Composition algebra | snapshot, slice, graft, merge | Manual copy | No | No | No |
| Privacy scanning | 19 patterns | None | None | None | None |
| Web AI bridge | Import from any chat | No | No | No | No |
| Agent self-capture | Crystallize prompt | Human-authored | Human-authored | Auto (opaque) | Config files |
| Package registry | GitHub-based | No | No | No | No |
| Session resume | Structured recap | Re-read file | No | Built-in | No |
Registry
Browse and install shared expertise packages:
stato registry list
stato registry search "bioinformatics"
stato registry install scrna-expert
Contributing
https://github.com/genecell/stato
Issues and PRs welcome.
Contact
Min Dai - dai@broadinstitute.org
Fishell Laboratory, Harvard Medical School and the Broad Institute of MIT and Harvard.
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stato-0.5.0.tar.gz.
File metadata
- Download URL: stato-0.5.0.tar.gz
- Upload date:
- Size: 7.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f270107349072088e32b660a9ec4cc935de9e0e51c32ec9ca3c0035b1c79a2
|
|
| MD5 |
e70267c83a021cd77125a737575071a9
|
|
| BLAKE2b-256 |
92d1750c96bacd17c9ee84dd51ce31b375ed3955d967aaaa0a3902ab0c208a7a
|
File details
Details for the file stato-0.5.0-py3-none-any.whl.
File metadata
- Download URL: stato-0.5.0-py3-none-any.whl
- Upload date:
- Size: 56.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53cb084c7887f80b41af8fccf000f8efdaab5338abfe8db8ce0bd5c5b8502da5
|
|
| MD5 |
d128d3558b386d0d76fb3998a75e6914
|
|
| BLAKE2b-256 |
4de620749097eb7425b7e3ea04b15e371b67ea51443a72335078f295770be7ed
|