New:Socket for Asana Is Now Available.Learn more
Get Started

@timps-ai/memory-core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@timps-ai/memory-core

TIMPS 9-layer persistent memory engine — working, episodic, semantic, procedural, and 5 forge layers with 17 intelligence tools for AI agents. Contradiction detection, bug pattern tracking, and burnout monitoring.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
40
-38.46%
Maintainers
1
Weekly downloads
 
Created
Source

@timps-ai/memory-core

Persistent memory engine for AI agents — working, episodic, semantic, procedural memory with 17 intelligence tools, contradiction detection, bug pattern tracking, and burnout monitoring.

npm install @timps-ai/memory-core

Quickstart

import { MemoryEngine, InMemoryBackend } from '@timps-ai/memory-core'

const engine = new MemoryEngine('./my-project', {
  backend: new InMemoryBackend()
})

// Store a memory
engine.store({ content: 'The API uses JWT authentication', type: 'fact', tags: ['auth', 'security'] })

// Recall memories
const results = await engine.recall('how does authentication work')
console.log(results)

Architecture

22-layer memory architecture with 4 core memory types + 18 forge layers:

LayerNamePurpose
L1Working MemoryActive context, goals, current task tracking
L2Episodic MemorySession history, interaction records
L3Semantic MemoryFacts, preferences, conventions, patterns
L4Procedural MemoryReusable workflows, recipes
L5ChronosForgeCausal graph tracking decisions and consequences
L6ResonanceForgeHarmonic oscillator pattern resonance detection
L7EchoForgeReservoir computing with BFS context propagation
L8AetherForgeERLEpistemic Resonance Lattice
L9HarmonicSheafWeaverSheaf-cohomology algebraic contradiction detection
L10EngramLogImmutable hash-chained audit trail
L11ConsolidationEngineEpisodic → semantic memory promotion
L12SynapticPrunerActive forgetting by importance scoring
L13ProvenanceForgeSource tracking and chain of custody
L14SpacedRepetitionForgeSM-2 scheduling for review timing
L15ConstitutionalGuardPrevents low-confidence writes
L16AuditForgeMemory health reports and drift detection
L17ProspectiveTriggerConditional recall ("when X happens, surface Y")
L18BiasRevealerOver/under-representation analysis
L19ContextVectorState-dependent recall encoding
L20RehearsalEngineSpaced retrieval practice scheduling
L21SchemaDistorterBartlett schema-driven distortion detection
L22ConfidenceCalibratorMulti-signal confidence scoring

Additional forge subsystems (SupraSheaf, QPTW, TitanicForge, QERW, QISRD, EclipseForge, QITRL) are available for advanced use cases.

Intelligence Tools (25 total)

  • ContradictionDetector — detect conflicting stored facts
  • BurnoutSeismograph — monitor developer fatigue signals
  • RegretOracle — identify past decisions that caused issues
  • TechDebtSeismograph — forecast maintenance burden
  • BugPatternProphet — predict bug-prone patterns
  • APIArchaeologist — track API quirks and gotchas
  • VelocityTracker — monitor workflow velocity and patterns
  • ArchitectureDriftDetector — track design divergence
  • PatternLearner — extract reusable knowledge
  • MeetingGhost — extract commitments from conversations
  • DeadReckoning — simulate past decisions before repeating them
  • LivingManifesto — derive values from behavioral patterns
  • RelationshipIntelligence — track relationship health
  • SkillShadow — identify tacit skills and gaps
  • CurriculumArchitect — build personalized learning paths
  • CodebaseAnthropologist — analyze codebase culture and norms
  • InstitutionalMemory — capture departed contributor knowledge
  • FalseMemoryDetector — detect hallucinated or incorrect memories
  • ConfidenceCalibratorTool — score memory reliability
  • SourceAttributor — trace memory origins
  • ConflictResolver — resolve conflicting entries
  • MemoryAuditor — full memory system audit
  • ProspectiveTriggerTool — set conditional recall triggers
  • BiasRevealerTool — surface systematic biases
  • SchemaInferrer — derive structure from data

Storage Backends

BackendFileDescription
FileBackendbackends/FileBackend.tsLocal filesystem (default)
InMemoryBackendbackends/InMemoryBackend.tsIn-memory (testing)
PostgresBackendbackends/PostgresBackend.tsPostgreSQL with RLS
SQLiteBackendbackends/SQLiteBackend.tsSQLite (WAL mode)
RedisBackendbackends/RedisBackend.tsRedis key/value
QdrantBackendbackends/QdrantBackend.tsVector search

Note on Intelligence Tool Results

New engines with no accumulated data will return empty/undefined fields from tools like burnout analysis, bug pattern prophecy, and architecture drift detection. These tools require multiple sessions of stored episodes and patterns before producing meaningful output.

Keywords

memory

FAQs

Package last updated on 30 Jun 2026

Related posts