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-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
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).
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.mdhas worked patterns.
- Tabular items (CSV/TSV/JSONL) plus one prompt: use
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 150Show 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).
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-queueor try later. If it reports an uncertain upload, rerun it; it looks for the earlier upload before sending another.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, andcollectonce finished, and reports in this chat. - Hermes: offer a cron job doing the same.
- Otherwise: give the user the
statusandcollectcommands, or runwait --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.
- OpenClaw: offer a one-shot automation for the morning (or a few hours out) that runs
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, withok,contentand anyerror),retry.jsonl(the original requests that did not succeed) andsummary.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, whilebatch_expired,batch_cancelledand 5xx rows can be resubmitted as they are. Forempty_contentrows, retry with--bump-max-tokens 2orreasoning_effort: "none". Retry with a new state folder:submit runs/<job>/retry.jsonl --state-dir runs/<job>-retry.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
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic