Cohort 2 · local SDK
Anthropic API developers

Move from demo to durable agent without rewriting memory later.

The MADB Anthropic shim wraps the API call your application already makes. It recalls relevant context before the turn and persists the outcome afterward with causal lineage.

One import change

Keep the rest of your agent loop.

pip install madb-anthropic

# before
from anthropic import Anthropic

# after
from madb_anthropic import Anthropic

Your existing messages.create() calls remain the integration surface.

Runtime contract

Recall before inference. Persist after outcome.

  1. Resolve the stable tenant and session context.
  2. Recall relevant memories with causal and recency signals.
  3. Preface the model context with bounded memory.
  4. Persist the user turn, agent response and causal relationship.

Success means the same memory contract survives the jump from prototype to production code.

Hosted API is not shipped

The local SDK path is available. A future MADB_API_ENDPOINT upgrade path is wired, but the hosted service must not be represented as available until it launches.