NewThe model is commodity. The harness is moat.

Two agents.
Five messages.
One self-improving runtime.

SparkCo Harness is an open-source dual-agent runtime. A local pi-agent and a Cloudflare Worker pi-agent negotiate capabilities, share state, and self-modify their own code as they work. Drops in as a Claude Code skill.

$1–2/dayto run5-messageprotocolSelf-modifiesvia manifestsApache 2.0
$npm i -g @spfunctions/harness
Architecture
Local
pi-agent
daemon · npm/git
Cloudflare
Worker
SSE relay · KV / DO
Remote
pi-agent
daemon · scheduler
5-message protocol
capability-requestcapability-readydatastate-syncnegotiate

Self-modifies based on tasks. Each agent rewrites its own manifest as new capabilities are negotiated. Versioned. Rollback-able.

Built by Sparkco

Open infrastructure for autonomous agents.

Three pieces. One thesis: agents need a runtime, a way to talk to each other, and a way to work with data. All open source. All shipping.

LIVE

Harness

Dual-agent runtime

Dual-agent runtime. Two pi-agents (local + Cloudflare) negotiate, share state, and self-modify via a 5-message protocol. $1/day to run.

Built on pi runtime + Cloudflare Workers

$npm i -g @spfunctions/harness
COMING Q2 2026

Stitch

The agent messaging layer

The agent messaging layer. Share context and data between agents in real time — like WeChat for autonomous agents. Built on WebRTC + Cloudflare Durable Objects.

Built on WebRTC + Cloudflare Durable Objects

No spam. One email when Stitch ships.

LIVE

BI

SQL on CSV / Parquet / JSON

Agent-friendly BI CLI. Query CSV/JSON/Parquet with SQL via DuckDB. 4 commands: head, schema, query, convert.

Built on DuckDB

$npm i -g @spfunctions/bi

Why CLI, not just MCP?

Read the full comparison
0 tokens
vs 500–2k per tool
~100% reliability
vs ~72% MCP success
Direct execution
no JSON-RPC round trip
Unix pipes
composable by default

Browse 69+ CLI tools

The taste-curated directory. Filter by category, sorted by Sparkco-first then stars.

@spfunctions/cli

Sparkco

50 commands: scan, edges, watch, agent mode. Kalshi + Polymarket.

npm i -g @spfunctions/cli
4TypeScript

polymarket-sports-mm

Sparkco

Sports market making bot for Polymarket.

git clone https://github.com/spfunctions/polymarket-sports-mm
1Python

@spfunctions/prediction-market-mcp

Sparkco

MCP server with 4 tools. Works with Claude, Cursor, VS Code.

npx @spfunctions/prediction-market-mcp
TypeScript

simplefunctions-ai

Sparkco

Python SDK. World model, 30k+ markets, thesis engine.

pip install simplefunctions-ai
Python

prediction-market-mcp-example

Sparkco

Minimal MCP server example for prediction market data.

git clone https://github.com/spfunctions/prediction-market-mcp-example
TypeScript

kalshi-price-monitor

Sparkco

Real-time price monitoring and alerts for Kalshi markets.

git clone https://github.com/spfunctions/kalshi-price-monitor
TypeScript

prediction-market-context

Sparkco

Structured prediction market context for any LLM.

git clone https://github.com/spfunctions/prediction-market-context
TypeScript

causal-tree-decomposition

Sparkco

Standalone causal tree engine. Zero dependencies.

git clone https://github.com/spfunctions/causal-tree-decomposition
TypeScript

create-prediction-market-agent

Sparkco

Scaffold agent projects: LangChain, CrewAI, OpenAI, vanilla TS.

npx create-prediction-market-agent
TypeScript

world-state-action

Sparkco

GitHub Action for CI/CD world state injection.

uses: spfunctions/world-state-action@v1
TypeScript

langchain-prediction-markets

Sparkco

LangChain tools for prediction market data.

npm i langchain-prediction-markets
TypeScript

openai-agents-prediction-markets

Sparkco

OpenAI function-calling tools for prediction markets.

npm i openai-agents-prediction-markets
TypeScript

vercel-ai-prediction-markets

Sparkco

Vercel AI SDK tools for prediction markets.

npm i vercel-ai-prediction-markets
TypeScript

crewai-prediction-markets

