Changelog

What's new in AgentCompile.

Every release of the SDK, in Python and TypeScript, newest first.

  1. In review

    Python 0.4.0TypeScript, next

    Personal data scrubbed on your machine

    With capture on, emails, payment cards, phone numbers and account numbers become keyed tokens on your machine before anything is sent. The same value always gives the same token, so a conversation still adds up. Order numbers and other ids are left alone.

    • On by default whenever capture is on.
    • The scrubbing key stays with you. Set the same AGENTCOMPILE_SCRUB_KEY on every server so tokens match.
  2. TypeScript 0.1.0

    The SDK for TypeScript

    Wrap the OpenAI or Anthropic client your agent already uses. Only create() is intercepted; everything else on the client is untouched.

    • wrap() for openai and @anthropic-ai/sdk.
    • conversation() covers every call inside it, across awaits.
    • Compiled answers come back in the provider's own shape, streamed or not.
    • mode: "shadow" to watch what AgentCompile would do while your model answers.
    • timeoutMs: how long to wait for a decision before failing open to your model.
    • trail and onEvent: every call logged on your machine.
    • capture, off by default, and flush() for short scripts.
    • Node 20 or newer. ESM and CommonJS, with types, and no runtime dependencies.
    npm install agentcompile
  3. Python 0.3.0

    Capture, when you turn it on

    capture=True sends each call's request and answer in the background, so AgentCompile can find the jobs your agent repeats. It never slows a call: a full queue drops the oldest, and failures are counted, never raised.

    • Off by default. AGENTCOMPILE_CAPTURE=1 turns it on.
    • agentcompile.flush() sends queued calls before a short script exits. It also runs at exit.
    pip install agentcompile==0.3.0
  4. Python 0.2.1

    Decisions stay in the trail

    Fix: AgentCompile's decision events now stay in the trail, so agentcompile trail shows where each call went and why.

  5. Python 0.2.0

    agentcompile --version

    The command line tells you which version you have.

    agentcompile --version
  6. Docs

    The Cookbook

    Every example in Python and TypeScript, ready to copy, at /cookbook. Agents can read it as markdown at /cookbook.md.

  7. Python 0.1.0

    The SDK for Python

    Wrap the OpenAI or Anthropic client your agent already uses. Your loop doesn't change, and your provider key never leaves your process.

    • wrap() for openai and anthropic, sync and async, with streaming and tool calls.
    • agentcompile.conversation() sets the conversation for a block of calls, or pass conversation_id on a call.
    • Every call takes a route: compiled, forwarded, fail-open, shadow or no-conversation.
    • It fails open: slow, unreachable or unusable, and the call goes to your model as normal.
    • mode="shadow" decides but always calls your model, so you can see what it would have done.
    • A trail on your machine, and agentcompile trail to read it.
    • Python 3.9 or newer.
    pip install agentcompile

Join the beta. 10 spots.

If your company runs an AI agent in production, we'd like to compile its most repeated jobs with you.

Book a call

cal.com/agent-compile/beta

To start, we'll ask to see your agent's logs.