AGENT SKILL

setup-and-ops

Install, inspect, configure, and safely operate the RD-Agent package and its CLI, UI, logs, and environment checks.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
setup-and-ops
license
MIT
metadata
{ "disco-role": "operating", "parent-skill": "rd-agent" }
description
Install, inspect, configure, and safely operate the RD-Agent package and its CLI, UI, logs, and environment checks.
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

RD-Agent setup and operations

Use this sub-skill for installation, import/CLI failures, health checks, configuration discovery, log/UI operation, and safe maintenance. For an actual research run, route onward to the domain sub-skill after the runtime is proven.

Install and identify the active package

Use a supported Python 3.10 or 3.11 environment. From a checkout, prefer:

python -m pip install -e .
python -m pip check
python -c "import rdagent; print(rdagent.__file__)"

The last line is intentionally not an RD-Agent command; use the bundled scripts/verify_install.py instead. For a published installation, python -m pip show rdagent and the import path must agree. Do not mix a globally installed rdagent with a different checkout through PYTHONPATH.

Probe the CLI in increasing cost order

rdagent --help
rdagent health_check --no-check-env --no-check-docker
rdagent data_science --help
rdagent fin_quant --help
rdagent fin_factor_report --help
rdagent llm_finetune --help
rdagent general_model --help
rdagent ui --help
rdagent server_ui --help
rdagent ds_user_interact --help
python -m rdagent.scenarios.rl.autorl_bench.run --help

Use scripts/verify_install.py to collect these results as JSON. A passing --help check proves registration only; it does not prove model access, Docker, Qlib data, a GPU, or an external benchmark.

Configuration and processes

  • Keep secrets in an uncommitted .env or environment manager. Never paste API keys into prompts, generated code, or logs.
  • Choose a run-specific output/log directory and record the resolved configuration before starting an agent loop.
  • For the generic UI, use rdagent ui --log-dir <log-dir> --port <local-port> after checking its help. Bind locally and stop it after inspection.
  • server_ui and the fine-tune UI may need extra assets or a long-running process. Start them only when the user explicitly wants a UI smoke test.
  • Health checks that skip environment/Docker checks are lightweight package checks, not a deployment readiness proof.

Failure handling

  • Import/command not found: inspect pip show, import rdagent, and the active interpreter first.
  • Health check failure: separate missing optional tools from hard package/import errors; preserve the exact check output.
  • UI startup failure: check port ownership, log directory readability, and optional frontend dependencies.
  • Long or silent process: inspect the run log and child processes before retrying; do not launch duplicate listeners.

Read operational-checklist.md for a compact preflight and recovery checklist. Use the parent troubleshooting guide for cross-scenario failures.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351