hedge

hedge is a skill for Claude Code from Degenapetrader/EVClaw. It costs 42 tokens per session (367 once invoked), scanned A, original, MIT.

A deterministic command for planning a Bitcoin or Ethereum hedge on Hyperliquid, a cryptocurrency trading platform. It calculates an opposing trade, offers fast and resting options, and saves the plan for a later execute command.

In plain words
What is it for?
Use it to reduce or neutralize the portfolio's current BTC or ETH exposure, choose a hedge percentage, and prepare commands for execution.
Why use it?
It turns a current net position into a predefined hedge plan without relying on an AI decision for the sizing logic.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/degenapetrader/evclaw/hedge
Any agent
npx skills add Degenapetrader/EVClaw --skill hedge
Clone the repo
git clone --depth 1 https://github.com/Degenapetrader/EVClaw

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hedge

README.md
[![agentmods](https://agentmods.dev/badge/skills/degenapetrader/evclaw/hedge.svg)](https://agentmods.dev/skills/degenapetrader/evclaw/hedge)
Your own site
<a href="https://agentmods.dev/skills/degenapetrader/evclaw/hedge"><img src="https://agentmods.dev/badge/skills/degenapetrader/evclaw/hedge.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00367
Opus 5 $0.00021 $0.00183
Sonnet 5 $0.00008 $0.00073
Haiku 4.5 $0.00004 $0.00037

Measured 6d ago against content hash 71c1abf4503b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hedge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_hedge.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

openclaw_skills/hedge/SKILL.md · 40 lines

What it actually says

/hedge (deterministic)

Goal: when the user types /hedge, propose one conservative hedge trade sized to reduce HL net notional by a target percent.

Default: 100% (neutralize). The user can choose a smaller hedge (e.g., 50%).

Run

EVCLAW_ROOT="${EVCLAW_ROOT:-$HOME/.openclaw/skills/EVClaw}" \
python3 "$EVCLAW_ROOT/openclaw_skills/hedge/scripts/generate_hedge.py"

Options:

  • --symbol BTC|ETH (default BTC)
  • --pct 100 (default 100; hedge size as % of current HL net notional)
  • --db ... --runtime ...

Logic (no LLM)

  • Reads latest portfolio snapshot (HL net notional + live equity) from the same context sources as /trade.
  • Chooses hedge direction opposite current net exposure.
  • Sizes hedge notional to ~50% of current net notional (with a safety cap).
  • Builds FAST + RESTING options and stores a manual plan for /execute.

Output formatting (Telegram)

When replying, always use true one-click copy for Telegram: EACH execute command gets its own single-line code block:

/execute <ID> chase
/execute <ID> limit
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 40 lines · 42 tokens per session scan A 71c1abf4503b

Subscribe to this mod's changes

hedge is a skill published in the GitHub repository Degenapetrader/EVClaw (40 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 367 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.