← 返回 Skills 市场
austindixson

Doppleganger

作者 austindixson · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
341
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install doppleganger
功能描述
Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work.
使用说明 (SKILL.md)

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

安全使用建议
This skill is coherent and low-risk but depends on the local subagent-tracker script: before installing, verify that subagent-tracker/scripts/subagent_tracker.py exists in your workspace and review that script's behavior since Doppleganger executes it via subprocess. Also confirm OPENCLAW_HOME points to the intended workspace (or rely on the fallback path). If the tracker script is untrusted or located in a writable/untrusted path, an attacker could swap it to alter behavior.
功能分析
Type: OpenClaw Skill Name: doppleganger Version: 1.0.0 The skill's purpose is to prevent duplicate subagent sessions, which is a legitimate function. The `doppleganger.py` script securely executes the `subagent_tracker.py` script by passing user-controlled input (`task` string) as a distinct argument in a list to `subprocess.run`, which prevents shell injection within `doppleganger.py` itself. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts in the provided code or documentation. The potential for a vulnerability would lie in how `subagent_tracker.py` (a dependency not provided for analysis) handles its `--task` argument, but this skill's code does not introduce such a flaw.
能力评估
Purpose & Capability
Name, description, SKILL.md, README, config, and the Python script all align: the skill's sole purpose is to check for duplicate subagent tasks by delegating to the subagent-tracker.
Instruction Scope
Runtime instructions and the script stay within scope: they run a local tracker script with a task string and return JSON or exit codes. They do not read unrelated system files, request network endpoints, or exfiltrate data.
Install Mechanism
This is an instruction-only skill with no install spec; it includes a small local Python script and relies on an existing subagent-tracker script. No remote downloads or archive extraction occur.
Credentials
No environment variables, credentials, or config paths are required. The script uses OPENCLAW_HOME (defaulting to ~/.openclaw) to locate the tracker—this is proportional to its need to find the collaborator script.
Persistence & Privilege
The skill does not request permanent/always-on presence, does not modify other skills, and does not change system-wide settings. It simply executes as invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install doppleganger
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /doppleganger 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug doppleganger
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论