Skip to main content

Human-like memory for AI agents. Patent pending.

Project description

๐Ÿง  Antaris Memory

Human-like memory for AI agents. Patent pending.

Give your AI agents persistent memory that decays, reinforces, feels, reasons about time, detects its own contradictions, and cleans up after itself. For under $5/year.

Patent Pending Python 3.9+ License

The Problem

Every AI agent forgets everything between sessions. GPT, Claude, Gemini โ€” they all start from zero every time. Enterprise memory solutions cost $5,000-$50,000/year and provide basic retrieval at best.

The Solution

from antaris_memory import MemorySystem

# Initialize
mem = MemorySystem("./my-agent-workspace")

# Ingest conversations, notes, anything
mem.ingest_file("conversation.md", category="tactical")
mem.ingest_directory("./memory", pattern="*.md", category="tactical")

# Search with decay-weighted relevance
results = mem.search("what did we decide about pricing?")

# Ask about time
memories = mem.on_date("2026-02-14")
story = mem.narrative(topic="patent filing")

# Forget things (GDPR-ready)
mem.forget(entity="John Doe")
mem.forget(before_date="2025-01-01")

# Run dream-state consolidation
report = mem.consolidate()

# Save
mem.save()

Features

Feature Description Patent Claim
Memory Decay Ebbinghaus-inspired forgetting curves with reinforcement on access Claim 16
Sentiment Tagging Auto-detect emotional context (positive, negative, urgent, strategic, financial) Claim 17
Temporal Reasoning Query by date, date ranges, build chronological narratives Claim 22
Confidence Scoring Track reliability, increase on corroboration Claim 23
Contradiction Detection Flag when memories conflict with each other Claim 23
Memory Compression Auto-summarize old files, preserve key points Claim 20
Selective Forgetting GDPR-ready deletion by topic, entity, or date with audit trail Claim 21
Dream State Background consolidation: find duplicates, cluster topics, generate insights Claim 24

Install

pip install antaris-memory

Or from source:

git clone https://github.com/Antaris-Analytics/antaris-memory.git
cd antaris-memory
pip install -e .

Quick Start

from antaris_memory import MemorySystem

# Create a memory system
mem = MemorySystem("./workspace", half_life=7.0)

# Load existing state (if any)
mem.load()

# Ingest some content
mem.ingest("Today we decided to use PostgreSQL for the database.", 
           source="meeting-notes", category="strategic")

mem.ingest("The API costs $500/month which is too expensive.",
           source="review", category="financial")

# Search
results = mem.search("database decision")
for r in results:
    print(f"[{r.confidence:.1f}] {r.content}")

# Check stats
print(mem.stats())

# Save state
mem.save()

How It Works

Memory Decay (Ebbinghaus Curves)

Memories naturally fade over time, just like human memory:

Score = Importance ร— 2^(-age / half_life) + reinforcement
  • Fresh memories score high
  • Old unused memories fade toward zero
  • Accessed memories get reinforced โ€” the more you recall something, the stronger it stays
  • Memories below the archive threshold are candidates for compression

Sentiment Analysis

Every memory is auto-tagged with emotional context:

entry.sentiment = {"positive": 0.8, "financial": 0.5}

Search by emotion: mem.search("budget", sentiment_filter="financial")

Dream State Consolidation

Run periodically (cron job, background task) to:

  • Find and merge near-duplicate memories
  • Discover topic clusters
  • Detect contradictions
  • Suggest memories for archival
report = mem.consolidate()
# Returns: duplicates found, clusters, contradictions, archive suggestions

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              MemorySystem                    โ”‚
โ”‚                                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚  Decay   โ”‚ โ”‚ Sentiment โ”‚ โ”‚  Temporal   โ”‚ โ”‚
โ”‚  โ”‚  Engine  โ”‚ โ”‚  Tagger   โ”‚ โ”‚  Engine     โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚Confidenceโ”‚ โ”‚Compressionโ”‚ โ”‚ Forgetting  โ”‚ โ”‚
โ”‚  โ”‚  Engine  โ”‚ โ”‚  Engine   โ”‚ โ”‚  Engine     โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚     Consolidation Engine             โ”‚   โ”‚
โ”‚  โ”‚     (Dream State Processing)         โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                             โ”‚
โ”‚  Storage: JSON file (zero dependencies)     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Configuration

mem = MemorySystem(
    workspace="./workspace",    # Where to store metadata
    half_life=7.0,              # Memory decay half-life in days
    tag_terms=["custom", "terms"],  # Additional auto-tag keywords
)

Zero Dependencies

Antaris Memory uses only Python standard library. No numpy, no torch, no API keys required.

Optional: Install openai for embedding-based semantic search (coming in v0.2).

Comparison

Feature Antaris Memory LangChain Memory Mem0 Zep
Input gating (P0-P3) โœ… โŒ โŒ โŒ
Autonomous knowledge synthesis โœ… โŒ โŒ โŒ
No database required โœ… โŒ โŒ โŒ
Memory decay curves โœ… โŒ โŒ โš ๏ธ Partial
Emotional tagging โœ… โŒ โŒ โœ…
Temporal reasoning โœ… โŒ โŒ โœ…
Contradiction detection โœ… โŒ โŒ โš ๏ธ Partial
Selective forgetting โœ… โŒ โš ๏ธ Partial โš ๏ธ Partial
Self-hosted cost Free Free Free (OSS) Free (OSS)
Patent pending โœ… โŒ โŒ โŒ

License

Apache 2.0 โ€” free for personal and commercial use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antaris_memory-0.1.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antaris_memory-0.1.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file antaris_memory-0.1.1.tar.gz.

File metadata

  • Download URL: antaris_memory-0.1.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for antaris_memory-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c1225e4ca725a33fff458462d82f7facfdf4cfcd39e19f54b324c024c48360ff
MD5 54d045a00ea2449f3e014df01aa53ccd
BLAKE2b-256 afc143d5894e84b5d61d4bce410848da47992af3407667d1b0232338cfef5543

See more details on using hashes here.

File details

Details for the file antaris_memory-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: antaris_memory-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for antaris_memory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 897fe4888b8f2b613c2bca193d18de489131a94692ed508eba9852551588e8c4
MD5 3ee0b59c21cab34b6b6e207139895497
BLAKE2b-256 afe3de95da33501bf75bad19eaf2d15dd25d237476b06d56ab829e460821c8de

See more details on using hashes here.

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