prompts-gpt 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -102,12 +102,23 @@ prompts-gpt run -f .prompts-gpt/review.md --agent cursor
102
102
  prompts-gpt sweep
103
103
  prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 5
104
104
 
105
+ # Run every sweep file sequentially or in parallel
106
+ prompts-gpt sweep --all-sweeps --sweep-strategy sequential
107
+ prompts-gpt sweep --all-sweeps --sweep-strategy parallel --file-concurrency 3 -n 2
108
+
109
+ # Run only selected sweep files
110
+ prompts-gpt sweep --sweep-files design,research --sweep-strategy parallel -n 2
111
+ prompts-gpt sweep --sweep-files .prompts-gpt/sweeps/design.md,.prompts-gpt/sweeps/research.md --sweep-strategy sequential
112
+
105
113
  # Preview what a sweep would do
106
114
  prompts-gpt sweep --dry-run
107
115
 
108
116
  # Run and score multiple providers on one prompt
109
117
  prompts-gpt orchestrate --mode parallel -f .prompts-gpt/review.md --providers codex,claude,cursor --criteria correctness,completeness
110
118
 
119
+ # Interactive orchestration mode picker
120
+ prompts-gpt orchestrate
121
+
111
122
  # Chain steps with context passing
112
123
  cat > pipeline.json <<'EOF'
