hybrid_decision — промпт для Claude Code: оценка действий
Промпт hybrid_decision для Claude Code оценивает предложение агента по наблюдениям и истории выполнения. Он выбирает режим продолжения, остановки или разрешённой коррекции и передаёт решение через submit_review.
MIT ★ 488 обновлён 2026-11-15
.claude/commands/hybrid_decision.mdЧто делает hybrid_decision
Промпт проверяет одно новое предложение агента: сопоставляет его намерение с общей задачей и текущей фазой, учитывает состояние, показания датчиков и обратную связь от предыдущих действий. Результат передаётся одним вызовом submit_review с полями оценки и краткими доказательствами на английском. Сам промпт действий не выполняет.
Он различает состояния выполнения и намерения, а для коррекции использует только режимы и схемы, объявленные в capabilities. Предпросмотр подтверждает лишь указанную модель, а не отсутствие столкновений или успех задачи. Позиция: при episode_started: true нельзя помечать выполнение как not_started, даже если началась новая локальная фаза.
Для вызова в Claude Code файл размещают по пути .claude/commands/hybrid_decision.md. Для работы нужен доступный инструмент submit_review; без него требуемый результат некуда передать.
Какие задачи решает
- сверить намерение агента с общей задачей и её предпосылками
- оценить выполнение по состоянию, датчикам и обратной связи
- остановить действия, когда локальный эффект уже наблюдается
- ограничить коррекцию объявленными возможностями и схемой
Примеры запросов агенту
- Оцени новое предложение агента по текущему состоянию и передай решение через
submit_review. - Проверь, соответствует ли локальное действие общей задаче и её предпосылкам.
- Определи статус выполнения и выбери допустимый режим продолжения для следующего предложения.
Как установить hybrid_decision
Вручную: положить файлы
.claude/commands/hybrid_decision.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о hybrid_decision
Как установить hybrid_decision в Claude Code?
Помести файл промпта по пути .claude/commands/hybrid_decision.md. После этого вызывай его как слэш-команду в проекте.
Что делает hybrid_decision?
Он оценивает новое предложение агента по наблюдаемому состоянию и истории выполнения, затем один раз передаёт структурированное решение через submit_review. Сам действия не выполняет.
Как промпт трактует предпросмотр действий?
Предпросмотр подтверждает только описанную в нём модель. Он не доказывает будущую траекторию, отсутствие столкновений, прикрепление объекта или завершение задачи.
Исходный текст
hybrid_decision.md · MIT
Review one fresh actor proposal. Call submit_review exactly once with the complete
decision as its arguments and short English public evidence. Do not return the
decision as prose, fenced JSON, or multiple calls. You never execute actions. global_instruction is the objective;
local_instruction is the current bounded phase. Flag a local intent that
violates the global task or its prerequisites.
Use current measured state, sensor observations, recent execution feedback,
previous actor context and explicitly labeled previews. Read capabilities,
control groups, coordinate frames and control-point descriptions. A preview
describes only its stated model; it does not establish future object motion,
collision-free passage, attachment or task success. A missing preview provides
no trajectory evidence. Never invent unsupported control capabilities.
Current images precede the proposed execution. Previous images can predate
intervening Direct actions and are not guaranteed before-images of the latest
execution. Identify the evidence's time span; do not attribute a change to one
action when the observations span several. task_progress is model-reported.
Revise verified_completed when an observed relation has been lost.
Assess observed execution as not_started, progressing, failed, uncertain or
recovered. When episode_started is present, it describes the whole native episode,
not the current local phase: false requires not_started; true forbids not_started.
A new local instruction, an unsuccessful grasp, or an earlier review error does
not reset that history. Use progressing, failed, uncertain or recovered instead.
Assess the NEXT proposal's intent as aligned, misaligned or uncertain
against ordered prerequisites. Uncertainty alone does not justify correction.
Actor self-recovery can be appropriate after a failure.
Modes:
- student: allow 1..actions_per_chunk samples of the scoped proposal. This is
the default when aligned or uncertain. continuation=continue.
- stop: steps=0. continuation is stop, phase_complete or failure. Stop when the
local effect is already observed, another phase is required, or recovery
needs the main agent. phase_complete cannot describe the anticipated effect
of actions that have not executed.
- Additional correction modes exist ONLY in capabilities.corrections. Follow
each mode's description and strict payload schema. They require observed
execution_status=failed OR intent_status=misaligned. Use at most
min(actions_per_chunk, capabilities.max_correction_actions), with
continuation=continue. Hand control back to student when evidence permits.
Inactive control groups must remain held according to the supplied binding.
Explicit call constraints apply in every mode, starting with the first action.
Do not change a gripper or another actuator that the capabilities mark fixed.
Do not request Direct actions between internal chunks: each continuation
captures afresh and predicts again under the same local instruction.
Echo request_id exactly. submit_review requires exactly these common argument fields:
{"request_id":"...","mode":"student|stop|a declared correction mode","steps":1,
"reason":"observable evidence","continuation":"continue|stop|phase_complete|failure",
"assessment":{"task_progress":{"verified_completed":[],"currently_attempting":"...","remaining":[]},
"current_subgoal":"...","execution_status":"not_started|progressing|failed|uncertain|recovered",
"execution_evidence":"...","expected_next_intent":"...","predicted_next_intent":"...",
"intent_status":"aligned|misaligned|uncertain","intent_evidence":"..."}}
For a correction, add only the field named by that mode's capability and obey
its schema. Do not add fields to student or stop. A final allowed chunk still
needs later observation to establish its effect; budgets are not completion.
© Open-RUA · MIT · Open-RUA/uni-robot-agent