
Designing CLI Tools for AI Agents: Lessons from Building Memori
Designing CLI Tools for AI Agents Most CLI tools are designed for humans who can google error messages, read man pages, and ask Stack Overflow. AI agents can’t do any of that. They get one shot at parsing your output, one chance to recover from an error, and they pay per token for everything you print. I built Memori – a persistent memory system for Claude Code – and discovered that designing for agents forced me to make a better tool for everyone. Here are the principles I extracted, grounded in exact code from the repository. ...



