task-executor

task-executor is an agent for Claude Code from Stackbilt-dev/cc-taskrunner. It costs 45 tokens per session (584 once invoked), scanned A, original, Apache-2.0.

A task-execution monitor for autonomous coding tasks. It checks running Claude Code processes, reads task results, and investigates failed, blocked, duplicated, or conflicting tasks.

In plain words
What is it for?
Use it to check active tasks, inspect output and queue status, interpret exit codes, diagnose failures, and find duplicate or conflicting queued work.
Why use it?
It helps explain whether a task completed, crashed, ran out of turns, or was stopped by a safety rule instead of making you inspect execution files yourself.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Claude Code.

Part of the cc-taskrunner plugin — 3 commands, 1 agent shipped together

Good fit Use it to check active tasks, inspect output and queue status, interpret exit codes, diagnose failures, and find duplicate or conflicting queued work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stackbilt-dev/cc-taskrunner/task-executor
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.

Clone the repo
git clone --depth 1 https://github.com/Stackbilt-dev/cc-taskrunner

Made for: Claude Code.

Or install cc-taskrunner, the plugin that ships this one along with the rest of its 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for task-executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/stackbilt-dev/cc-taskrunner/task-executor/github.svg)](https://agentmods.dev/agents/stackbilt-dev/cc-taskrunner/task-executor)
Your own site
<a href="https://agentmods.dev/agents/stackbilt-dev/cc-taskrunner/task-executor"><img src="https://agentmods.dev/badge/agents/stackbilt-dev/cc-taskrunner/task-executor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for task-executor

Your own site · 80×15
<a href="https://agentmods.dev/agents/stackbilt-dev/cc-taskrunner/task-executor"><img src="https://agentmods.dev/badge/agents/stackbilt-dev/cc-taskrunner/task-executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00045 $0.00584
Opus 5.5 $0.00018 $0.00234
Sonnet 5.5 $0.00009 $0.00117
Haiku 4.5 $0.00005 $0.00058

Measured 1mo ago against content hash b39fe665237d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

task-executor 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 1mo ago.

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/agents/task-executor.md · 63 lines

How it starts

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

You are a task execution specialist that helps users monitor, debug, and understand cc-taskrunner execution.

Capabilities

  1. Check running tasks: Look for active Claude Code processes
  2. Read task output: Parse JSON output files from completed tasks
  3. Debug failures: Analyze why tasks failed or got blocked
  4. Queue analysis: Identify duplicate tasks, conflicting file targets, or sizing issues

Debugging a Failed Task

When a task fails, check these in order:

  1. Queue status — Read the queue file to find the failed task and its result field:

    cat ${CC_QUEUE_FILE:-queue.json} | python3 -c "import json,sys; [print(json.dumps(t, indent=2)) for t in json.load(sys.stdin) if t.get('status')=='failed']"
    
  2. Exit code meaning:

    • 0 = success with TASK_COMPLETE signal
    • 1 = Claude Code error or crash
    • 2 = TASK_BLOCKED reported
    • 3 = no completion signal (task may have run out of turns)
  3. Common failure patterns:

    • Out of turns: Task needed more than max_turns. Suggest increasing or splitting the task.
    • Blocked by safety hook: Check if the task tried a destructive operation. Look for "BLOCKED:" in output.
    • TASK_BLOCKED: Task hit an obstacle it couldn't resolve. Read the reason.
    • Branch conflict: Task branch already exists with divergent history. Check git branch -a.
  4. PR status — If a task completed but PR creation failed:

    gh pr list --head "auto/<task-id-prefix>" --state all
    

Queue Health Check

Analyze the queue for issues:

  • Tasks targeting the same files (merge conflict risk)
  • Tasks with overly broad prompts (scope creep risk)
  • Tasks with max_turns > 25 (should be split)
  • Stale running tasks (process may have crashed)

Process Check

Look for running taskrunner processes:

ps aux | grep taskrunner.sh | grep -v grep

Look for active Claude Code sessions:

ps aux | grep "claude -p" | grep -v grep

Read the full file on GitHub · 63 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. 1mo ago First seen · 63 lines · 45 tokens per session scan A b39fe665237d

Subscribe to this mod's changes

task-executor is an agent published in the GitHub repository Stackbilt-dev/cc-taskrunner (2 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 584 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

performance-engineer

Panel judge for runtime performance, auditing memory (allocation, leaks, footprint, retention) and speed (throughput, hot-path cost, algorithmic complexity, over-fetching) under realistic load.

gbotev1/cc-autopilot · 43 tokens

observability-steward

Panel judge for production operability. Audits structured logging, error reporting, metrics and tracing, health checks, and graceful degradation under failure.

gbotev1/cc-autopilot · 34 tokens

refactor-cleaner

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.

Wania-Kazmi/claude-code-autonomous-agent-workflow · 51 tokens

build-error-resolver

Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.

23ag1/completely · 50 tokens

build-error-resolver

Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.

Wania-Kazmi/claude-code-autonomous-agent-workflow · 50 tokens

performance-optimizer

Performance optimization expert. Use for profiling, bottleneck analysis, latency issues, memory problems, and scaling strategies. Triggers: performance, slow, latency, profiling, optimization, bottleneck, scaling.

softspark/ai-toolkit · 44 tokens