Skip to main content

Persistent causal memory for AI agents — LangChain, LlamaIndex, AutoGen, CrewAI

Project description

hipcortex

Persistent causal memory for AI agents — LangChain, LlamaIndex, AutoGen, CrewAI.

1.74ms p50 write latency. Temporal decay. Causal world model. Merkle-chained audit log. GDPR right-to-forget.

Install

pip install hipcortex

Quick start

from hipcortex import HipCortexClient

client = HipCortexClient("http://localhost:3030")

# Store memory
client.add_memory(actor="alice", action="said", target="The meeting is at 3pm")

# Search (keyword or cosine similarity)
results = client.search("meeting time", limit=5)

# Stats
print(client.stats())

# GDPR forget
client.forget("alice")

Framework integrations

# LangChain — drop-in for ConversationBufferMemory
from hipcortex.langchain_memory import HipCortexMemory
memory = HipCortexMemory(session_id="user-42", url="http://localhost:3030")

# LlamaIndex
from hipcortex.llamaindex_storage import HipCortexChatStore
store = HipCortexChatStore(client=client)

# AutoGen
from hipcortex.adapters.autogen import HipCortexAutoGenMemory
mem = HipCortexAutoGenMemory(client=client, agent_id="researcher")
agent.register_hook("process_message_before_send", mem.on_message_sent)

# CrewAI
from hipcortex.adapters.crewai import HipCortexRememberTool, HipCortexRecallTool
tools = [HipCortexRememberTool(client=client), HipCortexRecallTool(client=client)]

Start the server

# Self-hosted (single binary, zero deps)
cargo run --bin webserver --no-default-features --features "web-server,petgraph_backend"

# Fly.io
fly deploy

# Live demo
https://hipcortex.fly.dev

Full docs: https://github.com/farmountain/HipCortex

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hipcortex-0.2.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hipcortex-0.2.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file hipcortex-0.2.0.tar.gz.

File metadata

  • Download URL: hipcortex-0.2.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for hipcortex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b54eb979650d76b72753f8276f5f79eb597730d7f22e364f2b224d0354860104
MD5 e8be01725ebda24aa1f4324af08d0233
BLAKE2b-256 017b279a344b745b0e36cc458afd0fee4b0f7b3a0a55ce7dfce2d4b4701d55a4

See more details on using hashes here.

File details

Details for the file hipcortex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hipcortex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for hipcortex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5307d9b77ae3bc68fe6623d309543a55f940c3bf4d65f0be98408b7bb7a17387
MD5 bcfb0bb19d4f14b4e8159e8263b1d431
BLAKE2b-256 ad88ef6d25b78b1beece05f0019ea8513e9ab2fd83634ad097f2faa28a385115

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page