Documentation ¶
Overview ¶
Package main implements a command line utility called "think", which provides an interactive shell interface for the user to describe tasks they want to execute in the shell. The tool leverages a language model (like GPT-4) to interpret these task descriptions and generate corresponding bash code. This code can then be edited by the user and subsequently executed in the shell.
The utility supports two modes of operation:
In the 'thinking' state, the user interacts with the AI model, describing the task they want to execute. The AI responds with a concise explanation and a proposed bash command that corresponds to the described task.
In the 'executing' state, the user reviews the proposed bash code, potentially editing it for correctness or to better suit their specific needs.