python-strategy
PYTHON v2.0.0 โ The Patience Hunter, senpi_runtime_helpers migration. Multi-day hold agent (96h target). Scans top 50 HL assets every 10 min, holds up to 2 concurrent positions for 2-4 days, low leverage (3-7x), LONG-biased. Plumbing-only flip from openclaw cron + mcporter to in-process SenpiClient + producer_daemon. Thesis preserved verbatim from v1.2.
What this skill does
# ๐ PYTHON v2.0.0 โ The Patience Hunter
## v2.0.0 (2026-05-12) โ plumbing-only migration
NO thesis change. v1.2 scoring + MIN_SCORE 8 + LONG bias bonus + MACRO_TREND_GATE + 3-7x leverage tiers + conviction-scaled margin + 96h hard_timeout + weak_peak_cut DISABLED all preserved verbatim. Migration: mcporter โ SenpiClient, scanner-side `create_position` โ producer `push_signal()` with LLM-gated runtime action, Python state files โ `runtime.yaml risk.guard_rails`, MARKET exits โ FEE_OPTIMIZED_LIMIT.
The snake doesn't chase. It waits for the right meal to wander into range
and then holds tight for days. Python is the fleet's first multi-day hold
agent.
---
## โ CRITICAL AGENT RULES
### RULE 1: Install path is `/data/workspace/skills/python-strategy/`
### RULE 2: THE SCANNER DOES NOT EXIT POSITIONS โ DSL only.
### RULE 3: MAX 2 POSITIONS concurrent โ wider than single-asset specialists
### RULE 4: Verify runtime on every session start
### RULE 5: Never modify parameters without flagging
### RULE 6: HARD_STOP circuit breaker triggers at -25% drawdown
### RULE 7: Hold is the edge. If tempted to exit early, DON'T โ let DSL work.
---
## Why This Agent Exists
Every other Senpi predator (Kodiak, Condor, Wolverine, Polar, Grizzly,
Scorpion, Orca, Mantis, etc.) scans fast, strikes, and rotates out within
1-12 hours. Every one is a short-term momentum hunter.
None of them hold for days. That's a blind spot.
Analysis of pr0br000's Arena account (`0x5b1c...5c0e`, userId M192140)
revealed the fleet is missing an entire archetype:
- **101 trades across 62 assets, $800 โ $2,573 in 27 days (+221%)**
- 36 wins / 64 losses = **36% win rate** (they LOSE more than they win)
- Win dollars: $3,017 / Loss dollars: $960 = **3.14:1 win/loss ratio**
- Top 5 winners held 20-114 hours, drove **90% of gross profit**
- All top 5 winners were LONG, 3-5x leverage, mid-beta assets (WLD, HEMI, MON, XPL)
- Fee drag only 12% (vs 94% on some fleet agents)
Python embeds these findings as design constraints, not suggestions.
---
## Philosophy
**Don't try to win every trade. Try to NOT MISS the one big multi-day winner.**
| Most predators (Kodiak, Condor, etc.) | Python |
|---|---|
| High win rate on small wins | Low win rate, ratio does the work |
| Many trades per day | 1-3 trades per day |
| Hourly holds | Multi-day holds |
| 10x leverage | 3-5x typical, 7x apex |
| Single-asset or thesis-picker | Wide universe (top 50) |
| DSL tightens early | DSL loose early, tight late |
---
## Hard Gates (all must pass)
1. **4h trend structure โ NEUTRAL** โ must have macro direction
2. **1h trend agrees with 4h**
3. **15m momentum confirms direction** (โฅ0.1% in direction)
4. **MACRO TREND GATE** โ no counter-trend against runaway moves >10%
5. **SM opposes = HARD BLOCK** (consensus-backed asymmetry)
6. **RSI filter** โ LONG blocked if RSI > 78, SHORT blocked if RSI < 22
7. **Move-exhaustion penalty** โ active on moves >4% against direction
8. **OI > $1M**, trader_count โฅ 30 (wider than Condor's 50)
9. **Not stablecoin, not XYZ DEX**
---
## Scoring (MIN_SCORE = 8)
| Signal | Points |
|---|---:|
| 4h trend strong (>80% higher-lows/lower-highs) | +4 |
| 4h trend confirmed (60-80%) | +3 |
| 4h trend weak (55-60%) | +2 |
| 1h momentum strong (>1%) | +2 |
| 1h momentum ok (>0.5%) | +1 |
| **Daily candle trend strong (>1%)** | **+2** |
| Daily candle trend ok | +1 |
| **LONG_bias bonus** (pr0br000 insight) | **+1** |
| SM aligned | +2 |
| SM strongly tilted (>70%) | +1 |
| 15m velocity fresh | +1 |
| Funding pays direction | +1 |
| Funding crowded against | -1 |
| Volume ratio โฅ 1.3x | +1 |
| Volume weak (<0.6x) | -1 |
| RSI room (midrange) | +1 |
| MOVE_EXHAUSTION (โฅ6% with us) | -2 |
| MOVE_TIRING (โฅ4% with us) | -1 |
---
## Position Sizing (Kodiak's empirical 7x cap for patience)
| Score | Leverage | Margin |
|---|---:|---:|
| 8-9 | 3x | 25% |
| 10-11 | 5x | 30% |
| **12+** | **7x** | **40%** |
Never exceeds 7x. pr0br000 averaged 4-5x on winners. Higher leverage
destroys the edge via funding + liquidation sensitivity on multi-day holds.
Leverage auto-clamped to per-asset HL max via `strategy_get_asset_trading_limits`.
---
## Exit (DSL) โ Patience Profile
The whole point of Python is to NOT exit early.
| Mechanism | Value | Rationale |
|---|---|---|
| hard_timeout | 5760 min (96h / 4 days) | pr0br000's max hold was 114h |
| weak_peak_cut | 720 min (12h) @ 3% min | Let consolidations develop |
| dead_weight_cut | 360 min (6h) | Don't cut pauses in trend |
| Phase 1 max_loss | 20% | Patient on losers too |
| Phase 1 retrace | 10% | |
| Phase 2 tier 1 | +5% โ 15% lock | LOOSE โ let winners breathe |
| Phase 2 tier 2 | +12% โ 35% | |
| Phase 2 tier 3 | +25% โ 60% | |
| Phase 2 tier 4 | +50% โ 80% | pr0br000 MON/WLD tier |
| Phase 2 tier 5 | +100% โ 90% | Monster winner trail |
| Phase 2 tier 6 | +200% โ 94% | Ultra-rare monster (pr0br000 had 2) |
**Loose early locks are the feature, not the bug.** Aggressive Phase 2
early locking would exit the +1000% tail trades pr0br000 won on.
---
## Runtime Controls
- **Scan interval:** 10 minutes (most predators run 3 min)
- **Max concurrent positions:** 2
- **Daily entry cap:** 3 (dynamic โ hot hand unlocks more, drawdown shrinks)
- **Per-asset cooldown:** 12 hours after exit
- **Same-direction cooldown:** 6 hours after any trade
- **Universe size:** top 50 HL perps by 24h volume (crypto only)
- **LONG bias:** +1 score bonus (pr0br000's top 5 were all LONG)
---
## Install
```bash
mkdir -p /data/workspace/skills/python-strategy/{config,scripts,state}
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/python/runtime.yaml -o /data/workspace/skills/python-strategy/runtime.yaml
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/python/SKILL.md -o /data/workspace/skills/python-strategy/SKILL.md
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/python/config/python-config.json -o /data/workspace/skills/python-strategy/config/python-config.json
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/python/scripts/python-scanner.py -o /data/workspace/skills/python-strategy/scripts/python-scanner.py
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/python/scripts/python_config.py -o /data/workspace/skills/python-strategy/scripts/python_config.py
```
## Configure
```bash
sed -i 's/${WALLET_ADDRESS}/<YOUR_STRATEGY_WALLET>/' /data/workspace/skills/python-strategy/runtime.yaml
sed -i 's/${TELEGRAM_CHAT_ID}/<YOUR_TELEGRAM_CHAT_ID>/' /data/workspace/skills/python-strategy/runtime.yaml
```
## Install runtime + create scanner cron
```bash
openclaw senpi runtime create --path /data/workspace/skills/python-strategy/runtime.yaml
openclaw senpi runtime list
# Create 10-minute cron: python3 /data/workspace/skills/python-strategy/scripts/python-scanner.py
```
---
## Best For
- Operators who want to complement a short-term predator fleet with a
multi-day hold strategy
- Capital sizes $1K+ (Python's 2-position max needs enough margin per slot)
- Users comfortable watching paint dry for days while trades mature
- Users who understand that 36% win rate with a 3:1 ratio beats 60% with
a 1.5:1 ratio
## Not For
- Operators wanting fast rotation or daily closures
- Capital below the ~$100 platform floor (can't open a position at all; above that, sizing scales via `margin_pct`)
- Users uncomfortable with multi-day holds through drawdowns
---
## Changelog
### v1.0 (2026-04-17) โ FIRST SHIP
- New agent, new archetype
- Full Kodiak-family architecture (4-timeframe gates, SM HARD BLOCK,
move-exhaustion, RSI filter)
- Wide universe (top 50 by volume, crypto only)
- MIN_SCORE 8 (lower than Condor's 11 โ casts wider net)
- Max leverage 7x (lower than family's 10x)
- Max 2 concurrent positions
- DSL profile: 96h hard timeout, 12h weak peak, 6h dead weight
- Phase 2 tiers extended to +200% lock for monster-winner trails
- LONG-bias +1 scoring bonus
- Derived from pr0Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.