Skip to main content

Front End for Aider.chat which makes it super simple to use

Project description

aicode

The most advanced ai coding tool on the planet.

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

About

Okay well aider.chat is by far the BEST aicoding assistant on the planet. But aicode, a front end for aider.chat is EASIER TO USE! So use this whenever you can for Windows/Linux/MacOS. Think of aicode as aider.chat but on easy mode.

One foot gun here is that aider.chat only works on files in a git repo. therefore you must be in a git repo for aicode to work. This is required because aider.chat will generate a repo map as part of the query.

Usage:

pip install advanced-aicode
aicode

Note

The package name is NOT the same as the command tool. The package is advanced-aicode and the tool is called aicode. Someone else grabbed package name aicode over a year ago and this is the best name I could come up with to get it into pypi.

aicode is better than aider.chat in the following ways

  • aicode is easier to install. Like WAY easier. It will tell you what you need to do to complete the installation, such as setting the api key if none are detected.
  • aicode will not f@ck up your global pip environment. We fix this by lazily installing aider.chat using pipx
  • aicode will change the directory to a the project root containing a .git directory. aider.chat will just fail to run.
  • aicode will default to NOT creating a git commit on every change. Instead it will just raw dog it to your current repo. This simplifies usage because most of the time you will only be editing one file and if you don't like the change you can just invoke undo on the file. If you want to create a git commit on every change (so that you can use /undo) then pass in aicode -a. This works better if you are editing multiple files and want and want to step back in history, must most of the time it's better to just let aicode work on one file at a time.
  • aicode has the benefit of allowing easy upgrades to aider.chat from the command line using aicode --update which will invoke pipx update on the backend.
  • aicode will default to using ChatGPT4-o if it detects you have have an openapi key.
  • aicode will save and insert the environmental variables on demand. aider.chat requires that you insert these variables in your ~/.bashrc file (linux) or the equivalent for Windows and MacOS.
  • aicode will check for new versions in the background and inform you of an update on the NEXT run of aicode and the command line you can use. This was a feature that aider.chat program actually implemented for this project.
  • aicode will ask you to modify the .gitignore file so that you aren't uploading your f*cking chat history to your repo by default.

Happy CODING!

Releases

  • 2.0.3 - Now using Semi secret instead of keyring, which encrypts the key at a secret location.
  • 2.0.2 - If there is chat history then aicode will ask if you want to restore it.
  • 2.0.1 - Implement disabling of git if a git directory can't be found.
  • 2.0.0 - Implemented aider's new "architect" mode, which although is a small change in the code, does change how the product is used. Disable this by using --no-architect to get the old behavior.
  • 1.2.16 - Linting is disable by default
  • 1.2.15 - Aider is now installed in a side package. This means Aider won't be cleared when you uninstall advanced-aicode but should resolve the issue with OSX throwing exceptions for locked files. See aicode --purge
  • 1.2.14 - Fixes wrong VIRTUAL ENV path.
  • 1.2.13 - Fixes KeyboardInterrupt exception in trampoline.
  • 1.2.12 - Final fixes (I hope) in this cycle.
  • 1.2.11 - Fixes some issues with warnings being emitted.
  • 1.2.10 - Adds missing setuptools dependency that was causing a non fatal error.
  • 1.2.9 - Now uses trampoline to re-root the cwd when calling the program. Fixes Linux/MacOS.
  • 1.2.8 - aicode --upgrade now more robust. Also fixed a path issue on windows.
  • 1.2.7 - aicode --upgrade has been fixed to work with uv package upgrades.
  • 1.2.6 - Re-rooting trick fails for mac/linux, only apply it for win32
  • 1.2.5 - Cwd directory is inserted so aider-chat backend is invoked from the current command line.
  • 1.2.4 - Switch isolated environment to an ad-hoc usage of uv. Much faster and better!
  • 1.2.3 - Fixes a win32 bug related to isolated-environment
  • 1.2.2 - Propagate fixes from isolated-environment to fix Mac/Linux
  • 1.2.1 - Buf fix for isolated-environment by using shell=True.
  • 1.2.0 - Aider is now installed with isolated-environment instead of pipx for better isolation. We now use keyring to securely store your api keys.
  • 1.1.8 - Custom path now set for pipx, should fix most pipx issues.
  • 1.1.7 - Version detection fixed now that the api has been made much better.
  • 1.1.6 - Fixes has update when the versions match
  • 1.1.5 - Fixes --just-check-update which had a typo in the last version as --just-check-updated
  • 1.1.4 - Fixes aider --check-update with --just-check-update
  • 1.1.3 - Fixes aider --skip-check-update which is now --no-check-update
  • 1.1.1 - Fix a infinit recursion loop while trying to find the .git directory.
  • 1.1.0 - The --slow, --fast, --claude3 are not long used. Now it's just --chatgpt and --claude.
  • 1.0.4 - If --upgrade fails, then attempt recovery by asking the user to upgrade pipx and then try again.
  • 1.0.3 - Improved version parsing so that stuff like X.X.X-dev can be parsed.
  • 1.0.2 - `--claude3`` now maps to sonnet mode. This is now the default if both keys are present for claude3 and openai.
  • 1.0.1 - Improve readme.
  • 1.0.0 - Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

advanced_aicode-2.0.3.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

advanced_aicode-2.0.3-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file advanced_aicode-2.0.3.tar.gz.

File metadata

  • Download URL: advanced_aicode-2.0.3.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for advanced_aicode-2.0.3.tar.gz
Algorithm Hash digest
SHA256 53d54a890d0c9cf5ace3c9573ca6e72501dbf89e36f4b2e91117e1d71bb7f599
MD5 4b525aefc16184e430e8fd65fa0a932b
BLAKE2b-256 edab48088ac94dcf693335320313b6b3fae5035c73cd8df4619c35e7ea615eea

See more details on using hashes here.

File details

Details for the file advanced_aicode-2.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for advanced_aicode-2.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c009c0b789d4bdac00731a6821bd144cad8dd5bd7101c4b81d4b9215c72ee696
MD5 7e1c5d78b0b08823474d6688808fc8ae
BLAKE2b-256 97274f0e130e09ba2ef718dac6e1843b1821949a07353f58b0983301d3310a3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page