#error #memory #traits #shared #knowledge-graph #embedding #vector-search #artificial-intelligence #hybrid

codemem-core

Shared types, traits, and errors for the Codemem memory engine

10 releases (breaking)

new 0.8.0 Mar 5, 2026
0.7.0 Mar 3, 2026
0.6.2 Feb 28, 2026
0.5.0 Feb 28, 2026
0.1.0 Feb 27, 2026

#162 in Database implementations


Used in 10 crates

Apache-2.0

71KB
1.5K SLoC

codemem-core

Shared types, traits, and errors for the Codemem memory engine.

Overview

This is the foundation crate with zero internal dependencies. All other Codemem crates depend on it.

Key Exports

  • Types (types.rs): MemoryNode, Edge, Session, DetectedPattern, ScoringWeights, VectorConfig, GraphConfig
  • Enums: MemoryType (7 variants), RelationshipType (23 variants), NodeKind (12 variants), PatternType (5 variants)
  • Traits (traits.rs): VectorBackend, GraphBackend, StorageBackend
  • Config (config.rs): CodememConfig, EmbeddingConfig, StorageConfig — TOML-backed persistent configuration
  • Errors (error.rs): CodememError with variants for storage, embedding, graph, config, lock poisoning, and more

Dependencies

~7–13MB
~159K SLoC