Skip to main content

GPT Engineer

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 👶🤖

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 git@github.com:AntonOsika/gpt-engineer.git
  • cd gpt-engineer
  • make install
  • source venv/bin/activate

Setup

With an api key that has GPT4 access run:

  • export OPENAI_API_KEY=[your api key]

Run:

  • Create an empty folder. If inside the repo, you can run:
    • cp -r projects/example/ projects/my-new-project
  • Fill in the main_prompt file in your new folder
  • Run: gpt-engineer projects/my-new-project

Results

  • Check the generated files in projects/my-new-project/workspace

Limitations

Implementing additional chain of thought prompting, e.g. Reflexion, should be able to make it more reliable and not miss requested functionality in the main prompt.

Contributors welcome! If you are unsure what to add, check out the ideas listed in the Projects tab in the GitHub repo.

Features

You can specify the "identity" of the AI agent by editing the files in the identity folder.

Editing the identity, and evolving the main_prompt, is currently 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.

Contributing

If you want to contribute, please check out the projects or issues tab in the GitHub repo and please read the contributing document on how to contribute.

High resolution example

https://github.com/AntonOsika/gpt-engineer/assets/4467025/6e362e45-4a94-4b0d-973d-393a31d92d9b

Release files for gpt-engineer 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpt-engineer 0.0.3
File Size Uploaded
gpt-engineer-0.0.3.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt-engineer 0.0.3
File Interpreter ABI Platform
gpt_engineer-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / gpt-engineer-0.0.3.tar.gz

Download URL gpt-engineer-0.0.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
156a30c8aea0a278cf414058d9ed7e761eb807d2851be4d306f0033a78aba61a
BLAKE2b-256 checksum
How to use checksums
da5f0e2d563e8f4e81944816f8f3a2a1f9535b1ca8715b05cc166884c8655362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / gpt_engineer-0.0.3-py3-none-any.whl

Download URL gpt_engineer-0.0.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6ab8977ddbb568803dfdcde72e0383952a1765d43ff085bb1e41174a0db010e
BLAKE2b-256 checksum
How to use checksums
4a1c4a8bc7f1294a4c82cd01df5eb48d5724381d0c8917fe9c19af41e32d92fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

0.3.1

1 release file

0.3.0

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page