hyperliquid-risk

hyperliquid-risk is a command for coding agents from aegntic/cldcde. It costs 32 tokens per session (3,235 once invoked), scanned A, original, MIT.

A real-time safety monitor for live perpetual trading positions on Hyperliquid, a cryptocurrency trading platform.

In plain words
What is it for?
Use it to monitor positions, apply risk limits, assess portfolio risks, notify people through several channels, and liquidate positions during emergencies.
Why use it?
It watches trading risk and can enforce limits, send alerts, pause activity, or shut down positions when safety rules require it.

Command

Part of the hyperliquid-risk-monitor plugin — 1 command shipped together

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 commands/aegntic/cldcde/hyperliquid-risk
Clone the repo
git clone --depth 1 https://github.com/aegntic/cldcde

Or install hyperliquid-risk-monitor, the plugin that ships this one along with the rest of its 1 command.

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 hyperliquid-risk

README.md
[![agentmods](https://agentmods.dev/badge/commands/aegntic/cldcde/hyperliquid-risk.svg)](https://agentmods.dev/commands/aegntic/cldcde/hyperliquid-risk)
Your own site
<a href="https://agentmods.dev/commands/aegntic/cldcde/hyperliquid-risk"><img src="https://agentmods.dev/badge/commands/aegntic/cldcde/hyperliquid-risk.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,235 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 $0.00032 $0.03235
Opus 5 $0.00016 $0.01618
Sonnet 5 $0.00006 $0.00647
Haiku 4.5 $0.00003 $0.00324

Measured 3d ago against content hash fb1c127e6db1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hyperliquid-risk 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 3d ago.

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.

plugins/hyperliquid-risk-monitor/commands/hyperliquid-risk.md · 360 lines

How it starts

The opening of the file, as written. The whole thing — 360 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hyperliquid Risk Monitor by ae.ltd

ᵖᵒʷᵉʳᵉᵈ ᵇʸ ᵃᵉᵍⁿᵗᶦᶜ ᵉᶜᵒˢʸˢᵗᵉᵐˢ ʳᵘᵗʰˡᵉˢˢˡʸ ᵈᵉᵛᵉˡᵒᵖᵉᵈ ᵇʸ ae.ˡᵗᵈ

MISSION CRITICAL - Real-time risk monitoring and safety system for live Hyperliquid perpetual trading operations with automated alerts, circuit breakers, and emergency shutdown capabilities.

⚠️ CRITICAL SAFETY WARNING

This system manages REAL MONEY trading positions and is classified as MISSION CRITICAL. All actions include multiple redundant safety checks and default to capital preservation over profit maximization. Test thoroughly in simulation environments before live deployment.

Core Capabilities

  • Real-Time Position Monitoring: Continuous tracking of all live positions with portfolio health metrics
  • Automated Risk Enforcement: Multi-layer risk limit enforcement with circuit breaker protection
  • Emergency Shutdown System: One-click liquidation with market-optimized unwinding procedures
  • Multi-Channel Alerts: SMS, email, webhook, and in-app notifications with escalation procedures
  • Advanced Risk Analytics: VaR calculation, stress testing, correlation analysis, and liquidity assessment
  • Multi-Agent Integration: Seamless coordination with trading bots and execution systems
  • Compliance Reporting: Complete audit trails and regulatory compliance documentation

Commands

/hyperliquid-risk monitor [parameters]

Launch comprehensive real-time risk monitoring dashboard with position tracking and analytics.

Usage Examples:

# Start full risk monitoring system
/hyperliquid-risk monitor action=monitor risk_configuration='{"risk_per_trade": 0.02, "max_concurrent_trades": 5, "max_portfolio_drawdown": 0.10}'

# Monitor with custom alert configuration
/hyperliquid-risk monitor action=monitor alert_configuration='{"sms_enabled": true, "email_enabled": true, "alert_thresholds": {"portfolio_drawdown_critical": 0.08}}'

# Monitor with circuit breaker protection
/hyperliquid-risk monitor action=monitor circuit_breaker_config='{"portfolio_drawdown_levels": [0.05, 0.10, 0.15], "volatility_multiplier": 2.5}'

Read the full file on GitHub · 360 lines

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. 3d ago First seen · 360 lines · 32 tokens per session scan A fb1c127e6db1

Subscribe to this mod's changes

hyperliquid-risk is a command published in the GitHub repository aegntic/cldcde (11 stars, last pushed 7d ago), licensed MIT. It adds 32 tokens to every session and 3,235 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.