You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/execution.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,9 @@ Override model, temperature, or tokens:
87
87
88
88
```bash
89
89
workflow run 01-analysis \
90
-
--model claude-3-5-sonnet-20241022 \
91
-
--temperature 0.5 \
92
-
--max-tokens 8192
90
+
--model claude-3-5-sonnet-20241022 \
91
+
--temperature 0.5 \
92
+
--max-tokens 8192
93
93
```
94
94
95
95
### Custom System Prompts
@@ -157,7 +157,7 @@ Long form:
157
157
158
158
```bash
159
159
workflow task --inline "Extract key action items from the meeting notes" \
160
-
--context-file meeting.md
160
+
--context-file meeting.md
161
161
```
162
162
163
163
### Named Tasks
@@ -285,10 +285,10 @@ You can freely mix different document types in a single workflow:
285
285
286
286
```bash
287
287
workflow run research \
288
-
--input-pattern "data/*.pdf" \
289
-
--context-file notes.docx \
290
-
--context-file diagram.png \
291
-
--context-file references.md
288
+
--input-pattern "data/*.pdf" \
289
+
--context-file notes.docx \
290
+
--context-file diagram.png \
291
+
--context-file references.md
292
292
```
293
293
294
294
The tool automatically detects file types and processes each appropriately. PDF and Office files are processed first for optimal performance, followed by text documents and images.
@@ -302,16 +302,16 @@ For **workflow mode (`run`)**:
302
302
1.**System prompts:** From `$WORKFLOW_PROMPT_PREFIX/` directory
303
303
2.**Project description:** From `.workflow/project.txt` (if non-empty)
304
304
3.**Context files and patterns:**
305
-
- Config `CONTEXT_FILES` (project-relative)
306
-
- Config `CONTEXT_PATTERN` (project-relative)
307
-
- CLI `--context-file` flags (PWD-relative)
308
-
- CLI `--context-pattern` flags (PWD-relative)
305
+
- Config `CONTEXT_FILES` (project-relative)
306
+
- Config `CONTEXT_PATTERN` (project-relative)
307
+
- CLI `--context-file` flags (PWD-relative)
308
+
- CLI `--context-pattern` flags (PWD-relative)
309
309
4.**Workflow dependencies:** Via `--depends-on` or `DEPENDS_ON` config
310
310
5.**Input files and patterns:**
311
-
- Config `INPUT_FILES` (project-relative)
312
-
- Config `INPUT_PATTERN` (project-relative)
313
-
- CLI `--input-file` flags (PWD-relative)
314
-
- CLI `--input-pattern` flags (PWD-relative)
311
+
- Config `INPUT_FILES` (project-relative)
312
+
- Config `INPUT_PATTERN` (project-relative)
313
+
- CLI `--input-file` flags (PWD-relative)
314
+
- CLI `--input-pattern` flags (PWD-relative)
315
315
6.**Images:** Automatically detected from context/input sources
316
316
7.**Task prompt:** The actual task description
317
317
@@ -320,11 +320,11 @@ For **task mode (`task`)**:
320
320
1.**System prompts:** From `$WORKFLOW_PROMPT_PREFIX/` directory
321
321
2.**Project description:** From `.workflow/project.txt` (if in a project)
322
322
3.**Context files and patterns:**
323
-
- CLI `--context-file` flags (PWD-relative)
324
-
- CLI `--context-pattern` flags (PWD-relative)
323
+
- CLI `--context-file` flags (PWD-relative)
324
+
- CLI `--context-pattern` flags (PWD-relative)
325
325
4.**Input files and patterns:**
326
-
- CLI `--input-file` flags (PWD-relative)
327
-
- CLI `--input-pattern` flags (PWD-relative)
326
+
- CLI `--input-file` flags (PWD-relative)
327
+
- CLI `--input-pattern` flags (PWD-relative)
328
328
5.**Images:** Automatically detected from context/input sources
329
329
6.**Task prompt:** The actual task description
330
330
@@ -364,9 +364,9 @@ Files are processed in the order specified. For narrative context, order careful
364
364
365
365
```bash
366
366
workflow run draft \
367
-
--context-file 00-outline.md \
368
-
--context-file 01-introduction.md \
369
-
--context-file 02-methods.md
367
+
--context-file 00-outline.md \
368
+
--context-file 01-introduction.md \
369
+
--context-file 02-methods.md
370
370
```
371
371
372
372
## Streaming vs Batch Mode
@@ -488,8 +488,8 @@ workflow run 02-clean-data --depends-on 01-raw-data --stream
488
488
workflow run 03-exploratory --depends-on 02-clean-data --stream
489
489
workflow run 03-statistical --depends-on 02-clean-data --stream
490
490
workflow run 04-final-report \
491
-
--depends-on 03-exploratory,03-statistical \
492
-
--stream
491
+
--depends-on 03-exploratory,03-statistical \
492
+
--stream
493
493
```
494
494
495
495
## Output Management
@@ -634,8 +634,8 @@ workflow task -i "What are the main findings?" --context-file results.json
0 commit comments