npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentmx

v0.7.0

Published

Multi-agent CLI orchestrator for AI coding agents. Run Claude Code, Codex, Aider, Gemini CLI, Copilot CLI, Cursor Agent, Goose and others side-by-side in a single terminal.

Downloads

514

Readme

AgentMX

Run multiple AI coding agents side-by-side in a single terminal. Switch between Claude Code, Codex CLI, Aider, Gemini CLI, GitHub Copilot CLI, Cursor Agent, Goose, or any custom agent with one TUI, one config file, and one workflow surface.

Node.js License npm

Why AgentMX?

Different agents are good at different jobs. Claude Code is strong at larger refactors, Codex is fast on focused code tasks, Aider is tightly coupled to git, and newer CLIs keep shipping different strengths. AgentMX keeps them in one terminal so you can route, compare, chain, review, and resume work without juggling sessions manually.

Features

  • Tabbed TUI with live streaming output, input mode, scrolling, search, bookmarks, snippets, diff view, and a built-in dashboard
  • Task routing that picks agents automatically from regex rules or falls back to the default agent
  • Parallel execution for side-by-side comparison in split view
  • Pipelines for sequential handoff between agents
  • Voting / consensus mode where multiple agents answer the same task and a judge picks the best answer or merges them
  • Review pipeline with dedicated coder, reviewer, and tester roles
  • Shared context mode where agents see each other's live output as additional context
  • Saved sessions with listing, deletion, and resume support
  • Analytics and cost tracking based on saved session history, with per-agent and global budget alerts
  • Quality scoring for linting, tests, and repository complexity
  • Benchmark suites with generated Markdown reports
  • Custom agents that wrap any CLI tool

Install

npm install -g agentmx

Install at least one supported agent:

# Claude Code
npm install -g @anthropic-ai/claude-code

# Codex CLI
npm install -g @openai/codex

# Aider
pip install aider-chat

Requirements:

  • Node.js >= 20
  • At least one supported agent installed

Quick Start

# Detect installed agents and create .agentmx.yml
amx init

# Launch the interactive TUI
amx

# Run one task with routing
amx run "fix the login race condition"

# Compare two agents side-by-side
amx run "write unit tests for auth.ts" -p claude-code,codex

# Let multiple agents answer and have a judge pick the winner
amx vote "design a migration plan for the billing schema" \
  --agents claude-code,codex \
  --judge claude-code

# Run coder -> reviewer -> tester
amx review "add pagination to the users endpoint"

# Run multiple agents with shared live context
amx share "investigate the flaky CI failure" --agents claude-code,codex

# Inspect historical usage
amx stats --days 14
amx costs
amx quality

# Resume or inspect previous sessions
amx sessions
amx resume

Keyboard Shortcuts

| Key | Action | |-----|--------| | 1-9 | Switch to agent tab | | Left / Right or Tab | Move between tabs | | Enter | Start typing input | | Esc | Leave input mode or close overlays | | Up / Down | Scroll output | | PgUp / PgDn | Scroll by page | | Home / End | Jump to top / bottom | | Ctrl+A | Open analytics dashboard | | Ctrl+F | Search current output | | Ctrl+B | Add bookmark | | Ctrl+G | Open bookmarks | | Ctrl+S | Open snippets | | Ctrl+D | Open diff view | | Ctrl+N | Start a new agent | | Ctrl+W | Kill current agent | | Ctrl+Q | Quit |

Inside the dashboard, use 1, 2, and 3 to switch between overview, costs, and history tabs.

Configuration

Create a .agentmx.yml in your project root:

default_agent: claude-code

agents:
  claude-code:
    command: claude
    enabled: true

  codex:
    command: codex
    args: ["--model", "o4-mini"]
    enabled: true

  aider:
    command: aider
    args: ["--model", "sonnet"]
    enabled: false

  gemini:
    command: gemini
    enabled: false

  copilot:
    command: copilot
    enabled: false

  cursor:
    command: cursor-agent
    enabled: false

  goose:
    command: goose
    enabled: false

  my-tool:
    command: my-tool
    args: ["--flag"]
    env:
      API_KEY: "..."
    enabled: true

