Holy Grail: FREE Coding Assistant That Can Build From EXISTING CODE BASE

Holy Grail: FREE Coding Assistant That Can Build From EXISTING CODE BASE

Introduction to AI Coding Assistant

In this section, the speaker introduces an AI coding assistant called "Ader" and highlights its features.

Ader - An AI Coding Assistant

  • Ader is an AI coding assistant that can generate code projects based on prompts.
  • It supports iteration on existing projects and provides git files for tracking changes.
  • Ader uses GPT-4 and has support for GPT 3.5.
  • The speaker hopes that Ader will soon support open-source models as well.

Installation and Usage of Ader

This section covers the installation process of Ader and demonstrates how to use it.

Installing Ader

  • To install Ader, create a new conda environment using the command conda create --name ader python=3.11.3.
  • Activate the environment with conda activate Ada.
  • Export the OpenAI API key by running export OPENAI_API_KEY=<your_api_key>.

Optional: Universal C Tags

  • Universal C Tags is a tool that allows large language models to work with extensive codebases.
  • Install Universal C Tags using Homebrew with the command brew install Universal C tags.

Using Ader

  • Create a new folder for your project (e.g., "snake") and navigate into it.
  • Run ader command to start using Ader in the current directory or specify a file name (e.g., ader snake.py) to create a new project.

Creating Snake Game Using Python

This section demonstrates how to use Ader to create a Snake game using Python.

Generating Snake Game Code

  • Use the prompt "Create the game Snake using Python" to instruct Ader to generate the code for the Snake game.
  • Ader generates the code and displays it in a diff format, showing the changes made.

Testing the Generated Code

  • Open the generated file (e.g., "snake.py") in an IDE like Visual Studio Code.
  • Run the code and verify that the Snake game is working as expected.

Iterating on the Code

  • Make additional changes to the code, such as adding a score feature and modifying food representation.
  • Ader shows a diff of the changes made and applies them to the project file.
  • Test the updated code to ensure that it functions correctly.

Conclusion

The speaker concludes by expressing amazement at Ader's ability to iterate on projects and showcases its usefulness as an AI coding assistant.

Final Thoughts

  • Ader's ability to generate code projects based on prompts and iterate on existing projects is impressive.
  • The speaker highlights how Ader accurately implemented requested features like adding a score display in the Snake game.
  • The demonstration showcases how Ader can be a valuable tool for developers.

New Section

This section focuses on upgrading the Sidekiq gem in an existing project called "pricer" that uses Universal C tags.

Upgrading Sidekiq Gem

  • To upgrade Sidekiq to the latest version, modify the gem file in the project's root directory.
  • Confirm that the gem file is read-write to proceed with the necessary changes.
  • Make the required changes to upgrade Sidekiq and add them to the chat.
  • Update the gemfile.lock file by running bundler after modifying the gem file.
  • Run bundle install to ensure correct bundler version usage.

This upgrade allows for using GPT4 on any project and enables further iteration on it.

New Section

...

Subtopic Title

  • Bullet point description 1.
  • Bullet point description 2.
  • Bullet point description 3.
Video description

UPDATE: I forgot a step in the install process. After cloning the repo and creating/activating the conda env, you have to install Aider by using “pip install aider-chat” or “pip install -r requirements.txt” In this video, we review Aider, which is an AI coding assistant that can build entire codebases as well as iterate on existing code! Aider uses Universal CTags to map an existing codebase to provide all context to ChatGPT to help build on that codebase. It's truly amazing. I'll show you how to install and use it. Enjoy :) Join My Newsletter for Regular AI Updates 👇🏼 https://forwardfuture.ai/ My Links 🔗 👉🏻 Subscribe: https://www.youtube.com/@matthew_berman 👉🏻 Twitter: https://twitter.com/matthewberman 👉🏻 Discord: https://discord.gg/xxysSXBxFW 👉🏻 Patreon: https://patreon.com/MatthewBerman Media/Sponsorship Inquiries 📈 https://bit.ly/44TC45V Links: Aider Github - https://github.com/paul-gauthier/aider Universal CTags - https://github.com/universal-ctags/ctags Homebrew - https://brew.sh/