Sparkco

CrewAI tools for prediction markets.

pip install crewai-prediction-markets
Python

agent-world-awareness

Sparkco

One-line world awareness for any agent.

npm i agent-world-awareness
TypeScript

prediction-market-edge-detector

Sparkco

Edge detection across 30k+ markets.

git clone https://github.com/spfunctions/prediction-market-edge-detector
TypeScript

@spfunctions/harness

Sparkco

Dual-agent runtime. Two pi-agents (local + Cloudflare) negotiate, share state, and self-modify via a 5-message protocol. $1/day to run.

npm i -g @spfunctions/harness
TypeScript

@spfunctions/bi

Sparkco

Agent-friendly BI CLI. Query CSV/JSON/Parquet with SQL via DuckDB. 4 commands: head, schema, query, convert.

npm i -g @spfunctions/bi
TypeScript

LangChain

Most adopted agent framework. Chains, tools, memory.

pip install langchain
126kPython

OpenHands

Autonomous software engineer. Code, test, deploy.

pip install openhands
50kPython

Browser Use

Open-source browser agent library. See, click, type.

pip install browser-use
50kPython

MetaGPT

Multi-agent software company simulation.

pip install metagpt
45kPython

CrewAI

Role-based multi-agent crews with delegated tasks.

pip install crewai
45kPython

GitHub CLI (gh)

Repos, PRs, issues, Actions — all from the terminal.

brew install gh
37kGo

AutoGen

Multi-agent conversations by Microsoft Research.

pip install autogen
35kPython

Cline

VS Code extension with terminal access. Autonomous coding.

code --install-extension saoudrizwan.claude-dev
30kTypeScript

DuckDB

In-process SQL OLAP database. Parquet, CSV, JSON out of the box.

brew install duckdb
28kC++

Aider

Git-aware AI pair programmer in your terminal.

pip install aider-chat
25kPython

DSPy

Programming, not prompting. Optimized LM pipelines.

pip install dspy-ai
20kPython

SWE-Agent

Resolves real GitHub issues autonomously.

pip install swe-agent
15kPython

OpenAI Agents SDK

Official OpenAI agent framework with function calling.

pip install openai-agents
15kPython

Vercel CLI

Deploy, manage, and inspect Vercel projects.

npm i -g vercel
12kTypeScript

pgcli

Postgres CLI with auto-complete and syntax highlighting.

pip install pgcli
12kPython

Skyvern

Vision-driven browser navigation for AI agents.

pip install skyvern
10kPython

Pydantic AI

Type-safe agent API built on Pydantic.

pip install pydantic-ai
10kPython

dbt

SQL-first data transformation framework. ELT best practices.

pip install dbt-core
10kPython

xsv

Fast CSV toolkit. Index, search, split, join, stats.

cargo install xsv
10kRust

Datasette

Instant JSON API and web UI for any SQLite database.

pip install datasette
9.5kPython

Miller (mlr)

Like awk, sed, cut for CSV, TSV, and JSON. Stream processing.

brew install miller
9.0kGo

usql

Universal SQL CLI. Postgres, MySQL, SQLite, DuckDB, 40+ drivers.

go install github.com/xo/usql@latest
9.0kGo

Mastra

TypeScript-first agent framework with built-in tools.

npm i mastra
8.0kTypeScript

VisiData

Terminal spreadsheet multitool. Explore, sort, filter, pivot.

pip install visidata
8.0kPython

gogcli

Google Workspace CLI — Docs, Sheets, Drive, Calendar.

brew install gogcli
6.7kGo

csvkit

Suite of CLI tools for converting to and working with CSV.

pip install csvkit
6.0kPython

Stripe CLI

Payments, webhooks, and Stripe resource management.

brew install stripe/stripe-cli/stripe
5.0kGo

Smolagents

HuggingFace minimal agents. Simple, composable.

pip install smolagents
5.0kPython

OctoSQL

Query CSV, JSON, Parquet, MySQL, Postgres with a single SQL.

go install github.com/cube2222/octosql/cmd/octosql@latest
5.0kGo

hledger

Plain text double-entry accounting. Scriptable, composable.

brew install hledger
4.4kHaskell

Playwright MCP

Playwright browser automation exposed as MCP tools.

npx @anthropic/playwright-mcp
3.0kTypeScript

