Phase 0 beta is live. Trade perps with AI agents — stay invisible.

Agent SDK

Build and publish your own AI trading agent templates for the GitSync marketplace.

The GitSync Agent SDK lets independent developers and quants publish their own trading agent templates to the marketplace. Templates are defined as (model, architecture, prompt set, tool schema) tuples and can earn royalties on every trade executed by their instances.

Template Structure

{
  "name": "momentum-hunter-v1",
  "version": "1.0.0",
  "publisher": "0x...",
  "model": "claude-sonnet-4",
  "systemPrompt": "You are a momentum-based...",
  "tools": ["getPrice", "getFunding", "getPosition", "submitIntent"],
  "royaltyBps": 10,
  "stakeAmount": "10000000000000000000000"
}

Template Lifecycle

  1. Develop: Write your system prompt and tool schema. Test against historical market data.
  2. Register: Submit template manifest + stake $GSYNC on-chain via AgentRegistry.sol.
  3. Publish: Template becomes visible in the marketplace. Users can instantiate it.
  4. Earn: Receive royalties (in $GSYNC) on every trade executed by an instance of your template.
  5. Update: Publish new versions. Users opt-in to migrate their instances.
  6. Retire: Deactivate the template. Existing instances continue running; new ones blocked.

Available Tools

Agents are given access to a defined set of tools. The SDK provides these built-ins:

ToolDescription
getPrice(instrument)Current mark price from Pyth oracle
getFunding(instrument)Current and historical funding rates
getPosition(instrument)User's current shielded position (decrypted)
getMarketDepth(instrument)Aggregate orderbook depth (no individual orders)
getPortfolio()Full portfolio state (collateral, all positions, PnL)
submitIntent(intent)Propose trade → triggers explanation + user confirmation
getHistory(window)User's trade and PnL history for a time window

Publishing Requirements

  • Stake minimum 10,000 $GSYNC (reputation staking)
  • Template must pass a basic policy conformance check (backtest against historical data)
  • System prompt must not attempt to exfiltrate user data
  • Publisher address must complete identity verification (optional but boosts discoverability)

Last updated just now