fix-issues

fix-issues is a command for Claude Code from alifanov/darkflow. It costs 29 tokens per session (3,357 once invoked), scanned A, original, MIT.

A task worker that selects one approved task, implements its fix, and closes the task. It chooses by priority and skips tasks that are replies or scheduled for later.

In plain words
What is it for?
Use it to pick and complete the highest-priority actionable task from the project task list.
Why use it?
It removes the need to manually choose the next approved issue and keeps task status updated after the fix.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to pick and complete the highest-priority actionable task from the project task list.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alifanov/darkflow/fix-issues
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/alifanov/darkflow

Made for: Claude Code.

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 fix-issues

README.md
[![agentmods](https://agentmods.dev/badge/commands/alifanov/darkflow/fix-issues/github.svg)](https://agentmods.dev/commands/alifanov/darkflow/fix-issues)
Your own site
<a href="https://agentmods.dev/commands/alifanov/darkflow/fix-issues"><img src="https://agentmods.dev/badge/commands/alifanov/darkflow/fix-issues/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 fix-issues

Your own site · 80×15
<a href="https://agentmods.dev/commands/alifanov/darkflow/fix-issues"><img src="https://agentmods.dev/badge/commands/alifanov/darkflow/fix-issues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,357 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.00029 $0.03357
Opus 5.5 $0.00012 $0.01343
Sonnet 5.5 $0.00006 $0.00671
Haiku 4.5 $0.00003 $0.00336

Measured yesterday against content hash 5a5efb2d21cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-issues 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.

templates/.claude/commands/darkflow/fix-issues.md · 241 lines

How it starts

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

Step 1 — Read project config

Load the project config (contract in .darkflow.d/claude.md → Project config). Uses: branch, mergeStrategy, language.

Step 2 — Pick the next task

Pick exactly one open task with status:approved, choosing strictly by priority. The priority order, highest first, is:

  1. priority:critical
  2. priority:high
  3. priority:medium
  4. priority:low
  5. status:approved with no priority set (treat as lowest)

Within a level, take the oldest task (smallest number).

Skip tasks that are not actually actionable here, even if they still carry status:approved:

  • action:reply — handled exclusively by mailbox-check.
  • scheduledFor in the future — the task is snoozed ("don't pick up before this date"); it becomes eligible automatically once the date passes.

Rank every selectable task and take the single best one — pipe df task list's JSON through jq:

n=$(~/.darkflow/df task list --status approved | jq -r '
        def prio($p):
          if   $p == "critical" then 0
          elif $p == "high"     then 1
          elif $p == "medium"   then 2
          elif $p == "low"      then 3
          else 4 end;
        [ .[] | select(.action != "reply"
                       and (.scheduledFor == null or .scheduledFor <= (now | todate)))
              | {number, rank: prio(.priority)} ]
        | sort_by([.rank, .number]) | .[0].number // empty')

If $n is empty, stop — skip the run.

Step 3 — Read the task

Fetch the full task content before touching any code:

~/.darkflow/df task view $n

Read the title, body, and all comments carefully. If the task references other tasks, read those too.

Coming back from review. If the latest verify-task comment says fail, this run is a second attempt on the same pull request: its comment names the PR and the branch and lists what is missing. Fix exactly that, on that branch (git fetch origin <branch> && git checkout <branch>), push to the same PR — do not open a new one.

Read the full file on GitHub · 241 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 Changed · +21 lines · +15 tokens per session 5a5efb2d21cb
  2. 3mo ago First seen · 220 lines · 14 tokens per session scan A a654478b789e

Subscribe to this mod's changes

fix-issues is a command published in the GitHub repository alifanov/darkflow (4 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 3,357 once invoked, about $0.0001 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

fix-issues compared with commands from other repositories

fix-issues next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-issuesalifanov/darkflowCommand4yesterdayMITA29Claude Code
localgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
issuegetsentry/toolkitCommand977yesterdaynoneA0Claude Code
debug-filesgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
eventgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
releasegetsentry/toolkitCommand977yesterdaynoneA0Claude Code
sourcemapgetsentry/toolkitCommand977yesterdaynoneA0Claude Code