← Back to Field Notes
Part 4 of the AI Systems series

AI as a System (Part 4): Interface to Execution - Understanding AI in the CLI

The Bridge Between Tools and Agents

This is Part 4 of the AI as a System series.
See the full series here.

So far, we have covered models and tools. The next layer introduces AI in the command line.

This is where the interaction begins to change. Instead of something you interact with, the system starts interacting with your environment.

Why the CLI Feels Different

If you are not used to working in a terminal, CLI-based tools can feel unfamiliar. Instead of a graphical interface, you might see something like:

claude "refactor this project to use a service layer"

There are no buttons or chat windows. The interface is minimal, but that is not where the value comes from. The shift is in what the system is able to do.

What CLI AI Tools Actually Do

CLI tools take the same models used in other tools and give them direct access to your environment.

This includes access to your file system, your repository, your terminal commands, and your development workflow. The model is no longer limited to generating output. It is able to operate within a system.

From “Suggesting” to “Doing”

In the tools covered so far, AI primarily suggests actions. ChatGPT focuses on explanations and ideas. Cursor works within an IDE to suggest or apply changes. Copilot generates inline code suggestions.

In a CLI environment, the system can read an entire repository, modify multiple files, run commands, install dependencies, execute tests, and commit changes.

At this point, the role of the system changes. It is no longer limited to assisting. It is able to operate.

Examples of CLI AI Tools

Several tools follow this pattern, including Claude Code, Aider, OpenAI Codex CLI, and Gemini CLI.

Each of these connects a model to your terminal, which connects to your system. That connection is what enables execution.

Why Developers Like CLI Tools

Preference for the command line varies, but the appeal of CLI-based AI tools is not just familiarity. It comes from the capabilities they provide.

CLI tools enable automation, broader context, and direct execution. They can be scripted into workflows, chained into pipelines, and integrated into existing systems. Instead of operating on a single file or prompt, they can work across entire projects and directories, using real execution results as part of the process.

They also introduce a feedback loop where the system generates output, executes it, observes the result, and adjusts. This loop is what makes the system feel more capable over time.

Why This Feels Like a Big Step Forward

Up to this point, AI has largely been used to suggest what should be done.

CLI tools shift that toward execution. The system is able to carry out actions within your environment.

This changes the experience in a fundamental way. The interaction moves from reading instructions to having those instructions executed within a system.

The Risk

Greater capability introduces new risks. CLI tools can modify files, run commands, and change systems in ways that may not be immediately visible.

For that reason, most workflows include safeguards such as review steps, confirmations, and scoped permissions. The system is more powerful, but it still requires oversight.

What’s Next

CLI tools give AI the ability to take action.

The next layer builds on that capability by introducing agents, where the system begins to decide what actions to take and how to iterate toward an outcome.