Solve complex tasks (e.g. writing and testing code) using LLM-Chains

  • By Aymen
  • Last update: May 8, 2023
  • Comments: 1


What is X?

Begin by initiating a task, such as x "build a new nodejs cli app allows me to manage pets". Watch as X takes control of your terminal, efficiently carrying out the assigned task. 🍿

X Demo Video

X is written in Go. It uses OpenAI's large language models to solve a wide range of tasks (setting up a code repo, deploying to kubernetes or setting up cloud infrastructure), all from the comfort of your terminal. The key difference between X and existing terminal-based copilot solutions is the role reversal. In X, the human user takes on the role of the copilot, while the AI assumes the pilot seat.

Getting Started

To start using X, follow these simple steps:

  1. Ensure you have a valid OpenAI API key. You can obtain one by signing up at OpenAI's website.

  2. Set the OPEN_AI_KEY environment variable by running the following command in your terminal: export OPEN_AI_KEY=your_api_key_here

  3. Clone this repository and navigate to the project directory.

  4. Build and install the X application: go build -o x sudo mv x /usr/local/bin


Once you have set up the environment variable and installed the X application, you can start using it to solve tasks. For instance, to build a new Node.js CLI app that allows you to manage pets, simply run the following command:

x build a new nodejs cli app allows me to manage pets

The AI will go through the task step by step, asking for your confirmation before executing each step. This interactive approach ensures that you stay in control while the AI takes care of the heavy lifting.


Released under Apache License



  • 1

    maximum context length

    max context length needs to be taken into account, to avoid the following problem: 🤔 2023/03/26 09:08:10 error, status code: 400, message: This model's maximum context length is 4097 tokens. However, your messages resulted in 5616 tokens. Please reduce the length of the messages.

    Perhaps deploying summarization techniques or previous steps?