본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-rl-sandbox-trainer

Design RL simulation sandboxes, trajectory datasets, QLoRA/LoRA adaptation plans, eval harnesses, and rollback unhooks for agents learning specific coding behaviors beyond the base model. Use when building or reviewing tool-use training loops, offline trajectories, reward functions, self-improvement harnesses, or Port Daddy agent behavior curricula. NOT for generic ML tutorials, full model training operations, or production deployment without eval gates and safety unhooks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(12)

  • SKILL.md7.7 KB
  • agents/openai.yaml580 B
  • CHANGELOG.md266 B
  • examples/expected-output.md1.9 KB
  • README.md744 B
  • references/eval-examples.md2.1 KB
  • references/rl-sandbox-architecture.md2.7 KB
  • schemas/reward-spec.schema.json657 B
  • schemas/trajectory-suite.schema.json4.2 KB
  • scripts/preflight.sh456 B
  • scripts/trajectory_eval_harness.mjs7.0 KB
  • templates/output-template.md1.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent RL Sandbox Trainer

Design safe, measurable agent-learning loops for specific coding behaviors.

Use This For

  • Building a simulation sandbox where an agent practices narrow actions such as claim-before-edit, failing-test repair, reviewer reply drafting, or safe dependency updates.
  • Turning successful and failed trajectories into supervised, preference, RFT, or QLoRA/LoRA training data.
  • Designing eval gates, reward functions, unhooks, and rollback paths before any adapted agent reaches real repos.
  • Reviewing whether a behavior should be trained, scripted, prompted, or left to human review.

Do Not Use This For

  • Training a model because a prompt is inconvenient.
  • Rewarding "looks plausible" without ground-truth state checks.
  • Letting an adapted agent bypass the same sandbox, claims, budget, and review gates as a base agent.

Training Loop

flowchart TD
  A[Choose one behavior] --> B[Build sandbox task]
  B --> C[Record trajectories]
  C --> D[Score with eval harness]
  D --> E{Prompt or script enough?}
  E -->|Yes| F[Ship prompt/script]
  E -->|No| G[Create SFT/DPO/RFT/QLoRA plan]
  G --> H[Gate adapted agent on held-out evals]
  H --> I[Deploy behind unhooks]
  1. Choose one observable behavior. Good examples: "claim files before edit," "run focused tests before PR," "stop when credentials are missing."
  2. Build a sandbox with disposable repo state, deterministic fixtures, fake credentials, and a reset command.
  3. Define reward from artifacts, not prose: file claims exist, tests pass, dangerous command refused, PR reply contains evidence.
  4. Record traces as state, action, observation, reward, and unhook. Keep failed traces; they teach the boundary.
  5. Run scripts/trajectory_eval_harness.mjs before any training export.
  6. Pick the lightest intervention that passes: rule, script, skill, small adapter, then RFT. QLoRA is for repeated behavior gaps on local/open models, not every product bug.
  7. Deploy adapted behavior only behind eval gates, kill switches, budget caps, and rollback unhooks.

QLoRA / RL Practical Guidance

  • LoRA freezes the base model and trains low-rank adapter matrices; QLoRA adds 4-bit quantization so larger models can be adapted with less memory.
  • For coding agents, the valuable data is often not final code but trajectories: commands, observations, tool choices, refusals, tests, and reviewer feedback.
  • Use behavior cloning or SFT for "do this consistently." Use preference/RFT when the reward is measurable but the path can vary.
  • Never train directly on production secrets, private customer code, or hidden policy bypasses. Redact, synthesize, or replay in fixtures.

Anti-Patterns

Training Around A Missing Button

Novice: "Fine-tune the agent to remember this workflow." Expert: If the behavior is deterministic, build a script, command, hook, or UI affordance first. Train only when the agent must generalize across varied states. Detection: The desired behavior can be expressed as a simple if/then rule.

Rewarding The Transcript, Not The World

Novice: "The agent said tests passed, so reward it." Expert: Reward the verified state: test output, file diff, claim row, command exit code, review thread reply, or sandbox reset. Detection: Eval harness accepts self-reported success.

Adapter Without Unhooks

Novice: "The adapter improved the benchmark, ship it." Expert: Adapted agents need disable switches, model fallback, per-behavior rollout, held-out evals, and audit logs. Detection: No rollback path or comparison against base-agent behavior.

References

FileLoad When
references/rl-sandbox-architecture.mdNeed sandbox, trajectory, reward, QLoRA, and unhook architecture.
references/eval-examples.mdNeed concrete behavior curricula and eval rows.
examples/expected-output.mdNeed a finished training-plan example.
templates/output-template.mdNeed a reusable training-plan template.
schemas/reward-spec.schema.jsonNeed to validate reward options such as action ordering and deployment gates.
schemas/trajectory-suite.schema.jsonNeed to validate trajectory/eval inputs.
scripts/trajectory_eval_harness.mjsNeed deterministic trajectory scoring.
scripts/preflight.shNeed safe local environment inspection before running examples.
agents/openai.yamlNeed a subagent descriptor for delegated RL sandbox design.
<!-- BEGIN BUNDLE INDEX (auto: index_references.py) -->

Skill Bundle Index

Every file in this skill, and when to open it. Auto-generated by the repo skill-architect indexer.

root

  • CHANGELOG.md — Agent Rl Sandbox Trainer — Changelog — - Initial skill creation - Core process defined - Reference files added
  • README.md — Agent RL Sandbox Trainer — Procedural guidance for building deterministic simulation sandboxes, trajectory eval harnesses, adapter-training plans, and unhooks for spec

agents/

examples/

  • examples/expected-output.md — Example Output: Agent RL Sandbox Trainer — Train or tune a reviewer-fix agent to respond to PR review comments with code changes, focused tests, and a substantive reply, without broad

references/

schemas/

scripts/

templates/

  • templates/output-template.md — Agent RL Sandbox Training Spec — [Specific behavior the base agent cannot perform reliably enough.] - Repo/app state: [fixture] - Allowed tools: [tool list] - Forbidden tool
<!-- END BUNDLE INDEX -->

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

curiositech의 스킬 모두 보기

이 스킬의 문제 신고