# CLI Design for Humans and AI: Building Dual-Audience Tools in Go

> Learn how to build Go CLI tools that work for both people and AI agents, with TTY-aware output, clean stream separation, and structured errors agents can recover from.

- Date: November 11th, 2026
- Time: 12:00PM – 1:00PM EST
- Location: Online via YouTube
- Instructor: Miki Tebeka
- Type: Free Webinar
- Price: Free
- Register: https://luma.com/event/evt-Qp9hSokc5tJviEL
- URL: https://www.ardanlabs.com/events/cli-design-for-humans-and-ai/

What happens when an AI agent runs your CLI tool?

If your application relies on interactive prompts or raw stdout dumps, the answer is usually broken loops and hung processes.

In this talk, we'll explore how to engineer CLIs for dual consumption. We'll cover why Go is an ideal language for building command line tools and how simple architectural tweaks can transform a standard terminal utility into an agent-friendly execution engine.

## What you'll learn:

✅ How to automatically switch between human UI (colors, spinners) and machine output (JSON/NDJSON) using TTY checks.

✅ Techniques for stream separation (stdout vs. stderr) and token-efficient output filtering.

✅ How to structure CLI errors so AI agents can self-correct and retry autonomously.
