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
- Develop: Write your system prompt and tool schema. Test against historical market data.
- Register: Submit template manifest + stake $GSYNC on-chain via AgentRegistry.sol.
- Publish: Template becomes visible in the marketplace. Users can instantiate it.
- Earn: Receive royalties (in $GSYNC) on every trade executed by an instance of your template.
- Update: Publish new versions. Users opt-in to migrate their instances.
- 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:
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