Implicit state is the Enemy
大多数人认为CLI工具应该利用隐式状态(如当前工作目录)来简化用户操作。但作者认为,所有隐式假设都是AI代理的绊脚石,明确指定所有参数和路径不仅有利于代理,也让人类用户的脚本更加健壮和可预测。
Implicit state is the Enemy
大多数人认为CLI工具应该利用隐式状态(如当前工作目录)来简化用户操作。但作者认为,所有隐式假设都是AI代理的绊脚石,明确指定所有参数和路径不仅有利于代理,也让人类用户的脚本更加健壮和可预测。
Every prompt is a flag in disguise
大多数人认为交互式提示是CLI工具的最佳实践,因为它能引导用户完成复杂任务。但作者认为,每个交互式提示都应该有对应的命令行标志,因为这种设计让工具既能服务于人类用户,也能被AI代理自动化使用,而不需要额外的API层。
as a more experienced user I know one can navigate much more quickly using a terminal than using the hunt and peck style of most file system GUIs
As an experienced user, this claim strikes me as false.
I often start in a graphical file manager (nothing special, Nautilus on my system, or any conventional file explorer elsewhere), then use "Open in Terminal" from the context menu, precisely because of how much more efficient desktop file browsers are for navigating directory hierarchies in comparison.
NB: use of a graphical file browser doesn't automatically preclude keyboard-based navigation.