https://github.com/e2b-dev/ai-developer-with-sandbox
AI Developer is an AI agent powered by GPT-4-Turbo that's using custom E2B Sandbox
https://github.com/e2b-dev/ai-developer-with-sandbox
agents ai ai-assistant gpt-4 gpt-4-turbo javascript llm openai typescript
Last synced: about 1 month ago
JSON representation
AI Developer is an AI agent powered by GPT-4-Turbo that's using custom E2B Sandbox
- Host: GitHub
- URL: https://github.com/e2b-dev/ai-developer-with-sandbox
- Owner: e2b-dev
- Created: 2023-11-10T17:51:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T09:12:05.000Z (2 months ago)
- Last Synced: 2025-03-02T07:23:53.008Z (about 2 months ago)
- Topics: agents, ai, ai-assistant, gpt-4, gpt-4-turbo, javascript, llm, openai, typescript
- Language: TypeScript
- Homepage: https://e2b.dev/docs
- Size: 196 KB
- Stars: 44
- Watchers: 3
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# AI Developer powered by GPT-4-Turbo & OpenAI's AI Assistant API
![]()
AI Developer is an AI agent powered by OpenAI Assistant API that's using custom E2B Sandbox---
The AI developer is an AI agent that perform user's tasks in the user's GitHub repository including:
- reading files
- writing code
- making pull requests
- pulling GitHub repository
- responding to the user's feedback to the agent's previous work.
- running commands in the generated environmentAll agent's work is happening inside the [E2B sandbox](https://e2b.dev/docs).
The E2B's sandboxes are isolated cloud environments made specifically for AI apps and agents. Inside the sandbox AI agents perform long-running tasks, run code in a secure cloud environment, and use the same tools as a human developer would use.
- Pull GitHub repository
- Read files
- Make needed changes
- Commit work
- Create a pull request
- Run commands in the generated environmentThe custom E2B sandbox environment is defined in the [`e2b.Dockerfile`](./e2b.Dockerfile)
## Getting started
1. Run `npm install`
1. Copy `.env.example` and save it as `.env` file
1. Add your OpenAI API key to `.env`
1. Get E2B API Key at [https://e2b.dev/docs/getting-started/api-key](https://e2b.dev/docs/getting-started/api-key)
- Save it to `.env`
1. Run `npm run create-ai-assistant` to create the AI assistant using OpenAI's new Assistant API
1. Grab the assistant ID you just created here [https://platform.openai.com/assistants](https://platform.openai.com/assistants)
- Save the assistant ID to `.env`
1. Create classic GitHub token [here](https://github.com/settings/tokens) and give it the `read:org` and `repo` permissions
- Save the GitHub token to `.env`
1. Save your GitHub username to `.env`## Run AI Developer
Run the following command in terminal and follow instructions
```bash
npm run start
```
## Update AI DeveloperIf you make changes to the description in `functions.ts`, you can update the AI by running the following command in the terminal:
```bash
npm run update-ai-assistant
```