Show HN: A pi extension that adds a /for prompt-loop with $each insertion
Category: devtools
Tags: cli-tool, llm, prompt-loop, extension, pi
Score: 5.0/10 (Innovation: 6, Technical: 5, Documentation: 6, Utility: 4)
pi-for-each is a Pi CLI extension that adds a /for command with a $each@ token, enabling sequential prompt loops over files or directory children. Each iteration runs in a forked session, isolating context to reduce bias drift and context rot. It's a novel, simple alternative to subagents for batched LLM operations on file sets.
Target audience: AI/LLM power users, prompt engineers, developers using Pi CLI
Repository: https://pi.dev/packages/pi-for-each
View on Hacker News