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/Antaris1337/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
Memory decay curves โœ… โŒ โŒ โŒ
Emotional tagging โœ… โŒ โŒ โŒ
Temporal reasoning โœ… โŒ โŒ โŒ
Contradiction detection โœ… โŒ โŒ โŒ
Selective forgetting โœ… โŒ โŒ โŒ
Dream state consolidation โœ… โŒ โŒ โŒ
Zero dependencies โœ… โŒ โŒ โŒ
Cost per year <$5 $500+ $500+ $1000+
Patent protected โœ… โŒ โŒ โŒ

License

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

The underlying technology is protected by US Patent Application #63/983,397 (pending). Commercial products that implement the patented methods require a commercial license from Antaris Analytics.

Built by

Antaris Analytics โ€” AI memory intelligence
๐Ÿ“ง moro@antarisanalytics.ai
๐ŸŒ antarisanalytics.ai


"We gave AI agents human-like memory for $5/year."

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.0.tar.gz (18.5 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.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antaris_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 18.5 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.0.tar.gz
Algorithm Hash digest
SHA256 0c458587693ace145cf887fae69063d1da7feef215f0d40a7ec2a5a1b314021a
MD5 8a0740f12ed1e27a40ad759f6ca47f5e
BLAKE2b-256 17a06c6535fc73092d82165097476749966789391ba92e10890dd3766f37e286

See more details on using hashes here.

File details

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

File metadata

  • Download URL: antaris_memory-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15106b6a840904ed01988ea16ac249ef8f8ac99b65476aad788c15b94ee99f2c
MD5 9fde6bb6215c97b854f37fa9420a8b54
BLAKE2b-256 ad8f5ee07ee67abdfdd85537b006ae5ee6d9995bef64e63512a580f2920cc203

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