How galleonlabs/hypergrok-trading-desk works
HyperGrok is an AI-assisted Hyperliquid trading desk delivered as role profiles and portable skills, with a small set of read-only Python tools. The documented user workflow moves an idea through evidence, risk sign-off, explicit user approval, a single execution, exchange reconciliation, and review; separate capabilities cover market briefs, research/backtesting, monitoring, and desk readiness. Source excerpts show the read-only tools and shared CLI contract, but not the role or skill implementations, so those links reflect README-documented behavior and are cited there.
Main entry points: desk-lead.md Desk Lead · execution-trader.md Execution Trader · opening_bell.py Opening snapshot · cli_contract.py CLI contract
Components 19
Desk workflow
- Desk Lead
agents/desk-lead.md - Market Analyst
agents/market-analyst.md - Research Analyst
agents/research-analyst.md - Strategist
agents/strategist.md - Risk Manager
agents/risk-manager.md - Execution Trader
agents/execution-trader.md - Trade Reviewer
agents/trade-reviewer.md - Trade lifecycle
skills/desk-trade-lifecycle/SKILL.md
Market and research
- Market data
skills/hyperliquid-market-data/SKILL.md - Strategy lab
skills/desk-strategy-lab/SKILL.md - Dataset collect and verify
scripts/research_dataset.py
Read-only tools
- Opening snapshot
scripts/opening_bell.py - Desk readiness
scripts/desk_doctor.py - Stop cost estimate
scripts/stop_cost.py - CLI contract
scripts/cli_contract.py
Exchange integration
- Hyperliquid API
- WebSocket monitoring
skills/hyperliquid-websocket/SKILL.md - Exchange write gate
hooks/exchange_write_gate.py
Other components
- User
Connections 27
- User → Desk Lead: starts desk
README.md - Desk Lead → Market Analyst: requests brief
README.md - Desk Lead → Research Analyst: requests research
README.md - Desk Lead → Strategist: develops rules
README.md - Desk Lead → Risk Manager: requests sign-off
README.md - Risk Manager → User: presents ticket
README.md - User → Execution Trader: approves ticket
README.md - Execution Trader → Hyperliquid API: sends order
README.md - Hyperliquid API → Execution Trader: returns record
README.md - Execution Trader → Trade Reviewer: provides outcome
README.md - Market Analyst → Market data: uses
README.md - Research Analyst → Strategy lab: uses
README.md - Strategist → Dataset collect and verify: requests history
README.md - Market Analyst → Opening snapshot: gets snapshot
README.md - Desk Lead → Desk readiness: checks readiness
README.md - Risk Manager → Stop cost estimate: estimates stop cost
scripts/stop_cost.py - Opening snapshot → Hyperliquid API: reads market data
scripts/opening_bell.py - Dataset collect and verify → Hyperliquid API: reads history
scripts/research_dataset.py - Desk readiness → Hyperliquid API: checks connectivity
scripts/desk_doctor.py - Opening snapshot → CLI contract: uses
scripts/opening_bell.py - Dataset collect and verify → CLI contract: uses
scripts/research_dataset.py - Desk readiness → CLI contract: uses
scripts/desk_doctor.py - Stop cost estimate → CLI contract: uses
scripts/stop_cost.py - Stop cost estimate → Opening snapshot: reuses market logic
scripts/stop_cost.py - User → WebSocket monitoring: requests monitoring
README.md - WebSocket monitoring → Hyperliquid API: subscribes feed
README.md - Execution Trader → Exchange write gate: write backstop