Doppleganger
/install doppleganger
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 "\x3Ctask string>" [--json]
python3 /Users/ghost/.openclaw/workspace/skills/doppleganger/scripts/doppleganger.py guard --task "\x3Ctask>" [--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-duplicateunder 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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install doppleganger - 安装完成后,直接呼叫该 Skill 的名称或使用
/doppleganger触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Doppleganger 是什么?
Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 341 次。
如何安装 Doppleganger?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install doppleganger」即可一键安装,无需额外配置。
Doppleganger 是免费的吗?
是的,Doppleganger 完全免费(开源免费),可自由下载、安装和使用。
Doppleganger 支持哪些平台?
Doppleganger 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Doppleganger?
由 austindixson(@austindixson)开发并维护,当前版本 v1.0.0。