PromptForge
PromptForge is a library for the prompts you reuse. Write a prompt once, turn it into a template with variables, compile it with real values, and insert the result straight into a terminal session.
Opening PromptForge
Click Prompt Forge in the workspace sidebar. PromptForge opens as a full-screen modal with a folder tree on the left and an editor on the right.
Organizing Prompts
- Folders — Create folders (and subfolders) with the Folder button to organize your library.
- Prompts — Create a prompt with the Prompt button. Rename and delete prompts from the tree.
PromptForge is global — your prompt library is shared across every project on your ClawIDE instance.
Plain vs. Template Prompts
Each prompt has a type:
- Plain — A static Markdown prompt.
- Jinja template — A prompt with
{{ variable }}placeholders that you fill in at compile time.
The editor offers Edit, Side (editor + live preview), and Full (preview with table of contents) views.
Variables
For Jinja prompts, define variables in the Variables drawer. Each variable has a name, a type, an optional label and default, and a required flag. Supported types:
string, text (multi-line), number, boolean, select (with options), and date.
Variables referenced in the template text are also auto-detected when you compile, so you don’t have to declare every one by hand.
Compiling
Click Compile to render a prompt:
- Fill in the variable form (auto-detected variables are flagged).
- ClawIDE renders the template with your values.
- Choose what to do with the result:
- Insert into terminal — Send the compiled text to the focused terminal pane.
- Copy — Copy it to your clipboard.
- Save version — Store the compiled output as a version.
Version History
Each compiled prompt can be saved as a compiled version, recording the rendered text and the exact variable values used. Versions are listed under the editor where you can re-insert, copy, rename, or delete them.
Storage
Prompts are stored as Markdown files with YAML frontmatter under ~/.clawide/promptforge/. Folder structure is mirrored on disk, compiled versions live alongside their prompt in a <prompt>.compiled/ directory, and the folder tree is tracked in index.yaml.