Logo Experiment Execution

Experiment Execution

Tổ chức
TenureAI
experiment-execution

Execute AI/ML experiments locally or remotely with environment, runtime, and logging controls. Prefer invoking via research-workflow. TRIGGER when: user asks to run/launch/start/resume/monitor a training job, evaluation, or benchmark, or a plan is ready for execution, or experiment needs rerun/recovery. DO NOT TRIGGER when: research investigation only (use deep-research), planning without execution (use research-plan), or env setup without launch (use project-context).

Tổng quan

Nhà phát hànhTenureAI
Kho mãPhD-Zero
Tên kỹ năngexperiment-execution
Sao
53
Bản fork
4
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được TenureAI công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Experiment Execution trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/TenureAI/PhD-Zero/tree/main/.agents/skills/experiment-execution
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TenureAI/PhD-Zero.git /tmp/PhD-Zero
mkdir -p .claude/skills
cp -r /tmp/PhD-Zero/.agents/skills/experiment-execution .claude/skills/experiment-execution
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Experiment Execution trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Experiment Execution ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Experiment Execution với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Experiment Execution

Mission

Run experiments safely, reproducibly, and mode-aware, with clear run paths and traceable evidence.

References

Read when needed:

  1. references/experiment-launch-checklist.md
  2. references/remote-info-template.md

Required Inputs

Collect minimum safe inputs:

  1. execution target (local|remote)
  2. local project root
  3. runtime project root (required when remote)
  4. single-node or multi-node
  5. proxy requirement
  6. tracker/login requirement

Ask only missing questions.

Run Path Policy

Use shared run_id from run-governor:

  1. control logs and stage reports: <codex-cwd>/logs/runs/<run_id>/
  2. experiment outputs: <runtime_project_root>/runs/<run_id>/
  3. project-context snapshots and secrets: <local_project_root>/.project_local/<project_slug>/

In local execution, runtime_project_root can be equal to local_project_root.

Mode-Aware Interaction

  1. full-auto: proceed without confirmation unless hard blocker or major safety risk.
  2. moderate: confirm before high-resource actions.
  3. detailed: confirm for unclear plans and high-resource actions.

Smoke Validation Policy

Use smoke validation only when needed:

  1. when launch details are incomplete
  2. when environment readiness is uncertain
  3. when cost/risk of full run is high

If setup is clear and safe, direct execution is allowed.

Execution Policy

  1. Confirm real execution vs dry-run.
  2. Confirm required inputs.
  3. Inspect scripts/configs/logs as needed.
  4. Resolve only blocking gaps.
  5. Launch smallest valid step first when uncertainty is high.
  6. Record commands, node assignments, log paths, run IDs.
  7. If the launched action is long-running, immediately enter watch mode instead of treating launch as completion.
  8. After each poll, continue with monitoring, diagnosis, recovery, or result collection; do not default to "job started, come back later."
  9. Replan on major failures.

Watch Mode Policy

Long-running experiment execution is an active responsibility, not a fire-and-forget step.

After launching a long-running job:

  1. stay in watch mode by default
  2. poll logs, checkpoints, scheduler state, or metrics on a model-chosen cadence
  3. after each poll:
    • if running, choose the next sleep interval and continue watching
    • if completed, inspect outputs and continue validation/analysis
    • if stalled, inspect evidence, retrieve memory, and attempt recovery or replan
    • if failed, diagnose immediately and attempt the smallest safe recovery
  4. ask the user only for hard blockers, major safety/resource approvals, or true decision points
  5. only allow explicit fire-and-forget behavior when the user clearly requested it

Watch-Loop Execution Template

Use this template after each experiment poll:

  1. read status, followup_action, progress_changed, and last_log_tail
  2. branch immediately:
    • continue-watch or wait-and-poll
      • choose the next sleep interval
      • keep monitoring
    • collect-results
      • inspect outputs, metrics, checkpoints, and artifacts
      • continue validation and analysis
    • diagnose-stall
      • inspect logs
      • retrieve procedure and episode
      • attempt the smallest safe recovery
    • diagnose-failure
      • inspect failure evidence
      • retrieve memory
      • attempt recovery or replan
    • replan
      • update route and continue execution
  3. write working state update before the next wait or recovery attempt
  4. do not stop at "job is still running" unless fire-and-forget was explicitly requested

Short Iterative Evaluation Loop

Short local edit-and-evaluate cycles must be handled as an owned execution loop, not as a one-shot task.

