hippocampus

module
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT

README ΒΆ

Hippocampus

A finite, biologically-inspired memory storage engine for log retention, audit trails, and context management.

Coverage Status Dependabot Known Vulnerabilities Go Reference GitHub go.mod Go version

Hippocampus Architecture

Time-to-live and fixed FIFO queues manage bounded disk space by treating age as a proxy for value β€” so the anomaly, the audit event, and the context everyone keeps coming back to get purged for crossing an arbitrary threshold. Hippocampus scores each record instead, on significance, age, recall, and what it is linked to, and runs a periodic sleep cycle that forgets the low-value tail first. The store stays inside a finite budget; what it keeps is what turned out to matter.

  • Relative significance β€” rank a record ABOVE, BELOW, or BETWEEN existing ones and the server opens a gap for it, instead of forcing everything onto a fixed importance scale.
  • Reinforcement through recall β€” reading a record strengthens it: the decay clock resets and its effective significance rises, so frequently-referenced data resists decay.
  • Sleep and consolidation β€” background cycles apply the decay model, compact the store, and can distil a pile of episodic detail into one semantic summary (optionally with an embedded LLM).
  • Retrieval ranked by value β€” content search out of the box on the default embedded install, with significance and recall blended into the result order. Add OpenSearch and an embedding model for semantic and hybrid retrieval.
  • Durable and compliance-safe β€” embedded or centralised, over SQLite (WAL), PostgreSQL, or MySQL, with retention floors that guarantee a compliance window regardless of storage pressure.

Where it fits and where it does not: Use cases & deployment modes. How the forgetting actually works: Memory consolidation.


πŸ”­ See it running β€” hippocampus-demo.com


πŸ“š Documentation

The guides below cover the service itself; the components that ship around it are in the second table. If you are deciding rather than deploying, read Use cases & deployment modes first β€” its Worth knowing before you start section is the set of properties that shape what you can build on this.

Core
Guide Description
🎬 Getting Started Step-by-step build, initial config, and first gRPC/HTTP requests.
πŸ“ Use Cases & Patterns Embedded vs. centralised topologies and data transfer strategies.
🧠 Memory Consolidation Deep dive on decay algorithms, capacity targets, and summarisation.
πŸ§™ Configuration wizard Build a config and its deployment artefacts in the browser, with a live forgetting preview.
βš™οΈ Configurability Exhaustive key reference for TLS, auth, storage drivers, and listeners.
πŸ› οΈ Operations & Deployment Containers, Kubernetes, packages, sizing, backups, shutdown, and observability.
πŸ”’ Security What is off by default, auth and role tiers, hardening checklist, and where content can leave.
πŸ“Š Performance Benchmarks Throughput sweeps across SQLite, Postgres, and MySQL under heavy loads.
πŸ§ͺ Demonstrations The hosted demo, plus worked scenarios using real-world data shapes and generators.
πŸ–₯️ Web console The console every instance serves at /ui β€” what each tab answers, and where its numbers come from.
Tertiary
Guide Description
πŸ€– MCP Server Give an LLM host (e.g. Claude, ChatGPT, Gemini, etc) memory tools via the Model Context Protocol.
πŸ”Œ Event Sourcing Bridge NATS, MQTT, RabbitMQ, Kafka, or the Bluesky firehose in, storing each message as a memory.
🚦 Ingestor Stage data at the edge and promote completed events into a central store under CEL rules.
πŸ’» CLI Drive a running service from the shell over either transport.
🧬 Clients & Codegen Generate a Python, TypeScript, or any-language client from the proto or OpenAPI document.
πŸ““ Obsidian Integration Use Hippocampus as a memory layer for an Obsidian vault via the plugin or the MCP bridge.

Directories ΒΆ

Path Synopsis
Package archive implements the export/import wire format shared by the S3 Export/Import RPCs: a gzip-compressed stream of length-delimited ArchiveRecord protos, header first.
Package archive implements the export/import wire format shared by the S3 Export/Import RPCs: a gzip-compressed stream of length-delimited ArchiveRecord protos, header first.
cmd
config-wizard command
Command hippocampus-config-wizard serves the configuration and deployment wizard: a browser-based, guided builder for a Hippocampus config.json and the deployment artefacts that carry it (Docker Compose, Kubernetes, systemd, or a plain binary run).
Command hippocampus-config-wizard serves the configuration and deployment wizard: a browser-based, guided builder for a Hippocampus config.json and the deployment artefacts that carry it (Docker Compose, Kubernetes, systemd, or a plain binary run).
hippocampus command
Package contract is a reverse proxy.
Package contract is a reverse proxy.
demo
generator command
The generator is a long-running load driver for the hippocampus service.
The generator is a long-running load driver for the hippocampus service.
injector command
Command injector seeds a Hippocampus instance with representative corporate events and memories through the HTTP/JSON gateway's ImportBatch endpoint (POST /v1/import/batch).
Command injector seeds a Hippocampus instance with representative corporate events and memories through the HTTP/JSON gateway's ImportBatch endpoint (POST /v1/import/batch).
Package embed provides the optional text embedder that turns memory bodies and search queries into vectors, so memories can be found by meaning rather than by the words they happen to use.
Package embed provides the optional text embedder that turns memory bodies and search queries into vectors, so memories can be found by meaning rather than by the words they happen to use.
Package observability installs the global OTEL tracer and meter providers, and serves the liveness/readiness endpoints an orchestrator probes.
Package observability installs the global OTEL tracer and meter providers, and serves the liveness/readiness endpoints an orchestrator probes.
Package ratelimit implements the service's request throttling: a hierarchy of token buckets that admits a request only when every level that applies to it has a token to spend.
Package ratelimit implements the service's request throttling: a hierarchy of token buckets that admits a request only when every level that applies to it has a token to spend.
Package search provides the optional secondary content-search index.
Package search provides the optional secondary content-search index.
Package summarise provides the optional embedded-LLM summariser used to condense the memories of an event into a single summary.
Package summarise provides the optional embedded-LLM summariser used to condense the memories of an event into a single summary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL