返回顶部
d

doppleganger

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
307
下载量
0
收藏
概述
安装方式
版本历史

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. ```bash 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 doppleganger-1776294269 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 doppleganger-1776294269 技能

通过命令行安装

skillhub install doppleganger-1776294269

下载 Zip 包

⬇ 下载 doppleganger v1.0.0

文件大小: 4.18 KB | 发布时间: 2026-4-16 18:29

v1.0.0 最新 2026-4-16 18:29
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部