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.3.1.tar.gz (31.5 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.3.1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hipcortex-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9ef6a6b4a0b265c237a7a2901d4e429f5e44ba4ebe822c9e01dd93759b12a083
MD5 e690b88597b6e70de1c2ab635ba42cfb
BLAKE2b-256 48b649aa16110dfae4272535976cdecc00f3c90597dc7cdd3a6085c8d041fbb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hipcortex-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 31.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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 978cfa7e553df9874213fee4443526e2127831d16df7a366236ffa98472774d7
MD5 5b96737419d9d63e4b1129aa78b0c06f
BLAKE2b-256 daae85859eb93e81ff124e98852091f7675381c3a4792397b6b3a61e3003147a

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