Catalog PyPI
PACKAGE EXPLORERView in registry

agent-smriti

PyPI

Plain-text memory for AI agents — small, filtered, compressed, self-pruning. No database, no embeddings, no dependencies.

agent-memoryagentsaicontextllmmarkdownmemoryrag
Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 23:27 UTC

README

Version 0.1.0 documentation

smriti — plain-text memory for AI agents: write through a filter, compress to a hook, inject the index, recall by hook, prune the rest

smriti

Plain-text memory for AI agents.
Markdown files — no database, no embeddings, no dependencies.


from smriti import Memory
mem = Memory("./memory")

mem.write("Use Postgres, not Mongo, for the ledger", type="decision")

mem.context()                  # the index — inject into your prompt every turn
mem.recall("postgres ledger")  # ranked matches, plus what they link to (one hop)
mem.get("use-postgres-for-the-ledger").body
mem.prune()                    # stale / duplicate / broken-link memories

Install  ·  pip install agent-smriti  ·  or copy smriti.py (stdlib, Python 3.10+)

The four rules  ·  write what's durable  ·  compress to a hook + seed  ·  recall by hook  ·  prune the rest

Limits  ·  recall is lexical (the model does the semantics over context())  ·  the filter checks shape, not worth  ·  built for agent scale


The format is the whole spec  ·  Benchmarks — local-model A/B: smriti 100% vs no-memory 25% at ~⅓ the context  ·  MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.027 Jun 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
ek-sutra/smriti

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:dcb597351e8175665385d5b26168f2a6e11174e5765f7b32c9aa68a23f86fa8b