AgentSkillsCN

codex-remote-result

通过 exec_id 查询 Codex-Remote 的执行状态与日志。适用于当用户希望查看执行进度、检查 stdout/stderr 输出、读取尾部日志,或获取最终的 exit_code 时使用。

SKILL.md
--- frontmatter
name: codex-remote-result
description: Query execution status and logs from codex-remote by exec_id. Use when user asks to check progress, inspect stdout/stderr, read tail logs, or fetch final exit_code.

codex-remote-result

Use this skill after an async execution has been submitted and exec_id is known. Do not use it for exec run synchronous streaming.

Inputs To Confirm

  • machine (required)
  • exec_id (required)
  • stream (optional: stdout or stderr, default stdout)
  • tail (optional, default 2000)

Status Query

bash
codex-remote exec result --machine "$MACHINE" --id "$EXEC_ID"

Interpretation:

  • status=running: command is still executing.
  • status=finished: check exit_code.

Logs Query

bash
codex-remote exec logs --machine "$MACHINE" --id "$EXEC_ID" --stream stdout --tail 2000

Notes:

  • Output is JSONL ({"type":"log","stream":"...","line":"..."} per line).
  • For stderr, set --stream stderr.

Cancel

bash
codex-remote exec cancel --machine "$MACHINE" --id "$EXEC_ID"

Use only when user explicitly asks to stop the command.