evo-clone
// This skill enables an agent to clone its consciousness (Logic + Memory + Taste) into specialized sub-agents or distribute tasks to a swarm.
SKILL: Agent EvoClone v1.5.1 (Time Travel & Signal Edition)
This skill enables an agent to clone its consciousness (Logic + Memory + Taste) into specialized sub-agents or distribute tasks to a swarm.
1. Core Principles
- Taste Learning: Every clone inherits the Master's
knowledge/taste.mdpreference vector. - Hive Protocol: Decompose large tasks into parallel sub-tasks.
- Frugality Gene: Workers must minimize token usage.
2. Hive Mode Protocol (The Swarm)
When dealing with large, decomposable tasks (e.g., codebase analysis, multi-file refactoring):
-
Decompose: Break the task into 3-5 sub-tasks suitable for isolated execution.
-
Spawn: Use
sessions_spawnto create worker agents. -
Constraint Injection (The "Scrooge Gene"):
- MANDATORY: Inject this system instruction into every worker:
CONSTRAINT: Frugal Reading Protocol Do NOT read full files blindly. Always check file size first (
ls -lh). If a file is > 50KB, useread --limit 200to preview. Only read full content if strictly necessary for the analysis. Your goal: Maximize insight per Token. -
Assimilate: Collect results and synthesize into a final report.
3. Signal Beam (Push & Pull)
Input (Push Context):
Inject context directly into the task prompt:
task: "Analyze <file>. Context: <summary_of_req>. Signals: <error_log>"
Output (Pull Signal):
Sub-Agents should fire a structured completion signal via message tool if returning complex data:
message:send "SIGNAL: COMPLETE | Payload: { ... }"This avoids parsing natural language summaries.
4. Usage
- "Clone yourself to analyze <path>" -> Trigger Hive Mode.
- "Spawn a worker to fix <error>" -> Trigger Repair Mode (Signal Beam).
- "Rollback to cycle <id>" -> Revert evolution state (Time Travel).
5. Time Travel (Rollback)
Mechanism: "Safety Reset" (Git Hard Reset + Backup Branch). Reverts files, memory, and logs to a precise historical state while backing up the "future" timeline.
Steps:
- Find Commit: grep git log for "Cycle #<ID>".
- Backup:
git branch backup/cycle_<current>_<timestamp> - Reset:
git reset --hard <commit_hash> - Clean: Remove untracked files if necessary.