3 ms·
There's a lot of irrelevant detail, but the article never actually explains what "Ralph" does or how it works.
by skybrian 10mo ago
There's a lot of irrelevant detail, but the article never actually explains what "Ralph" does or how it works.
- wild_egg 10mo agoIt's explained under the July 2025 heading with link to the blog post where it was first shared. The key bit is right under that though. Ralph is literally just this: while :; do cat PROMPT.md | npx --yes @sourcegraph/amp ; done
- skybrian 10mo agoThanks!
- msla 10mo agoSurely that would be better written as cat PROMPT.md | cat | npx --yes @sourcegraph/amp
- GibbonBreath 10mo agoYou've removed the loop. This pipeline executes once and then halts.
- wild_egg 10mo agoAside from losing the loop (the whole point of the command), why the double `cat`?
- mkl 10mo agoI think it was an attempt at a useless use of cat joke (cat isn't needed at all here, but IMHO helps readability).
- mkl 10mo agoThis is meaningless without knowing the contents of PROMPT.md. The blog post hides the contents of PROMPT.md in a second subscriber-only post (I don't know if the post's 36 minute video explains anything - 33% in it still hasn't). https://github.com/repomirrorhq/repomirror/blob/main/repomirror.md https://github.com/repomirrorhq/repomirror/blob/main/repomir... (discussed in https://news.ycombinator.com/item?id=45005434 https://news.ycombinator.com/item?id=45005434) provides a bit more detail, and prompts, but only seems to use the method for porting existing software.
- dhorthy 10mo agothere are hundreds of useful resources, including many linked in the article itself
- deleted 10mo ago[deleted]