backnotprop / prompt-tower

A tool that helps you build prompts with lots of code blocks in them.
GNU Affero General Public License v3.0
32 stars 2 forks source link
chatgpt llm-prompting prompt-engineering prompt-generator vscode-extension

prompt-tower

Prompt Tower

A VS Code extension that helps you build prompts with lots of code blocks in them.

Install: https://marketplace.visualstudio.com/items?itemName=backnotprop.prompt-tower&ssr=false#overview

0.1.12 Token count, as seen with batch file selection: Demo

Features

Construct a prompt with multiple code blocks in it.

Commands:

Each code block is added to the tower and is wrapped in ``` ticks, with appropriate newlines. It's height indicates the block size (more code = taller block); until a certain threshold where too many blocks normalizes sizes. Blocks are movable, and its simple to add annotations (as new blocks) above or below each other.

See it in action:

Demo

After the prompt is built, it's ready to be sent to gpt:

GPT

Release Notes

These are very early releases, please submit issues!

0.1.12

Token Counter added wtih gpt-tokenizer npm package.

0.1.11

Prompt Tower menu condensed in context window, now part of copy/paste group

0.1.10

Minor usability fixes (retain focus in active editor when using Send To Prompt Tower commands)

0.1.9

Demo

0.1.0

Initial release