Persistent state management for LLM agents across sessions
Project description
🌊 अवस्था
avastha
Mandukya Upanishad
States of Being — Jagrat Svapna Sushupti
Persistent state management for LLM agents. Snapshots, rollback, multi-backend storage. Zero dependencies.
Formerly agent-state — Part of the Vedic Arsenal: 100 production-grade Python libraries for LLM agents, each named from the Vedas, Puranas, and Mahakavyas.
The Vedic Principle
The ancient Avastha principle from Mandukya Upanishad finds its modern expression in this library.
Just as the Vedic sages understood that every phenomenon in the universe follows deep patterns — patterns of creation, maintenance, and dissolution — avastha applies this wisdom to LLM agent engineering.
The concept of अवस्था (States of Being — Jagrat Svapna Sushupti) speaks directly to the technical problem this library solves. When the sages codified this principle in Mandukya Upanishad, they were describing not just a spiritual truth but a computational truth that would take humanity millennia to rediscover in silicon.
This is not coincidence. The universe has one nature. The Vedas described it first.
How It Works
flowchart LR
A[Input] --> B[avastha]
B --> C{Process}
C -- Success --> D[Output]
C -- Error --> E[Handle]
E --> B
style B fill:#6b21a8,color:#fff
Installation
pip install avastha
Or from source:
git clone https://github.com/darshjme/avastha.git
cd avastha && pip install -e .
Quick Start
from avastha import *
# See examples/ for full usage
The Vedic Arsenal
avastha is one of 100 libraries in darshjme/arsenal — each named from sacred Indian literature:
| Sanskrit Name | Source | Technical Function |
|---|---|---|
avastha |
Mandukya Upanishad | States of Being — Jagrat Svapna Sushupti |
Each library solves one problem. Zero external dependencies. Pure Python 3.8+.
Contributing
- Fork the repo
- Create feature branch (
git checkout -b fix/your-fix) - Add tests — zero dependencies only
- Open a PR
🌊 Built by Darshankumar Joshi · @thedarshanjoshi
"कर्मण्येवाधिकारस्ते मा फलेषु कदाचन" Your right is to action alone, never to its fruits. — Bhagavad Gita 2.47
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 avastha-0.1.0.tar.gz.
File metadata
- Download URL: avastha-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5c76359c52e3b4b69bdc68f3ca2fc065bfe03e50ecc07424f6eef02e923b377
|
|
| MD5 |
aa95f808e8ad745410b78c7a5cb4a71d
|
|
| BLAKE2b-256 |
c924149b0dbfceb0f88a84254fb6c1e6add5e96f8de7d1c8871bdd7ee0eca24c
|
File details
Details for the file avastha-0.1.0-py3-none-any.whl.
File metadata
- Download URL: avastha-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daa15ad0b328cf61a79250abb031916f35db1e8b7cbcccb152b5d81023cbd333
|
|
| MD5 |
8f51d2a57a11ee219f63d2eb37e34fa4
|
|
| BLAKE2b-256 |
522d97939aa53c76bb6eeba8c00d5899d89800aca6178edcfbfcbac5f35d6054
|