TGViewer
Вайб-кодинг Вайб-кодинг @vibecoding_tg · 64.9K subscribers
Post #2514 4.63K
AFK Ralph в bash-лупе реально гораздо лучше, чем плагин для Claude Code.

Но DX там слегка мерзкий: если гонять его в AFK-режиме, по умолчанию нет стриминга вывода в терминал.

Этот скрипт это фиксит:

#!/bin/bash
set -e

if [ -z "$1" ]; then
echo "Usage: $0 <iterations>"
exit 1
fi

# jq filter to extract streaming text from assistant messages
stream_text='select(.type == "assistant").message.content[]? | select(.type == "text").text // empty | gsub("\n"; "\r\n") | . + "\r\n\n"'

# jq filter to extract final result
final_result='select(.type == "result").result // empty'

for ((i=1; i<=$1; i++)); do
tmpfile=$(mktemp)
trap "rm -f $tmpfile" EXIT

docker sandbox run --credentials host claude \
--verbose \
--print \
--output-format stream-json \
"<your prompt here>" \
| grep --line-buffered '^{' \
| tee "$tmpfile" \
| jq --unbuffered -rj "$stream_text"

result=$(jq -r "$final_result" "$tmpfile")

if [[ "$result" == *"<promise>COMPLETE</promise>"* ]]; then
echo "Ralph complete after $i iterations."
exit 0
fi
done


Вот ещё статья на эту тему 👍
More from @vibecoding_tg
  1. Oct 13, 2026Gemini 4 Argon официально вышла! Модель доступна через Gemini API, а также в приложении Ge…
  2. Oct 13, 2026Газпромбанк ищет решения от научных команд в финтех-акселератор Трек «Финтех.Наука» рассчи…
  3. Oct 13, 2026Новый мод, который позволяет увидеть, что именно находится в контекстном окне Claude на ка…
  4. Oct 13, 2026Post #4080
  5. Oct 12, 2026photo post
  6. Oct 12, 2026Классное применение модели EmbeddingGemma 2 от Google. Кто-то на Reddit создал на её основ…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →