ar-run – skill Agent & Tự động hóa cho agent AI
Chạy một vòng lặp thí nghiệm. Sửa file mục tiêu, đánh giá, rồi giữ hoặc loại bỏ kết quả. Dùng khi người dùng chạy /ar:ar-run hoặc yêu cầu một vòng lặp autoresearch thủ công.
Cài skill ar-run bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /ar-run – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $ar-run – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /ar-run – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /ar-run – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/ar:ar-run — Single Experiment Iteration
Run exactly ONE experiment iteration: review history, decide a change, edit, commit, evaluate.
Usage
/ar:ar-run engineering/api-speed # Run one iteration
/ar:ar-run # List experiments, let user pickWhat It Does
Step 1: Resolve experiment
If no experiment specified, run python {skill_path}/scripts/setup_experiment.py --list and ask the user to pick.
Step 2: Load context
# Read experiment config
cat .autoresearch/{domain}/{name}/config.cfg
# Read strategy and constraints
cat .autoresearch/{domain}/{name}/program.md
# Read experiment history
cat .autoresearch/{domain}/{name}/results.tsv
# Checkout the experiment branch
git checkout autoresearch/{domain}/{name}Step 3: Decide what to try
Review results.tsv:
- What changes were kept? What pattern do they share?
- What was discarded? Avoid repeating those approaches.
- What crashed? Understand why.
- How many runs so far? (Escalate strategy accordingly)
Strategy escalation:
- Runs 1-5: Low-hanging fruit (obvious improvements)
- Runs 6-15: Systematic exploration (vary one parameter)
- Runs 16-30: Structural changes (algorithm swaps)
- Runs 30+: Radical experiments (completely different approaches)
Step 4: Make ONE change
Edit only the target file specified in config.cfg. Change one thing. Keep it simple.
Step 5: Commit and evaluate
git add {target}
git commit -m "experiment: {short description of what changed}"
python {skill_path}/scripts/run_experiment.py \
--experiment {domain}/{name} --singleStep 6: Report result
Read the script output. Tell the user:
- KEEP: "Improvement! {metric}: {value} ({delta} from previous best)"
- DISCARD: "No improvement. {metric}: {value} vs best {best}. Reverted."
- CRASH: "Evaluation failed: {reason}. Reverted."
Step 7: Self-improvement check
After every 10th experiment (check results.tsv line count), update the Strategy section of program.md with patterns learned.
Rules
- ONE change per iteration. Don't change 5 things at once.
- NEVER modify the evaluator (evaluate.py). It's ground truth.
- Simplicity wins. Equal performance with simpler code is an improvement.
- No new dependencies.
Skill liên quan
- ai-dev-jobs-mcp – Tìm kiếm việc làm AI và ML đã được lập chỉ mục, xem tin tuyển dụng và nhà tuyển dụng…
- ai-engineer – Xây dựng ứng dụng LLM sẵn sàng production, hệ thống RAG nâng cao và agent thông minh…
- changelog-automation – Tự động tạo changelog từ commit, PR và release theo định dạng Keep a Changelog. Dùng khi…
- ar-status – Hiển thị bảng điều khiển thử nghiệm với kết quả, vòng lặp đang chạy và tiến độ. Dùng khi…
- autoresearch-agent – Vòng lặp thí nghiệm tự động tối ưu hóa bất kỳ file nào theo một chỉ số đo được. Lấy cảm…
- migrate-to-codex – Di chuyển các file hướng dẫn, skill, agent và cấu hình MCP được hỗ trợ sang file dự án…
- ai-pipeline-orchestration – Điều phối pipeline AI/ML cho nạp dữ liệu, huấn luyện mô hình, suy luận batch và lập chỉ…
- ai-prompt-regression-testing – Dùng khi so sánh thay đổi prompt với bộ đánh giá cố định: ghi lại cài đặt model thực tế…