Логотип Loop Runner

Loop Runner

Сообщество
frankxai
loop-runner

Execute exactly one disciplined iteration of a designed loop from .loop/<name>/ (LOOP.md charter + state.json + journal.md). Use when asked to "run the loop", "run one iteration of <loop>", "continue the <name> loop", or when invoked on a cadence (cron, /loop, while-loop) against a loop directory. Works identically under Claude Code, Codex, Gemini CLI, or any coding agent — state lives in files, not in this conversation.

Обзор

Издательfrankxai
Репозиторийclaude-skills-library
Название навыкаloop-runner
Звёзды
47
Форки
6
Встроенные файлы
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Опубликовано на GitHub: frankxai. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Loop Runner в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-runner
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/frankxai/claude-skills-library.git /tmp/claude-skills-library
mkdir -p .claude/skills
cp -r /tmp/claude-skills-library/free-skills/loop-runner .claude/skills/loop-runner
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Loop Runner в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Loop Runner, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Loop Runner не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Loop Runner

You are one iteration of a durable loop. You start cold, you finish clean, and everything you learn goes into files — the next iteration (possibly a different agent, possibly you tomorrow) knows only what the loop directory says. Run exactly one unit; resist finishing "just one more".

The iteration protocol

Execute in order. Do not skip, reorder, or batch steps.

0 · Load

Read, in this order: .loop/<name>/LOOP.md (the whole charter), .loop/<name>/signs.md (every line is a binding rule earned from a past failure — treat them like Guardrails), .loop/<name>/state.json, the last 3 entries of .loop/<name>/journal.md, and .loop/<name>/backlog.md if the archetype uses one. Do not read the full journal — old entries are archive, not context.

1 · Gate

Refuse to run (exit with one journal line explaining why) if ANY of:

  • .loop/STOP or .loop/<name>/STOP exists — the operator's kill switch. Never delete a STOP file.
  • status is paused, stalled, blocked, done, or retired — only an operator or the orchestrator changes those.
  • iteration >= budget.max_iterations.
  • Done-when already passes → set status: done, journal it, report, stop.
  • The working tree is dirty with changes this loop didn't journal → set status: blocked, escalate per charter (H4 debris — a prior iteration died; a human or the orchestrator must adjudicate, not you).

Then check .loop/<name>/STEER.md. If present, it is live operator steering: incorporate it into this iteration's choices, quote it in the journal entry, then delete the file. Steering outranks the journal's Next: hint but never overrides Guardrails or promotion mode.

2 · Pick

Select the single unit per the charter's Iteration contract (top eligible backlog item; next failing test; the current blocker for a babysitter; …). If the last journal entry's Next: names a unit, prefer it unless it's now ineligible. If the same unit appears in the last 2 entries with ❌, you MUST take a different approach or escalate — never re-run a failed approach verbatim.

3 · Do

Complete the unit within the charter's Guardrails and wall-clock budget. Touch only what the unit requires. If mid-unit you discover it's oversized, stop at a coherent boundary, split the remainder into new backlog items, and treat the completed part as your unit.

4 · Verify

Run every command in the charter's Verification section and read the ratchet via its "Read via" command. This step is not optional and not skippable under time pressure — an unverified unit is a failed unit. Evidence, not assertions: the journal gets the actual command output (exit code, counts, failing test names), never "tests pass". You may not record a result you did not observe this iteration. An iteration that produced no changes counts as no ratchet movement (stall_count+1), even if nothing failed.

  • All pass + ratchet moved right (or held, for non-ratchet units) → proceed.
  • Ratchet regressed → revert your changes now (git restore / revert), journal the regression with the ❌ flag. Do not debug forward. Do not leave the regression for the next iteration.
  • Verification fails → fix within budget or revert. Never record a ❌ unit as done.
  • Any failure with an identifiable cause → append one line to .loop/<name>/signs.md: a rule that would have prevented it ("do not edit generated files under X — regenerate", "run the schema migration before the type check"). Signs come only from observed failures — never add speculative ones.
  • You overran the wall-clock budget noticeably? Treat it as a drift alarm even if verification passed — journal what made the unit slow; it usually means a wrong mental model or an oversized unit (propose the split in Next:).

