redaccel-to-relax

redaccel-to-relax is a skill for Claude Code, Codex from redai-infra/Relax. It costs 65 tokens per session (2,600 once invoked), scanned A, original, Apache-2.0.

A guide for moving reinforcement-learning algorithms from RedAccel to Relax. Reinforcement learning trains a model through rewards from an environment, and the guide maps those rewards, environments, tools, and launch scripts to their Relax equivalents.

In plain words
What is it for?
Use it to port reward functions, agent or tool environments, language-model judging helpers, search tools, training scripts, and related launch commands from RedAccel to Relax.
Why use it?
It removes the need to translate the old project structure and interfaces by trial and error. It shows where each part of an algorithm belongs in the new framework.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is -- python3 relax/entrypoints/train.py \.

Good fit Use it to port reward functions, agent or tool environments, language-model judging helpers, search tools, training scripts, and related launch commands from RedAccel to Relax.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/redai-infra/Relax
agentmods
npx agentmods add skills/redai-infra/relax/redaccel-to-relax

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redaccel-to-relax

README.md
[![agentmods](https://agentmods.dev/badge/skills/redai-infra/relax/redaccel-to-relax/github.svg)](https://agentmods.dev/skills/redai-infra/relax/redaccel-to-relax)
Your own site
<a href="https://agentmods.dev/skills/redai-infra/relax/redaccel-to-relax"><img src="https://agentmods.dev/badge/skills/redai-infra/relax/redaccel-to-relax/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redaccel-to-relax

Your own site · 80×15
<a href="https://agentmods.dev/skills/redai-infra/relax/redaccel-to-relax"><img src="https://agentmods.dev/badge/skills/redai-infra/relax/redaccel-to-relax.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02600
Opus 5 $0.00032 $0.01300
Sonnet 5 $0.00013 $0.00520
Haiku 4.5 $0.00006 $0.00260

Measured 12d ago against content hash fc99c49f171a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

redaccel-to-relax scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/redaccel-to-relax/SKILL.md · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RedAccel → Relax Algorithm Migration

This skill guides migration of RL training algorithms (reward functions, agent environments, training scripts) from the RedAccel framework to Relax.

For mapping tables and code templates, see references/migration_mapping.md.


Migration overview

A RedAccel algorithm typically consists of:

RedAccel Component RedAccel Location Relax Equivalent Relax Location
Reward class (GRPO/Group) aipet_rl/reward_*.py Async reward_func(args, sample) examples/<algo>/reward_<algo>.py
Agent / Tool env aipet_rl/agent/*.py (ToolBase) BaseInteractionEnv subclass examples/<algo>/env_<algo>.py
LLM-as-Judge helpers aipet_rl/llm_judge.py Inlined or standalone module examples/<algo>/llm_judge.py
Training launch script exps/*.sh (redaccel-cli) Shell script (ray job submit) examples/<algo>/run_<algo>.sh
Search / external tools aipet_rl/agent/unified_search_async.py Same module, imported from example dir examples/<algo>/search_tools.py

The algorithm code lives under examples/<algo>/ in Relax — not inside the framework core.


Workflow

Step 0: Create the target directory

mkdir -p examples/<algo>
touch examples/<algo>/__init__.py

Step 1: Migrate reward function

This is the most critical step. RedAccel and Relax have fundamentally different reward interfaces.

RedAccel pattern (class-based, synchronous)
# RedAccel: registry-decorated class, __call__ returns List[dict]
from redaccel.verl.rewards.group.base import GroupRewards, group_rewards_registry
# or
from redaccel.verl.rewards.std.base import GRPORewards, rewards_registry

@group_rewards_registry.register()  # or @rewards_registry.register()
class MyRewardClass(GroupRewards):  # or GRPORewards
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.local_step = 0

    def __call__(self, prompts, completions, solutions, **kwargs) -> List[dict]:
        # Access: kwargs.get("extra_info")
        # Returns: [(score, info_dict), ...]

Read the full file on GitHub · 250 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 250 lines · 65 tokens per session scan A fc99c49f171a

Subscribe to this mod's changes

redaccel-to-relax is a skill published in the GitHub repository redai-infra/Relax (580 stars, last pushed 14d ago), licensed Apache-2.0. It adds 65 tokens to every session and 2,600 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

davila7/claude-code-templates · 51 tokens

openrlhf-training

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

davila7/claude-code-templates · 72 tokens

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

OpenLAIR/dr-claw · 51 tokens

openrlhf-training

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

OpenLAIR/dr-claw · 72 tokens

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

Orchestra-Research/AI-Research-SKILLs · 51 tokens

openrlhf-training

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

Orchestra-Research/AI-Research-SKILLs · 72 tokens