| name | td-task-management |
| description | Task management for AI agents across context windows. Use when agents need to track work, log progress, hand off state, and maintain context across sessions. Includes workflows for single-issue focus, multi-issue work sessions, and structured handoffs. Essential for AI-assisted development where context windows reset between sessions. |
td - Task Management for AI Agents
Overview
td is a minimalist CLI for tracking tasks and maintaining agent memory across context windows. When your AI session ends, td captures what was done, what remains, and what decisions were madeโso the next session picks up exactly where the last one left off.
Core capability: Run td usage and get everything needed for the next actionโcurrent focus, pending reviews, open issues, recent decisions.
Quick Start
Session Start (Every Time)
td usage --new-session
Output 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
Single-Issue Workflow
For focused work on one issue:
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)
For agents handling related issues:
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
td usage
td next
td critical-path
td start <id>
td log "Started implementation"
Workflow 2: Handing Off Work
This is critical for agent-to-agent handoffs:
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:
--done - What's actually complete (be honest)
--remaining - What's left (be specific)
--decision - Why you chose approach X
--uncertain - What you're unsure about
Next session will see all this context with td usage or td context <id>.
Workflow 3: Reviewing Code
td reviewable
td show <id>
td context <id>
td approve <id>
td reject <id> --reason "Missing error handling"
Important: You cannot approve work you implemented. Session isolation enforces this.
Workflow 4: Handling Blockers
td log --blocker "Waiting on API spec from backend team"
td next
td ws tag td-e5f6
td context td-a1b2
Commands by Category
Checking Status
td usage - Current state, reviews, next steps
td usage -q - Compact view (after first read)
td current - What you're working on
td ws current - Current work session state
td next - Highest priority open
td critical-path - What unblocks most work
Working on Issues
td start <id> - Begin work
td unstart <id> - Revert to open (undo accidental start)
td log "msg" - Track progress
td log --decision "..." - Log decision
td log --blocker "..." - Log blocker
td show <id> - View details
td context <id> - Full context for resuming
Handing Off
td handoff <id> --done "..." --remaining "..." - Single issue
td ws handoff - Multi-issue work session
Reviews
td review <id> - Submit for review
td reviewable - Issues you can review
td approve <id> - Approve (different session only)
td reject <id> --reason "..." - Reject
Creating/Managing Issues
td create "title" --type feature --priority P1 - Create
td create "title" --description-file body.md --acceptance-file acceptance.md - Agent-safe rich text
cat body.md | td update <id> --append --description-file - - Append rich text from stdin
td list - List all
td list --status in_progress - Filter by status
td block <id> - Mark as blocked
td delete <id> - Delete
File Tracking
td link <id> <files...> - Track files with issue
td files <id> - Show file changes
Other
td monitor - Live dashboard
td session --new "name" - Force new session
td undo - Undo last action
See quick_reference.md for full command listing.
Resources
Complete command reference organized by task type.
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
Issue Lifecycle
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 (.todos/), no server, works with any AI tool.
For AI Agents
Always start conversation with:
td usage --new-session
This auto-rotates sessions and gives you current state. Then:
- Single focused issue โ Use single-issue workflow
- Multiple related issues โ Use
td ws start for work sessions
- Before context ends โ Always
td handoff or td ws handoff
- Log decisions โ Use
--decision flag to explain reasoning
- Log uncertainty โ Use
--uncertain flag to mark unknowns
- Track files โ Use
td link so future sessions know what changed
See ai_agent_workflows.md for detailed examples.