| name | workflow |
| description | Manages TD workflows using `tdx wf` commands. Covers project sync (pull/push/clone), running workflows, monitoring sessions/attempts, task timeline visualization, retry/kill operations, and secrets management. Use when users need to manage, monitor, or debug Treasure Workflow projects via tdx CLI. |
tdx wf - Workflow Commands
Workflow Lookup Order
When the user asks about a workflow, always check local first, then TD platform:
- Local check: Call
workflow_list MCP tool to see if the workflow exists in ~/.tdx/workflows/
- If found locally: Use
workflow_get MCP tool for manifest details and .dig content. For execution history, use tdx wf sessions <project> or check the Studio TD Workflows panel.
- If NOT found locally: Use
tdx wf CLI commands below to query the TD platform
Note: ~/.tdx/workflows/ is where Studio manages workflow manifests. This is separate from tdx wf pull, which downloads project files to the current working directory.
Project Context
tdx wf use my_project
tdx wf use --clear
tdx status
All commands below use session context when project argument is omitted.
Discovery
tdx wf projects
tdx wf projects "prod_*"
tdx wf workflows
tdx wf workflows my_project
Project Sync
tdx wf pull my_project
tdx wf pull my_project ./custom-dir
tdx wf pull my_project --revision r1
tdx wf pull my_project --dry-run
tdx wf push
tdx wf push --skip-validation
tdx wf push --revision "v2.0"
tdx wf clone --name my_project_prod
tdx wf delete my_project
tdx wf download my_project
tdx wf upload my_project
Running Workflows
tdx wf run
tdx wf run my_project.my_workflow
tdx wf run my_project.wf --param key=value
tdx wf run my_project.wf --session-time 2025-01-01T00:00:00+00:00
Monitoring Sessions
tdx wf sessions
tdx wf sessions my_project
tdx wf sessions --status error
tdx wf sessions --from 2025-01-01
tdx wf sessions --to 2025-01-31
Monitoring Attempts
tdx wf attempts
tdx wf attempts my_project
tdx wf attempts --include-retried
Task Timeline
Visual Gantt chart of task execution within an attempt:
tdx wf timeline my_project.workflow
tdx wf timeline --follow
tdx wf timeline --attempt-id <id>
tdx wf timeline --session-id <id>
Interactive mode: tdx wf sessions lets you select a session to jump into its task timeline.
Attempt Actions
tdx wf attempt <id> tasks
tdx wf attempt <id> tasks --include-subtasks
tdx wf attempt <id> logs +task_name
tdx wf attempt <id> retry
tdx wf attempt <id> retry --resume-from +step
tdx wf attempt <id> retry --params '{"key":"val"}'
tdx wf attempt <id> retry --force
tdx wf attempt <id> kill
tdx wf attempt <id> kill --reason "fixing bug"
Retry by Session
tdx wf retry session:<session-id>
tdx wf retry session:<id> --from-task +step
tdx wf retry session:<id> --params '{"k":"v"}'
Secrets
tdx wf secrets list
tdx wf secrets set KEY=value
tdx wf secrets set my_project KEY=v
tdx wf secrets delete KEY
Usage in .dig files: ${secret:KEY}
Debugging Workflow
tdx wf sessions --status error - find failed sessions
tdx wf timeline --session-id <id> - visualize task execution
tdx wf attempt <id> tasks - identify failed task
tdx wf attempt <id> logs +failed_task - read error logs
tdx wf attempt <id> retry --resume-from +failed_task - retry from failure point
Output Formats
All list commands support --json, --jsonl, --tsv, --table flags and --output <file>.