v0.2.0 Now Available

Memory for AI Agents
That Actually Works

CORTEX is an automated memory management system that gives your AI agent persistent, searchable knowledge across sessions โ€” with zero manual intervention.

cortex-cli.py
$ cortex-cli.py search "authentication"
๐Ÿ” 'authentication' โ†’ 12 result(s)
[1] OAuth2-Implementation-8f3a2b.md
T1 (Principle) ยท D1 (24h) ยท security_flagged=false
JWT tokens stored in encrypted session cookies...
[2] API-Key-Rotation-4c9d1e.md
T1 (Principle) ยท D2 (7d) ยท security_flagged=true
Rotate keys every 90 days, use AWS Secrets Manager...
$ _
7,656
Indexed Entries
42 MB
Database Size
~50ms
Search Latency
100%
Automated

Built for Scale

Every feature designed to make your AI agent smarter over time, without manual maintenance.

Real-Time Processing

Session-end hook processes every conversation immediately. No batch delays, no backlog โ€” your agent learns as it goes.

Security Filtering

Automatic credential detection blocks passwords, tokens, and API keys from syncing to Obsidian. 7% of entries flagged and protected.

Smart Classification

Two-dimensional system: Tiers (T1-T4) by importance + Depth (D0-D4) by age. Know what matters and how fresh it is.

Obsidian Sync

Automatic atomic note creation for T1 principles. 878 notes synced with proper frontmatter, tags, and backlinks.

Auto MOC Generation

5+ notes on a topic? CORTEX generates a Map of Content automatically. 179 MOCs created, zero manual work.

Intelligent Eviction

Tier-first + LRU policy. T4 logs auto-pruned after 30 days. T1/T2 principles protected forever. Database stays lean.

Not Your Average Memory System

CORTEX evolves graymatter v2 with automation, security, and intelligent organization.

Feature Manual graymatter v2 CORTEX v0.2.0
Classification None Depth (D0-D4) Tier (T1-T4) + Depth
Security Filtering โŒ โŒ โœ… Auto-detect
Deduplication โŒ โŒ โœ… SHA256 hash
Processing Manual Batch (nightly) Real-time hook
Obsidian Sync Manual โŒ โœ… Atomic notes
MOC Generation Manual Manual โœ… Auto (5+ notes)
Eviction Policy โŒ โŒ Tier-first + LRU
Automation None Cron setup Pre-configured

System Architecture

Built on SQLite FTS5 for millisecond search. Enhanced with fingerprinting, security, and cross-system tracking.

/HOME/.hermes/context/stats.db (42 MB)
โ”œโ”€โ”€ fts_index FTS5 virtual table
โ€ข skill, command, content
โ€ข timestamp, tier, filepath
โ€ข content_hash (SHA256) โ† NEW
โ€ข security_flagged โ† NEW
โ€ข security_resolved, security_reason โ† NEW
โ””โ”€โ”€ content_references Cross-system tracking
โ€ข hermes, graymatter, obsidian flags โ† NEW
โ€ข ref_count, first_seen, last_updated โ† NEW
Daily Pipeline (00:00 โ†’ 00:05)
00:00 midnight-reflection.py โ†’ Process daily entries
00:05 lyt-mind-mapper.py โ†’ Generate MOCs
08:00 cortex-cli.py status โ†’ Morning report

Ready to Give Your Agent Real Memory?

Join 1,000+ AI developers using CORTEX for automated knowledge management.

Open source โ€ข MIT License โ€ข Self-hosted