Skip to content

Briefcase AI

Open-source decision tracking for AI. Record, replay, and audit every AI decision.

pip install briefcase-ai

What It Does

Briefcase captures immutable snapshots of every AI decision — the exact inputs, model parameters, outputs, confidence scores, costs, and execution context. You can replay any decision deterministically, detect behavioral drift across model versions, and instrument existing frameworks with 2–3 lines of code.

from briefcase import capture

@capture
def classify(text):
    return model.predict(text)

# Every call is now recorded: inputs, outputs, model, cost, latency.

Core Capabilities

Decision Recording — Capture inputs, outputs, model parameters, costs, and metadata for every AI call. Stored as immutable snapshots.

Deterministic Replay — Re-run any recorded decision with identical inputs. Compare outputs across model versions, prompt changes, or config updates.

Drift Detection — Measure how model behavior changes over time. Track consistency scores, detect outliers, get alerts when outputs shift.

Cost Tracking — Per-call cost estimation with built-in pricing for major providers. Set budgets and get alerts.

PII Sanitization — Automatically redact sensitive data (SSNs, credit cards, emails, phone numbers, API keys) before snapshots are stored.

Framework Integrations — Drop-in instrumentation for LangChain, CrewAI, LlamaIndex, AutoGen, AG2, OpenAI Agents, and lakeFS. Add 2–3 lines, capture everything.

Storage Adapters — Pluggable backends: SQLite for local dev, lakeFS for versioned data lakes, plus DVC, Nessie, Pachyderm, and more.

OpenTelemetry Native — Standardized AI semantic conventions. Compatible with any OTel backend (Datadog, Grafana, Honeycomb).

Architecture

Your AI Agent → Briefcase SDK → Storage Backend → Replay & Analysis
                    │                │
              @capture decorator   Immutable decision snapshots
              Framework hooks      SQLite / lakeFS / VCS

17K lines of Rust core. Python SDK via PyO3. Apache-2.0.

Get Started

📖 Docs: briefcaseai.io 📦 PyPI: briefcase-ai 🚀 Quick Start: briefcaseai.io/getting-started/quickstart

Repositories

Repo Description
briefcase-ai-sdk Rust core + Python SDK
briefcase-ai-sdk-docs Documentation site (briefcaseai.io)

Pinned Loading

  1. briefcase-ai-sdk briefcase-ai-sdk Public

    Open-source decision tracking for AI — record, replay, and audit every AI decision. Python SDK backed by a Rust core.

    Python 1

  2. stackelberg-opt stackelberg-opt Public

    Python

  3. uir-framework uir-framework Public

    Python

  4. briefxai briefxai Public

    Platform for analyzing AI conversations at scale, extracting insights, identifying patterns, and visualizing conversation clusters.

    Python

  5. tellen-benchmark tellen-benchmark Public

    AI Model Comparison Platform for Accounting & Audit Benchmarks

    Python

  6. briefcase-ai-usage-examples briefcase-ai-usage-examples Public

    Sample use cases and workflows for using Briefcase AI

    Jupyter Notebook

Repositories

Showing 10 of 23 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…