Release Notes: v0.2.0¶
Release Date: 2026-04-27
Overview¶
polymarket-go v0.2.0 adds OmniAgent integration, enabling prediction market tools to be compiled directly into omniagent-based AI agents. This release also includes full Polymarket SDK integration for trading support and an improved CLI with Cobra subcommands.
Highlights¶
- OmniAgent Integration: Compiled skill wrapper for embedding prediction market tools in omniagent
- Full SDK Integration: polymarket-go-sdk v1.1.2 for comprehensive trading support
- Improved CLI: Migrated to Cobra with subcommand structure and superforecaster analysis
New Features¶
OmniAgent Compiled Skill¶
polymarket-go can now be used as a compiled skill in omniagent-based agents:
import (
"github.com/plexusone/omniagent/agent"
predictskill "github.com/grokify/polymarket-go/omniagent/skill"
)
// Create predictions skill
predictSkill := predictskill.New(predictskill.Config{})
// Register with omniagent
agent, err := agent.New(config,
agent.WithCompiledSkill(predictSkill),
)
Tools provided:
| Tool | Description |
|---|---|
get_markets |
Fetch active prediction markets with filters (liquidity, category, text search) |
get_orderbook |
Get order book for a market token with mid price and spread |
CLI Improvements¶
The CLI now uses Cobra with a cleaner subcommand structure:
# Run demo with live market data
polymarket-agent demo --limit 10
# Analyze markets with superforecaster
polymarket-agent markets --analyze
# Show specific market
polymarket-agent markets show <market-id>
Superforecaster Analysis¶
New --analyze flag generates probability estimates using the superforecaster agent:
Output includes: - Market question and current price - AI-generated probability estimate - Expected edge calculation - Confidence assessment
Usage Example¶
With grokify-omniagent¶
import (
investskill "github.com/grokify/agent-team-invest/omniagent/skill"
predictskill "github.com/grokify/polymarket-go/omniagent/skill"
)
// Register both skills
investSkill, _ := investskill.New(investskill.Config{...})
predictSkill := predictskill.New(predictskill.Config{})
commands.RegisterAgentOption(agent.WithCompiledSkill(investSkill))
commands.RegisterAgentOption(agent.WithCompiledSkill(predictSkill))
Standalone Usage¶
import "github.com/grokify/polymarket-go/omniagent/skill"
s := skill.New(skill.Config{})
// Get tool definitions
tools := s.Tools()
for _, t := range tools {
fmt.Printf("%s: %s\n", t.Name(), t.Description())
}
// Call a tool directly
result, err := tools[0].Call(ctx, map[string]any{
"limit": 10,
"min_liquidity": 50000,
})
Dependencies¶
| Module | Version | Change |
|---|---|---|
github.com/plexusone/omniagent |
v0.7.0 | New |
github.com/plexusone/omniskill |
v0.7.0 | New |
github.com/GoPolymarket/polymarket-go-sdk |
v1.1.2 | Updated |
Migration Guide¶
From v0.1.0¶
No breaking changes. The new omniagent skill is an additive feature.
To use the new compiled skill:
-
Import the skill package:
-
Create and register with omniagent:
CLI Changes¶
The CLI structure changed from flags to subcommands:
| v0.1.0 | v0.2.0 |
|---|---|
--demo |
demo |
--demo-limit=10 |
demo --limit 10 |
Known Limitations¶
- Order placement still pending polymarket-kit integration
- No authentication for trading operations yet
- WebSocket streaming not yet implemented