ait task — 完整参考
启动绑定 Plan 的工作,查看并审计 Task 状态,落地已接纳的工作,或放弃未完成的 Task。
适用人群: coding agent 与维护者
作用边界#
用途: 启动绑定 Plan 的工作,查看并审计 Task 状态,完成已接纳的工作,或放弃未完成的 Task。
影响类别: 会改动 Task 生命周期和绑定工作区;finish 只在通过接纳后推进配置目标,abandon 则按确切 help 所述执行有界的未完成工作收尾。
覆盖: ait task 下共 7 个公开 help surface。
下面的代码块原样保留 1.1.1 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。
完整命令树#
ait task
ait task start
ait task list
ait task show
ait task audit
ait task finish
ait task abandon原样输出的 help#
ait task#
二进制描述: Start, inspect, check, finish, or abandon Tasks locally or on a remote.
Start, inspect, check, finish, or abandon Tasks locally or on a remote.
Usage: ait task <COMMAND>
Commands:
start Start one Task and its initial Change locally or on a remote; sprint mode uses one specific file-backed Plan item
list List open Tasks or complete Task history locally or on a remote
show Show one local or remote Task
audit Check one local or remote Task against main without changing it
finish Finish one Task or selected Change onto main. The configured workflow mode chooses local or remote unless --local or --remote explicitly overrides it. Dirty local work requires --message to create its final Snapshot; clean local work reuses the current Line head. Remote finish consumes an already-ready selected Patchset and rejects --message. Final Task cleanup removes the bound worktree and archives its accepted-head feature Line.
abandon Permanently abandon one local or remote Task and cancel its open Changes
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help说明
在本地或远程启动、查看、检查、完成或放弃 Task。
| 参数 / 选项 | 说明 |
|---|---|
start | 在本地或远程启动一个 Task 及其初始 Change;sprint 模式使用一个特定的文件承载 Plan 条目 |
list | 在本地或远程列出开放的 Task 或完整 Task 历史 |
show | 显示一个本地或远程 Task |
audit | 对照 main 检查一个本地或远程 Task,但不作改动 |
finish | 把一个 Task 或选定 Change 完成到 main。除非 --local 或 --remote 显式覆盖,否则由已配置的工作流模式选择本地或远程。Dirty 的本地工作必须用 --message 创建最终 Snapshot;干净的本地工作复用当前 Line head。远程 finish 消费已就绪的选定 Patchset,并拒绝 --message。最终 Task 清理会删除绑定 worktree,并归档其已接纳 head 的功能 Line。 |
abandon | 永久放弃一个本地或远程 Task,并取消其开放 Change |
help | 打印本消息或给定子命令的帮助 |
-h, --help | 打印帮助 |
ait task start#
二进制描述: Start one Task and its initial Change locally or on a remote; sprint mode uses one specific file-backed Plan item
Start one Task and its initial Change locally or on a remote; sprint mode uses one specific file-backed Plan item
Usage: ait task start --intent <INTENT> (--from <MARKDOWN_PATH#ITEM_REF> | --title <TITLE>) [--edit-root <ABSOLUTE_PATH>] [--local | --remote <REMOTE>] [--json [--full]]
Options:
--title <TITLE> Unbound Task title; required and available only when sprint mode is off
--intent <INTENT> Required Task intent in both manual and --from modes
--from <MARKDOWN_PATH#ITEM_REF> Sprint-only exact file-backed Plan source; syncs, validates, binds, and derives the Task and initial Change title deterministically
--edit-root <ABSOLUTE_PATH> Use this safe absolute path as the Task worktree; omit it to keep automatic managed worktree allocation
--local Start the Task locally even when the workflow mode defaults to a remote
--remote <REMOTE> Start the Task on the named remote even when the workflow mode defaults to local
--json Emit the compact versioned machine-readable Task-start result
--full With --json, emit the previous complete Task-start result
-h, --help Print help说明
在本地或远程启动一个 Task 及其初始 Change;sprint 模式使用一个特定的文件承载 Plan 条目
| 参数 / 选项 | 说明 |
|---|---|
--title <TITLE> | 未绑定的 Task 标题;仅在 sprint 模式关闭时必填且可用 |
--intent <INTENT> | 在手动与 --from 两种模式下均必填的 Task 意图 |
--from <MARKDOWN_PATH#ITEM_REF> | 仅限 sprint 模式的确切文件承载 Plan 源;确定性地同步、校验、绑定并派生 Task 与初始 Change 标题 |
--edit-root <ABSOLUTE_PATH> | 使用这个安全的绝对路径作为 Task worktree;省略它则保持自动的受管 worktree 分配 |
--local | 即使工作流模式默认为远程,也在本地启动 Task |
--remote <REMOTE> | 即使工作流模式默认为本地,也在指定远程启动 Task |
--json | 输出精简、带版本的机器可读 Task-start 结果 |
--full | 与 --json 一起使用时,输出之前的完整 Task-start 结果 |
-h, --help | 打印帮助 |
ait task list#
二进制描述: List open Tasks or complete Task history locally or on a remote
List open Tasks or complete Task history locally or on a remote
Usage: ait task list [OPTIONS]
Options:
--local List local Tasks even when the workflow mode defaults to a remote
--remote <REMOTE> List Tasks from the named remote even when the workflow mode defaults to local
--all Show complete Task history instead of the bounded open view
--json Emit the selected Task inventory as machine-readable JSON
-h, --help Print help说明
在本地或远程列出开放的 Task 或完整 Task 历史
| 参数 / 选项 | 说明 |
|---|---|
--local | 即使工作流模式默认为远程,也列出本地 Task |
--remote <REMOTE> | 即使工作流模式默认为本地,也列出指定远程上的 Task |
--all | 显示完整的 Task 历史,而不是有界的开放视图 |
--json | 以机器可读 JSON 输出所选 Task 清单 |
-h, --help | 打印帮助 |
ait task show#
二进制描述: Show one local or remote Task
Show one local or remote Task
Usage: ait task show [OPTIONS] <TASK_ID>
Arguments:
<TASK_ID>
Options:
--local Read the local Task even when the workflow mode defaults to a remote
--remote <REMOTE> Read the Task from the named remote even when the workflow mode defaults to local
--json Emit the complete machine-readable Task record
-h, --help Print help说明
显示一个本地或远程 Task
| 参数 / 选项 | 说明 |
|---|---|
--local | 即使工作流模式默认为远程,也读取本地 Task |
--remote <REMOTE> | 即使工作流模式默认为本地,也读取指定远程上的 Task |
--json | 输出完整的机器可读 Task 记录 |
-h, --help | 打印帮助 |
ait task audit#
二进制描述: Check one local or remote Task against main without changing it
Check one local or remote Task against main without changing it
Usage: ait task audit [OPTIONS] <TASK_ID>
Arguments:
<TASK_ID>
Options:
--local Check the local Task even when the workflow mode defaults to a remote
--remote <REMOTE> Check the Task on the named remote even when the workflow mode defaults to local
--json Emit the complete machine-readable audit and recommended action
-h, --help Print help说明
对照 main 检查一个本地或远程 Task,但不作改动
| 参数 / 选项 | 说明 |
|---|---|
--local | 即使工作流模式默认为远程,也检查本地 Task |
--remote <REMOTE> | 即使工作流模式默认为本地,也检查指定远程上的 Task |
--json | 输出完整的机器可读审计结果与建议操作 |
-h, --help | 打印帮助 |
ait task finish#
二进制描述: Finish one Task or selected Change onto main. The configured workflow mode chooses local or remote unless --local or --remote explicitly overrides it. Dirty local work requires --message to create its final Snapshot; clean local work reuses the current Line head. Remote finish consumes an already-ready selected Patchset and rejects --message. Final Task cleanup removes the bound worktree and archives its accepted-head feature Line.
Finish one Task or selected Change onto main. The configured workflow mode chooses local or remote unless --local or --remote explicitly overrides it. Dirty local work requires --message to create its final Snapshot; clean local work reuses the current Line head. Remote finish consumes an already-ready selected Patchset and rejects --message. Final Task cleanup removes the bound worktree and archives its accepted-head feature Line.
Usage: ait task finish [OPTIONS] <TASK_OR_CHANGE_ID>
Arguments:
<TASK_OR_CHANGE_ID> Task ID or Change ID to finish onto main. The workflow mode chooses local or remote unless --local or --remote is provided.
Options:
--message <MESSAGE> Create the final Snapshot from dirty local work before finishing; clean local work reuses the current Line head. Remote finish rejects this option.
--local Force local draft finish even when the configured workflow mode defaults to remote
--remote <REMOTE> Force closeout through the named remote's already-ready selected Patchset even when the configured workflow mode defaults to local
--json Emit the compact versioned machine-readable finish and closeout result
--full With --json, emit the previous complete finish and closeout result
-h, --help Print help说明
把一个 Task 或选定 Change 完成到 main。除非 --local 或 --remote 显式覆盖,否则由已配置的工作流模式选择本地或远程。Dirty 的本地工作必须用 --message 创建最终 Snapshot;干净的本地工作复用当前 Line head。远程 finish 消费已就绪的选定 Patchset,并拒绝 --message。最终 Task 清理会删除绑定 worktree,并归档其已接纳 head 的功能 Line。
| 参数 / 选项 | 说明 |
|---|---|
<TASK_OR_CHANGE_ID> | 要完成到 main 的 Task ID 或 Change ID。除非提供 --local 或 --remote,否则由工作流模式选择本地或远程。 |
--message <MESSAGE> | 完成前从 dirty 的本地工作创建最终 Snapshot;干净的本地工作复用当前 Line head。远程 finish 拒绝此选项。 |
--local | 即使已配置的工作流模式默认为远程,也强制完成本地 draft |
--remote <REMOTE> | 即使配置的工作流模式默认为本地,也强制通过指定名称远程上已就绪的选定 Patchset 进行收尾 |
--json | 输出精简、带版本的机器可读 finish 与收尾结果 |
--full | 与 --json 一起使用时,输出之前的完整 finish 与收尾结果 |
-h, --help | 打印帮助 |
ait task abandon#
二进制描述: Permanently abandon one local or remote Task and cancel its open Changes
Permanently abandon one local or remote Task and cancel its open Changes
Usage: ait task abandon [OPTIONS] <TASK_ID>
Arguments:
<TASK_ID>
Options:
--local Abandon the local Task even when the workflow mode defaults to a remote
--remote <REMOTE> Abandon the Task on the named remote even when the workflow mode defaults to local
--json Emit the complete machine-readable terminal Task record
-h, --help Print help说明
永久放弃一个本地或远程 Task,并取消其开放 Change
| 参数 / 选项 | 说明 |
|---|---|
--local | 即使工作流模式默认为远程,也放弃本地 Task |
--remote <REMOTE> | 即使工作流模式默认为本地,也放弃指定远程上的 Task |
--json | 输出完整的机器可读终态 Task 记录 |
-h, --help | 打印帮助 |