kunchenguid/axi
Design principles for agent ergonomics. Higher accuracy with lower token cost than both MCP and regular CLI.
What it solves
AI agents often interact with tools through two dominant paradigms: classic command-line interfaces (CLIs) built for humans, and structured tool protocols like MCP (Model Context Protocol). Both add overhead — human CLIs are verbose and interactive, while MCP can require many round trips and lots of tokens. AXI solves this with a new paradigm: agent-native CLI tools that treat the AI's token budget as a first-class constraint, making agents faster, cheaper, and more reliable.
How it works
AXI defines 10 concrete design principles for building these agent-friendly CLIs. These include using a compact TOON format to save roughly 40% of tokens versus JSON, keeping default schemas to just 3-4 fields per item, truncating large text with an escape hatch, pre-computing aggregated counts and statuses to eliminate extra trips, defining explicit empty states, using structured errors and no interactive prompts, and showing live data by default instead of help text.
The project also ships official reference implementations, such as gh-axi for GitHub operations and chrome-devtools-axi for browser automation. Benchmarking with Claude Sonnet 4.6 shows these AXI tools achieving 100% success on GitHub tasks at $0.050 per run with 3 turns, versus 86% success and $0.148 per run with 6+ turns for MCP-based approaches.
Who it's for
AXI is for developers building tools that AI agents will use, or teams who want to give their agents more efficient access to external services like GitHub, a browser, or internal APIs. It's also useful for wrapping existing CLIs or MCP servers into a more agent-ergonomic form.
Highlights
- Defines 10 explicit, testable design principles for agent-ergonomic CLI tools.
- Provides official reference implementations for GitHub and browser automation.
- Published benchmarks show 100% success rates with significantly lower cost, faster duration, and fewer turns than MCP or plain CLI.
- Includes a growing catalog of community-built AXIs for tools like Slack, SQLite, Docker, AWS, and more.
Related
- Project
- Project
- Project
- Dispatch
- Project