hypermem
v0.3.1
Published
Agentic memory framework for coding agents, business agents, and personal assistants
Maintainers
Readme
Hypermem
Living memory for AI agents.
Opinionated memory framework designed for active curation and hydration over time.
Principles
Memory is a signal vs noise problem. Not everything deserves to be remembered. Hypermem stores curated, high-value memories - rules, decisions, conventions, versions, preferences - not raw logs or conversation dumps.
Graphs allow agents to reason through memory. Memories connect to objects, contexts, and each other. Agents traverse relationships to understand why decisions were made, what superseded what, and how things relate.
Memory needs to be hydrated and pollinated. Stale memory is dead memory. Hypermem validates facts, hydrates assumptions, notices contradictions, and evolves memory via append-only updates.
Requirements
- Node.js 20+
- HelixDB instance
- OpenAI API key (for embeddings)
Installation
npm install -g hypermemConfiguration
export OPENAI_API_KEY="sk-..."
export HELIX_URL="http://localhost:6969" # optional, defaults to thisQuick Start
# Deploy HelixDB schema
helix push dev
# Seed example data
npx tsx scripts/seed-examples.ts
# Run onboarding
hypermem onboard
# Search memories
hypermem search "state management"
# List by type (using aliases)
hypermem list rules
hypermem list versions
hypermem list conventions
# Add a memory
hypermem add "Use pnpm over npm" --type Convention --tags "tooling"Commands
Memories
hypermem add <statement> # Add a memory
hypermem search <query> # Vector search (all statuses)
hypermem list # List ACTIVE memories
hypermem list rules # Aliases: decisions, problems, traits, conventions, etc.
hypermem forget <id> # Permanently delete
hypermem dim <id> # Soft delete (hide from default queries)
hypermem undim <id> # Restore a dimmed memory
hypermem validate <id> # Mark as validatedEntities
hypermem object add <name> # Add object (Lib, Tool, Model, etc.)
hypermem context add <name> # Add context (Project, Org)
hypermem agent add <name> # Add agent instance
hypermem trace add <summary> # Add trace record
hypermem reference add <title> # Add external referenceRelationships
hypermem link about <memId> <objectId> # What it's about
hypermem link context <memId> <contextId> # Where it applies
hypermem link supersedes <new> <old> # Replace outdated
hypermem link versionof <memId> <objectId> # Version -> ModelUtilities
hypermem onboard # Agent quick start guide
hypermem reality-check # Current time + active rules
hypermem --help # Full command listMemory Types
| Type | Purpose | |------|---------| | Rule | Must follow (constraints) | | AntiPattern | Must avoid (learned mistakes) | | BestPractice | Should follow (recommendations) | | Convention | Team/project standard | | Decision | Architecture/tech choice | | Version | Library/model version info | | Problem | Known issue | | Preference | User likes/dislikes | | Trait | User behavior patterns | | Causal | Cause-effect relationships |
Architecture
src/
commands/ # CLI commands (Commander.js)
pipelines/ # Write/read pipelines
ai/ # OpenAI embeddings
db/ # HelixDB client
types/ # TypeScript types + Zod schemas
db/
schema.hx # HelixDB schema
queries.hx # HelixQL queriesDevelopment
npm run start # Run via tsx
npm run build # Compile TypeScript
npm run typecheck # Type check onlyLicense
MIT
