Asynkron.JsEngine: Command for Claude Code

.claude/commands/duo.md

duo is a command for Claude Code from asynkron/Asynkron.JsEngine. It costs 11 tokens per session (1,395 once invoked), scanned A, original, MIT.

A two-agent workflow for implementing a GitHub issue, where one agent investigates and plans while another writes the code. GitHub issues are tracked work items such as bug reports or feature requests.

In plain words
What is it for?
It helps fetch an issue, research related files and tests, identify risks, create an implementation plan, and carry out the requested change.
Why use it?
It divides research and implementation so the code can be based on the issue details and an examination of the existing codebase.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is asynkron/Asynkron.JsEngine's own configuration. It tells Claude Code how to work on Asynkron.JsEngine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Asynkron.JsEngine configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../Asynkron.JsEngine-issue-$ISSUE_NUMBER -b feature/issue-$ISSUE_NUMBER.

Reuse

Borrowing it

Nothing to install: this file belongs to asynkron/Asynkron.JsEngine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/asynkron/Asynkron.JsEngine/main/.claude/commands/duo.md
Clone the repo
git clone --depth 1 https://github.com/asynkron/Asynkron.JsEngine

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 duo

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/asynkron/asynkron.jsengine/duo"><img src="https://agentmods.dev/badge/commands/asynkron/asynkron.jsengine/duo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,395 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.00011 $0.01395
Opus 5.5 $0.00004 $0.00558
Sonnet 5.5 $0.00002 $0.00279
Haiku 4.5 $0.00001 $0.00139

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

Security

Grade A, and why

duo 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 14d 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.

.claude/commands/duo.md · 212 lines

How it starts

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

Duo: Deep-Thinker + Coder Workflow

This command orchestrates a two-agent workflow for implementing GitHub issues.

Input Parsing

Parse the $ARGUMENTS to extract the issue number:

  • 385 → issue number 385
  • #385 → issue number 385
  • https://github.com/asynkron/Asynkron.JsEngine/issues/385 → issue number 385

Extract the number and store as ISSUE_NUMBER.

Phase 1: Deep-Thinker Analysis

First, fetch the issue details:

gh issue view $ISSUE_NUMBER --json title,body,labels,comments

Then launch a deep-thinker agent with this prompt:

You are analyzing GitHub issue #$ISSUE_NUMBER for the Asynkron.JsEngine project.

## Issue Details
$ISSUE_CONTENT

## Your Task

1. **Research the codebase** to understand:
   - What files and components are involved
   - How similar features are implemented
   - What tests exist for related functionality
   - Any relevant patterns or conventions

2. **Analyze the issue** thoroughly:
   - What is the root cause (for bugs) or requirements (for features)?
   - What are the edge cases to consider?
   - What could go wrong?

3. **Create an implementation plan** with:
   - Step-by-step implementation approach
   - Files to modify/create
   - Tests to add
   - Potential risks or blockers

4. **Post your plan as a GitHub comment** on issue #$ISSUE_NUMBER:

```bash
gh issue comment $ISSUE_NUMBER --body "$(cat <<'EOF'
# Implementation Plan

## Summary
[Brief description of the approach]

## Analysis Findings
[Key discoveries from codebase research]

## Implementation Steps
1. [Step 1]
2. [Step 2]
...

## Files to Modify
- `path/to/file.cs`: [what changes]
...

## Tests to Add
- [Test descriptions]

## Risks & Considerations
- [Any potential issues]

---
*Generated by /duo deep-thinker agent*
EOF
)"

Return the comment URL when done.


Wait for the deep-thinker agent to complete and capture the comment URL.

## Phase 2: Create Worktree

After deep-thinker completes, create a worktree for the coder:

```bash
git worktree add ../Asynkron.JsEngine-issue-$ISSUE_NUMBER -b feature/issue-$ISSUE_NUMBER

Read the full file on GitHub · 212 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. 14d ago First seen · 212 lines · 0 tokens per session scan A c3f5fad434e3

Subscribe to this mod's changes

duo is a command published in the GitHub repository asynkron/Asynkron.JsEngine (11 stars, last pushed 3mo ago), licensed MIT. It adds 11 tokens to every session and 1,395 once invoked, about $0.0000 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-10-02.