← 返回
开发者工具 中文

Tiny Talking Todos

Manage TinyTalkingTodos lists and items via the ttt CLI
通过 ttt CLI 管理 TinyTalkingTodos 列表和项目。
joshuacrowley
开发者工具 clawhub v0.1.2 1 版本 99822.5 Key: 无需
★ 1
Stars
📥 2,229
下载
💾 40
安装
1
版本
#latest

概述

TinyTalkingTodos CLI

Use ttt to manage todo lists and items from the command line. The CLI syncs with TinyTalkingTodos in real-time.

Installation

npm install -g @ojschwa/ttt-cli

Or install locally for development:

cd /path/to/talking-todo/ttt-cli
npm install
npm run build
npm link

Verify with ttt --help.

Authentication

Before using the CLI, the user must be authenticated:

# Check auth status
ttt auth status

# Login via browser (opens OAuth flow)
ttt auth login

# Logout
ttt auth logout

# Export credentials as env vars (for scripts)
ttt auth export

List Management

List all lists

ttt list ls

Output (compact, token-efficient):

Today [2/5]
Groceries [0/3]
Work Tasks [1/4]

For structured data:

ttt list ls --json

Get list details

ttt list get "Groceries"
# or by ID
ttt list get list-abc123

Create a new list

ttt list create "Weekend Plans"
ttt list create "Shopping" --icon "🛒" --color "#FF6B6B"

Options:

  • --color - Background color
  • --icon - List icon
  • --type - List type

Update a list

ttt list update "Groceries" --name "Shopping List"
ttt list update "Shopping List" --icon "🛒" --color "#00FF00"

Options:

  • --name - New list name
  • --color - Background color
  • --icon - List icon
  • --type - List type

Delete a list

ttt list delete "Old List"
ttt list rm "Old List"  # alias

# Force delete even if list has todos
ttt list delete "Old List" --force

Todo Operations

List todos in a list

ttt todo ls --list "Groceries"

Output (compact):

Groceries [1/4]
✓ Milk id:todo-abc123
○ Bread id:todo-def456
○ Eggs id:todo-ghi789
○ Butter id:todo-jkl012

For JSON output:

ttt todo ls --list "Groceries" --json

Add a todo

Basic:

ttt todo add "Buy avocados" --list "Groceries"

With options:

ttt todo add "Doctor appointment" --list "Health" \
  --date 2026-02-15 \
  --time 14:30 \
  --notes "Bring insurance card"

ttt todo add "Try new pasta place" --list "Restaurants" \
  --url "https://example.com/restaurant" \
  --street-address "123 Main St" \
  --rating 4

ttt todo add "Tomatoes" --list "Groceries" \
  --amount 2.50 \
  --category "Produce" \
  --emoji "🍅"

All --list options:

OptionDescriptionExample
------------------------------
--notes Additional notes--notes "organic preferred"
--date Due date--date 2026-02-15
--time Due time--time 14:30
--url Associated URL--url "https://..."
--emoji Item emoji--emoji "🎉"
--email Associated email--email "contact@..."
--street-address Location--street-address "123 Main"
--number Numeric value--number 5
--amount Amount/price--amount 12.99
--rating <1-5>Star rating--rating 4
--type Item type--type A
--category Category--category "Urgent"

Mark a todo as done

ttt todo done todo-abc123

The todo ID is shown in the compact output format after id:.

Mark a todo as not done

ttt todo undone todo-abc123

Update a todo

ttt todo update todo-abc123 --text "New text"
ttt todo update todo-abc123 --category "Urgent" --date 2026-02-15
ttt todo update todo-abc123 --done   # mark as done
ttt todo update todo-abc123 --not-done  # mark as not done

Options:

  • --text - New todo text
  • --notes, --date, --time, --url, --emoji, --email, --street-address
  • --number, --amount, --rating, --type, --category
  • --done / --not-done - Toggle completion status

Delete a todo

ttt todo delete todo-abc123
# or use alias
ttt todo rm todo-abc123

Batch add todos

Add multiple todos at once using JSON:

ttt todo batch-add --list "Groceries" --items '[
  {"text": "Milk"},
  {"text": "Eggs", "fields": {"category": "Dairy"}},
  {"text": "Bread", "fields": {"amount": 3.50}}
]'

Each item requires text and optionally fields with any todo field.

Batch update todos

Update multiple todos at once:

ttt todo batch-update --items '[
  {"id": "todo-abc123", "fields": {"done": true}},
  {"id": "todo-def456", "fields": {"text": "Updated text", "category": "Urgent"}}
]'

Each item requires id and fields with the updates to apply.

Undo Operations

All mutating operations are recorded and can be undone:

# Undo the last operation
ttt undo

# Undo the last 3 operations
ttt undo 3

# View undo history
ttt history
ttt history --limit 20
ttt history --json

Undo supports: todo add/delete/update, batch-add/update, mark done/undone, list create/update/delete.

Daemon (Performance)

The daemon keeps a persistent WebSocket connection for faster commands:

# Start daemon (auto-starts on first command if not running)
ttt daemon start

# Check status
ttt daemon status

# Stop daemon
ttt daemon stop

The daemon auto-shuts down after 30 minutes of inactivity.

Best Practices

  1. Use compact output (default) when displaying lists to users - it's token-efficient
  2. Use --json when you need to parse data or extract specific fields
  3. Reference lists by name for readability, or by ID for precision
  4. Check auth status before operations if you're unsure of login state
  5. Extract todo IDs from compact output (format: id:) for updates
  6. Use batch operations when adding or updating multiple items - more efficient than individual calls
  7. Use undo if you make a mistake - ttt undo reverts the last operation

Example Workflows

Add items to grocery list

ttt todo add "Milk" --list "Groceries" --category "Dairy"
ttt todo add "Bread" --list "Groceries" --category "Bakery"
ttt todo add "Apples" --list "Groceries" --amount 3.50 --category "Produce"

Check and complete tasks

# View todos
ttt todo ls --list "Today"

# Mark one done (using ID from output)
ttt todo done todo-xyz789

Create a new list with todos

ttt list create "Weekend Trip" --icon "🏕️"
ttt todo add "Pack tent" --list "Weekend Trip"
ttt todo add "Check weather" --list "Weekend Trip" --url "https://weather.com"
ttt todo add "Gas up car" --list "Weekend Trip"

Batch add items efficiently

ttt todo batch-add --list "Party Supplies" --items '[
  {"text": "Balloons", "fields": {"category": "Decorations"}},
  {"text": "Cake", "fields": {"category": "Food", "amount": 45.00}},
  {"text": "Plates", "fields": {"category": "Supplies", "number": 20}},
  {"text": "Candles", "fields": {"category": "Decorations"}}
]'

Mark multiple items done

ttt todo batch-update --items '[
  {"id": "todo-abc", "fields": {"done": true}},
  {"id": "todo-def", "fields": {"done": true}},
  {"id": "todo-ghi", "fields": {"done": true}}
]'

Undo a mistake

# Accidentally deleted something? Undo it
ttt undo

# Made several mistakes? Undo multiple
ttt undo 3

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-28 16:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,275
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,310
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,313