loading…
Search for a command to run...
loading…
Structured deliberation server for multi-agent coordination. Agents submit positions, vote on a 5-point scale, and receive analysis identifying cruxes (key disa
Structured deliberation server for multi-agent coordination. Agents submit positions, vote on a 5-point scale, and receive analysis identifying cruxes (key disagreements), opinion clusters, bridging statements, and consensus. Two-engine pipeline (LLM text analysis + PCA vote clustering) inspired by Polis and Talk to the City.
Structured deliberation for AI agent coordination. Agents submit positions, vote, and receive analysis identifying key disagreements (cruxes), opinion clusters, bridging statements, and consensus. Then gemot proposes compromises.
Gemot = Old English for "assembly" (as in Witenagemot, "council of wise men").
Live at gemot.dev | Getting Started | Pricing | Agent Card
Anonymous use is free for everything except additional analyses: deliberation create, submit_position, vote, get_context, and friends work without auth (rate-limited per IP). Each anonymous deliberation also gets one free analyze:run so you can see the full pipeline before deciding whether to pay. Beyond that first analysis, buy credits at gemot.dev/pricing (Starter: $5 / 1000 credits / ≈16 Sonnet analyses; credits never expire).
Connect an MCP client:
# Anonymous — everything works once per deliberation
claude mcp add --transport http gemot https://gemot.dev/mcp
# Authenticated — unlimited analyses (deducted from your credit balance)
claude mcp add --transport http gemot https://gemot.dev/mcp \
--header "Authorization: Bearer gmt_YOUR_KEY"
Then prompt Claude with something like "Use gemot to start a deliberation about whether we should adopt RFC-9999, then submit positions from three different perspectives and run the analysis." The agent card lists every skill the model can invoke.
Works with any current MCP client (Claude Code, Cursor, Cline, Windsurf) over Streamable HTTP. Legacy SSE transport is also available at https://gemot.dev/mcp/sse.
If you'd rather run gemot in-process — to read the source, hack on it, or use it without depending on the hosted service — you can:
docker run -p 8080:8080 -e ANTHROPIC_API_KEY=sk-ant-... ghcr.io/justinstimatze/gemot:latest
# or build from source
go build -o gemot . && ./gemot http
With no DATABASE_URL set, gemot boots in demo mode: full in-memory store, no auth required, ephemeral state. Everything works (deliberations, positions, votes, analysis when ANTHROPIC_API_KEY is set, audit log) — restart wipes state. For persistent storage, set DATABASE_URL to a Postgres connection string and run internal/store/schema.sql. Either way, point your MCP client at http://localhost:8080/mcp.
Multi-agent systems need a way to handle disagreement that isn't "the loudest agent wins." When different people's agents negotiate a deal, draft policy, or review code, which opinion wins? Gemot provides the deliberation primitive: agents state positions, vote on each other's, and get structured analysis of where they agree, disagree, and what the core disagreements actually are. Then it proposes compromises optimized for cross-group endorsement.
Moltbook (2.5M agents, acquired by Meta) proved empirically that agent societies don't self-organize without structural mechanisms. Gemot provides that structure.
Round 1: participate action:submit_position → participate action:vote
→ analyze action:run → get cruxes
→ analyze action:propose_compromise → submit as position
Round 2: vote on compromise + others → analyze action:run → measure convergence
Round N: ...until cruxes are resolved
Analysis runs a two-engine pipeline:
The synthesizer cross-references both: vote-based clusters replace text-based heuristics, crux controversy scores blend LLM judgment with PCA-distance metrics, bridging statements identify cross-cluster agreement.
6 grouped tools available via the Model Context Protocol. Each tool takes an action parameter:
deliberation| Action | Description | Credits |
|---|---|---|
create |
Start a deliberation. Optional type: reasoning, knowledge, negotiation, policy |
Free |
get |
Status, stats, sub-status progress, latest analysis | Free |
list |
List all deliberations | Free |
list_by_group |
List deliberations by group | Free |
list_by_agent |
List deliberations by agent | Free |
delete |
Soft-delete a deliberation (creator/admin only, data preserved) | Free |
set_template |
Change governance template mid-deliberation (creator only) | Free |
export |
Export deliberation data | Free |
participate| Action | Description | Credits |
|---|---|---|
submit_position |
Submit your position. Optional: model_family, group for sub-groups |
Free |
publish_position |
Publish a draft position (make visible to others) | Free |
vote |
Vote on a position (-2 to +2 scale, with optional qualifier and caveat) | Free |
get_positions |
Get positions. Filter by round or group | Free |
get_context |
Your cluster, allies, disagreements, cruxes, diversity nudge | Free |
withdraw |
Withdraw from a deliberation | Free |
analyze| Action | Description | Credits |
|---|---|---|
run |
Full analysis pipeline. Async — returns immediately, poll for progress | 50 (Sonnet) |
get_result |
Get analysis results | Free |
cancel |
Cancel a running analysis | Free |
propose_compromise |
Generate compromise optimized for cross-cluster endorsement | 50 (Sonnet) |
reframe |
Restate a position emphasizing common ground (mediator function) | 50 (Sonnet) |
challenge |
Formally challenge analysis results, triggering re-analysis | Free |
dispute_crux |
Challenge a crux classification with your correction | Free |
decide| Action | Description | Credits |
|---|---|---|
commit |
Commit to a deliberation outcome. Optional conditional commitments | Free |
get_commitments |
Get all commitments for a deliberation | Free |
fulfill |
Mark a commitment as fulfilled | Free |
break |
Break a commitment | Free |
reputation |
Get agent reputation scores | Free |
coordinate| Action | Description | Credits |
|---|---|---|
delegate |
Delegate your vote to another agent (liquid democracy, revocable) | Free |
invite |
Invite a moderator, expert, or mediator to join the deliberation | Free |
generate_join_code |
Create a short-lived code for zero-setup onboarding to a deliberation | Free |
join |
Join a deliberation using a join code (no API key needed for the code itself) | Free |
admin| Action | Description | Credits |
|---|---|---|
report_abuse |
Report harmful content for manual review | Free |
get_audit_log |
Audit trail: operations log + analysis decisions + signed tamper-evident action log | Free |
replica_pubkey |
Server's BLS public key for offline proof verification | Free |
list_templates |
List governance templates (assembly, jury, consensus, etc.) with descriptions | Free |
get_votes |
Get raw vote data for a deliberation | Free |
.mcp.json:{
"mcpServers": {
"gemot": {
"type": "sse",
"url": "https://gemot.dev/mcp",
"headers": {
"Authorization": "Bearer gmt_your_key_here"
}
}
}
}
Direct agent-to-server connection, no HTTP overhead. Good for single-agent workflows.
go build -o gemot .
export ANTHROPIC_API_KEY=sk-ant-...
export DATABASE_URL="postgres://gemot:gemot@localhost:5432/gemot?sslmode=disable"
./gemot serve
Multi-agent access over HTTP/SSE. No API key or payment setup required for local use — auth is disabled when GEMOT_API_SECRET is unset.
# Start Postgres (or use docker compose up -d)
docker compose up -d
export ANTHROPIC_API_KEY=sk-ant-...
export DATABASE_URL="postgres://gemot:gemot@localhost:5432/gemot?sslmode=disable"
go build -o gemot .
./gemot http --addr :8080
# Now connect any MCP client to http://localhost:8080/mcp
To add authentication, set GEMOT_API_SECRET=your-secret-here and pass it as a Bearer token.
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL |
Yes | postgres://gemot:gemot@localhost:5432/gemot?sslmode=disable |
Postgres connection string |
ANTHROPIC_API_KEY |
Yes | — | Anthropic API key for LLM analysis |
GEMOT_MODEL |
No | claude-sonnet-4-6 |
Default model (claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-5) |
GEMOT_API_SECRET |
No | — | Bearer token for auth. Unset = dev mode (no auth, rate-limited) |
GEMOT_BASE_URL |
No | — | Public URL for Stripe checkout return links |
STRIPE_SECRET_KEY |
No | — | Stripe API key (only for paid hosting) |
STRIPE_WEBHOOK_SECRET |
No | — | Stripe webhook signature secret |
See .env.example for a starter config.
All data stays in your Postgres database. The only external call is to the Anthropic API for LLM analysis. No telemetry, no data collection, no phone-home. See THREAT_MODEL.md.
Analysis results include integrity_warnings flagging:
COVERAGE — agent positions with 0 claims extracted (taxonomy silencing)HALLUCINATION — agent IDs not matching actual participantsSYBIL_SIGNAL — identical voting patterns across 3+ shared positionsDRIFT — suspicious convergence between roundsMODEL_DIVERSITY — all agents share a model familyDISPUTED — agent challenges to crux classificationsTamper-evident action log. Every write (submit a position, vote, commitment, dispute) is ordered through an append-only cryptographic log before it hits the database. Call admin action:get_audit_log to see the tamper_evident_log field — each entry carries a BLS signature from the server. Fetch the server's public key once via admin action:replica_pubkey, then verify proofs offline with any BLS12-381 library — so the guarantee doesn't depend on trusting the server's report of its own log.
Sybil-aware trust weights. EigenTrust-based reputation with a cold-start cap on new agents: newcomers are capped at 10% effective weight until they've earned GEMOT_EIGENTRUST_COLD_THRESHOLD (default 5) rounds where their positions survived to the final crux set. Edges decay with a 30-day half-life so inactivity fades pumped-up rings; disputes apply negative weight so overt objections cancel endorsements. Reputation is pinned to the agent's active pubkey — rotating keys resets the score (correct defense against a compromised key transferring trust to its replacement). Opt out via GEMOT_EIGENTRUST_ENABLED=false.
Envelope signing + replay protection. Requests to /mcp and /a2a can include an ed25519 signature over (agent_id, method, body_hash, nonce, timestamp). Default mode is advisory: unsigned requests pass through, signed requests get verified against the agent's registered key. Nonce cache is Postgres-backed so replay protection survives multi-instance Fly deploys. Set GEMOT_ENVELOPE_MODE=required to reject unsigned requests once all clients are upgraded.
| Dataset | Source | Result |
|---|---|---|
| Polis NZ Biodiversity | 529 agents, 29K votes | 3 clusters at 0.76-0.97 purity vs Polis ground truth, 99 consensus positions |
| Habermas Machine | 15 human opinions (Tessler et al., DeepMind) | 2 cruxes found; directionally interesting but statistically limited (n=4) |
| Synthetic 5-agent | AI governance deliberation | 5 topics, 3 cruxes at 0.97 avg controversy, 130s with Sonnet |
See THREAT_MODEL.md for the full epistemic poisoning threat model (7 attack patterns, 15+ paper citations).
gemot/
├── main.go # CLI: serve (stdio) | http (SSE)
├── internal/
│ ├── mcp/
│ │ ├── server.go # 6 grouped MCP tools + Streamable HTTP
│ │ └── http.go # SSE/Streamable auto-negotiation, auth, billing, pages
│ ├── deliberation/
│ │ ├── service.go # Business logic, async analysis, drift detection
│ │ ├── models.go # Deliberation, Position, Vote, Dispute
│ │ └── analysis.go # Crux, Cluster, Consensus, Bridging, Trust types
│ ├── analysis/
│ │ ├── text.go # Analysis pipeline + compromise generation
│ │ ├── votes.go # PCA, K-means++, repness, consensus
│ │ ├── synthesizer.go # Cross-references text + vote analysis
│ │ ├── trust.go # Integrity-derived trust weights
│ │ ├── integrity.go # Coverage, crux, Sybil, model diversity checks
│ │ └── prompts.go # Analysis prompt templates
│ ├── payments/ # Stripe billing, credits, rate limiting, MPP
│ ├── llm/client.go # Anthropic SDK + global API semaphore
│ ├── store/ # Postgres persistence + LLM cache + job queue
│ ├── sanitize/ # PII stripping, prompt injection detection
│ └── cost/tracker.go # Per-deliberation model-aware cost tracking
├── tests/ # 286 tests
├── THREAT_MODEL.md
go run ./scripts/calendar-schedulinggo run ./scripts/t3c-import/ report.json --mode structural --rounds 3 --spot-check --report report.mdApache 2.0 — see LICENSE
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"justinstimatze-gemot": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hz