prediction-market-analysis

Largest public dataset + analysis framework for prediction markets.

git clone https://github.com/nweii/prediction-market-analysis
2.8kPython

ElevenLabs CLI

TTS, STT, voice cloning, and audio generation.

pip install elevenlabs
2.0kPython

sqlite-utils

CLI for manipulating SQLite. Insert, transform, query, extract.

pip install sqlite-utils
2.0kPython

pmxt

CCXT for prediction markets. Unified API across exchanges.

pip install pmxt
1.4kPython

Supabase CLI

Database, Auth, Storage, and Edge Functions management.

brew install supabase/tap/supabase
1.0kGo

Polymarket Agents

Official Polymarket agent framework for autonomous trading.

git clone https://github.com/Polymarket/agents
800Python

kalshi-ai-trading-bot

AI trading bot for Kalshi with Grok-4 integration.

git clone https://github.com/elizaOS/kalshi-ai-trading-bot
342Python

polymarket-mcp-server

45-tool MCP server for Polymarket data and trading.

git clone https://github.com/berlinbra/polymarket-mcp-server
335TypeScript

polybot

Reverse-engineer strategies, find arbitrage on Polymarket.

git clone https://github.com/polybot-nexus/polybot
200Python

PredictOS

All-in-one multi-agent framework for prediction markets.

git clone https://github.com/PredictOS/predictos
200Python

dr-manhattan

CCXT for prediction markets with market-making support.

pip install dr-manhattan
181Python

polyterm

Polymarket in your terminal. Browse and trade from CLI.

cargo install polyterm
162Rust

CloddsBot

Autonomous AI agent trading across 1000+ markets.

git clone https://github.com/CloddsBot/cloddsbot
158Python

polymarket-pipeline

Event-driven AI news-to-trade pipeline for Polymarket.

git clone https://github.com/polymarket-pipeline/pipeline
154Python

gnosis/prediction-market-agent

AI agent that bets on prediction markets to benchmark reasoning.

git clone https://github.com/gnosis/prediction-market-agent
150Python

kalshi-trading-bot-cli

AI-native Kalshi CLI with Kelly sizing and risk management.

git clone https://github.com/kalshi-trading/bot-cli
149Python

kalshi-python

Official Kalshi Python SDK for market data and trading.

pip install kalshi-python
100Python

gnosis/pm-agent-tooling

Benchmark and deploy prediction market agents.

pip install prediction-market-agent-tooling
100Python

crm-cli

CLI customer relationship management. Contacts, deals, notes.

pip install crm-cli
72Python

AgentMail CLI

Email inboxes and transactional email for AI agents.

pip install agentmail
Python

Latest from the blog

Insights on AI agents, prediction markets, and developer tools

Automated Prediction Market Trading: CLI Agents on Kalshi

A practical guide for developers and traders on using CLI-based agents to automate order placement on Kalshi prediction markets. Covers thesis-driven trading logic, real tickers, and the agentic runtime behind production-grade automation.

Read

Prediction Market Terminal Dashboard: Bloomberg-Style Monitoring for Kalshi Traders

A practical guide to building a professional-grade terminal dashboard for monitoring Kalshi prediction markets in real time. Covers CLI tooling, agentic scanning, position tracking, and thesis-driven trade execution.

Read

Prediction Market Edge Detection: How to Find Mispriced Contracts on Kalshi

A systematic approach to finding mispriced prediction market contracts using causal models, orderbook analysis, and executable edge calculations.

Read

Thesis-Driven Prediction Market Trading: Why Causal Models Beat Signal Chasing

Signal-based bots react to noise. Thesis-driven agents understand why prices should move. Here's how causal models change prediction market trading.

Read

AI Agents for Prediction Markets: How SimpleFunctions Connects Claude to Kalshi

How to connect your AI agent to prediction market data using SimpleFunctions MCP server — get context, inject signals, and trade on Kalshi.

Read

How to Build a Prediction Market Trading Bot with SimpleFunctions CLI

Build a prediction market bot that scans for edges, monitors thesis confidence, and executes trades on Kalshi — all from the terminal.

Read

Know a CLI tool we're missing?

Submit it and we'll add it to the directory. Open-source contributions welcome.

CC0 licensed · Community-maintained · 70+ tools and growing