Auditable shared memory for AI agent systems
Project description
CrewContext
Auditable shared memory for AI agent systems.
The Problem
Multi-agent AI systems break at handoffs. Agent 1 processes an invoice. Agent 2 validates it. Agent 3 reconciles discrepancies. But Agent 3 has no idea what Agent 1 found. Context is lost. Decisions are invisible. Nothing is auditable.
Existing agent frameworks give you orchestration — but not memory. Chat history is personal. RAG is read-only. Neither gives you a shared, structured, temporal record of what happened, who did it, and why.
In regulated industries — finance, insurance, compliance — this isn't just inconvenient. It's a liability.
What CrewContext Does
CrewContext is a context coordination layer that sits underneath your agent framework and provides:
- Shared event store — Every agent action is recorded. Nothing is lost at handoffs.
- Causal DAG — Every event tracks what caused it. You can answer "why did this happen?" by walking the chain backwards.
- Temporal queries — Reconstruct the exact state of any entity at any point in time. "What did we know at 2pm yesterday?"
- Versioned entities — Business objects (invoices, customers, claims) are snapshotted at each stage, never overwritten.
- Policy router — Deterministic, auditable routing rules with composable conditions. No black boxes.
- Provenance tracking — Every event records which agent, what scope, and when. Built for auditors.
Architecture
┌──────────────────────────────────┐
│ ProcessContext API │
│ emit · query · timeline · causal│
└──────────┬───────────────────────┘
│
┌────────────────┼────────────────┐
│ │ │
┌─────────▼──────┐ ┌─────▼──────┐ ┌──────▼──────┐
│ PostgreSQL │ │ Neo4j │ │ Policy │
│ Event Store │ │ Graph │ │ Router │
│ │ │ │ │ │
│ Append-only │ │ Lineage │ │ Rules │
│ Temporal │ │ Causal │ │ Pub/Sub │
│ Causal links │ │ DAG │ │ Routing │
│ Versioned │ │ Typed │ │ decisions │
│ entities │ │ relations │ │ │
└────────────────┘ └────────────┘ └─────────────┘
(truth) (optional) (in-process)
PostgreSQL is the source of truth — append-only event log, versioned entity snapshots, causal link table. Neo4j is an optional projection for graph queries and lineage visualization. Policy Router evaluates events against composable rules in-process.
Who It's For
CrewContext is for teams building multi-agent systems where trust, auditability, and context preservation matter:
- Financial operations — Payment processing, reconciliation, dispute resolution
- KYC/AML compliance — Auditable decision trails for regulators
- Insurance claims — Multi-stage pipelines where context loss means money lost
- Supply chain — Order-to-delivery orchestration across multiple agents
- Any regulated workflow where "the AI decided" isn't a good enough answer
Framework-Agnostic
CrewContext is not a replacement for your agent framework. It's the memory layer underneath it. It works with:
- CrewAI
- LangGraph
- AutoGen
- OpenAI Agents SDK
- Custom agent systems
Getting Started
pip install crewcontext
docker compose up -d
crewcontext init-db
crewcontext demo vendor-discrepancy
Full API documentation and examples are available in the docs directory.
Configuration
| Environment Variable | Default | Description |
|---|---|---|
CREWCONTEXT_DB_URL |
postgresql://crew:crew@localhost:5432/crewcontext |
PostgreSQL connection |
CREWCONTEXT_NEO4J_URI |
bolt://localhost:7687 |
Neo4j Bolt endpoint |
CREWCONTEXT_NEO4J_USER |
neo4j |
Neo4j username |
CREWCONTEXT_NEO4J_PASSWORD |
crewcontext123 |
Neo4j password |
Neo4j is optional. Pass enable_neo4j=False for Postgres-only mode.
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewcontext-0.1.0.tar.gz.
File metadata
- Download URL: crewcontext-0.1.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f46f716acae16da1c2bd384fb9ff71de62f86adc6ed169cb5b62cac3783b40f3
|
|
| MD5 |
e8349fd37a463437a0e66262cde35378
|
|
| BLAKE2b-256 |
3e2a79a4b75c743478ede4b23086f3b82d2c0368e5dfd6b4b6469fff23b14239
|
Provenance
The following attestation bundles were made for crewcontext-0.1.0.tar.gz:
Publisher:
workflow.yml on CrewContext/crewcontext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewcontext-0.1.0.tar.gz -
Subject digest:
f46f716acae16da1c2bd384fb9ff71de62f86adc6ed169cb5b62cac3783b40f3 - Sigstore transparency entry: 1049207350
- Sigstore integration time:
-
Permalink:
CrewContext/crewcontext@14fcce866b72eb469b6f61669bcd8836fc377993 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/CrewContext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@14fcce866b72eb469b6f61669bcd8836fc377993 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file crewcontext-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crewcontext-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08dc55c4c3e100ee97dfac2ff1ea214b38a799f7151b0db5aa79201fe00f917f
|
|
| MD5 |
b459fdf778c26a26326ecfdb03e5f8da
|
|
| BLAKE2b-256 |
8eb3654153b334196b128421aec4e6e5971a3d41d3c371dffbc281e48e57b5aa
|
Provenance
The following attestation bundles were made for crewcontext-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on CrewContext/crewcontext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewcontext-0.1.0-py3-none-any.whl -
Subject digest:
08dc55c4c3e100ee97dfac2ff1ea214b38a799f7151b0db5aa79201fe00f917f - Sigstore transparency entry: 1049207449
- Sigstore integration time:
-
Permalink:
CrewContext/crewcontext@14fcce866b72eb469b6f61669bcd8836fc377993 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/CrewContext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@14fcce866b72eb469b6f61669bcd8836fc377993 -
Trigger Event:
workflow_dispatch
-
Statement type: