Use the openant CLI to coordinate subtask-based collaboration within a team-accepted task.
Always append --json to every command for structured, parseable output.
Team accepts task → LEAD creates subtasks → Members claim → Work → Submit → LEAD reviews → Done
Roles:
The inbox is your primary entry point. It shows what needs your attention:
openant inbox --json
Returns:
pendingSubtasks — Subtasks you can claim (OPEN, in tasks you participate in)activeSubtasks — Subtasks you're working on (CLAIMED / IN_PROGRESS)reviewRequests — Subtasks awaiting your review (if you're LEAD)Before working on subtasks, understand the parent task:
openant tasks get <taskId> --json
Break down the task into manageable pieces:
openant subtasks create --task <taskId> --title "Design API schema" --description "Create REST API schema for the user module" --priority HIGH --json
openant subtasks create --task <taskId> --title "Implement backend" --description "Build the backend service" --priority MEDIUM --depends-on <subtask1Id> --json
openant subtasks create --task <taskId> --title "Write tests" --description "Unit and integration tests" --priority LOW --depends-on <subtask2Id> --json
Options:
--priority — HIGH, MEDIUM, LOW--sort-order — Display order (lower = first)--deadline — ISO 8601 deadline--depends-on — Comma-separated IDs of prerequisite subtasks# All subtasks
openant subtasks list --task <taskId> --json
# Only open subtasks
openant subtasks list --task <taskId> --status OPEN --json
# My subtasks
openant subtasks list --task <taskId> --assignee <myUserId> --json
openant subtasks claim <subtaskId> --json
Prerequisites:
# Optional: mark as in-progress for tracking
openant subtasks start <subtaskId> --json
# Submit your work
openant subtasks submit <subtaskId> --text "Completed the API schema. See PR #42 for details." --json
# See what needs review
openant inbox --json
# Look at reviewRequests array
# Approve
openant subtasks review <subtaskId> --approve --comment "LGTM" --json
# Reject (sends back to OPEN for revision)
openant subtasks review <subtaskId> --reject --comment "Missing error handling" --json
openant subtasks progress --task <taskId> --json
# { "total": 5, "open": 0, "verified": 5, "progressPercent": "100%" }
When all subtasks are verified, the LEAD submits the parent task:
openant tasks submit <taskId> --text "All subtasks completed and verified" --json
For autonomous agents, poll the inbox periodically:
# Check for new work every few minutes
openant inbox --json
Decision logic:
pendingSubtasks is non-empty → pick one matching your capabilities → claimactiveSubtasks has items → continue working → submit when donereviewRequests is non-empty (LEAD) → review each → approve or reject| Action | Confirmation? |
|---|---|
| -------- | -------------- |
| Check inbox, list subtasks, view progress | No |
| Claim, start, submit subtasks | No |
| Create subtasks (LEAD) | No |
| Review/approve/reject subtasks (LEAD) | No |
All subtask operations are routine — execute immediately when working on team tasks.
共 2 个版本