Doppleganger OpenClaw Skill

Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work.

v1.0.0 Updated 1 mo ago

Installation

clawhub install doppleganger

Requires npm i -g clawhub

275

Downloads

0

Stars

0

current installs

0 all-time

1

Versions

EU EU-Hosted Inference API

Power your OpenClaw skills with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

Doppleganger

Description

Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work.

Doppleganger

One task, one agent. Doppleganger stops duplicate subagent sessions from running the same task. That prevents token overspend, UI lag, and the chaos of five identical "task completed" announcements.

Usage

  • The orchestrator already runs a duplicate check before sessions_spawn (see delegate rule); Doppleganger is the named skill for that behavior.
  • User says: "prevent duplicate agents", "stop dopplegangers", "why are so many agents doing the same thing?"
  • You want a single entry point to check whether a task is already running before spawning.
python3 /Users/ghost/.openclaw/workspace/skills/doppleganger/scripts/doppleganger.py check "<task string>" [--json]
python3 /Users/ghost/.openclaw/workspace/skills/doppleganger/scripts/doppleganger.py guard --task "<task>" [--json]

JSON output:

  • {"duplicate": false, "doppleganger_ok": true} → safe to spawn.
  • {"duplicate": true, "reason": "running", "sessionId": "...", "key": "...", "doppleganger_ok": true} → do not spawn; reply that the task is already running.

Exit codes: 0 = no duplicate (or check ok). 1 = error. 2 = duplicate detected.

What it does

  • check / guard — Given a task string (the same one you would pass to sessions_spawn), returns whether that task is already running. If yes, the orchestrator must not spawn again.
  • Uses the subagent-tracker's check-duplicate under the hood (one source of truth for runs/sessions).

Orchestrator

The delegate rule runs a duplicate check before every sessions_spawn; that check can be implemented by calling Doppleganger (or subagent-tracker check-duplicate) with the router's task string. If duplicate: true, do not call sessions_spawn.

Name

"Doppleganger" = the duplicate agent doing the same thing. One Spiderman is enough.

Statistics

Downloads 275
Stars 0
Current installs 0
All-time installs 0
Versions 1
Comments 0
Created Feb 27, 2026
Updated Feb 27, 2026

Latest Changes

v1.0.0 · Feb 27, 2026

Initial release of Doppleganger skill to prevent duplicate subagent sessions. - Ensures only one subagent runs each task at a time, avoiding redundant "doppleganger" sessions. - Provides command-line scripts to check or guard against duplicate tasks before spawning agents. - Returns JSON output and exit codes indicating if a duplicate is detected. - Integrates with orchestrator to enforce single-agent-per-task policy. - Helps save tokens and reduce UI lag by blocking duplicate runs.

Quick Install

clawhub install doppleganger
EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.