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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hipcortex-0.3.2.tar.gz
  • Upload date:
  • Size: 34.8 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.2.tar.gz
Algorithm Hash digest
SHA256 c8265f1b1f351522d1ff9749c8e8746ebf5f8627bbe9ecafca8b2c35cc8e240d
MD5 8dbffb56e0b559340b74f794544f8aa0
BLAKE2b-256 fb7b9b68038bde7e6287619ca1f91a2748afa3fd08a27a4edc69ac7ea5613299

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hipcortex-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 34.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7b4b85077a4f49bbf7bb19dd628143a58d61343a48f86cc6afcecc4fb3b347
MD5 ba83a227382cead2654e33b8037d9ea7
BLAKE2b-256 8a144d43a706c0dfde29cfffa60624c9fe1c7a83c9a8b6753a1e542abb36965c

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