Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reka-batch

БесплатноЗапускает вложенные скриптыНе проверен

Run large, non-urgent LLM jobs on Reka's Batch API at 50% of live token prices, with results within 24 hours. Use this whenever the user wants the same kind…

reka-aiот reka-ai136 установок в других каталогах

Об этом скилле

Reka batch jobs

Reka's Batch API takes a JSONL file of independent Chat Completions requests and returns every answer within 24 hours, billed at half the live rate (cached input too). It is the right tool when there are many items, each request stands alone, and nobody is waiting on the answer.

{baseDir} below is this skill's folder. OpenClaw fills it in; elsewhere, use the folder this file is in. Every command prints a human summary, or JSON with --json, which is easier for you to read.

python3 {baseDir}/scripts/reka_batch.py <make|validate|estimate|submit|status|wait|collect|cancel|cleanup|list> ...

First, check that batch fits

Batch rows cannot see each other and cannot call tools across turns, so a batch is a fan-out, not an agent. Use it when all of these hold:

  • There are many items (roughly 50 or more; below that the live API is simpler and just as cheap).
  • Each item can be answered in one request, from what you put in that request.
  • The user can wait hours. Reka promises results within 24 hours, not a typical time.

If the job is a multi-step task (a refactor that needs to read, edit, test and fix), split it into one self-contained request per unit of work (per file, per row, per document), check the answers locally afterwards, and send failures back as a second batch with the error as feedback. Say so to the user rather than promising an overnight agent.

Only two models are offered for batch: glm5.3-flash (default: cheaper and stronger in general) and qwen3.8-27b. One model per file. See references/api-notes.md for limits and prices.

Workflow

  1. Shape the job with the user. What are the items, what should each answer look like, and how will they use the results? Prefer short, structured answers (JSON with a fixed set of keys).

  2. Build the request file.

    • Tabular items (CSV/TSV/JSONL) plus one prompt: use make. Placeholders are {{column}}, so JSON examples with single braces stay intact.
      python3 {baseDir}/scripts/reka_batch.py make --items tickets.csv --id-field id \
        --system system.txt --prompt prompt.txt --model glm5.3-flash \
        --max-tokens 256 --reasoning none --json-mode --out requests.jsonl
      
    • Anything else (files in a repo, documents, generated briefs): write a short script that emits one row per item with build_request(custom_id, model, messages, **params) from the same module, or produce the JSONL directly. references/recipes.md has worked patterns.
  3. Validate and estimate, then confirm before spending.

    python3 {baseDir}/scripts/reka_batch.py validate requests.jsonl
    python3 {baseDir}/scripts/reka_batch.py estimate requests.jsonl --avg-output 150
    

    Show the user the row count and the estimated batch cost range, say it is a rough estimate, and get a yes before submitting. Fix every validation error; take warnings seriously (see below).

  4. Submit with a dedicated state folder per job:

    python3 {baseDir}/scripts/reka_batch.py submit requests.jsonl --state-dir runs/<job-name>
    

    Rerunning the same command is always safe: it never uploads or creates twice. If it reports the queue is full, rerun with --wait-queue or try later. If it reports an uncertain upload, rerun it; it looks for the earlier upload before sending another.

  5. Arrange the check-in. There are no webhooks; someone has to poll.

    • OpenClaw: offer a one-shot automation for the morning (or a few hours out) that runs status, and collect once finished, and reports in this chat.
    • Hermes: offer a cron job doing the same.
    • Otherwise: give the user the status and collect commands, or run wait --state-dir ... --notify-cmd '<their command>' in a terminal they keep open. The notify command receives RB_BATCH_ID, RB_STATUS, RB_TOTAL, RB_COMPLETED, RB_FAILED and RB_STATE_DIR, never the API key.
  6. Collect and report honestly.

    python3 {baseDir}/scripts/reka_batch.py collect --state-dir runs/<job-name>
    

    This writes results.jsonl (one line per request, in request order, with ok, content and any error), retry.jsonl (the original requests that did not succeed) and summary.json (counts, error codes, real tokens and cost at batch and live rates). Report succeeded and failed counts exactly. Read the error codes before retrying: a 4xx row fails again until it is fixed, while batch_expired, batch_cancelled and 5xx rows can be resubmitted as they are. For empty_content rows, retry with --bump-max-tokens 2 or reasoning_effort: "none". Retry with a new state folder: submit runs/<job>/retry.jsonl --state-dir runs/<job>-retry.

  7. Validate the answers themselves. A completed row is not a correct row. Parse JSON answers, check them against what the user needs (schema, allowed values, lengths, uniqueness), and keep the failures for a retry round instead of silently dropping

Полный SKILL.md на ClawHub

Установить reka-batch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл reka-batch?

Run large, non-urgent LLM jobs on Reka's Batch API at 50% of live token prices, with results within 24 hours. Use this whenever the user wants the same kind of prompt run over many items - labelling or enriching a CSV or dataset, generating content or test cases in bulk, translating many strings, summarising a folder of documents, or reviewing or transforming many files overnight - or mentions batch, bulk, overnight, "cheaper", or /reka-batch, even if they never say "batch". Not for chat, single questions, or multi-step agent loops.

Как установить скилл reka-batch?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reka-batch запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить reka-batch с