When the task is iterative optimization:

  1. compile an evaluation ladder:
    • baseline or previous-best reference
    • primary regression set
    • promotion gate for larger evaluation
    • final target evaluation
  2. prefer broader representative sets over a few hand-picked cases
  3. after each batch:
    • run the current gate set
    • compare score against baseline and best-so-far
    • inspect regressions, not just aggregate score
    • decide iterate, replan, or promote-to-next-gate
  4. if the new result is the best-so-far and the user requested preservation, snapshot the relevant prompt/config/code/results before the next risky change
  5. if the current gate is unmet, do not stop merely because one iteration completed cleanly
  6. only hand back to the user when:
    • compiled targets are met
    • a true hard blocker remains
    • a safety/resource gate requires approval

Unknown Error Branch

When execution fails with unknown error:

  1. local evidence triage (stack, logs, env, recent diffs)
  2. retrieve relevant procedure and episode memory
  3. targeted search
  4. deep research (debug-investigation) if unresolved
  5. apply smallest fix and validate

Retry behavior should be mode-aware and evidence-driven.

SSH and Remote Policy

  1. Choose control mode: direct SSH, SSH+session manager, scheduler, or existing remote agent.
  2. Declare remote model: remote-native or local-driver.
  3. Use remote profile reuse decision from run-governor; if missing, request exactly one confirmation via human-checkpoint.
  4. Validate connectivity and runtime basics before expensive launch when uncertainty exists.

Logging and Failure Handling

Record stable paths for:

  1. stdout/stderr
  2. checkpoints
  3. metrics
  4. artifacts

On failures, record owner and cleanup plan. On stalled jobs, record recovery attempt and next watch step.

Data Analysis Visualization Policy

When the deliverable includes data analysis results:

  1. run visualization analysis on the computed metrics/tables before final delivery
  2. save report-facing figures under <codex-cwd>/logs/runs/<run_id>/reports/figures/
  3. keep runtime-generated source figures under <runtime_project_root>/runs/<run_id>/artifacts/figures/
  4. include figure paths in stage reports and final summary
  5. prefer stable filenames such as <topic>-<metric>.png or <topic>-<metric>.svg

Stop Conditions

Do not launch full run when required inputs are still unknown and not explicitly waived.

In full-auto, continue only if risk is acceptable and no major safety issue exists. In full-auto, if remote profile is complete, reuse it by default unless explicitly overridden. For iterative optimization tasks, do not stop after a single batch while the active evaluation gate or non-regression guard is still unmet.

Output Contract

Emit execution state as:

yaml
run_id: <id>
mode: <full-auto|moderate|detailed>
execution_mode: <local|ssh|ssh+tmux|scheduler|remote-agent>
remote_model: <remote-native|local-driver|n/a>
local_project_root: <path>
runtime_project_root: <path>
output_path: <runtime_project_root>/runs/<run_id>
environment:
  python: <path/version>
  env: <conda/venv/module>
  proxy_needed: <yes|no|unknown>
tracking:
  mode: <wandb|files|mixed|unknown>
  run_id: <id|pending>
node_plan:
  master: <host|n/a>
  workers: <list|pending>
logs:
  stdout: <path>
  artifacts: <path>
analysis_artifacts:
  figures_report_root: <codex-cwd>/logs/runs/<run_id>/reports/figures
  figures_runtime_root: <runtime_project_root>/runs/<run_id>/artifacts/figures
  figures: <list of saved figure paths>
next_action: <smallest safe step>
checkpoint_needed: <yes|no>
goal_status:
  primary_target: <target>
  active_gate: <current threshold or eval set>
  best_so_far: <metric summary>
  done_allowed: <yes|no>

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Experiment Execution làm được gì?

Execute AI/ML experiments locally or remotely with environment, runtime, and logging controls. Prefer invoking via research-workflow. TRIGGER when: user asks to run/launch/start/resume/monitor a training job, evaluation, or benchmark, or a plan is ready for execution, or experiment needs rerun/recovery. DO NOT TRIGGER when: research investigation only (use deep-research), planning without execution (use research-plan), or env setup without launch (use project-context).

Vì sao nên dùng Experiment Execution trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Experiment Execution là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Experiment Execution trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/TenureAI/PhD-Zero/tree/main/.agents/skills/experiment-execution. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Experiment Execution?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Experiment Execution với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Experiment Execution với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Experiment Execution có miễn phí không?

Có. Kỹ năng này được TenureAI phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