瀏覽 1.1.1 文件
1.1.1

ait task — 完整參考

啟動繫結 Plan 的工作,檢視並審計 Task 狀態,落地已接納的工作,或放棄未完成的 Task。

適用對象: coding agent 與維護者

作用邊界#

用途: 啟動繫結 Plan 的工作,檢視並審計 Task 狀態,完成已接納的工作,或放棄未完成的 Task。

影響類別: 會改動 Task 生命週期和繫結工作區;finish 只在透過接納後推進設定目標,abandon 則按確切 help 所述執行有界的未完成工作收尾。

覆蓋: ait task 下共 7 個公開 help surface。

下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。

完整命令樹#

程式碼 · text
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.

程式碼 · text
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

程式碼 · text
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

程式碼 · text
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

程式碼 · text
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

程式碼 · text
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.

程式碼 · text
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

程式碼 · text
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列印幫助

版本權威

對照 1.1.1 原始碼逐條核對

這一頁是公開文件,不是第二份產品契約。要確認發布權威,請以確切的原始碼和分發契約為準。

所屬元件 Snapshot
  • ait-coreSNP-ED7593DBF982
  • ait-serverSNP-0CCD7DD2A077
  • ait-runnerSNP-35C9C133D2EE
  • ait-pythonSNP-756C731A4CC0
  • ait-nodeSNP-55E90D0A81F1