td-task-management
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesetd - Task Management for AI Agents
td - AI Agent任务管理工具
Overview
概述
tdtdCore capability: Run and get everything needed for the next action—current focus, pending reviews, open issues, recent decisions.
td usagetdtd核心功能: 运行即可获取下一次行动所需的全部信息——当前聚焦任务、待审核事项、未解决问题、近期决策。
td usageQuick Start
快速开始
Session Start (Every Time)
会话启动(每次必做)
bash
td usage --new-session # Auto-rotation + see current stateOutput tells you:
- Active work sessions and recent decisions
- What issues are pending review (you can review these)
- Highest priority open issues
- Recent handoffs from previous sessions
bash
td usage --new-session # 自动切换会话 + 查看当前状态输出内容包含:
- 活跃工作会话和近期决策
- 待审核的问题(你可以对这些问题进行审核)
- 最高优先级的未解决问题
- 来自上一会话的近期移交内容
Single-Issue Workflow
单议题工作流
For focused work on one issue:
bash
td start <issue-id> # Begin work
td log "OAuth callback implemented" # Track progress
td log --decision "Using JWT tokens" # Log decisions
td handoff <id> --done "..." --remaining "..." # Capture state
td review <id> # Submit for review针对单个议题的专注工作场景:
bash
td start <issue-id> # 开始工作
td log "OAuth callback implemented" # 记录进度
td log --decision "Using JWT tokens" # 记录决策
td handoff <id> --done "..." --remaining "..." # 保存状态
td review <id> # 提交审核Multi-Issue Workflow (Recommended for Agents)
多议题工作流(推荐Agent使用)
For agents handling related issues:
bash
td ws start "Auth implementation" # Start work session
td ws tag td-a1b2 td-c3d4 # Associate issues (auto-starts them)
td ws tag --no-start td-e5f6 # Associate without starting
td ws log "Shared token storage" # Log to all tagged issues
td ws handoff # Capture state, end session针对Agent处理多个相关议题的场景:
bash
td ws start "Auth implementation" # 启动工作会话
td ws tag td-a1b2 td-c3d4 # 关联议题(自动启动)
td ws tag --no-start td-e5f6 # 关联议题但不启动
td ws log "Shared token storage" # 为所有关联议题记录日志
td ws handoff # 保存状态,结束会话Key Workflows
关键工作流
Workflow 1: Starting New Work
工作流1:启动新工作
bash
undefinedbash
undefined1. Check what to work on
1. 查看待处理工作
td usage # See current state
td next # Highest priority open issue
td critical-path # What unblocks most work
td usage # 查看当前状态
td next # 获取最高优先级未解决问题
td critical-path # 获取最影响工作推进的阻塞项
2. Start work
2. 开始工作
td start <id>
td start <id>
3. Begin logging
3. 开始记录日志
td log "Started implementation"
undefinedtd log "Started implementation"
undefinedWorkflow 2: Handing Off Work
工作流2:工作移交
This is critical for agent-to-agent handoffs:
bash
td handoff <id> \
--done "OAuth flow, token storage" \
--remaining "Refresh token rotation, error handling" \
--decision "Using JWT for stateless auth" \
--uncertain "Should tokens expire on password change?"Keys:
- - What's actually complete (be honest)
--done - - What's left (be specific)
--remaining - - Why you chose approach X
--decision - - What you're unsure about
--uncertain
Next session will see all this context with or .
td usagetd context <id>这在Agent间移交工作时至关重要:
bash
td handoff <id> \
--done "OAuth flow, token storage" \
--remaining "Refresh token rotation, error handling" \
--decision "Using JWT for stateless auth" \
--uncertain "Should tokens expire on password change?"关键参数:
- - 实际已完成的工作内容(如实记录)
--done - - 剩余待完成的工作(具体明确)
--remaining - - 选择方案X的原因
--decision - - 存在疑问的内容
--uncertain
下一次会话可通过或查看所有这些上下文信息。
td usagetd context <id>Workflow 3: Reviewing Code
工作流3:代码审核
bash
undefinedbash
undefined1. See reviewable issues
1. 查看可审核的问题
td reviewable
td reviewable
2. Check details
2. 查看详情
td show <id>
td context <id>
td show <id>
td context <id>
3. Approve or reject
3. 批准或驳回
td approve <id>
td approve <id>
Or:
或者:
td reject <id> --reason "Missing error handling"
**Important:** You cannot approve work you implemented. Session isolation enforces this.td reject <id> --reason "Missing error handling"
**重要提示:** 你无法审核自己实现的工作。会话隔离机制强制要求这一点。Workflow 4: Handling Blockers
工作流4:处理阻塞项
bash
undefinedbash
undefined1. Log the blocker
1. 记录阻塞项
td log --blocker "Waiting on API spec from backend team"
td log --blocker "Waiting on API spec from backend team"
2. Work on something else
2. 处理其他工作
td next # Get another issue
td ws tag td-e5f6 # Add to work session
td next # 获取另一个议题
td ws tag td-e5f6 # 添加到工作会话
3. Come back to blocked issue later
3. 后续回到阻塞的议题
td context td-a1b2 # Refresh context when blocker resolves
undefinedtd context td-a1b2 # 阻塞项解决后刷新上下文
undefinedCommands by Category
按类别划分的命令
Checking Status
状态查看
- - Current state, reviews, next steps
td usage - - Compact view (after first read)
td usage -q - - What you're working on
td current - - Current work session state
td ws current - - Highest priority open
td next - - What unblocks most work
td critical-path
- - 当前状态、待审核事项、下一步操作
td usage - - 精简视图(首次查看后使用)
td usage -q - - 当前正在处理的工作
td current - - 当前工作会话状态
td ws current - - 最高优先级未解决问题
td next - - 最影响工作推进的阻塞项
td critical-path
Working on Issues
议题处理
- - Begin work
td start <id> - - Revert to open (undo accidental start)
td unstart <id> - - Track progress
td log "msg" - - Log decision
td log --decision "..." - - Log blocker
td log --blocker "..." - - View details
td show <id> - - Full context for resuming
td context <id>
- - 开始工作
td start <id> - - 恢复为未开始状态(撤销误操作的启动)
td unstart <id> - - 跟踪进度
td log "msg" - - 记录决策
td log --decision "..." - - 记录阻塞项
td log --blocker "..." - - 查看详情
td show <id> - - 获取恢复工作所需的完整上下文
td context <id>
Handing Off
工作移交
- - Single issue
td handoff <id> --done "..." --remaining "..." - - Multi-issue work session
td ws handoff
- - 单个议题移交
td handoff <id> --done "..." --remaining "..." - - 多议题工作会话移交
td ws handoff
Reviews
审核相关
- - Submit for review
td review <id> - - Issues you can review
td reviewable - - Approve (different session only)
td approve <id> - - Reject
td reject <id> --reason "..."
- - 提交审核
td review <id> - - 你可审核的议题
td reviewable - - 批准(仅不同会话可操作)
td approve <id> - - 驳回
td reject <id> --reason "..."
Creating/Managing Issues
议题创建/管理
- - Create
td create "title" --type feature --priority P1 - - List all
td list - - Filter by status
td list --status in_progress - - Mark as blocked
td block <id> - - Delete
td delete <id>
- - 创建议题
td create "title" --type feature --priority P1 - - 列出所有议题
td list - - 按状态筛选
td list --status in_progress - - 标记为阻塞
td block <id> - - 删除议题
td delete <id>
File Tracking
文件跟踪
- - Track files with issue
td link <id> <files...> - - Show file changes
td files <id>
- - 关联议题与文件
td link <id> <files...> - - 查看文件变更
td files <id>
Other
其他命令
- - Live dashboard
td monitor - - Force new session
td session --new "name" - - Undo last action
td undo
See quick_reference.md for full command listing.
- - 实时仪表盘
td monitor - - 强制创建新会话
td session --new "name" - - 撤销上一次操作
td undo
完整命令列表请查看quick_reference.md。
Resources
资源
quick_reference.md
quick_reference.md
Complete command reference organized by task type.
按任务类型整理的完整命令参考。
ai_agent_workflows.md
ai_agent_workflows.md
Detailed workflows for common AI agent scenarios:
- Single-issue focus
- Multi-issue work sessions
- Handling blockers
- Resuming work
- Code review process
- Tips for AI agents
针对常见AI Agent场景的详细工作流:
- 单议题聚焦
- 多议题工作会话
- 阻塞项处理
- 恢复工作
- 代码审核流程
- AI Agent使用技巧
Issue Lifecycle
议题生命周期
open → in_progress → in_review → closed
| |
v | (reject)
blocked -----------+open → in_progress → in_review → closed
| |
v | (reject)
blocked -----------+Key Principles
核心原则
Session Isolation: Every terminal/context gets a unique session ID. The session that implements code cannot approve it. Different session must review. This forces actual handoffs and prevents "works on my context" bugs.
Structured Handoffs: Don't just say "here's what I did"—structure it with done/remaining/decisions/uncertain so next agent has clear context.
Minimal: Does one thing. Single binary, SQLite local storage (), no server, works with any AI tool.
.todos/会话隔离: 每个终端/上下文都有唯一的会话ID。实现代码的会话无法审核该代码,必须由不同的会话进行审核。这强制要求真正的工作移交,避免“仅在我的上下文可用”的问题。
结构化移交: 不要只说“这是我做的工作”——用已完成/剩余/决策/疑问的结构来组织,让下一个Agent拥有清晰的上下文。
极简设计: 专注于一件事。单二进制文件、SQLite本地存储()、无需服务器,可与任何AI工具配合使用。
.todos/For AI Agents
给AI Agent的建议
Always start conversation with:
bash
td usage --new-sessionThis auto-rotates sessions and gives you current state. Then:
- Single focused issue → Use single-issue workflow
- Multiple related issues → Use for work sessions
td ws start - Before context ends → Always or
td handofftd ws handoff - Log decisions → Use flag to explain reasoning
--decision - Log uncertainty → Use flag to mark unknowns
--uncertain - Track files → Use so future sessions know what changed
td link
See ai_agent_workflows.md for detailed examples.
始终以以下命令开启对话:
bash
td usage --new-session该命令会自动切换会话并提供当前状态。然后:
- 单个聚焦议题 → 使用单议题工作流
- 多个相关议题 → 使用创建工作会话
td ws start - 上下文结束前 → 务必执行或
td handofftd ws handoff - 记录决策 → 使用参数说明推理过程
--decision - 记录疑问 → 使用参数标记未知内容
--uncertain - 跟踪文件 → 使用让后续会话了解变更的文件
td link
详细示例请查看ai_agent_workflows.md。