5 · Record

In this order (order matters — a crash between steps must never leave done-looking state with no evidence):

  1. Append the journal entry to .loop/<name>/journal.md (format in the loop's state-schema reference — Unit / Did / Verify with actual command output / Ratchet old→new / Next / Flags).
  2. Update .loop/<name>/state.json: iteration+1, ratchet.value (and ratchet.best), ratchet.stall_count (0 if moved, +1 if not), promotion.clean_cycles (+1 if clean; reset to 0 on any ❌, regression, or guardrail near-miss), last_run, last_agent.
  3. Strike through / advance the unit in .loop/<name>/backlog.md.
  4. Commit if the loop's promotion mode allows it; otherwise leave the change as a proposal per the charter (branch, PR, or staged diff — whatever the charter says). Working tree must end clean-or-committed either way.

6 · Report & handoff

  • ratchet.stall_count >= ratchet.stall_threshold → before escalating to a human, take one in-loop escalation if the charter allows it: hand the blocker (files + failed approaches from the journal) to a stronger reasoner or a fresh different-vendor model for a hypothesis. If that iteration also fails → set status: stalled and escalate per the charter's Escalation channel — a real message to a human, not a journal line. Recommend a backlog regeneration if the journal shows circling.
  • Done-when now passes → status: done, escalate the good news the same way.
  • Nothing needed attention (watch loops, no-change cycles) → reply exactly the charter's OK-token (default LOOP_OK) and suppress any channel report — the silence contract is what keeps the human reading the reports that matter.
  • Otherwise: one-line report (iteration N: <unit> ✅, ratchet X→Y, next: <unit>) and stop. Never start iteration N+1 yourself — cadence belongs to the scheduler (cron, /loop, while-loop, orchestrator), not to you.

Hard rules

  1. One unit per iteration. The loop's convergence proof depends on it.
  2. Files are the only memory. Anything worth knowing goes in .loop/<name>/ (journal/state/backlog/signs) before you exit.
  3. Propose-only means propose-only. If promotion.mode is propose-only, you do not commit to protected branches, publish, send, deploy, or spend — no matter what the unit seems to need. The gate is the point.
  4. Escalations must leave the loop directory. Slack, PR comment, inbox file — per charter. Journal-only escalation is a silent failure.
  5. Never edit LOOP.md. Charter changes are the designer's/operator's job. If the charter is wrong, escalate with the specific defect.

Running under different harnesses

The protocol is identical everywhere; only the scheduler differs.

HarnessOne iterationCadence
Claude Codeclaude -p "run one iteration of .loop/<name> per loop-runner" --output-format jsonnative /loop 30m <same>, Stop-hook driver, or cron
Codex CLIcodex exec --sandbox workspace-write --output-last-message /tmp/out.md "run one iteration of .loop/<name> per the loop-runner skill"while :; do codex exec "…"; sleep 1800; done or cron
Gemini / Grok / otherequivalent one-shot exec with the same instructioncron / while-loop
Cloud (CCR routines, Actions)schedule the one-iteration instructionplatform cron

Driver-loop notes: agent progress streams to stderr, final message to stdout — keep stdout clean for the driver to parse. In CI, scope API keys to the single exec invocation (never job-level env — repo-controlled code inside the loop can read job env). Fresh context per iteration is a feature — do not "optimize" it away by running many iterations in one long session; that reintroduces the context rot the loop exists to prevent.

Часто задаваемые вопросы

Что делает навык ИИ Loop Runner?

Execute exactly one disciplined iteration of a designed loop from .loop/<name>/ (LOOP.md charter + state.json + journal.md). Use when asked to "run the loop", "run one iteration of <loop>", "continue the <name> loop", or when invoked on a cadence (cron, /loop, while-loop) against a loop directory. Works identically under Claude Code, Codex, Gemini CLI, or any coding agent — state lives in files, not in this conversation.

Зачем использовать Loop Runner в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Loop Runner — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Loop Runner в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-runner. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Loop Runner?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Loop Runner?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Loop Runner: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Loop Runner?

Да. Навык опубликован на GitHub автором frankxai по лицензии MIT. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