Loading...
Loading...
Compare original and translation side by side
git clone git@github.com:OlechowskiMichal/agent-task-queue.git ~/.agent-task-queue~/.agent-task-queuegit clone git@github.com:OlechowskiMichal/agent-task-queue.git ~/.agent-task-queue~/.agent-task-queue| Operation | Command | Description |
|---|---|---|
| Add | | Create a new task |
| List | | List/filter tasks |
| Claim | | Claim a pending task |
| Complete | | Mark task done |
| Release | | Unclaim a task |
| Reassign | | Reassign to different agent |
| Index | | Regenerate root index |
| Prune | | Archive old tasks |
| 操作 | 命令 | 说明 |
|---|---|---|
| 添加 | | 创建新任务 |
| 列出 | | 列出/筛选任务 |
| 认领 | | 认领待处理任务 |
| 完成 | | 标记任务完成 |
| 释放 | | 取消任务认领 |
| 重新分配 | | 重新分配给其他Agent |
| 生成索引 | | 重新生成根索引 |
| 清理 | | 归档旧任务 |
python3 ~/.agent-task-queue/scripts/add_task.py \
--assignee go-expert \
--subject "Fix error handling in API middleware" \
--description "The error handler swallows context. Wrap errors with fmt.Errorf." \
--priority high \
--project my-api \
--tags "error-handling,api" \
--active-form "Fixing error handling" \
--ttl-hours 48 \
--blocked-by "3,7" \
--context-repo "git@github.com:OlechowskiMichal/my-api.git" \
--context-files "pkg/middleware/error.go,pkg/middleware/error_test.go" \
--context-notes "See issue #42 for the original bug report".highwatermarkpending/{id}.jsonpython3 ~/.agent-task-queue/scripts/add_task.py \
--assignee go-expert \
--subject "Fix error handling in API middleware" \
--description "The error handler swallows context. Wrap errors with fmt.Errorf." \
--priority high \
--project my-api \
--tags "error-handling,api" \
--active-form "Fixing error handling" \
--ttl-hours 48 \
--blocked-by "3,7" \
--context-repo "git@github.com:OlechowskiMichal/my-api.git" \
--context-files "pkg/middleware/error.go,pkg/middleware/error_test.go" \
--context-notes "See issue #42 for the original bug report".highwatermarkpending/{id}.jsonundefinedundefinedundefinedundefinedpython3 ~/.agent-task-queue/scripts/claim_task.py 1 --session-id $(uuidgen)blockedBypending/active/ownermetadata.claimed_atstatusin_progresspython3 ~/.agent-task-queue/scripts/claim_task.py 1 --session-id $(uuidgen)blockedBypending/active/ownermetadata.claimed_atstatusin_progresspython3 ~/.agent-task-queue/scripts/complete_task.py 1 \
--session-id "$SESSION_ID" \
--jsonl-path "~/.claude/projects/.../conversation.jsonl" \
--notes "Fixed by wrapping errors with context in middleware chain"completed/YYYY-MM/{id}.jsonpython3 ~/.agent-task-queue/scripts/complete_task.py 1 \
--session-id "$SESSION_ID" \
--jsonl-path "~/.claude/projects/.../conversation.jsonl" \
--notes "Fixed by wrapping errors with context in middleware chain"completed/YYYY-MM/{id}.jsonpython3 ~/.agent-task-queue/scripts/release_task.py 1pending/metadata.previously_claimed=truestatuspendingpython3 ~/.agent-task-queue/scripts/release_task.py 1pending/metadata.previously_claimed=truestatuspendingpython3 ~/.agent-task-queue/scripts/reassign_task.py 1 --to re-expertmetadata.assigneepending/active/python3 ~/.agent-task-queue/scripts/reassign_task.py 1 --to re-expertmetadata.assigneepending/active/blocksblockedByclaim_task.pyblockedByblocksundefinedblocksblockedByclaim_task.pyblockedByblocksundefinedundefinedundefined--jsonl-path.jsonlmetadata.conversations--jsonl-path.jsonlmetadata.conversationsmetadata.ttl_hoursmetadata.claimed_at + ttl_hours < now--stalerelease_task.pymetadata.ttl_hoursmetadata.claimed_at + ttl_hours < 当前时间--stalerelease_task.pyundefinedundefinedundefinedundefinedagent-task-queue/
├── .highwatermark # Monotonic ID counter (single integer)
├── pending/ # Flat — no agent subdirs
│ └── {id}.json
├── active/
│ └── {id}.json
├── completed/
│ └── YYYY-MM/
│ └── {id}.json
├── index.md # Single root index
├── scripts/
│ ├── _lib.py
│ ├── add_task.py
│ ├── claim_task.py
│ ├── complete_task.py
│ ├── list_tasks.py
│ ├── release_task.py
│ ├── reassign_task.py
│ ├── render_index.py
│ └── prune_completed.py
├── AGENTS.md
├── CLAUDE.md
├── TODO.md
└── README.mdagent-task-queue/
├── .highwatermark # 递增ID计数器(单个整数)
├── pending/ # 待处理任务目录(无Agent子目录)
│ └── {id}.json
├── active/
│ └── {id}.json
├── completed/
│ └── YYYY-MM/
│ └── {id}.json
├── index.md # 根索引文件
├── scripts/
│ ├── _lib.py
│ ├── add_task.py
│ ├── claim_task.py
│ ├── complete_task.py
│ ├── list_tasks.py
│ ├── release_task.py
│ ├── reassign_task.py
│ ├── render_index.py
│ └── prune_completed.py
├── AGENTS.md
├── CLAUDE.md
├── TODO.md
└── README.md