Skip to main content

Specify what you want it to build, the AI asks for clarification, and then builds it.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt-engineer-0.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

gpt_engineer-0.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file gpt-engineer-0.0.3.tar.gz.

File metadata

  • Download URL: gpt-engineer-0.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for gpt-engineer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 156a30c8aea0a278cf414058d9ed7e761eb807d2851be4d306f0033a78aba61a
MD5 49c3990442d68b687113581371d3f08d
BLAKE2b-256 da5f0e2d563e8f4e81944816f8f3a2a1f9535b1ca8715b05cc166884c8655362

See more details on using hashes here.

File details

Details for the file gpt_engineer-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gpt_engineer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for gpt_engineer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ab8977ddbb568803dfdcde72e0383952a1765d43ff085bb1e41174a0db010e
MD5 d8ab8b25409dc59f61fee9c21fae4925
BLAKE2b-256 4a1c4a8bc7f1294a4c82cd01df5eb48d5724381d0c8917fe9c19af41e32d92fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page