← Back to Skills Marketplace
austindixson

Doppleganger

by austindixson · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
341
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install doppleganger
Description
Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work.
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doppleganger
  3. After installation, invoke the skill by name or use /doppleganger
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug doppleganger
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Doppleganger?

Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work. It is an AI Agent Skill for Claude Code / OpenClaw, with 341 downloads so far.

How do I install Doppleganger?

Run "/install doppleganger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Doppleganger free?

Yes, Doppleganger is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Doppleganger support?

Doppleganger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Doppleganger?

It is built and maintained by austindixson (@austindixson); the current version is v1.0.0.

💬 Comments