Lazy Prompt (mini)
The prompt history without the garnish
- clip
- POS_OUT
- NEG_OUT
Every serious ComfyUI user has the same moment: you spent an evening iterating on a prompt, closed the tab, and the version that actually worked is gone. PgLazyPromptMini exists so that stops happening. It's the stripped-down version of PG Nodes' Lazy Prompt - just a CLIP input, positive and negative boxes, and a built-in history that quietly remembers every run and lets you pull any past prompt back with a couple of clicks.
"Mini" is the point. The full Lazy Prompt node layers on camera-lens, time-of-day, lighting and color-temperature helpers - genuinely useful if you want them, mildly in the way if you don't. This one is the same prompt-history engine with a minimal UI: no helper dropdowns, no lighting boost sliders, just the boxes you type into and the history you actually came for.
How it works
Each run, the node encodes your positive and negative into CONDITIONING outputs (so it replaces the CLIPTextEncode double-node you'd otherwise need) and appends the exact prompt pair to an on-disk JSON history. The file is written to custom_nodes/prompt_history.json by default, capped at max_entries = 500 with an LRU trim - old entries fall off the end so the file can't balloon. The in-node UI adds a history button with a searchable panel; pick an entry and it refills your prompt boxes. A web extension keeps the panel in sync after every run, so "just ran it" prompts are immediately recallable.
There's also a small inline randomizer: {red|green|blue} in your prompt picks one option per run, so you can batch-vary a single word without touching the text. The node deliberately re-rolls when it sees that syntax, so each queue run gets a fresh pick.
Inputs and outputs
clip- your CLIP. Required, same as a text encoder.positive/negative- multiline prompt boxes, both default empty.- Outputs
POS_OUTandNEG_OUT- ready-made conditionings straight into your sampler. It's an output node (marked as such), so it also counts as your graph's "done" point if nothing else needs to be final.
Install
Part of PG Nodes: ComfyUI Manager → "PG Nodes" → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/GizmoR13/PG-Nodes
No models, no extra dependencies - the history is plain JSON in your custom_nodes folder.
Common issues
The usual head-scratcher is finding the history file: it defaults to custom_nodes/prompt_history.json at the ComfyUI root (not inside the pack folder), so deleting the pack won't necessarily clear it. If entries aren't appearing, check the console for the [PG history] lines the node prints on every save - they confirm both the path and the current entry count. And if you want more than 500 entries or a different file location, that's the full-size Lazy Prompt's context menu territory; the mini keeps the defaults and gets out of your way.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | — | |
| positive | STRING | — | |
| negative | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| POS_OUT | CONDITIONING | — |
| NEG_OUT | CONDITIONING | — |