Local task queuing for AI agents. Prevents multiple agents from running expensive operations concurrently and thrashing your machine.
Repo block/agent-task-queue, read from GitHub 4 h ago. block has not joined Take My Repo.
Adds hierarchical queue capacities so parent queues can limit parallelism across child queues while still preserving FIFO behavior within each child queue. This release includes the queue accounting, transaction, and cleanup changes needed to support scoped capacities reliably.
Includes follow-on fixes around queue acquisition, scoped cleanup, process detection, signal handling, and test stability so the new queue behavior is solid in practice.
Full JetBrains IDE plugin for agent-task-queue visibility. Includes status bar widget, tool window with queue table, per-task output tabs with streaming output, notifications, display modes, settings, and optimistic UI updates on cancel/clear. Install locally via ./gradlew buildPlugin in the intellij-plugin/ directory.
Writes .raw.log companion files alongside standard log files for plugin streaming. Adds structured tool results to MCP output for better integration visibility.
Stores the command string in the database when using the MCP run_task tool, making it possible to see what command a task ran.
Automatically cleans up stale tasks during polling, improving reliability when parent processes die unexpectedly.
.raw.log companion filestq)Added --json flag to CLI commands for programmatic queue inspection:
# Get queue state as JSON tq list --json # {"tasks": [...], "summary": {"total": 1, "running": 1, "waiting": 0}} # Get logs as JSON tq logs --json # {"entries": [...]} # Clear queue without confirmation tq clear --json # {"cleared": 5, "success": true}
Tasks now store and display the command being executed, so you can see what's actually running:
{
"id": 1,
"status": "running",
"command": "./gradlew :app:assembleDebug",
...
}Added comprehensive tests to ensure JSON output structure remains stable for programmatic consumers.
Orphaned task cleanup with PID reuse detection - Tasks from cancelled sub-agents no longer block subsequent tasks (#7)
is_task_queue_process() to detect if a PID is actually running task_queue vs being reused by an unrelated processSERVER_INSTANCE_ID and _active_task_ids tracking in MCP server to detect orphaned tasks from disconnected clientsCLI_INSTANCE_ID tracking in tq.py for same protectionasyncio.CancelledError to properly clean up when sub-agents are cancelledCtrl+C leaving orphaned waiting tasks - Split registration from wait to ensure cleanup
queue_core.py with shared database, logging, and cleanup logicPOLL_INTERVAL_WAITING instead of hardcoded valueserver_id column to queue table with migration for existing databasespypa/gh-action-pypi-publish to commit SHAnosec B602 comments explaining intentional shell=True usage for CLI toolThis beta includes significant improvements to orphaned task cleanup:
queue_core.py for code reuse between MCP server and CLI# Via uvx (recommended) uvx agent-task-queue@0.2.0b1 # Via pip pip install agent-task-queue==0.2.0b1
Note: This is a pre-release. Use @latest or no version specifier to stay on stable (0.1.4).
atq to tq - The atq command conflicted with the Unix at(1) job scheduler. Update any scripts or aliases that used atq to use tq instead.tq run command - Execute commands through the same FIFO queue that AI agents use. This prevents resource contention when humans and agents run builds simultaneously.
tq ./gradlew assembleDebug # Run a build through the queue tq -q android ./gradlew test # Use a specific queue tq -t 600 npm test # Custom timeout (seconds) tq -C /path/to/project make # Set working directory
Implicit run - tq echo hello works the same as tq run echo hello
Rich terminal output - Passthrough mode preserves progress bars, colors, and interactive output from build tools
zombie_cleared events when cleaning up dead or stale taskstq CLI (25 new tests)