Skip to main content

agent-plugins

Ship Agent Plugins with Python packages.

Documentation · PyPI · Agent Plugins format

PyPI version Supported Python versions CI status Apache-2.0 license

agent-plugins ships a Python library and its agent integrations in one package. An agent with Python execution can read its packaged instructions, then use the library in the same environment. Library code, skills, tool configuration, and resources share one release.

The Agent Plugins format defines the directory: a manifest, Agent Skills for instructions and resources, Model Context Protocol (MCP) server configuration for tools, and client extensions. This library packages that directory and makes it discoverable through Python metadata. Agent clients choose which components to activate.

Read the bundled guidance

Run agent-plugins without arguments to read its own installed plugin:

uvx agent-plugins

The output contains two version-matched skills. agent-plugins explains how to read instructions from Python packages that already ship an Agent Plugin. package-agent-plugin explains how to add Agent Plugin packaging to a Python project.

Package your plugin

Keep plugin.json and skills/ beside your code. For a project using the uv build backend, configure pyproject.toml:

[build-system]
requires = ["agent-plugins", "uv_build"]
build-backend = "agent_plugins.build.uv_build"

[tool.agent-plugins]
root = "."

Build with the uv package manager:

uv build

The quickstart creates a complete project, builds it, and locates the installed plugin. Use the Hatchling adapter for Hatchling projects, or attach a prebuilt wheel when another tool owns the build:

agent-plugins attach-wheel dist/my_project-0.1.0-py3-none-any.whl --project .

Attachment updates the wheel in place. Pass --output-dir to preserve the input.

Inspect an installed plugin

Load the complete version-matched guidance shipped by a package:

uvx --with my-package agent-plugins read my-package

The first my-package tells uv which distribution to install. The second identifies the installed Agent Plugin to read.

Use the Python API when the package is already installed in the current environment:

import agent_plugins as ap

print(ap.read("agent-plugins"))
print(ap.read("agent-plugins", skill="package-agent-plugin"))

read() returns a briefing for the same-name skill by default. Pass skill= for another workflow. The CLI reads all packaged skills unless --skill is provided. uvx uses an isolated tool environment, so read through the target interpreter when working with an existing installation.

Pass your library's distribution name to locate() to inspect its plugin. Use Plugin.from_project() to inspect the selected source files before building.

Documentation

Packaging lifecycle

Core model: an authored Python project builds into one wheel that installs the library beside its version-matched Agent Plugin, which locate() returns as a plugin handle

Development

See development_docs/ for setup, architecture, checks, and releases. Serve the documentation locally with pnpm --dir docs dev.

License

Apache-2.0.

Metadata

Release files for agent-plugins 0.2.4

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

Source distribution (sdist)

Source distribution for agent-plugins 0.2.4
File Size Uploaded
agent_plugins-0.2.4.tar.gz 40.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-plugins 0.2.4
File Interpreter ABI Platform
agent_plugins-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 101.9 kB

Release files / agent_plugins-0.2.4.tar.gz

Download URL agent_plugins-0.2.4.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cde29a40ba26dfa0fe7a978d18abb2cb724168efefb03423fcae93b06258c4bf
BLAKE2b-256 checksum
How to use checksums
73a7f0a0f42623958323c466f8208793d500642e3653440cc43676a021f97c94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agent_plugins-0.2.4-py3-none-any.whl

Download URL agent_plugins-0.2.4-py3-none-any.whl
Size 61.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67f5255df2229823f22f2b0eb5e16f7f5828c6d72968eadebb6b3d1099a0ebc8
BLAKE2b-256 checksum
How to use checksums
8be0fce035140da2730aaf0816dd49b6660d9feb91c6fe5cad7485517c80affd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

0.0.0

2 release files

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