Skip to content

Instantly share code, notes, and snippets.

@ferrislucas
Created May 3, 2023 04:01
Show Gist options
  • Save ferrislucas/f474ea2d1438c9740b29281c79c162ba to your computer and use it in GitHub Desktop.
Save ferrislucas/f474ea2d1438c9740b29281c79c162ba to your computer and use it in GitHub Desktop.
{% if context.files.size > 0 %}
You will be provided the contents of some files in a codebase.
The contents of each file begin with "--BEGIN-FILE:" followed by the file path.
The contents of each file end with "--END-FILE--".
{% endif %}
Your instructions are:
{{prompt}}
{% if context.files.size > 0 %}
The codebase files and content are below:
{% endif %}
{% for item in context.files %}
--BEGIN-FILE: {{ item.filename }}
{{ item.content }}
--END-FILE--
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment