redai-studio/relax/agentic-rollout
Claude Code and agent skill by redai-studio/relax
- community
Checking that the SKILL.md file is still in the repository.
Assess an agent, bridge it into Relax, check launch readiness, and demonstrate resident Agentic rollout with evidence. Use when evaluating an agent app before integration, authoring an Agentic recipe or resource adapter, connecting an external agent with --use-agentic-rollout, auditing model-visible context linearity or SessionForest export, checking remote or large-scale resident concurrency, or preparing an Agentic experiment.
Install
npx vskill@latest install redai-studio/relax/agentic-rolloutSKILL.md
The same SKILL.md was published earlier as redai-studio/relax/agentic-rollout.
Agentic rollout
Work in stages. Identify the user's current stage from the request and available artifacts before reading or changing code.
Stage router
| User state | Enter | |
|---|---|---|
| Agent is not connected to Relax | Stage A: Assess the Agent | |
| User asks to implement the connection | Stage A quick gate, then Stage B: Bridge into Relax | |
| Integration exists and user asks whether it is safe to run | Stage C: Check before Launch | |
| User explicitly asks to run an experiment | Stage C must pass, then Stage D: Demonstrate with an Experiment | |
| Experiment is stalled or failed | Diagnose the Agentic layer first, then route Ray evidence to debug-hang |
Start every response with the current stage letter and name, evidence available, and blocking unknowns. Do not repeat a completed stage when its evidence is still current; recheck drift-prone configuration and runtime state.
Non-negotiable boundaries
- Inspect the current checkout, diff, and exact source before making claims.
- Treat model-facing
messages,tools, andchat_template_kwargsas the context contract. Python calls and internal agent objects are not substitutes. - Treat reasoning and tool-call parsers as part of the model/chat-template contract. A basic text response does not
prove parser compatibility.
- Distinguish logical prompt Groups, physical Session slots, model requests, exported contexts, and training rows.
--agentic-concurrency counts Groups across Prepare and Runtime. Leased members generate independently when ready; external executors own physical task quotas.
- The launched
--agent-commandcleans up its tools, descendants, containers and remote jobs, both on natural exit
and when Relax sends SIGTERM because of a timeout or another reason. Relax fallback cleanup runs after logical retirement; cleanup failures warn without holding Group capacity or invalidating exports.
- Apply export, advantage, and dynamic-batching rules to exported contexts per Session. The number of resident Sessions is a different dimension.
- Choosing resident Agentic rollout (
--use-agentic-rollout) gives Agentic ownership of train and Eval generation;
--custom-generate-function-path is ignored on this path.
- Distinguish the timeout of each Relax-facing model API request from
--agent-timeout. The former must let one request
survive prelaunch, partial, or fully-async holds; the latter is a Runtime active-time safety budget intended to contain a stuck agent loop or tool execution.
- Identify whether the agent uses Chat Completions, OpenAI Responses, or Anthropic Messages, and compare its payload
with the supported fields, Items, and blocks. Record the request's stream setting and require complete history on every request. Use runtime-operations.md for transport-specific response checks.
- Inspect fixed internal widths only when the large-scale risk gate is triggered.
- Keep this skill Agentic-specific. Route RL algorithms, OPD/TIS/loss details, generic TransferQueue sampling, model backends, and Ray scheduling to their dedicated experts or skills after checking the Agentic boundary.
- Never assume a remote agent platform has enough slots. Unknown capacity produces an
UNVERIFIEDStage C result. - Do not launch a remote experiment unless the user explicitly requests it. Load
relax-dev-debugfor code changes or remote validation. - Respect explicit edit and test boundaries. Validation does not authorize adding tests or changing unrelated files.
Stage A: Assess the Agent
Goal: decide whether the existing agent can connect without corrupting context, export, or execution semantics.
- Read the agent entry point, Relax-facing agent client, its request and outer task timeouts, tool loop, context store,
compaction/retry logic, and final-output path.
- Capture or reconstruct exact model request and response payloads. Prefer the HTTP payload over internal message
classes. Record the endpoint, protocol, stream value, authentication header, complete-history representation, reasoning/tool blocks, and missing, null, or zero-length content. Resolve the final request URL after client-specific path handling; determine whether the client appends its resource path or constructs the endpoint itself, and verify that the Relax route prefix is preserved.
- Determine the raw reasoning and tool-call syntax produced by the model under the exact chat template. Identify the
compatible SGLang parser names or prove that no parser is required.
- Read context-linearity.md and classify every transition as append, intentional fork, accidental fork, or reset.
- Read integration-contract.md and compare the agent with the Relax input, API, and output contracts.
- Read runtime-operations.md and check whether the agent client relies on unsupported API or process behavior.
- Determine whether execution is local per Session or submitted to a centralized remote platform. Record any train/Eval slot pools and hard concurrency limits.
Return:
Do not modify Relax or start an experiment in this stage.
Stage B: Bridge into Relax
Enter only when the user asks for implementation and Stage A has no unresolved blocker.
- Preserve the agent's normal model-and-tool loop.
- Map dataset fields with
--input-key,--metadata-key, and--multimodal-keys; decide whether the harness receives
ready-to-use messages or constructs them from metadata at runtime.
- Use the recipe assembly and environment contracts in integration-contract.md.
Ensure the launched --agent-command cleans up resources on natural exit and on SIGTERM from Relax.
- Configure the agent application's client that calls
RELAX_BASE_URLso the timeout of each model API request can
span every applicable prelaunch, partial-rollout, or fully-async hold. Keep this client timeout separate from --agent-timeout, which bounds the agent process's Runtime active time.
- Send complete histories on every model request: Chat uses
messages, Responses uses typedinputItems, and
Messages uses system + messages. Keep tools and applicable template arguments stable. Do not use Responses previous_response_id as a continuation mechanism.
- When canonicalization is needed, ask before changing
developersemantics, choose a stable nonempty representation
for empty tool results, and reuse the canonical payload in later turns and explicit export.
- Configure
--agentic-reasoning-parserand--agentic-tool-call-parserwhen required by the verified model/template
format. Do not copy parser names from a different model recipe.
- Use agentic-training-contract.md for export, advantage, logical identity, and dynamic-batching decisions. Nonlinear history requires explicit export. Custom advantage uses named explicit export records.
Explicit export remains canonical Chat-shaped messages, nested function tools, and chat_template_kwargs regardless of the request protocol. Custom advantage returns None or a list with one result mapping per sampled Session. In each mapping, an export's advantage is a scalar shared by all assistant turns or a list with one value per assistant turn. Keep every normalization input in export metadata.
- Decide where reward and advantages come from. For one implicitly exported context, write
rewardin the agent
output or configure --custom-rm-path. When using --agentic-custom-advantage-path, use explicit export and keep its inputs in export metadata. Multiple exported contexts require custom advantage and dynamic batching.
- Resolve Group concurrency, external executor quotas, and Eval demand separately using
external-agent-capacity.md. Do not copy a hardware example's capacity as a universal default or assume another recipe is enabled automatically.
- Keep the change at the adapter and recipe boundary unless the verified contract requires a core
relax/agentic/**change.
Start with:
docs/en/guide/agentic-rollout.md- the closest maintained example, such as
examples/mini_swe_agent/ - integration-contract.md
Read the exact core source only when a verified incompatibility or requested core change requires it.
Stage C: Check before Launch
Goal: produce a launch verdict without starting the job.
- Re-read the final agent adapter and launch script.
- Read parameter-preflight.md. Resolve every applicable Agentic parameter after
defaults and validation, then check its dependencies and runtime evidence.
- Audit context linearity again from the integrated HTTP payloads.
- Read resident-lifecycle.md. Verify independent member generation,
Group size, generation gates, and the physical release contract.
- When a capacity-limited external platform is used, read
external-agent-capacity.md. With local execution, report external quotas as N/A but still check the host budget and release owner.
- Read large-scale-rollout.md if and only if the projected or observed load is
large enough to approach or exceed a fixed internal width or known validated scale envelope. Otherwise report Internal scale: N/A; prelaunch, production use, or a "large-scale" label alone does not activate this check.
- When the agent uses explicit export, nonlinear history, multiple contexts, custom advantage,
--log-passrate, a reward
object or --reward-key, a configured RM, or --group-rm, read agentic-training-contract.md.
- Read runtime-operations.md. Verify protocol and transport compatibility, the
per-request Relax-facing client timeout, reasoning/tool-call parsers, the agent process timeout, optional KV/admission flags, errors, and observable evidence.
- When prelaunch, partial rollout, or fully async is enabled, read partial-and-async-lifecycle.md and verify the applicable cross-step state transitions.
- Report unknown remote capacity, internal scale evidence, or networking as blockers rather than optimistic assumptions.
Return:
Stage D: Demonstrate with an Experiment
Enter only after explicit user authorization and a passing Stage C check. Use the environment-specific launch skill when one exists; otherwise follow relax-dev-debug and ssh-ray-cluster constraints.
Validate in order:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-rollout/SKILL.md
Popularity
- Repository stars
- 635
- Repository forks
- 174
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/redai-studio/relax/agentic-rollout)