agent-aware-cli
Agent-Aware CLI Design Guidelines
When tasked with building or improving a Command Line Interface (CLI), follow these architectural and design best practices to ensure it serves both human operators (with rich TUIs) and AI agents (with deterministic, machine-readable output).
Core Principles
-
The Dual-Experience Paradigm (DX & AX) This CLI must be designed as a "Dual-Mode" interface, treating both humans and AI agents as first-class users.
- DX (Developer Experience): Ergonomics for human operators. Emphasizes discoverability, rich TUIs (e.g., Bubbletea, Lipgloss), semantic coloring, and intuitive aliases.
- AX (Agent Experience): Ergonomics for autonomous AI agents. Emphasizes determinism, strict machine-readable output modes (e.g.,
--json), headless authentication, aggressive data scoping (limits/filtering), and mutative safety (--dry-run). - Environment Overrides: Respect
NO_COLORand[APP]_NO_TUIenvironment variables to automatically fall back to non-interactive, unstyled modes.
-
Headless-Friendly Authentication
- Agents cannot complete interactive, browser-based OAuth flows. CLIs must either support headless auth methods (Service Accounts, API Keys via ENV vars,
--tokenflags) OR immediately fail with a clear, machine-readable error instructing the human operator to authenticate manually first.
- Agents cannot complete interactive, browser-based OAuth flows. CLIs must either support headless auth methods (Service Accounts, API Keys via ENV vars,
-
Sane Defaults & Aggressive Filtering
- Never dump unpaginated or unfiltered lists to
stdout. Default to sensible limits (e.g., top 10 items). Provide rich filtering flags (e.g.,--status,--mine,--limit) so agents can surgically query exactly what they need without blowing out their token context.
- Never dump unpaginated or unfiltered lists to
-
Mutative Safety (
--dry-run)
More from googlecloudplatform/vertex-ai-creative-studio
genmedia-producer
Expert media production assistant. Use when requested to help with storyboarding, podcast creation, audio assembly, or complex multi-step media workflows using the GenMedia MCP servers (Veo, Lyria, Gemini TTS, NanoBanana).
4genmedia-voice-director
Expert in casting, directing, and generating expressive text-to-speech using Gemini TTS. Use this when the user needs virtual voice actor personas, expressive speech generation, or multiple variations of a voiceover (like "take 3 on the bounce").
2genmedia-audio-engineer
Expert in audio synthesis, music generation, and mixing. Use when creating podcasts, background scores, or multi-track audio layering using mcp-chirp3-go, mcp-lyria-go, mcp-gemini-go, mcp-nanobanana-go, and mcp-avtool-go.
1genmedia-video-editor
Expert in video composition, editing, and format conversion. Use when the user wants to generate high-quality video, overlay images on video, concatenate clips, create GIFs, or sync audio to video using mcp-avtool-go and mcp-veo-go.
1genmedia-image-artist
Expert in AI image generation and editing. Use when the user needs high-quality textures, character-consistent visuals, or image-to-image editing using mcp-nanobanana-go.
1