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
- Discovery — No single view of all agents
- Routing — Simple queries hitting expensive models
- Spending — Zero cost visibility per agent
- 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)