logoalt Hacker News

mindcrimetoday at 12:44 AM0 repliesview on HN

This weekend I spent a lot of time on an Agent Registry idea I wanted to try out. The basic idea is that you put your Agent code in a Docker image, run the container with a few specific labels, and the system detects the Container coming online, grabs the AgentCard, and stores it in the Registry. The Registry then has (in the current version) a REST interface for searching Agents and performing other operations.

But once all the low level operations are done, my plan is to implement an A2A Agent as the sole Agent listed in the AgentCard at $SERVER_ROOT/.well-known/agent-card.json, which is itself an "AgentListerAgent". So you can send messages to that Agent to receive details about all the registered Agents. Keeps everything pure A2A and works around the point that (at least in the current version) A2A doesn't have any direct support for the notion of putting multiple Agents on the same server (without using different ports). There are proposals out there to modify the spec to support that kind of scenario directly, but for my money, just having an AgentListerAgent as the "root" Agent should work fine.

Next steps will include automatically defining routes in a proxy server (APISIX?) to route traffic to the Agent container. And I think I'll probably add support for Agents beyond just A2A based Agents.

And of course the basic idea could be extended to all sorts of scenarios. Also, right now this is all based on Docker, using the Docker system events mechanism, but I think I'll want to support Kubernetes as well. So plenty of work to do...