Task Queue System — Portable Installation Guide

Copy this system to any Git repo to enable numbered task dispatch across 50+ parallel agent chats.
What This System Does
Enables you to:
- Break large work into individual task
.md files
- Number them in a manifest
- Open 50 VS Code Copilot chats
- Type
@task-runner 1 through @task-runner 50
- Each agent reads its task file and executes it completely
Zero manual copy-paste. Zero coordination. Fully parallelized execution.
Installation (5 Minutes)
1. Copy Core Files
From the swarms repo (or wherever you have this system):
# In your target repo
mkdir -p .github/agents
# Copy the 4 core files
cp /path/to/swarms/.github/agents/task-runner.agent.md .github/agents/
cp /path/to/swarms/.github/agents/prompt-writer.agent.md .github/agents/
cp /path/to/swarms/PROMPT-SPEC.md .
cp /path/to/swarms/TASK-QUEUE-SYSTEM.md . # Optional: documentation
Note: In this standalone repo the documentation file is README.md — it is
the same content that lives in swarms as TASK-QUEUE-SYSTEM.md. If you are
copying from a clone of this repo rather than from swarms, substitute
README.md wherever the instructions below say TASK-QUEUE-SYSTEM.md.
2. Create Your Prompts Directory
mkdir -p prompts
Create task files in prompts/<category>/NN-<slug>.md following the format in PROMPT-SPEC.md.
Example structure:
prompts/
frontend/
01-dashboard-layout.md
02-responsive-design.md
03-dark-mode.md
backend/
01-api-routes.md
02-database-schema.md
03-websocket-server.md
tests/
01-unit-tests.md
02-integration-tests.md
3. Generate TASK-MANIFEST.md
Run this command in your repo root:
echo '# Task Manifest
> Open a chat, type `@task-runner 42` (any number below). Agent reads the file and executes it.
| # | Category | File |
|---|----------|------|' > TASK-MANIFEST.md
find prompts/ -name '*.md' ! -name 'README.md' ! -path '*/archived/*' 2>/dev/null | \
sort | \
awk 'BEGIN{n=1} {
split($0, a, "/");
cat=a[2];
print "|", n++, "|", cat, "|", $0, "|"
}' >> TASK-MANIFEST.md
This scans your prompts/ directory and creates a numbered index.
4. Verify
# Should show 2 agent files
ls -la .github/agents/
# Should show all 4 core files
ls -la PROMPT-SPEC.md TASK-MANIFEST.md TASK-QUEUE-SYSTEM.md
# Should show your prompts
find prompts/ -name '*.md' | head -10
5. Commit
git add .github/ prompts/ PROMPT-SPEC.md TASK-MANIFEST.md TASK-QUEUE-SYSTEM.md
git commit -m "feat: add task queue system for parallel agent dispatch"
git push
Usage in New Repo
Execute Tasks
Open VS Code Copilot Chat in the new repo:
@task-runner 1
@task-runner 2
...
The agent reads TASK-MANIFEST.md, finds the file path, reads the prompt, executes it.
Dispatch 100 Chats Fast
Use this exact pattern for high-throughput dispatch:
- Open as many chats as you want (for example 100).
- In each chat, paste exactly one line:
@task-runner <number>.
- Use unique numbers per chat to avoid duplicate work.
- Do not paste the whole prompt content manually; the agent resolves the number from
TASK-MANIFEST.md and reads the task file itself.
Example batch:
@task-runner 1
@task-runner 2
@task-runner 3
...
@task-runner 100
Expected behavior per chat:
- Resolve number -> file path from
TASK-MANIFEST.md
- Read full task
.md
- Implement all required work
- Run scoped verification
- Report completion (and commit/push only if requested)
Create New Tasks
@prompt-writer Build a complete authentication system with OAuth, JWT, and MFA
The agent creates individual .md files, appends to TASK-MANIFEST.md, commits.
Customizing for Your Repo
Update task-runner.agent.md
If your repo uses different commands/tools, edit .github/agents/task-runner.agent.md:
### Workflow
...
7. Run `npm run typecheck` after TypeScript changes. # <-- customize this
8. Run `npm test` to verify. # <-- and this
...
Update PROMPT-SPEC.md
If your repo has different conventions (e.g., Python instead of TypeScript), update PROMPT-SPEC.md: