pi-for-each 0.1.1 → 0.1.2
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 +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# pi-for-each
|
|
2
2
|
|
|
3
|
-
A [pi](https://github.com/earendil-works/pi) extension that adds a `/for`
|
|
4
|
-
prompt-loop command with $each variable insertion over directory children or file
|
|
5
|
-
lines.
|
|
3
|
+
A [pi](https://github.com/earendil-works/pi) extension that adds a `/for`-`$each` prompt loop – and hides it from your LLM! Supports children-in-directory and line-in-files iteration.
|
|
6
4
|
|
|
7
5
|
## Why
|
|
8
6
|
|
|
9
|
-
Like subagents but much simpler, sequential and with more control for the user. Instead of describing the loop to the agent, just make a loop. No need to tell the agent about your control structure if you already know the control structure.
|
|
7
|
+
Like subagents but much simpler, sequential and with more control for the user. Instead of describing the loop to the agent, just make a loop. No need to tell the agent about your control structure if you already know the control structure. Each iteration the LLM only sees the necessary context and the iteration prompt, no other iterations. This prevents bias drift or context rot compared to a loop that repeats commands and execution within the same context.
|
|
10
8
|
|
|
11
9
|
## Demo
|
|
12
10
|
|
package/package.json
CHANGED