Skip to content

rename cagent package to docker-agent-plugin#388

Open
crazy-max wants to merge 3 commits intodocker:mainfrom
crazy-max:fix-docker-agent
Open

rename cagent package to docker-agent-plugin#388
crazy-max wants to merge 3 commits intodocker:mainfrom
crazy-max:fix-docker-agent

Conversation

@crazy-max
Copy link
Member

fixes #384

Updates the packaging from cagent to agent after the upstream project moved from docker/cagent to docker/docker-agent.

The Debian and RPM package names are renamed to docker-agent-plugin, and the package layout now follows the same Docker CLI plugin conventions used by other plugin packages in this repository. The old cagent package is transitioned with Debian Replaces and Breaks metadata and an RPM Obsoletes rule so upgrades remain smooth.

This also fixes version verification by reading plugin metadata from the installed CLI plugin binary, which matches how the other Docker CLI plugins are validated.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max changed the title rename cagent packaging to docker-agent-plugin rename cagent package to docker-agent-plugin Mar 17, 2026
@crazy-max
Copy link
Member Author

crazy-max commented Mar 17, 2026

#35 68.70 RPM build errors:
#35 68.70     line 16: It's not recommended to have unversioned Obsoletes: Obsoletes: cagent
#35 68.70     %source_date_epoch_from_changelog is set, but %changelog has no entries to take a date from
#35 68.70     Bad exit status from /var/tmp/rpm-tmp.DdElov (%check)

Hum Obsoletes: cagent needs a version bound

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Enhances: docker-ce-cli
Provides: cagent = %{epoch}:%{version}-%{release}
Obsoletes: cagent < %{epoch}:%{version}-%{release}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If docker-agent-plugin is built as 0:1.2.3-1, this expands to Provides: cagent = 0:1.2.3-1 and Obsoletes: cagent < 0:1.2.3-1, which tells RPM that this package replaces older cagent installs up to that version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if (with a rename) we'd be able to drop the epoch (we never should've had those in any of our packages 🫠)

@crazy-max crazy-max marked this pull request as ready for review March 17, 2026 14:26
@crazy-max crazy-max requested review from a team as code owners March 17, 2026 14:26
@rumpl
Copy link
Member

rumpl commented Mar 17, 2026

😭

Comment on lines -15 to -33
Architecture: linux-any
Description: cagent is a powerful multi-agent AI runtime that enables you to
create, configure, and orchestrate specialized AI agents that work together to
solve complex problems. Each agent can be equipped with specific tools,
knowledge domains, and capabilities.
.
Key features:
* Multi-agent architecture with hierarchical task delegation
* Declarative YAML-based agent configuration
* MCP (Model Context Protocol) integration for extensible tooling
* Support for multiple AI providers (OpenAI, Anthropic, Google Gemini, Docker Model Runner)
* Built-in reasoning tools (think, todo, memory) for complex problem-solving
* Docker Hub integration for sharing and distributing agent configurations
* Event-driven streaming architecture for real-time responses
.
cagent makes it easy to build agent teams where specialized agents collaborate,
each bringing their own expertise and tools to handle specific aspects of user
requests. Perfect for developers building AI-powered workflows and automation.
Homepage: https://github.com/docker/cagent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we didn't keep the old long description; that was intentional (to keep it more to the point?)

(I was curious why git showed it as a delete + add, not as a move, but probably because they differ too much now 😂)

Enhances: docker-ce-cli
Provides: cagent = %{epoch}:%{version}-%{release}
Obsoletes: cagent < %{epoch}:%{version}-%{release}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if (with a rename) we'd be able to drop the epoch (we never should've had those in any of our packages 🫠)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cagent builds broken

3 participants