Agent Composition

Agent Composition is a canonical model of what an agent is made of and how its parts relate, so an agent built in any framework can be taken apart, mapped and managed without losing track of what depends on what.

A composition is one JSON file. It lists the parts of an agent, says for each whether it works on any harness or only on one, and records the relationships between the parts. It is written for any framework, any network and any implementer.

This is Agent Composition 0.1.1-draft, a working draft.

What it records

The parts, what they need and how they depend on each other

A list of an agent's parts cannot say what breaks when one part moves without another. A composition adds the relationships, so a tool can answer that question for an agent it did not build.

Six kinds of part

The agent itself, its instructions, its skills, its files, its tools and its helpers. Each part is portable, so it works on any harness that follows the standard it names, or bound to the one harness it names.

Four kinds of need

A model, a machine to run on, an account to call with and content the customer supplies. A need sits outside the agent and is met by whoever runs it. A key names its service and never holds the secret.

Nine relationships

Which skill builds on which, which file one skill reads from another, which parts were copied from where, what each part needs and what a helper shares with the agent it works for.

Where it fits

The inside of an agent, and optional

The Common Agent Specification describes an agent from the outside: how to call it, what it offers, who answers for it. It says nothing about the inside, on purpose. Agent Composition is the inside. An agent that never shows its insides is still a complete Common Agent, and a composition does not change what the Common Agent Specification requires of it.

A composition names the same agent, by name and version, as its Common Agent Descriptor. Nothing else links the two.

It is carried inside an Agent Plugin, under the extensions namespace net.commonagent, in a folder named net.commonagent/ that holds composition.json. Agent Plugins 1.0.0 allows extension namespaces written as reverse domain names and gives them no meaning, and a client must ignore a namespace it does not implement, so a client that has never heard of Agent Composition runs the plugin as before.

A worked example

The open-source Design agent of LangChain

The example is a real agent, cited by its repository and commit: langchain-ai/design-agent at 86d8f66. Its composition lists all 36 of its skills and where each came from.

In the Design agentWhat the composition says
Skills, files, instructions and MCP serversPortable. They work on any harness that follows the standard each names.
Code tools, three helpers, check-ins and the use of LangSmith's Context HubBound to Deep Agents. This is the agent's engine: how it plans long jobs, delegates and watches renders.
18 skills copied from two other repositoriesEach names its source, version and license.
16 video skills that build on hyperframesEach is a builds-on relationship, so moving hyperframes alone shows what breaks.

Still open

Three questions this draft does not settle

  • Is memory a seventh part, or a need?
  • Where does shared context between agents belong?
  • Should a skill that names another skill in its text count as a route?

Section 8 of the specification states each one.