You don't need a separate agent API. You need to look at every `input()` call, every CWD assumption, every pretty-printed-only output, and ask: what if the user on the other end is a process, not a person?
大多数人认为需要为AI代理创建专门的API或接口,但作者提出反直觉的观点:不需要单独的代理API,而应该重新设计现有的CLI工具,使其同时支持人类和代理。这种统一的方法更加高效,避免了维护两套接口的复杂性。