Skip to main content

AgentBuildKit

Build agents. Not demos.

AgentBuildKit is the production layer around your agent framework.

A model alone is not an agent. AgentBuildKit is the harness that turns a model into something you can route, constrain, approve, audit, and evaluate.

Model + Harness = Agent

It currently builds on Microsoft Agent Framework. Each agent declares its own provider and model. OpenAI and Anthropic are the built-in providers, and one workflow can mix them. Deterministic Python owns routing, tool permission, and whether a side effect may run.

What it adds

  • Models. Per-agent provider and model selection.
  • Agents. Typed inputs and outputs.
  • Tools. An allowlist on each agent. Reads can run. Side effects wait.
  • Workflows. Deterministic routing across agents.
  • Guardrails and human approval. A side effect pauses until a person decides.
  • State and audit. SQLite pause and resume, idempotent side effects, and an audit trail that records the provider and model.
  • Evaluation. The same run can be checked against expectations.

Quick start

Upcoming 0.2.0 install

These commands are not on the public index yet. Today's npx agentbuildkit is npm 0.0.2 and installs the harness only.

npx agentbuildkit@0.0.3

The upcoming bootstrapper installs agentbuildkit>=0.2.0,<0.3.0 and agentbuildkit-templates>=0.2.0,<0.3.0, runs agentkit doctor, explains the state directory, and can open the local dashboard. Press Ctrl+C to stop the dashboard. It does not call a model. See Install.

Development install

From a clone of this repository:

node npm/agentbuildkit/bin/agentbuildkit.js --source local

That installs this checkout into an isolated uv tool environment. --upgrade reinstalls it. --no-demo skips the demo prompt. If uv is missing, an interactive terminal asks before running Astral's installer. A non-interactive run installs uv only when you pass --install-uv.

To work on the Python package directly:

uv sync
uv run agentkit demo

Python 3.12 is required. uv manages that interpreter. The bootstrapper does not change the system Python.

Commands

agentkit version
agentkit doctor
agentkit demo

agentkit doctor checks the installation. Missing OpenAI or Anthropic credentials are reported and are not a failure.

agentkit demo is offline. It needs no API key and it does not call a model provider. It shows the harness: an agent routes the request, a specialist reads an allowed tool, an unauthorised tool is rejected, a side effect pauses for approval, the run resumes after that decision, a reviewer checks the result, and the evaluation passes or fails from the audit trail.

agentkit demo --approve and agentkit demo --reject make that decision without a prompt.

Architecture

Model
  ↓
Agent                 provider and model belong to that agent
  ↓
Tools                 allowlist; reads run, side effects wait
  ↓
Workflow              deterministic routing
  ↓
Guardrails / approval human decision before a side effect
  ↓
State / audit         SQLite pause, resume, and audit events
  ↓
Evaluation            expectations checked against the trace

A workflow can mix providers:

alex    → OpenAI / one model
taylor  → OpenAI / another model
jordan  → Anthropic / another model

The names above are the offline demo's agents. The provider and model are fields on each agent definition. The workflow that receives the clients does not branch on the provider. The offline demo uses scripted clients, so those calls are not OpenAI or Anthropic requests.

The offline demo

The demo is a loading-bay request: book a technician for tomorrow.

  1. Alex, the orchestrator, chooses the service route.
  2. Taylor, the service specialist, calls read_ticket. That read is allowed.
  3. cancel_ticket is not on Taylor's allowlist, so it is rejected.
  4. schedule_visit is a side effect. The run pauses and stores the approval in SQLite.
  5. A person approves or rejects it. Approval runs the visit once. Rejection does not.
  6. Jordan reviews the outcome.
  7. The evaluation checks the trace, including the route, the rejected tool, the approval, and the audit record.

That is the production harness running locally, with the model text supplied by a script.

Current scope

This release includes the Python package agentbuildkit, the agentkit command, and the Node bootstrapper in npm/agentbuildkit. Microsoft Foundry is an optional extra and is not installed by a normal sync.

Skills and persistent agent memory are not in this release. The harness loads declarative team bundles. One local dashboard installs Customer Service and Operations Reporting, and Create team can add another inactive instance of either template. Each instance keeps its own runs, approvals, audit, revisions, and spreadsheet window. A new instance cannot run until its draft is validated, evaluated offline, and activated. Set APP_STATE_DIRECTORY to keep instances and drafts in revisions.sqlite. When that name is in .env, it overrides the shell. Use --state-directory to choose a different directory for one process. The scripted check does not measure a live model or account readiness. Google Sheets stays optional, and the key stays on the server.

examples/agentbuildkit_templates/customer_service is a separate example with fixture data. It is not the offline demo. It is packaged as agentbuildkit-templates, not copied into the harness. See Install.

A local install of that templates package serves drafts over stdio MCP and starts the dashboard. agentkit mcp serve requires an absolute --state-directory and does not read APP_STATE_DIRECTORY. agentkit dashboard --state-directory selects one process directory and overrides .env. Without that flag, a .env file in the current directory wins over the shell. The startup lock is POSIX flock. The published agentbuildkit 0.1.0 package and the published npx agentbuildkit 0.0.2 package do not include the templates. The upcoming 0.2.0 commands are in Install and are not published yet. See MCP.

Further detail is in docs/architecture.md.

Development checks

uv run ruff check .
uv run ruff format --check .
uv run pyright
uv run pytest

Bootstrapper tests, from npm/agentbuildkit:

npm test

License

Apache License 2.0. See LICENSE.

Metadata

Release files for agentbuildkit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentbuildkit 0.2.0
File Size Uploaded Provenance Actions
agentbuildkit-0.2.0.tar.gz 608.3 kB With provenance Details for agentbuildkit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentbuildkit 0.2.0
File Interpreter ABI Platform Actions
agentbuildkit-0.2.0-py3-none-any.whl Python 3 none any Details for agentbuildkit-0.2.0-py3-none-any.whl

Total release size: 780.0 kB

Release files / agentbuildkit-0.2.0.tar.gz

Download URL agentbuildkit-0.2.0.tar.gz
Size 608.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5eb89609940d58740ecc980ed08c5f7c9fb4b002bea0187482836149d61ff209
BLAKE2b-256 checksum
How to use checksums
5bd7fc1d6a3e46f7d9c54a9c190faca2c9818d8cbbfd92ecda9de66563f951b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / agentbuildkit-0.2.0-py3-none-any.whl

Download URL agentbuildkit-0.2.0-py3-none-any.whl
Size 171.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b42c49f0ce7d4a38fa1cca89f902fe06beb6b36ed2c507f1b4c08542ab2b60fa
BLAKE2b-256 checksum
How to use checksums
086b0a6b748fbee8dba90f722c95439f072567584f27437bd6900aa991b32c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for agentbuildkit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentbuildkit-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page