taskrunner-add

A command for adding work to an autonomous task queue, where queued tasks can be executed later by an agent.

In plain words
What is it for?
It helps add a task with a title, instructions, repository, permission level, and maximum number of agent turns to the queue.
Why use it?
It records the task details and execution rules in one place instead of requiring the work to be started immediately.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/stackbilt-dev/cc-taskrunner/taskrunner-add
Clone the repo
git clone --depth 1 https://github.com/Stackbilt-dev/cc-taskrunner
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00007 $0.00599
Opus 5 $0.00003 $0.00300
Sonnet 5 $0.00001 $0.00120
Haiku 4.5 $0.00001 $0.00060

Measured yesterday against content hash c799195265ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

taskrunner-add scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/commands/taskrunner-add.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cc-taskrunner — Add Task

Add a task to the cc-taskrunner queue for autonomous execution.

Behavior

If $ARGUMENTS is provided: Use it as the task title and prompt.

If $ARGUMENTS is empty: Ask the user what task to add using AskUserQuestion with these fields:

  • Title: short description of the task
  • Prompt: detailed instructions (file paths, constraints, completion criteria)
  • Authority: auto_safe (branch + PR) or operator (run on current branch)
  • Max turns: 5-25 (default 25)

Steps

  1. Parse or gather task details.

  2. Add the task:

    bash ${CLAUDE_PLUGIN_ROOT}/taskrunner.sh add "$TASK_TITLE"
    

    For more control (custom repo, prompt, authority, turns), write directly to the queue file:

    python3 -c "
    import json, uuid, datetime
    task = {
        'id': str(uuid.uuid4()),
        'title': '''$TITLE''',
        'repo': '$REPO',
        'prompt': '''$PROMPT''',
        'authority': '$AUTHORITY',
        'max_turns': $MAX_TURNS,
        'status': 'pending',
        'created_at': datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')
    }
    queue_file = '${CC_QUEUE_FILE:-queue.json}'
    try:
        with open(queue_file) as f:
            queue = json.load(f)
    except (FileNotFoundError, json.JSONDecodeError):
        queue = []
    queue.append(task)
    with open(queue_file, 'w') as f:
        json.dump(queue, f, indent=2)
    print(f'Added task {task[\"id\"][:8]}: {task[\"title\"]}')
    "
    
  3. Show confirmation with task ID and suggest running /taskrunner to execute.

Prompt Writing Tips

Good prompts are specific:

  • Name file paths explicitly: "Read src/services/quota.ts"
  • State completion criteria: "Tests should pass"
  • Include context: each task is a fresh session
  • Say what NOT to do: "Do NOT modify the database schema"
  • End with: "Commit your work with a descriptive message"

Authority Levels

Authority Branch? PR? Use for
operator No No Tasks that run on your current branch
auto_safe Yes Yes Tests, docs, research, refactors

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 76 lines · 7 tokens per session scan A c799195265ba

Subscribe to this mod's changes

taskrunner-add is a command published in the GitHub repository Stackbilt-dev/cc-taskrunner (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 7 tokens to every session and 599 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.