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.0.tar.gz (31.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.3.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hipcortex-0.3.0.tar.gz
  • Upload date:
  • Size: 31.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.3.0.tar.gz
Algorithm Hash digest
SHA256 abdd5438e6596f800dbd638d4563e90cabaed34b6bfb1d795def609c116d76a7
MD5 594c373d72a12a5c38e6dbbe18de66db
BLAKE2b-256 67dee54fcbd8c04a7b3394ac2c60a3f163ebe2c813731b0037c5cf1f60b168a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hipcortex-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f534331a5d27b2de8b94e25bb322e59af36ce2d93b41d6d365848d84ed7cd569
MD5 56b6a97e4f93cb7468153a7c6c44fdc9
BLAKE2b-256 402cd0a881e56ed5e3eda0e4de7bd51c0b5983051e27e793cc9e39477bb83a44

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