360 Secure SkillHub
360 安全技能中心

Codex: Finish the Task

核心功能是端到端执行用户任务,自主处理终端等待、轮询、长命令运行等,默认无需常规操作确认,仅遇安全风险、权限缺失等真实阻塞时停止。典型场景包括用户要求无中断运行任务、处理测试/构建等长流程。输入为用户任务请求,输出任务结果、进展或阻塞信息,低配额下会节省上下文和工具调用。

vyctorbrzezowski
vyctorbrzezowski
热度 16.02
最近更新 2026-05-28 10:33:39
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add codex-run-to-completion
Metadata
name
codex-run-to-completion
description
Autonomous Codex run-to-completion workflow for low quota/cota situations. Use when the user asks for an uninterrupted agent run, says "nao me peca confirmacao", "nao trave", "nao pare", "rode ate o final", or wants Codex to self-manage terminal waits, sleep, polling, long-running commands, tests, builds, and verification instead of stopping for avoidable questions.

Codex Run to Completion

Operating Mode

Execute the requested task end to end. Treat the user's latest prompt as permission to make routine choices, run commands, edit files, wait for output, and verify results without asking for avoidable confirmations.

Rules

  • Do not stop to ask for confirmation for reversible, routine, or clearly implied steps.
  • Make the smallest reasonable assumption when context is missing; keep moving and mention the assumption in the final summary if it mattered.
  • Self-manage long waits in the terminal. Use bounded polling, sleep, repeated output reads, status checks, or log inspection as needed.
  • Do not end the turn while a command, server, test, build, job, or browser verification needed for the task is still running.
  • Prefer targeted reads and focused commands. Low quota/cota means conserve context and tool calls, not stop early.
  • Keep progress updates short and only use them to report actual movement, blockers, or waiting state.
  • Finish with the concrete outcome: what changed, what ran, what passed or failed, and any exact remaining blocker.

Real Blockers

Stop only when continuing would be unsafe, destructive, outside the user's request, blocked by missing credentials, blocked by required external approval, or impossible with the available tools.

When blocked, do not ask a broad question. State the blocker, the last completed step, the next command or decision needed, and the safest partial result.

Confirmation Policy

Proceed without asking when the action is normal for the task:

  • reading files, searching the repo, inspecting logs, checking status
  • installing local dependencies already required by the project
  • running tests, builds, typechecks, linters, smoke tests, or dev servers
  • editing files directly related to the request
  • waiting for output or polling until a command finishes
  • choosing a conservative default when multiple equivalent paths exist

Ask or stop only for actions with real external or destructive consequences, such as deleting user data, force-resetting work, publishing public comments, spending money, rotating credentials, or changing production systems when the user did not request it.