113
124
  [
@@ -122,6 +133,9 @@ prompts-gpt orchestrate --mode pipeline --steps pipeline.json --dry-run
122
133
  prompts-gpt orchestrate --mode eval -f .prompts-gpt/review.md --criteria correctness,risk,clarity
123
134
  prompts-gpt orchestrate --mode eval --dry-run --eval-criteria correctness,risk,clarity
124
135
 
136
+ # Inspect available models for the resolved orchestration providers
137
+ prompts-gpt orchestrate --mode eval --list-models
138
+
125
139
  # Re-run a prompt when the file changes
126
140
  prompts-gpt run -f .prompts-gpt/review.md --watch
127
141
 
@@ -135,6 +149,9 @@ prompts-gpt diff <run-id>
135
149
  # Run a sweep with reduced output
136
150
  prompts-gpt sweep --quiet
137
151
 
152
+ # Run one sweep file with independent parallel iterations
153
+ prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 6 --parallel 3
154
+
138
155
  # List available models for a provider
139
156
  prompts-gpt models --provider codex
140
157
 
@@ -157,6 +174,47 @@ prompts-gpt generate --goal "Review PRs for security issues" --sync-agents
157
174
  printf '%s' "$PROMPTS_GPT_TOKEN" | prompts-gpt sync --token-stdin --agent all
158
175
  ```
159
176
 
177
+ ## Sweep Use Cases
178
+
179
+ Sweeps live in `.prompts-gpt/sweeps/*.md`. By default, `prompts-gpt sweep` auto-selects the local sweep when there is only one, or prompts you to choose when multiple sweeps exist.
180
+
181
+ Use these modes when you want explicit control over which sweep files run and how iterations are scheduled:
182
+
183
+ | Use case | Command |
184
+ |----------|---------|
185
+ | Run the default or selected single sweep | `prompts-gpt sweep` |
186
+ | Run one sweep file for a fixed number of iterations | `prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 5` |
187
+ | Run one sweep file with iterations in parallel | `prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 6 --parallel 3` |
188
+ | Run every sweep file sequentially | `prompts-gpt sweep --all-sweeps --sweep-strategy sequential` |
189
+ | Run every sweep file sequentially with the same iteration count per file | `prompts-gpt sweep --all-sweeps --sweep-strategy sequential -n 2` |
190
+ | Run every sweep file in parallel | `prompts-gpt sweep --all-sweeps --sweep-strategy parallel --file-concurrency 3` |
191
+ | Run every sweep file in parallel with repeated iterations per file | `prompts-gpt sweep --all-sweeps --sweep-strategy parallel --file-concurrency 3 -n 2` |
192
+ | Run selected sweep files sequentially by name | `prompts-gpt sweep --sweep-files design,research --sweep-strategy sequential` |
193
+ | Run selected sweep files sequentially by path | `prompts-gpt sweep --sweep-files .prompts-gpt/sweeps/design.md,.prompts-gpt/sweeps/research.md --sweep-strategy sequential` |
194
+ | Run selected sweep files in parallel | `prompts-gpt sweep --sweep-files design,research --sweep-strategy parallel --file-concurrency 2` |
195
+ | Run selected sweep files in parallel with repeated iterations per file | `prompts-gpt sweep --sweep-files design,research --sweep-strategy parallel --file-concurrency 2 -n 3` |
196
+ | Preview the selected sweep plan without launching providers | `prompts-gpt sweep --all-sweeps --sweep-strategy parallel --file-concurrency 3 --dry-run` |
197
+ | Run and score each sweep iteration | `prompts-gpt sweep --all-sweeps --eval --eval-criteria correctness,risk,clarity` |
198
+
199
+ Key scheduling rules:
200
+
201
+ - `--sweep-strategy sequential` runs selected sweep files one after another. This is the safest default when sweeps may edit overlapping files.
202
+ - `--sweep-strategy parallel` runs multiple sweep files at the same time. Use `--file-concurrency <n>` to cap how many files run concurrently.
203
+ - `--parallel <n>` controls parallel iterations inside a single sweep file. It is separate from `--file-concurrency`.
204
+ - `-n, --iterations <count>` overrides the frontmatter `iterations:` value for every selected sweep file.
205
+ - When `-n` is omitted, each sweep file uses its own frontmatter `iterations:` value, falling back to `1`.
206
+ - `--sweep-files` accepts comma-separated sweep names, filenames, or paths. For example, `design`, `design.md`, and `.prompts-gpt/sweeps/design.md` can all resolve the same file.
207
+ - `--all-sweeps` cannot be combined with `--sweep-files`, and multi-file selection cannot be combined with `-f, --prompt-file`.
208
+ - `--files-mode sequential|parallel` is accepted as an alias for `--sweep-strategy sequential|parallel`.
209
+
210
+ Practical recommendations:
211
+
212
+ - Use sequential all-sweeps for broad repo QA where each sweep may write code.
213
+ - Use parallel selected sweeps for independent areas such as docs, tests, and marketing copy.
214
+ - Use single-file `--parallel` when you want competing iterations of the same prompt, then compare outputs.
215
+ - Use `--dry-run` before large parallel runs to verify file selection, iteration counts, and concurrency.
216
+ - Keep `--file-concurrency` modest when sweeps call paid providers or local agents that consume heavy CPU.
217
+
160
218
  ---
161
219
 
162
220
  ## Configuration
@@ -178,7 +236,7 @@ All options can be overridden via environment variables. See `prompts-gpt help s
178
236
 
179
237
  ## Orchestration Patterns
180
238
 
181
- - `parallel`: run multiple providers against the same prompt, score outputs, and keep the strongest result with local logs and diffs.
239
+ - `parallel`: run multiple providers against the same prompt, score outputs, and report the strongest result with local logs and diffs.
182
240
  - `pipeline`: pass context across named steps when research, implementation, and review should be separated.
183
241
  - `eval`: run one provider and force a structured quality score for the output.
184
242
  - `eval --dry-run`: if `-f` is omitted, the CLI uses the first discovered `.prompts-gpt` prompt so workspace scaffolds can verify orchestration immediately.
@@ -203,6 +261,8 @@ Dry-runs verify command wiring, prompt resolution, evaluator selection, and crit
203
261
  npx prompts-gpt orchestrate --mode eval --dry-run --eval-criteria correctness,risk,clarity
204
262
  ```
205
263
 
264
+ Full pattern guide (parallel vs pipeline vs eval, visibility handoff, diff/watch): [docs/orchestration-patterns.md](../../docs/orchestration-patterns.md) in the main repo.
265
+
206
266
  ---
207
267
 
208
268
  ## SDK