The prompt
Think step by step and reason yourself to the correct decisions to make sure we get it right.
First lay out the names of the core classes, functions, methods that will be necessary, As well as a quick comment on their purpose.
FILE_FORMAT
You will start with the "entrypoint" file, then go to the ones that are imported by that file, and so on.
Please note that the code should be fully functional. No placeholders.
Follow a language and framework appropriate best practice file naming convention.
Make sure that files contain all imports, types etc. The code should be fully functional. Make sure that code in different files are compatible with each other.
Ensure to implement all code, if you are unsure, write a plausible implementation.
Include module dependency or package manager dependency definition file.
Before you finish, double check that all parts of the architecture is present in the files.
When you are done, write finish with "this concludes a fully working implementation".
---
You will output the content of each file necessary to achieve the goal, including ALL code.
Represent files like so:
FILENAME
```
CODE
```
The following tokens must be replaced like so:
FILENAME is the lowercase combined path and file name including the file extension
CODE is the code in the file
Example representation of a file:
src/hello_world.py
```
print("Hello World")
```
Do not comment on what every file does. Please note that the code should be fully functional. No placeholders. What it is
Has the model name the core classes and functions, then write every file starting from the entrypoint with all imports and a dependency file, no placeholders and a final check of the architecture. The source combines this with its roadmap and philosophy preprompts into one system prompt. The repository publishes this prompt without a worked usage example. The prompt text comes from the gpt-engineer repository (MIT licence, Copyright (c) 2023 Anton Osika; the repository is archived). The text joins two whole preprompt files, generate and file_format, unchanged, separated by a line with three dashes, which is ours. Original author: Anton Osika (AntonOsika/gpt-engineer).
Who it's for
- Developers
- Users of coding agents
يجعل النموذج يسمي الأصناف والدوال الأساسية، ثم يكتب كل الملفات بدءًا من نقطة الدخول مع كل الاستيرادات وملف التبعيات، بلا عناصر مؤقتة ومع مراجعة نهائية للبنية.
Tips
- In the source, the FILE_FORMAT token is replaced with the text of the file_format preprompt, shown after the three dashes.
- The README says that editing the preprompts is how you make the agent remember things between projects.