Files
wehub-resource-sync e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

13 lines
1.1 KiB
YAML

short_description: "Run a code snippet (python/c/cpp) in an isolated sandbox; returns stdout/stderr."
when_to_use: "Use when computation, algorithm checking, or numerical verification is more reliable than mental calculation."
input_format: "`language` (python, c, or cpp) + `code` — the complete, ready-to-run source. Optional `stdin` and `timeout` (seconds, default 30)."
guideline: "Write complete source yourself and print results to stdout. Use code execution for objective verification, not as a substitute for explaining reasoning."
note: "Runs in this turn's workspace under the same OS-isolated sandbox as `exec`; unavailable when no sandbox backend is configured. Save generated files to the working directory to surface them as artifacts."
phase: "verification"
aliases:
- name: run_code
description: "Run a code snippet (python/c/cpp) for calculation, verification, or visualization."
input_format: "`language` + `code`; optional `stdin`, `timeout`."
when_to_use: "Use for objective checks, quick calculations, or small experiments."
phase: "verification"