router:
  mode: rules   # manual | rules | auto
  rules:
    - match: "test|spec|coverage"
      agent: codex
      reason: "Prefer Codex for test generation"

    - match: "refactor|clean|docs"
      agent: claude-code

ui:
  theme: dark
  split_view: vertical   # vertical | horizontal

AgentMX uses cosmiconfig, so you can also use .agentmxrc, .agentmxrc.json, .agentmxrc.yaml, or an agentmx key in package.json.

Commands

amx / amx interactive

Launch the TUI. This is the default command.

amx run <task>

Run a task with one agent or a parallel set of agents.

amx run "fix the memory leak in worker.ts"
amx run "generate API docs" --agent codex
amx run "review this pull request" --parallel claude-code,codex

amx bench <task>

Benchmark one task across agents and compare timing, exit code, output size, and cost metadata when available.

amx bench "implement binary search" --agents claude-code,codex

amx bench suite

Run curated suites with automated verification and write a Markdown report.

amx bench suite --list
amx bench suite --suite algorithms --agents claude-code,codex
amx bench suite --suite practical --output bench-report.md

amx pipe <steps...>

Run a sequential handoff pipeline.

amx pipe \
  "codex: write tests for utils.ts" \
  "claude-code: refactor the tests"

amx vote <task>

Run the same task on multiple agents, then ask a judge agent to choose the best candidate or merge them.

amx vote "implement retry logic for the webhook client" \
  --agents claude-code,codex,aider \
  --judge claude-code \
  --strategy best

amx review <task>

Run a three-stage pipeline: coder, reviewer, tester.

amx review "add request tracing to the API" \
  --coder codex \
  --reviewer claude-code \
  --tester aider

If roles are omitted, AgentMX uses the default agent and, when possible, different enabled agents for the reviewer and tester stages.

amx share <task>

Start multiple agents in split view and mirror their output to each other as context lines.

amx share "investigate intermittent Redis disconnects" --agents claude-code,codex

This mode requires at least two agents.

amx sessions and amx resume

Inspect and manage saved sessions, then resume them later.

amx sessions
amx sessions --delete <session-id>
amx sessions --clear
amx resume
amx resume <session-id>

Claude Code sessions resume natively when a Claude session ID is available. Other agents resume in interactive mode with the previous transcript injected as context.

amx stats

Show the analytics dashboard in the terminal.

amx stats
amx stats --days 30
amx stats --days 7 --no-daily

amx costs

Show per-agent costs and budget alerts, or configure budgets.

amx costs
amx costs --budgets
amx costs --set-budget claude-code --daily 5 --monthly 100
amx costs --set-global-budget --daily 10 --weekly 50

amx quality

Run lint, test, and complexity checks for the current repository or a target path.

amx quality
amx quality --path ../another-project

Current detection covers biome or eslint for linting; vitest, jest, pytest, go test, or npm test for tests; and a built-in line-count heuristic for complexity.

amx config

Print the resolved configuration as JSON.

amx init

Interactive setup wizard that detects known agents and creates .agentmx.yml.

Session Data, Analytics, and Budgets

AgentMX stores session history under ~/.agentmx/sessions/*.json. That history powers:

  • amx sessions
  • amx resume
  • amx stats
  • amx costs
  • the TUI dashboard opened with Ctrl+A

Budget settings are stored separately in ~/.agentmx/budgets.json.

Cost totals depend on adapters emitting cost metadata. Claude Code already provides structured cost events, so it is the primary source of cost and token analytics today.

Supported Agents

| Agent | Display Name | Task Mode | |-------|--------------|-----------| | claude-code | Claude Code | Structured stream output with tool and cost metadata | | codex | Codex CLI | JSONL streaming and approval-aware execution | | aider | Aider | PTY-based adapter with git-oriented workflow | | gemini | Gemini CLI | gemini -p <task> | | copilot | GitHub Copilot CLI | copilot -p <task> | | cursor | Cursor Agent | cursor-agent -p <task> | | goose | Goose | goose run --text <task> | | Custom | Any name | Any command configured in .agentmx.yml |

Short Alias

Use amx instead of agentmx anywhere:

amx run "fix the bug"
amx vote "compare two SQL migration strategies" --agents claude-code,codex

Documentation

Full documentation, command reference, and architecture notes are in docs/guide.md.

License

MIT