Pueue

From archibate/dotfiles-opencode · View interactive version

Pueue is an AI agent skill from the GitHub repository archibate/dotfiles-opencode. This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage. TRIGGER when user says "use pueue", "run in background", "queue this task", or when about to run any long-running (>2 min) task.

How to use this skill

Skill file

Pueue - Background Task Manager

When to Use

When NOT to Use

Workflow

Option 1: Add and Follow (Recommended)

Start task and follow its output (blocks until complete):

# Add task and get its ID
pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

# Follow task output (blocks until complete)
pueue follow <task_id>

Option 2: Add and Check Later

Start task without blocking, check status later:

# Add task
pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

# Later, check status
pueue status

# View output when done
pueue log <task_id>

Option 3: Using the Helper Script

scripts/run_in_pueue.sh 'PYTHONUNBUFFERED=1 uv run python -u train.py'

This script:

Conversation Example

User:

Start training in the background.

Assistant:

pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

Then I'll follow the output:

pueue follow <task_id>

Training started. I'll monitor progress and report when complete.

Quick Reference

| Command | Description |

|---------|-------------|

| pueue status | List all tasks |

| pueue add 'cmd' | Queue a task |

| pueue follow <id> | Follow task output (blocks) |

| pueue log <id> | View completed task output |

| pueue kill <id> | Kill a running task |

| pueue clean | Remove finished tasks |

Key Pitfalls

Skill Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.