Kronk — open source AI tooling for Go Local inference. Fewer moving parts. Explore Kronk
CLI Design for Humans and AI: Building Dual-Audience Tools in Go

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

Nov 11th, 2026

12:00PM - 1:00PM EST

Online via YouTube

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.

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.

Miki Tebeka

Instructor

Miki Tebeka

Senior Go Instructor

Miki is a software developer with more than 20 years of experience. He has taught many workshops on various technical subjects all over the world at companies such as AT&T, Oracle, Dropbox, J.P. Morgan, and others.

See What's New

From the Lab

Where ideas get tested and shared. From the Lab is your inside look at the tools, thinking, and tech powering our work in Go, Rust, and Kubernetes. Discover our technical blogs, engineering insights, and YouTube videos created to support the developer community.

Explore our content: