If you're building CLI tools that agents call through shell execution, this gives you practical patterns to minimize token waste and round trips. It covers TOON format for compact output, how to truncate long content without hiding it, when to include aggregate counts to avoid follow-up calls, and how to make errors actionable instead of cryptic. The session integration section is worth reading even if you skip the rest: it shows how to inject ambient context at session start so agents see relevant state before they ask. Opinionated in useful ways, like "content first, not help text" when called with no arguments.

skills.sh installs
4.8K
GitHub stars
2.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add kunchenguid/axi --skill axi --agent claude-code

Installs into .claude/skills of the current project.

Files

Agent eXperience Interface (AXI)

AXI defines ergonomic standards for building CLI tools that autonomous agents interact with through shell execution.

Before you start

Read the TOON specification before building any AXI output.

1. Token-efficient output

Use TOON (Token-Oriented Object Notation) as the output format on stdout. TOON provides ~40% token savings over equivalent JSON while remaining readable by agents. Convert to TOON at the output boundary — keep internal logic on JSON.

tasks[2]{id,title,status,assignee}:
  "1",Fix auth bug,open,alice
  "2",Add pagination,closed,bob

2. Minimal default schemas

Every field in stdout costs tokens — multiplied by row count in collections. Default to the smallest schema that lets the agent decide what to do next: typically an identifier, a title, and a status.

Sponsors

Details

Repository
github.com/kunchenguid/axi
Categories
AI & Agent Building, CLI & Terminal
First seen
May 16, 2026

More from kunchenguid/axi

All 2
1affaan-m avatarorch-pipelineaffaan-m/eccShared orchestration engine for the orch-* skill family. Defines the gated Research-Plan-TDD-Review-Commit pipeline, the size classifier, the agent map, and the4.8Kskills.sh installs
2affaan-m avatarorch-add-featureaffaan-m/eccOrchestrate building a brand-new feature end to end — research, plan, TDD implementation, review, and gated commit — by delegating each phase to the matching EC4.8Kskills.sh installs
3adjfks avatarwrite-xiaohongshuadjfks/corner-skillsResearch top-performing Xiaohongshu (小红书 / XHS) image posts, analyze titles/content/comments for patterns and emotional resonance, enrich background via Firecra4.8Kskills.sh installs
4affaan-m avatarorch-fix-defectaffaan-m/eccOrchestrate fixing a bug — reproduce it as a failing regression test, fix to green, review, and gated commit — by delegating each phase to the matching ECC agen4.8Kskills.sh installs
5iii-hq avatariii-architecture-patternsiii-hq/iiiUse when composing iii primitives into backend architectures: durable workflows, reactive backends, agentic pipelines, event-driven CQRS, effect pipelines, and 4.7Kskills.sh installs
6wshobson avatarrecsys-pipeline-architectwshobson/agentsDesign composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI4.6Kskills.sh installs