Retrieve and display results from completed (or running) background tasks.
Retrieves and displays results from completed or running background tasks.
/plugin marketplace add Data-Wise/craft/plugin install data-wise-craft@Data-Wise/craftworkflow/Retrieve and display results from completed (or running) background tasks.
View output from background tasks launched by:
/workflow:brainstorm --background/workflow:refine (option 2: background)/workflow:task-output <task_id> # View results
/workflow:task-output <task_id> --raw # Show raw output
/workflow:task-output --latest # View most recent completed task
/workflow:task-output abc123
Output:
TASK OUTPUT
════════════════════════════════════════════════════════════
Task ID: abc123
Command: /workflow:brainstorm "improve test coverage"
Status: ✅ Completed
Duration: 2m 45s
Completed: 2 minutes ago
────────────────────────────────────────────────────────────
RESULTS:
────────────────────────────────────────────────────────────
💡 IDEAS: improve test coverage
⚡ Quick (< 1hr)
1. Add edge case tests for user input validation
2. Fix flaky test_auth() timeout issue
3. Add assertion messages to existing tests
🔧 Medium (1-3hrs)
4. Refactor test helpers into test_utils.R
5. Add integration tests for API endpoints
6. Set up coverage reporting with covr package
🚀 Big (1+ days)
7. Implement CI/CD with automated testing
8. Add property-based testing with hedgehog
💡 Start with #1 or #2
────────────────────────────────────────────────────────────
📋 Ideas saved to IDEAS.md
────────────────────────────────────────────────────────────
💡 NEXT STEPS:
Work on an idea:
/workflow:next - Pick from IDEAS.md and start
Check other tasks:
/workflow:task-status - List all tasks
Implementation:
/workflow:task-output abc123
If task is still running:
TASK OUTPUT
════════════════════════════════════════════════════════════
Task ID: abc123
Command: /workflow:brainstorm "improve test coverage"
Status: 🔄 Running (1m 30s elapsed)
Estimated completion: ~1 minute
────────────────────────────────────────────────────────────
⚠️ Task not yet complete
Current status: Generating ideas...
────────────────────────────────────────────────────────────
💡 OPTIONS:
1. Wait for completion ⏳
/workflow:task-output abc123 --wait
2. Check status
/workflow:task-status abc123
3. Cancel task
/workflow:task-cancel abc123
4. Continue working
I'll notify you when complete!
>
Implementation:
block: false/workflow:task-output abc123 --wait
Output:
TASK OUTPUT
════════════════════════════════════════════════════════════
Task ID: abc123
Status: 🔄 Running
⏳ Waiting for completion...
[Progress dots]
.....
✅ Task completed!
────────────────────────────────────────────────────────────
RESULTS:
────────────────────────────────────────────────────────────
[Full output displayed here]
[Rest of standard output format]
Implementation:
block: true/workflow:task-output --latest
Output:
TASK OUTPUT (Latest)
════════════════════════════════════════════════════════════
Task ID: abc123
Command: /workflow:brainstorm "improve test coverage"
Completed: 2 minutes ago
────────────────────────────────────────────────────────────
RESULTS:
────────────────────────────────────────────────────────────
[Results displayed here]
Implementation:
/workflow:task-output abc123 --raw
Output:
TASK OUTPUT (Raw)
════════════════════════════════════════════════════════════
[Unformatted agent output exactly as returned]
[No additional formatting or parsing]
────────────────────────────────────────────────────────────
💡 View formatted version:
/workflow:task-output abc123
Useful for:
By command type:
❌ Task not found: abc123
Recent tasks:
xyz789 - /workflow:brainstorm (completed 5m ago)
def456 - /workflow:refine (running)
List all tasks:
/workflow:task-status
TASK OUTPUT
════════════════════════════════════════════════════════════
Task ID: abc123
Command: /workflow:brainstorm "improve test coverage"
Status: ❌ Failed
Duration: 1m 30s
Failed: 3 minutes ago
────────────────────────────────────────────────────────────
ERROR:
────────────────────────────────────────────────────────────
Agent encountered an error during execution:
[Error message from agent]
[Stack trace if available]
────────────────────────────────────────────────────────────
💡 TROUBLESHOOTING:
Retry the command:
/workflow:brainstorm "improve test coverage" --wait
Try a different approach:
• Simplify the topic
• Be more specific
• Use interactive mode: /workflow:brainstorm
Get help:
/workflow:stuck
No background tasks found.
Launch a background task:
/workflow:brainstorm "your topic" --background
/workflow:refine "your prompt" (choose option 2)
Check task status:
/workflow:task-status
Where results are stored:
.claude/task-outputs/{task_id}.mdRetention:
Typical flow:
# Launch background task
/workflow:brainstorm "ideas" --background
> Task abc123 launched
# Continue working
[do other things]
# Notification appears
> 🎉 Task abc123 complete!
# View results
/workflow:task-output abc123
> [Shows brainstormed ideas]
# Act on results
/workflow:next
> Pick an idea to work on
--latest flag for recent work# View output and immediately work on it
/workflow:task-output abc123 && /workflow:next
/workflow:task-output abc123 --raw > my-output.md
/workflow:task-status # List all
/workflow:task-output abc123 # View first
/workflow:task-output xyz789 # View second
/workflow:task-status - Check task status/workflow:task-cancel - Cancel running task/workflow:brainstorm --background - Launch background brainstorm/workflow:refine - Optimize and execute prompts/workflow:next - Work on brainstormed ideas/workflow:task-output abc123
AI: [Shows 8 brainstormed ideas]
📋 Saved to IDEAS.md
User: /workflow:next
AI: [Lets user pick an idea to work on]
/workflow:task-output xyz789
AI: ❌ Task failed
Error: [details]
Try again with: /workflow:brainstorm "..." --wait
/workflow:task-output abc123 --wait
AI: ⏳ Waiting...
✅ Complete!
[Shows results]
Last Updated: 2025-12-14 Category: Workflow Phase: 1 (Foundation)