DEV Community

XzWy JIA
XzWy JIA

Posted on

I scanned my PC and found 457 AI agents — here's what I built to manage them

The Discovery

I've been using AI coding agents heavily — Claude Code, Codex, Pi Agent. One evening I asked myself: how many agent-related files are actually on this machine?

I wrote a scanner. The result: 457 assets. Configs, API keys, model caches, permissions — scattered across directories I didn't even know existed.

The Problems

  1. Discovery — No single view of all agents
  2. Routing — Simple queries hitting expensive models
  3. Spending — Zero cost visibility per agent
  4. Security — API keys in plaintext, broad permissions

The Solution: AMA

I built AMA (Agent Management Application):

ama scan → find every agent
ama route → auto-select the right model
ama spend → track costs per agent/team/project
ama audit → security report

How It Works

AMA hooks into Claude Code, Codex, and Pi Agent's configuration layers. It reads their agent definitions, tool permissions, and model routing rules — then surfaces everything in a single dashboard.

It also includes a lightweight router that intercepts model calls and redirects them based on rules you define. Simple refactoring → cheap model. Complex architecture → powerful model. Security-sensitive → local-only.

Open Source

MIT license. Built for devs who want visibility over their growing agent fleet.

GitHub: https://github.com/xzwyjia-pixel/ama
Try it: https://ama-agent-store.vercel.app

Would love your feedback and contributions.

Top comments (0)