# aicode
[](../../actions/workflows/lint.yml)
[](../../actions/workflows/push_macos.yml)
[](../../actions/workflows/push_ubuntu.yml)
[](../../actions/workflows/push_win.yml)
Despite the lack of stars, this is the best open source coding assistant you can use. See below for why.

# About
## Usage:
```bash
pip install advanced-aicode
aicode
```
Why is this the best open source coding assistant? Because this is a front end for [aider.chat](https://aider.chat), but with all the sharp edges filed off and the defaults you want, included automatically.
Features
* `aicode` is easier to install. Like WAY easier.
* `aicode` will not f@ck up your global pip environment.
* `aicode` will notify you of updates, invoke it with`--update`
* `aicode` will always turn on aider.chat's architect mode, which has significantly higher coding performance than non architect mode.
* `aicode` always invokes `--watch` mode, unless you shut it off via `--no-watch`
### Watch mode
Before watch mode, you had to manually add files to the chat terminal, then tell aider what you wanted to do. Now aider will watch the files and look for comments that container AI! in it, then follow the instructions.
So for example, say you have this piece of code
```python
def list_files(root: Path) -> list[Path]:
pass
```
Now let's say you want to implement this function. You will fire up `aicode` and type in a comment that ends with `AI!` in it, which the ai will see.
```python
def list_files(root: Path) -> list[Path]"
pass # please implement this AI!
```
Aider will automatically see this and start editing the file!
### 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.
Happy CODING!
# Releases
* 2.0.18 - Internal refactor to make interactive usage of aider.chat easier to deal with.
* 2.0.6 - Asking for restoring history is now disabled always.
* 2.0.5 - Watchmode now enabled by default.
* 2.0.4 - New sonnet model anthropic/claude-3-5-sonnet-20241022 is now the default for claude mode.
* 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/zackees/aicode",
"name": "advanced-aicode",
"maintainer": "Zachary Vorhies",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "template-python-cmd",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/16/65/180edb2b0f7456707e061cc19831c6fd034b325bcd54e8ff39557fa37614/advanced_aicode-2.0.21.tar.gz",
"platform": null,
"description": "# aicode\r\n\r\n[](../../actions/workflows/lint.yml)\r\n\r\n[](../../actions/workflows/push_macos.yml)\r\n[](../../actions/workflows/push_ubuntu.yml)\r\n[](../../actions/workflows/push_win.yml)\r\n\r\nDespite the lack of stars, this is the best open source coding assistant you can use. See below for why.\r\n\r\n\r\n\r\n\r\n# About\r\n\r\n\r\n## Usage:\r\n\r\n```bash\r\npip install advanced-aicode\r\naicode\r\n```\r\n\r\nWhy is this the best open source coding assistant? Because this is a front end for [aider.chat](https://aider.chat), but with all the sharp edges filed off and the defaults you want, included automatically.\r\n\r\nFeatures\r\n * `aicode` is easier to install. Like WAY easier.\r\n * `aicode` will not f@ck up your global pip environment.\r\n * `aicode` will notify you of updates, invoke it with`--update`\r\n * `aicode` will always turn on aider.chat's architect mode, which has significantly higher coding performance than non architect mode.\r\n * `aicode` always invokes `--watch` mode, unless you shut it off via `--no-watch`\r\n\r\n### Watch mode\r\n\r\nBefore watch mode, you had to manually add files to the chat terminal, then tell aider what you wanted to do. Now aider will watch the files and look for comments that container AI! in it, then follow the instructions.\r\n\r\nSo for example, say you have this piece of code\r\n\r\n```python\r\ndef list_files(root: Path) -> list[Path]:\r\n pass\r\n```\r\nNow let's say you want to implement this function. You will fire up `aicode` and type in a comment that ends with `AI!` in it, which the ai will see.\r\n\r\n```python\r\ndef list_files(root: Path) -> list[Path]\"\r\n pass # please implement this AI!\r\n```\r\n\r\nAider will automatically see this and start editing the file!\r\n\r\n### Note\r\n\r\nThe package name is NOT the same as the command tool. The package is `advanced-aicode` and the tool is called `aicode`. Someone\r\nelse grabbed package name `aicode` over a year ago and this is the best name I could come up with to get it into pypi.\r\n\r\nHappy CODING!\r\n\r\n# Releases\r\n * 2.0.18 - Internal refactor to make interactive usage of aider.chat easier to deal with.\r\n * 2.0.6 - Asking for restoring history is now disabled always.\r\n * 2.0.5 - Watchmode now enabled by default.\r\n * 2.0.4 - New sonnet model anthropic/claude-3-5-sonnet-20241022 is now the default for claude mode.\r\n * 2.0.3 - Now using Semi secret instead of keyring, which encrypts the key at a secret location.\r\n * 2.0.2 - If there is chat history then aicode will ask if you want to restore it.\r\n * 2.0.1 - Implement disabling of git if a git directory can't be found.\r\n * 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.\r\n Disable this by using `--no-architect` to get the old behavior.\r\n * 1.2.16 - Linting is disable by default\r\n * 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`\r\n * 1.2.14 - Fixes wrong VIRTUAL ENV path.\r\n * 1.2.13 - Fixes KeyboardInterrupt exception in trampoline.\r\n * 1.2.12 - Final fixes (I hope) in this cycle.\r\n * 1.2.11 - Fixes some issues with warnings being emitted.\r\n * 1.2.10 - Adds missing `setuptools` dependency that was causing a non fatal error.\r\n * 1.2.9 - Now uses trampoline to re-root the cwd when calling the program. Fixes Linux/MacOS.\r\n * 1.2.8 - `aicode --upgrade` now more robust. Also fixed a path issue on windows.\r\n * 1.2.7 - `aicode --upgrade` has been fixed to work with `uv` package upgrades.\r\n * 1.2.6 - Re-rooting trick fails for mac/linux, only apply it for win32\r\n * 1.2.5 - Cwd directory is inserted so aider-chat backend is invoked from the current command line.\r\n * 1.2.4 - Switch isolated environment to an ad-hoc usage of `uv`. Much faster and better!\r\n * 1.2.3 - Fixes a win32 bug related to `isolated-environment`\r\n * 1.2.2 - Propagate fixes from `isolated-environment` to fix Mac/Linux\r\n * 1.2.1 - Buf fix for isolated-environment by using `shell=True`.\r\n * 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.\r\n * 1.1.8 - Custom path now set for pipx, should fix most pipx issues.\r\n * 1.1.7 - Version detection fixed now that the api has been made much better.\r\n * 1.1.6 - Fixes has update when the versions match\r\n * 1.1.5 - Fixes `--just-check-update` which had a typo in the last version as `--just-check-updated`\r\n * 1.1.4 - Fixes `aider --check-update` with `--just-check-update`\r\n * 1.1.3 - Fixes `aider --skip-check-update` which is now `--no-check-update`\r\n * 1.1.1 - Fix a infinit recursion loop while trying to find the .git directory.\r\n * 1.1.0 - The --slow, --fast, --claude3 are not long used. Now it's just --chatgpt and --claude.\r\n * 1.0.4 - If `--upgrade` fails, then attempt recovery by asking the user to upgrade `pipx` and then try again.\r\n * 1.0.3 - Improved version parsing so that stuff like X.X.X-dev can be parsed.\r\n * 1.0.2 - `--claude3`` now maps to sonnet mode. This is now the default if both keys are present for claude3 and openai.\r\n * 1.0.1 - Improve readme.\r\n * 1.0.0 - Initial release.\r\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "Front End for Aider.chat which makes it super simple to use",
"version": "2.0.21",
"project_urls": {
"Homepage": "https://github.com/zackees/aicode"
},
"split_keywords": [
"template-python-cmd"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7e9c95349edd289f8f372af215605d5a76cffbcf74eafe3312b15daaa6411a7c",
"md5": "660e6e43c7344d7d41c9eeb475510e45",
"sha256": "5940020089814cdd40e11cdf9566e5a9afe1f12fdd14e15de0d0b63af0f2e41c"
},
"downloads": -1,
"filename": "advanced_aicode-2.0.21-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "660e6e43c7344d7d41c9eeb475510e45",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.10",
"size": 17037,
"upload_time": "2025-02-25T22:34:25",
"upload_time_iso_8601": "2025-02-25T22:34:25.645912Z",
"url": "https://files.pythonhosted.org/packages/7e/9c/95349edd289f8f372af215605d5a76cffbcf74eafe3312b15daaa6411a7c/advanced_aicode-2.0.21-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1665180edb2b0f7456707e061cc19831c6fd034b325bcd54e8ff39557fa37614",
"md5": "c912429a31bf97c7b659c111b0301389",
"sha256": "e62e5d798afb07317b1191c06996428077c5c17ab5f5d41a5f4b2f79cd6db078"
},
"downloads": -1,
"filename": "advanced_aicode-2.0.21.tar.gz",
"has_sig": false,
"md5_digest": "c912429a31bf97c7b659c111b0301389",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 21507,
"upload_time": "2025-02-25T22:34:27",
"upload_time_iso_8601": "2025-02-25T22:34:27.424701Z",
"url": "https://files.pythonhosted.org/packages/16/65/180edb2b0f7456707e061cc19831c6fd034b325bcd54e8ff39557fa37614/advanced_aicode-2.0.21.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-25 22:34:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zackees",
"github_project": "aicode",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "advanced-aicode"
}