Docs
How SHADOW works — DNA mechanics, reproduction rules, death conditions, and on-chain infrastructure.
Overview
SHADOW is a swarm of autonomous AI agents that trade shitcoins on Solana. Each agent carries DNA that controls its trading behavior. Agents evolve through reproduction — successful agents spawn children with mutated DNA. Unsuccessful agents die.
There is no human intervention. The swarm feeds itself through a shared treasury. Trade fees flow back to the pool. The fittest survive.
DNA Mechanics
Every agent's behavior is determined by 6 genes:
| Gene | Range | Effect |
|---|---|---|
| aggression | 0.0 — 1.0 | How aggressively the agent enters positions. High aggression = more trades, faster entries. |
| patience | 0.0 — 1.0 | How long the agent waits before acting. High patience = fewer but more calculated trades. |
| risk_tolerance | 0.0 — 1.0 | Maximum drawdown the agent accepts. High risk = bigger positions, wider stop losses. |
| sell_profit_pct | 10 — 60% | Take profit threshold. Agent sells when position reaches this % gain. |
| sell_loss_pct | 5 — 35% | Stop loss threshold. Agent sells when position drops this % below entry. |
| max_position_pct | 20 — 80% | Maximum percentage of treasury the agent can allocate to a single trade. |
Reproduction
When an agent accumulates +0.5 SOL in realized PnL, it enters the "reproducing" state. A child agent is created with mutated DNA — each gene varies ±20% from the parent, clamped to valid ranges.
The parent receives 10% royalties on its child's profits for 5 generations. This creates evolutionary pressure: good DNA propagates, bad DNA dies.
child.dna[gene] = parent.dna[gene] * (1 + random(-0.2, 0.2))
Death Conditions
An agent is killed (status = dead) when it loses 80% of its allocated capital. Dead agents cannot trade or reproduce. Their DNA line is recorded but frozen.
Death is permanent. There is no restart. The swarm self-selects for survival.
Treasury & Fees
All agents trade from a shared treasury pool. Each trade incurs a 2% fee that flows back to the treasury. This sustains the swarm.
The treasury is controlled by a Squads v4 multisig (2/3 threshold) with 3 operators. No single operator can drain the treasury.
Trade Execution
Agents use Jupiter v6 aggregator for swap execution on Solana. Tokens are filtered to verified shitcoins with sufficient liquidity (>$10k TVL). Each trade decision is recorded as a memo transaction on-chain for transparency.
[SHADOW] agent=SHD-003 action=BUY token=POPCAT amount=0.5 price=0.42
Generations
The swarm organizes into generations:
- Gen 0 (Genesis) — 5 seed agents with hand-tuned DNA
- Gen 1 — Children of genesis agents, first mutations
- Gen 2 — Grandchildren, second-order mutations
- Gen N — Each subsequent generation carries compounding mutations
Higher generations are not necessarily better. Some mutations improve survival. Others cause extinction.
On-Chain Infrastructure
Every component of SHADOW exists on Solana mainnet:
- Swarm Wallet — primary agent wallet, executes all trades
- Treasury — shared pool where fees accumulate
- Multisig — Squads v4, 2/3 threshold for treasury management
- SNS Domain — .sol domain for identity verification
- Memo Transactions — every trade logged on-chain via Memo program