doc: add prompt composition observation

This commit is contained in:
Levi Neely 2026-04-24 14:04:11 +02:00
parent 379fa33935
commit 6ab2bf7011
2 changed files with 10 additions and 1 deletions

2
core

@ -1 +1 @@
Subproject commit ccbb5168b79c1b349159bc4a3c6e581d33056466
Subproject commit a7cc80af75b33c555e7f0f1e552483303c188ccd

View File

@ -31,3 +31,12 @@
```
`u/optimize` generates and judges candidate prompts, emitting the best to stdout; `b/q` acts on it. Any tool that reads stdin and writes stdout is already a pipeline stage.
**Prompt composition** — `s/bfg` outputs can be nested to arbitrary depth using shell command substitution. The inner prompt completes, its output becomes part of the outer prompt:
```
; echo 'translate to japanese: '`echo 'say hello' | s/bfg` | s/bfg
こんにちは!👋
```
This enables prompt pipelines where each stage transforms, filters, or augments the previous stage's output — all with standard shell syntax.