Skip to main content

AgentDef - define once, import anything, adapt everywhere: nine import formats converge into one canonical agent directory and adapt out to eight platforms

Every AI platform invents its own way to define agents - CLAUDE.md, AGENTS.md, cursor-rules.md, copilot-instructions.md, declarative manifests... The concepts are always the same; only the files differ. AgentDef is an open specification that captures what an agent IS - identity, instructions, skills, workflows, tools - in one canonical, human-readable directory. Adapters generate the file each platform wants; importers convert your existing files back into the canonical form (505 real community agents imported with zero failures).

Quick Start

An AgentDef agent is just a directory. The spec defines canonical components - agent.md (identity), manifest.yaml (composition), instructions/, and optionally skills/, workflows/, tools/, knowledge/, memory/, runtime/, evals/ - everything is plain markdown and YAML, made to live in git.

The smallest valid agent:

my-agent/
├── agent.md          # Who is this agent?
├── manifest.yaml     # What does it use?
└── instructions/
    └── core.md       # How does it behave?

Copy the starter template and fill in your content - or let agentdef init do it for you:

CLI

Install AgentDef:

pip install agentdef

8 adapters (Claude, OpenAI AGENTS.md, Cursor, GitHub Copilot, LangGraph, M365 Copilot, OpenAI Assistants, CrewAI). 9 importers (those plus Copilot Studio, Letta .af, and any markdown prompt file).

agentdef init my-agent --yes                 # scaffold a valid agent
agentdef validate ./my-agent/
agentdef adapt claude ./my-agent/ --output CLAUDE.md
agentdef import copilotstudio agent-doc.md --output ./my-agent/
agentdef sync ./my-agent/                    # regenerate all configured framework files
agentdef list                                # every adapter/importer framework

Every import writes an IMPORT_REPORT.md: what mapped, what was inferred, what was dropped - nothing is dropped silently.

Take the tour

Explore this repo's own architecture as an interactive knowledge graph, with a guided 10-step walkthrough of the codebase:

AgentDef architecture dashboard - interactive knowledge graph with a guided project tour

▶ Open the live dashboard - generated from the code itself with the understand-anything plugin, so it can't silently go stale.

Documentation

Full docs: https://agentdef.github.io/agentdef/

Status

Spec 0.5.0 - tooling 0.2.0 - see STATUS and the ROADMAP. The format is stable enough for experimentation and feedback; breaking changes are possible before 1.0.

Contributing

See CONTRIBUTING.md. Want a framework we don't cover? Open a framework request.

License

Apache 2.0 - see LICENSE.

Metadata

Release files for agentdef 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 agentdef 0.2.0
File Size Uploaded
agentdef-0.2.0.tar.gz 54.4 kB Details

Built distribution (wheel)

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

Total release size: 119.4 kB

Release files / agentdef-0.2.0.tar.gz

Download URL agentdef-0.2.0.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e37416fbe9b81e54af0dc193b5194a10d6f02cc108badcb8fd354cc74bae669
BLAKE2b-256 checksum
How to use checksums
7e60bcba8dc751293ea86b7be000b1e1b17883101109d42d8fc63985371ab215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 4, 2026.

Transparency log

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

Download URL agentdef-0.2.0-py3-none-any.whl
Size 65.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e8280abad12f52e3c814cccc179462cf0e76931db45185c459c6a05b91efc6b
BLAKE2b-256 checksum
How to use checksums
a2bec2b4b3ff72f29a564bb26fed8467cb4e85b355c2e929c90a0f57d8098ecc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.0.1

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