# GPT Engineer
[![Discord Follow](https://dcbadge.vercel.app/api/server/8tcDQ89Ej2?style=flat)](https://discord.gg/8tcDQ89Ej2)
[![GitHub Repo stars](https://img.shields.io/github/stars/AntonOsika/gpt-engineer?style=social)](https://github.com/AntonOsika/gpt-engineer)
[![Twitter Follow](https://img.shields.io/twitter/follow/antonosika?style=social)](https://twitter.com/AntonOsika)
**Specify what you want it to build, the AI asks for clarification, and then builds it.**
GPT Engineer is made to be easy to adapt, extend, and make your agent learn how you want your code to look. It generates an entire codebase based on a prompt.
[Demo](https://twitter.com/antonosika/status/1667641038104674306)
## Project philosophy
- Simple to get value
- Flexible and easy to add new own "AI steps". See `steps.py`.
- Incrementally build towards a user experience of:
1. high level prompting
2. giving feedback to the AI that it will remember over time
- Fast handovers back and forth between AI and human
- Simplicity, all computation is "resumable" and persisted to the filesystem
## Usage
Choose either **stable** or **development**.
For **stable** release:
- `pip install gpt-engineer`
For **development**:
- `git clone https://github.com/AntonOsika/gpt-engineer.git`
- `cd gpt-engineer`
- `pip install -e .`
- (or: `make install && source venv/bin/activate` for a venv)
**Setup**
With an OpenAI API key (preferably with GPT-4 access) run:
- `export OPENAI_API_KEY=[your api key]`
Alternative for Windows
**Run**:
- Create an empty folder. If inside the repo, you can run:
- `cp -r projects/example/ projects/my-new-project`
- Fill in the `prompt` file in your new folder
- `gpt-engineer projects/my-new-project`
- (Note, `gpt-engineer --help` lets you see all available options. For example `--steps use_feedback` lets you improve/fix code in a project)
By running gpt-engineer you agree to our [terms](https://github.com/AntonOsika/gpt-engineer/blob/main/TERMS_OF_USE.md).
**Results**
- Check the generated files in `projects/my-new-project/workspace`
To **run in the browser** you can simply:
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/AntonOsika/gpt-engineer/codespaces)
## Features
You can specify the "identity" of the AI agent by editing the files in the `preprompts` folder.
Editing the `preprompts`, and evolving how you write the project prompt, is how you make the agent remember things between projects.
Each step in `steps.py` will have its communication history with GPT4 stored in the logs folder, and can be rerun with `scripts/rerun_edited_message_logs.py`.
## Vision
The gpt-engineer community is building the **open platform for devs to tinker with and build their personal code-generation toolbox**.
If you are interested in contributing to this, we would be interested in having you.
If you want to see our broader ambitions, check out the [roadmap](https://github.com/AntonOsika/gpt-engineer/blob/main/ROADMAP.md), and join
[discord](https://discord.gg/8tcDQ89Ej2)
to get input on how you can [contribute](.github/CONTRIBUTING.md) to it.
We are currently looking for more maintainers and community organisers. Email anton.osika@gmail.com if you are interested in an official role.
## Example
https://github.com/AntonOsika/gpt-engineer/assets/4467025/6e362e45-4a94-4b0d-973d-393a31d92d9b
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
GPT-Engineer一个根据指示生成代码的 AI 工具,你只需要「动动嘴」,就能直接构建整个代码库。 - 简单易用,能够为用户提供价值; - 灵活且易于添加新的「AI 步骤」; - 支持高级提示,可以记住用户反馈; - 能快速在 AI 和人类之间快速切换; - 所有计算都是「可恢复的」,并持久地保存到文件系统。
资源推荐
资源详情
资源评论
收起资源包目录
gpt-engineer-main.zip (62个子文件)
gpt-engineer-main
TERMS_OF_USE.md 962B
benchmark
image_resizer
prompt 154B
password_generator
prompt 185B
todo_list
prompt 141B
file_organizer
prompt 177B
RESULTS.md 2KB
pomodoro_timer
prompt 158B
file_explorer
prompt 175B
timer_app
prompt 143B
url_shortener
prompt 244B
markdown_editor
prompt 146B
currency_converter
prompt 193B
.github
ISSUE_TEMPLATE
ISSUE_TEMPLATE.md 547B
issue-template.md 689B
CONTRIBUTING.md 5KB
CODE_OF_CONDUCT.md 5KB
workflows
pre-commit.yaml 328B
release.yaml 1KB
codeql.yml 3KB
ci.yaml 555B
FUNDING.yml 90B
PULL_REQUEST_TEMPLATE
PULL_REQUEST_TEMPLATE.md 198B
Makefile 3KB
LICENSE 1KB
projects
example
prompt 90B
tests
__init__.py 0B
steps
__init__.py 0B
test_archive.py 1KB
test_db.py 3KB
test_ai.py 196B
test_chat_to_files.py 4KB
test_collect.py 2KB
.pre-commit-config.yaml 838B
pyproject.toml 2KB
WINDOWS_README.md 3KB
MANIFEST.in 44B
ROADMAP.md 3KB
.gitignore 710B
gpt_engineer
__init__.py 0B
ai.py 5KB
main.py 2KB
learning.py 5KB
steps.py 10KB
chat_to_files.py 1KB
collect.py 986B
domain.py 170B
db.py 2KB
preprompts
generate 1KB
qa 262B
respec 657B
unit_tests 246B
spec 592B
use_qa 1KB
philosophy 528B
fix_code 347B
use_feedback 0B
DISCLAIMER.md 2KB
README.md 3KB
scripts
rerun_edited_message_logs.py 723B
clean_benchmarks.py 760B
benchmark.py 4KB
print_chat.py 1KB
共 62 条
- 1
资源评论
missiletcy
- 粉丝: 40
- 资源: 36
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功