TodoList
Task tracking tool for agents to manage complex, multi-step tasks.
Installation
main.py
Why Use TodoList?
- •Track progress on complex tasks with multiple steps
- •Show users what the agent is working on
- •Organize multi-step workflows
- •Prevent forgetting steps in complex tasks
When to Use
Use when:
- • Task requires 3+ distinct steps
- • User provides multiple tasks
- • Task requires careful planning
- • You want to show progress
Don't use when:
- • Task is trivial (1-2 simple steps)
- • Task is purely conversational
API
add(content, active_form)
Add a new pending task.
main.py
start(content)
Mark a task as in_progress. Only one task can be in_progress at a time.
main.py
complete(content)
Mark a task as completed.
main.py
remove(content)
Remove a task from the list.
main.py
list()
Get all todos as text.
main.py
Task States
| Icon | Status | Description |
|---|---|---|
| ○ | pending | Not yet started |
| ◐ | in_progress | Currently working on |
| ● | completed | Finished |
Visual Display
When tasks change, TodoList shows a panel:
╭─── Tasks (1/3) ───────────────────────────────╮
│ ● Fix authentication bug │
│ ◐ Running tests │
│ ○ Update docs │
╰────────────────────────────────────────────────╯
Use with Agent
main.py
Best Practices
Task Naming
Use both forms:
main.py
One In-Progress at a Time
Only one task should be in_progress. Complete current before starting next.
main.py
Mark Complete Immediately
Complete tasks as soon as done, don't batch.
