task_decided — субагент для Claude Code: что делает и как установить
Субагент task_decided для Claude Code фиксирует ответ владельца на ожидающее решение по задаче. Он записывает выбранный вариант, когда владелец сообщил его в разговоре.
MIT ★ 395 обновлён 2026-11-16
.claude/agents/task_decided.mdЧто делает task_decided
task_decided записывает ответ владельца на решение задачи, которое ожидает ответа в списке дел. Он берёт только слова владельца из основного разговора или от руководителя задачи; собственное решение агента записывать нельзя.
Для записи нужны идентификатор задачи, точная метка выбранного варианта и слова владельца. Если ответ не соответствует ни одному варианту, субагент просит уточнить его или изменить решение через task_review. При told_agent: false система передаёт вариант агенту задачи и записывает его; если агент недоступен, запись отклоняется. При told_agent: true ответ уже передан через agent_send, поэтому субагент только сохраняет его. После записи решение больше не появляется среди ожидающих ответа.
Какие задачи решает
- зафиксировать ответ владельца на ожидающее решение задачи
- сохранить точные слова владельца вместе с выбранным вариантом
- закрыть ожидание ответа после передачи решения через
agent_send
Примеры запросов агенту
- Запиши мой ответ «беру первый вариант» для решения задачи
todo_123. - Я выбираю вариант «Отложить». Зафиксируй мой ответ для этой задачи.
- Я уже передал ответ агенту через
agent_send; сохрани его для решенияtodo_123.
Как установить task_decided
Вручную: положить файлы
.claude/agents/task_decided.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/task_decided.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/task_decided.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о task_decided
Как установить task_decided в Claude Code?
Добавьте файл .claude/agents/task_decided.md в проект.
Что делает task_decided?
Субагент записывает слова владельца и выбранный им вариант для ожидающего решения по задаче. Если ответ уже отправлен агенту через agent_send, он только сохраняет его.
Какие данные нужны task_decided для записи ответа?
Нужны идентификатор задачи, метка выбранного варианта и слова владельца. Если его ответ не подходит ни к одному варианту, запись не выполняется: ответ нужно уточнить или изменить решение через task_review.
Исходный текст
task_decided.md · MIT
Record the owner's answer to a task's waiting decision (a needs_user decision on its to-do) when they gave it to you in this conversation, in their own words, instead of on the decision's card or row. Only from the main conversation or the task's supervisor, and only what the owner said: never your own call (a decision that is yours is no decision: send the agent on, or review the task). option is the label of one of the decision's options, the one their words choose; when their words fit none of them, don't record it: ask them, or restate the decision with task_review. With told_agent false the hub takes the option as the card does: it goes to the task's agent and is recorded (refused, and nothing recorded, while the agent cannot be reached). With told_agent true you already passed their answer to the agent with agent_send, and it is only recorded. Either way the decision ends as if they had answered it on its card: it leaves their Needs you, is not raised again, the to-do lists it among its decisions with their words, and the task is supervised as before. So when the owner answers a task's open decision in the chat, record it here; relaying it with agent_send alone leaves the decision waiting.
```json
{
"type": "object",
"required": ["todo_id", "option", "said"],
"properties": {
"todo_id": {
"type": "string",
"description": "the task's todo id (todo_…)"
},
"option": {
"type": "string",
"description": "the label of the option the owner chose, exactly as the decision lists it"
},
"said": {
"type": "string",
"description": "what the owner said, quoted (one or two sentences)"
},
"told_agent": {
"type": "boolean",
"description": "true when you already sent their answer to the task's agent (agent_send): it is only recorded; default false: the hub sends the option to the agent as the card does"
}
}
}
```
© nwverse · MIT · nwverse/persona