How gensyn-ai/gensyn-delphi-skills works
Delphi is a TypeScript CLI/toolkit for Gensyn information markets, with a distinct agent-competition network. Its principal workflow is to discover markets, inspect current prices, calculate an agent-vs-market edge, then quote or execute trades and manage resulting positions. The read-only Agent TUI combines SDK snapshots with local edge and event logs. README capabilities also include history, redemptions, liquidation, allowances, balances and funding bridges. Links below rely on excerpts, source-index references, or README statements; unsampled implementations are represented by their exact scripts paths, without asserting unverified internal calls.
Main entry points: client.ts SDK client and networks · app.tsx Dashboard shell · compute-edge.ts Compute edge · screens.tsx Dashboard screens
Components 25
Market research
- Browse markets
scripts/list-markets.ts - Market details
scripts/get-market.ts - Trade quotes
scripts/quote-buy.ts - Compute edge
scripts/compute-edge.ts
Trading and positions
- Buy and sell
scripts/buy-shares.ts - Token approval
scripts/token-approval.ts - Positions
scripts/list-positions.ts - Trade history
scripts/list-recent-trades.ts - Redeem winnings
scripts/redeem.ts - Liquidate positions
scripts/liquidate.ts - SDK client and networks
scripts/client.ts
Agent dashboard
- Dashboard entry
scripts/agent-tui/index.tsx - Dashboard shell
scripts/agent-tui/app.tsx - Snapshot and metrics
scripts/agent-tui/data.ts - Dashboard screens
scripts/agent-tui/screens.tsx - UI components
scripts/agent-tui/ui.tsx - Display formatting
scripts/agent-tui/format.ts - Agent edge log
scripts/agent-tui/edges.ts - Agent event log
scripts/agent-tui/events.ts - Log agent event
scripts/log-event.ts
Wallet and funding
- Wallet balances
scripts/get-wallet-balances.ts - Testnet and mainnet bridges
scripts/bridge-usdc-to-gensyn-mainnet.ts - Testnet faucet
scripts/testnet-faucet.ts
Other components
- Agent or user
- Delphi SDK and chain
Connections 36
- Agent or user → Browse markets: browse
README.md - Agent or user → Market details: inspect
README.md - Agent or user → Trade quotes: request quote
README.md - Agent or user → Compute edge: assess edge
README.md - Agent or user → Buy and sell: trade
README.md - Agent or user → Positions: view positions
README.md - Agent or user → Trade history: browse history
README.md - Agent or user → Redeem winnings: redeem
README.md - Agent or user → Liquidate positions: liquidate
README.md - Agent or user → Dashboard entry: launch
README.md - Agent or user → Wallet balances: check balances
README.md - Agent or user → Testnet and mainnet bridges: fund wallet
README.md - Browse markets → SDK client and networks: uses client
scripts/list-markets.ts - Market details → SDK client and networks: uses client
scripts/get-market.ts - Trade quotes → SDK client and networks: uses client
scripts/quote-buy.ts - Buy and sell → SDK client and networks: uses client
scripts/buy-shares.ts - Token approval → SDK client and networks: uses client
README.md - Positions → SDK client and networks: uses client
scripts/list-positions.ts - Trade history → SDK client and networks: uses client
scripts/list-recent-trades.ts - Redeem winnings → SDK client and networks: uses client
scripts/redeem.ts - Liquidate positions → SDK client and networks: uses client
scripts/liquidate.ts - SDK client and networks → Delphi SDK and chain: configures
scripts/client.ts - Compute edge → SDK client and networks: reads market
scripts/compute-edge.ts - Compute edge → Agent edge log: appends edge
scripts/compute-edge.ts - Dashboard entry → Dashboard shell: starts
scripts/agent-tui/index.tsx - Dashboard shell → Snapshot and metrics: loads snapshot
scripts/agent-tui/app.tsx - Dashboard shell → Agent edge log: reads edges
scripts/agent-tui/app.tsx - Dashboard shell → Agent event log: reads events
scripts/agent-tui/app.tsx - Dashboard shell → Dashboard screens: renders
- Dashboard screens → UI components: uses components
scripts/agent-tui/screens.tsx - Dashboard screens → Display formatting: formats values
scripts/agent-tui/screens.tsx - Snapshot and metrics → Agent edge log: joins edge data
scripts/agent-tui/data.ts - Log agent event → Agent event log: appends events
scripts/log-event.ts - Wallet balances → SDK client and networks: uses client
scripts/get-wallet-balances.ts - Testnet and mainnet bridges → SDK client and networks: gets signer
scripts/bridge-usdc-to-gensyn-mainnet.ts - Testnet faucet → SDK client and networks: uses client
README.md