You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+35-28Lines changed: 35 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
AICodeBot is a coding assistant designed to make your coding life easier. Think of it as your AI version of a pair programmer. Perform code reviews, create helpful commit messages, debug problems, and help you think through building new features. A team member that accelerates the pace of development and helps you write better code.
6
6
7
-
We've planned to build out multiple different interfaces for interacting with AICodeBot. To start, it's a [command-line tool](https://pypi.org/project/aicodebot/). In the future, we plan to integrate it with GitHub Actions, Slack, and other tools to make it even more useful.
7
+
We've planned to build out multiple different interfaces for interacting with AICodeBot. To start, it's a [command-line tool](https://pypi.org/project/aicodebot/) that you can install and run in your terminal, and a [GitHub Action for Code Reviews](https://github.com/marketplace/actions/aicodebot-code-review).
8
8
9
9
Status: This project is in its early stages, but it already improves the software development workflow, and has a healthy roadmap of features (below).
10
10
@@ -23,42 +23,46 @@ We're using AICodeBot to build AICodeBot, and it's upward spiraling all the time
23
23
| Writing tests | ✅ |
24
24
| Integration with GitHub | ✅ |
25
25
| Modifying local files | In Progress |
26
-
| Searching the internet for answers | In Progress |
26
+
| Searching the Internet for answers | In Progress |
27
27
| Reading library documentation | In Progress |
28
28
| Coding with a large number of files | As LLMs improve |
29
29
| Writing senior developer level code | Eventually |
30
30
| Major refactors | Eventually |
31
-
| Build an entire app|Nope|
31
+
| Build entire apps|Eventually|
32
32
| Replace Developers | Nope |
33
33
34
34
### AI Sidekick 🦸♂️
35
35
36
-
`aicodebot sidekick` Your AI-powered coding assistant. It's designed to help you with your coding tasks by providing context-aware suggestions and solutions. Think ChatGPT with the ability to read local files for context.
36
+
`aicodebot sidekick` Your AI-powered coding assistant. It's designed to help you with your coding tasks by providing context-aware suggestions and solutions. Think ChatGPT with the ability to read the local repository for context.
37
37
38
-
By default it will pass along a directory of files from the current working directory, and you can also pass in a list of files to use as context. For example:
38
+
By default it will pass along a directory of files from the current working directory, and you can also pass in a list of files to use as context for the task you are working on. For example:
39
39
40
40
```bash
41
41
aicodebot sidekick file1.py file2.py
42
42
```
43
43
44
-
In this example, the sidekick will read in the contents of file1.py and file2.py and use them to provide context-aware answers.
44
+
In this example, the sidekick will read the contents of file1.py and file2.py and use them to provide context-aware answers.
45
45
46
-
Pro-tip: add your README.md to the list of files to get context-aware answers.
46
+
Pro-tips:
47
+
* Add your README.md to the list of files to get context-aware answers.
48
+
* Paste in error messages from log files or stack traces and it will help you debug
49
+
* Brainstorm new features
50
+
* Have it write unit tests for you that cover all the cases
47
51
48
-
This feature is in it's early phases right now, but it's already useful. We'll be adding support for tools that the sidekick can use, including GitHub integration, ingesting repository specific domain knowledge, writing local files, and more. For now, it just *reads* files and provides suggestions.
52
+
This feature is in its early phases right now, but it's already useful. We'll be adding support for tools that the sidekick can use, including GitHub integration, ingesting repository specific domain knowledge, writing local files, and more. For now, it just *reads* files and provides suggestions.
49
53
50
54
### AI-Assisted Git Commit 📝
51
55
52
-
`aicodebot commit` improves the git commit process. It will run pre-commit for you to check syntax, and then generate a commit message for you based on the changes you've made. In about as much effort as typing "fix bug" for the commit message, you will get a highquality commit message that thoroughly describes the change.
56
+
`aicodebot commit` improves the git commit process. It will run pre-commit for you to check syntax, and then generate a commit message for you based on the changes you've made. In about as much effort as typing "fix bug" for the commit message, you will get a high-quality commit message that thoroughly describes the change.
53
57
54
58
### AI-Assisted Code Review 👀
55
59
56
-
`aicodebot review` will run a code review on your code and suggest improvements. By default it will look at [un]staged changes, and you can also supply a specific commit hash to review.
57
-
It's goal is to suggest how to make the code better, and we've found that it often teaches us new things about our code and makes us better programmers. It's not perfect, but it's a great way to get a second set of robot eyes on your code.
60
+
`aicodebot review` will run a code review on your code and suggest improvements. By default, it will look at [un]staged changes, and you can also supply a specific commit hash to review.
61
+
Its goal is to suggest how to make the code better, and we've found that it often teaches us new things about our code and makes us better programmers. It is a great way to get a second set of robot eyes on your code.
58
62
59
63
### AI-Assisted Debugging 🐞
60
64
61
-
`aicodebot debug $command` will run the command and capture the log output. It will pass the error message, stack trace, command output, etc. to the AI and respond with some suggestions on how to fix it. It saves a trip to Stack Overflow in a separate window, allowing you to stay in terminal with all the context.
65
+
`aicodebot debug $command` will run the $command and capture the log output. It will pass the error message, stack trace, command output, etc. over to the AI and respond with some suggestions on how to fix it.
And then run `aicodebot configure` to get started.
75
+
And then, run `aicodebot configure` to get started.
72
76
73
77
```bash
74
78
Usage: aicodebot [OPTIONS] COMMAND [ARGS]...
@@ -83,18 +87,22 @@ Commands:
83
87
configure Create or update the config file
84
88
debug Run a command and debug the output.
85
89
fun-fact Get a fun fact about programming and artificial intelligence.
86
-
review Do a code review, with [un]staged changes, or a spe
90
+
review Do a code review, with [un]staged changes, or a specifc commit.
87
91
```
88
92
89
93
### Open AI key setup
90
94
91
95
The first time you run it, you'll be prompted to enter your OpenAI API Key, which is required, as we use OpenAI's large language models for the AI. You can get one for free by visiting your [API key settings page](https://platform.openai.com/account/api-keys).
92
96
93
-
Note: You will be billed by OpenAI based on how much you use it. Typical developers will use less than $10/month - which if you are a professional developer you'll likely more than make up for with saved time and higher quality work. See [OpenAI's pricing page](https://openai.com/pricing/) for more details.
97
+
Note: You will be billed by OpenAI based on how much you use it. Typical developers will use less than $10/month - which if you are a professional developer you'll likely more than make up for with saved time and higher quality work. See [OpenAI's pricing page](https://openai.com/pricing/) for more details. Also, see the note about increasing your token size and using better language models below.
94
98
95
99
## Integration with GitHub Actions
96
100
97
-
How about automated code reviews on every commit? You can have AICodeBot run as a GitHub action on your repository. See [The AICodeBot GitHub Action for Code Reviews](https://github.com/marketplace/actions/aicodebot-code-review)
101
+
How about automated code reviews on every commit? You can have AICodeBot run as a GitHub action on your repository. See [The AICodeBot GitHub Action for Code Reviews](https://github.com/marketplace/actions/aicodebot-code-review). It will look at every commit and pull request, and then either:
102
+
103
+
* ✅ Pass
104
+
* 🗒️ Comments - pass the action, but leave a comment with minor issues, suggestions, or improvements.
105
+
* ❌ Fail the action - if a serious issue is found, it will leave a comment and let you know about something that should be addressed.
98
106
99
107
## Roadmap of Upcoming Features ️
100
108
@@ -106,11 +114,10 @@ How about automated code reviews on every commit? You can have AICodeBot run as
106
114
*[ ]**Dependency Management**: Updating dependencies to their latest versions with pull requests that run tests.
107
115
*[ ]**Documentation Generation**: Generates comprehensive documentation for code, including docstrings, README files, and wiki pages.
108
116
*[ ]**Performance Optimization Suggestions**: Suggests potential performance optimizations for code.
109
-
*[]**Test Generation**: Generates unit tests for code, improve test coverage.
110
-
*[]**Integration with CI/CD pipelines**: Integrates with CI/CD pipelines to automate tasks like code review, testing, and deployment (via GitHub Actions). Eventually: Fix the build automatically when there are small errors.
117
+
*[X]**Test Generation**: Generates unit tests for code, improve test coverage.
118
+
*[X]**Integration with CI/CD pipelines**: Integrates with CI/CD pipelines to automate tasks like code review, testing, and deployment (via GitHub Actions). Eventually: Fix the build automatically when there are small errors.
111
119
*[X]**Rubber Ducky Chat Bot**: Helps developers think through design issues by providing a conversational interface to discuss and solve problems, using data from the current repository.
112
120
*[X]**Linting/Formatting**: Checks code for linting errors and automatically fixes them where possible (via pre-commit)
113
-
*[ ]**Handle GitHub Issues**: Handles basic tasks that you assign to [@aicodebot](https://pypi.org/project/aicodebot/)
114
121
*[ ]**Automatically Generate ChangeLogs and Release Notes**: Generates release notes and changelogs based on commit messages and code changes.
115
122
116
123
### User Interfaces
@@ -119,7 +126,7 @@ How about automated code reviews on every commit? You can have AICodeBot run as
119
126
*[ ]**Mention the @aicodebot GitHub user**: Mentioning the [@aicodebot](https://pypi.org/project/aicodebot/) GitHub user in a comment will trigger it to perform a task, review code, or pull in an appropriate GIF.
120
127
*[X]**Callable as a GitHub action**: Can be called as a GitHub action to perform tasks on GitHub repositories. [AICodeBot Action](https://github.com/marketplace/actions/aicodebot-code-review)
121
128
*[ ]**Jupyter Notebook Extension**: Provides a Jupyter Notebook extension that can be used to debug code in the notebook.
122
-
*[]**Chat**: CLI chat interface that knows the context of your codebase and can answer questions about it. No more going back and forth between ChatGPT and command-line.
129
+
*[X]**Chat**: CLI chat interface that knows the context of your codebase and can answer questions about it. No more going back and forth between ChatGPT and command-line.
123
130
*[ ]**Slack Bot**: Interacts with aicodebot via slack, sends notifications, performs tasks, and provides real-time assistance to developers.
124
131
*[ ]**Bug Report service integrations**: Listen for bug reports from Sentry, [Honeybadger](http://honeybadger.io), and other bug reporting tools and automatically create issues, assign them to developers, and notify them via Slack. Eventually: FIX the bug automatically and notify the team.
125
132
@@ -141,27 +148,27 @@ How about automated code reviews on every commit? You can have AICodeBot run as
141
148
142
149
## Alignment ❤️ + 🤖
143
150
144
-
Technology itself is amoral, it just imbues the values of the people who create it. We believe that AI should be built-in a way that aligns with humanity, and we're building AICodeBot to help us do just that. We're building from a heart-centered space, and contributing to the healthy intersection of AI and humanity.
151
+
Technology itself is amoral; it just imbues the values of the people who create it. We believe that AI should be builtin a way that aligns with humanity, and we're building AICodeBot to help us do just that. We're building from a heart-centered space, and contributing to the healthy intersection of AI and humanity.
145
152
146
153
### What it's NOT
147
154
148
-
`aicodebot` is a tool for developers, not a replacement for them. It's not going to replace your job, but it will make your job easier and more fun. It's not going to take over the world, but it will help us build a better one. See the *Alignment* section below for more.
155
+
`aicodebot` is a tool for developers, not a replacement for them. It's not going to replace your job, but it will make your job easier and more fun. It won't take over the world, but it will help us build a better one. See the *Alignment* section below for more.
149
156
150
-
⚠️ AICodeBot currently uses OpenAI's ChatGPT large language models, which can hallucinate and be confidently wrong. Sometimes AICodeBot does dumb things, which is why it's mostly *reading* and *advising* and not yet *writing*. Much like Tesla's "Full Self Driving", you have to keep your hands on the wheel.
157
+
⚠️ AICodeBot currently uses OpenAI's ChatGPT large language models, which can hallucinate and be confidently wrong. Sometimes AICodeBot does dumb things, so it's mostly *reading* and *advising* and not yet *writing*. Much like Tesla's "Full Self Driving", you must keep your hands on the wheel.
151
158
152
159
It's also not a "build a site for me in 5 minutes" tool that takes a well-constructed prompt and builds a scaffold for you. There are [other tools](https://github.com/AntonOsika/gpt-engineer) for that. It's not a no-code platform. Instead, AICodeBot is built to work with existing code bases and the git-commit level. It's designed to multiply the effectiveness of capable engineers.
153
160
154
161
## Which Language Model?
155
162
156
-
Not all OpenAI accounts have GPT-4 API access enabled. By default, AICodeBot will use GPT-4 if your OpenAI account supports it, we will check the first time you run it. Tip: If your OpenAI API does not support GPT-4, you can ask to be added to the waitlist [here](https://openai.com/waitlist/gpt-4-api)
163
+
Not all OpenAI accounts have GPT-4 API access enabled. By default, AICodeBot will use GPT-4. If your OpenAI account supports it, we will check the first time you run it. If your OpenAI API does not support GPT-4, you can ask to be added to the waitlist [here](https://openai.com/waitlist/gpt-4-api). You can also use openrouter.ai to get access to advanced models like GPT-4 32k for larger context windows.
157
164
158
165
Note: We'll be adding more options for AI models in the future, including those that can be run locally, such as [GPT4all](https://gpt4all.io/) and HuggingFace's [Transformers](https://huggingface.co/transformers/).
159
166
160
167
### Understanding Tokens and Using Commands Efficiently
161
168
162
169
In AI models like OpenAI's GPT-4, a "token" is a piece of text, as short as a character or as long as a word. The total tokens in an API call, including input and output, affect the cost, time, and whether the call works based on the maximum limit.
163
170
164
-
Each model has a maximum token limit. For example, gpt-3.5 has a limit of 4096 tokens, and gpt-4 has a token limit of 8192 tokens. If a conversation exceeds this limit, you'll need to reduce your text until it fits.
171
+
Each model has a maximum token limit. For example, GPT-3.5 has a limit of 4096 tokens, and GPT-4 has a token limit of 8192 tokens. If a conversation exceeds this limit, you must reduce your text until it fits.
165
172
166
173
When using commands like the Sidekick command in AICodeBot, which allows you to pass in files for context, it's important to manage your tokens effectively. Due to token limits, it's not feasible to load your entire code base. Instead, you should only load the specific files that are relevant to the task you're working on. This ensures that the AI model can process your request efficiently and provide the most relevant suggestions for your current task.
167
174
@@ -175,9 +182,9 @@ The context is too large (21414) for any of the models supported by your API key
175
182
176
183
There are a couple of things you can do:
177
184
178
-
1. Load less files into the context (only what you need to work with)
179
-
2. Apply for gpt-32k access from OpenAI by contacting them.
180
-
3. Use openrouter.ai - this allows you to use the full power of gpt-4-32k, which offers a 4x larger context window. See [openrouter.ai](https://openrouter.ai) for more details. Once you sign up and set your `openrouter_api_key` in your `$HOME/.aicodebot.yaml` file, you can have access too larger models. Soon we will have support for Claude 2, which has a 100k token limit.
185
+
1. Load fewer files into the context (only what you need to work with)
186
+
2. Apply for GPT-4-32k access from OpenAI by contacting them.
187
+
3. Use openrouter.ai - this allows you to use the full power of GPT-4-32k, which offers a 4x larger context window. See [openrouter.ai](https://openrouter.ai) for more details. Once you sign up and set your `openrouter_api_key` in your `$HOME/.aicodebot.yaml` file, you can have access to larger models. Soon we will have support for Claude 2, which has a 100k token limit.
0 commit comments