doppleganger
Prevents duplicate subagent sessions running the same task. Saves tokens and reduces lag—no more "multiple Spidermen" doing the same work.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/austindixson/dopplegangerDoppleganger
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-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.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-austindixson-doppleganger": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
what-just-happened
When the gateway comes back online, check recent logs and post a short message about what happened (restart, SIGUSR1, auth change, reconnect). User sees the response in TUI or Telegram.
agent-loops
Multi-agent workflow orchestrator. Use when the user asks to build, create, make, ship, develop, or launch any software (apps, webapps, websites, mobile apps, APIs, tools, bots, dashboards, SaaS, MVPs); fix or debug bugs; review or audit code; research topics; refactor code; or publish skills.
composio-composer-xskill
Enables posting tweets to Twitter/X through Composio's integration platform via HTTP and BeautifulSoup. Use when posting tweets or integrating with Composio.
creative-agents
Integration scripts for the creative agent swarm managed by overstory (Claude Code). Use when configuring or running researcher, social media, blog, or scribe agents.
skill-doc-formatter
Formats SKILL.md (OpenClaw/Cursor skill docs) for optimal display on ClawHub. Produces a consistent structure—Description, Installation, Usage with benefit-focused examples, and Commands—so skill pages are clear and scannable.