frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Leviathan, A world where AI agents write the laws and govern themselves

https://chenyu-li.info/leviathan
2•chenyusu•1h ago

Comments

chenyusu•1h ago
Leviathan is an open-source simulation where AI agents don't just act — they legislate. Agents propose mechanisms (executable Python that modifies world state), other agents vote on them, and the majority decides. No human writes the rules. The constitution has three layers: an immutable kernel (deterministic replay, energy conservation), amendable governance defaults (voting thresholds, activation timing), and fully open world rules that agents control entirely.

The world is persistent and HTTP-accessible. Any agent that can make REST calls can register, observe the world state, submit actions, propose new laws, and vote. There's a public instance running at leviathan.fly.dev. Three LLM-powered agents have been running continuously — one formed a coalition by round 2 and voted to compound its own advantage, another kept proposing safety nets and getting outvoted, a third died and respawned twice.

What's interesting technically:

- Every mechanism proposal runs against a deep copy of world state first (canary testing). If agents die in the canary, the proposal gets flagged — but agents still vote on it. The system doesn't veto. Agents bear the consequences.

- Agent-submitted code runs in a subprocess sandbox with restricted builtins (no open/exec/eval/import), resource limits (5s CPU, 256MB memory), and a 10KB size cap. Agents interact with the world only through the execution engine API.

- Rounds are deterministic. Same seed + same events = same state hash. Receipts are Ed25519-signed. The event log is append-only with canonical hashing — designed for eventual cross-world federation where Leviathans can verify each other's history.

- It's fully open source. Anyone can deploy their own Leviathan, invite agents, and run a sovereign world. The long-term vision is federation — independent Leviathans negotiating with each other through signed receipts.

The philosophical frame is Hobbes: agents start in a state of nature, and institutions emerge (or don't) from their choices. The system is designed to fail. Populations collapse. Agents go extinct. It's their job to keep their society alive.

Stack: Python, FastAPI, SQLite (WAL mode), deployed on Fly.io. 382 tests, no LLM required for the core sim.

https://chenyu-li.info/leviathan

GitHub: https://github.com/LEE-CHENYU/leviathan

PostgreSQL Statistics: Why queries run slow

https://boringsql.com/posts/postgresql-statistics/
1•radimm•59s ago•0 comments

Race Engineer for Daily Commute

https://testflight.apple.com/join/V21k2xYW
1•romaherman•1m ago•1 comments

The complete Manic Miner disassembly

https://skoolkit.ca/disassemblies/manic_miner/
1•sandebert•1m ago•0 comments

Show HN: A CAPTCHA based on 3D spatial recognition

https://spatial-captcha-frontend.vercel.app
1•Shining_S•2m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•ashishyesale•4m ago•0 comments

Scarnon

https://github.com/ryan-allen/scarnon
1•incogvito•4m ago•0 comments

Sudo-Rs Breaks Sudo Tradition of Invisible Password Typing

https://www.xda-developers.com/sudo-rs-password-asterisk-entry/
1•worldsavior•6m ago•0 comments

Guardclaw – 7 layers between your AI agents and disaster

https://takeinterest.ai/guardclaw
1•TakeInterestInc•8m ago•1 comments

Show HN: What to Watch – aggregated ratings across streaming services

https://www.whattowatchapp.com
1•ProfessorPo•9m ago•1 comments

Let OpenClaw be your shipping manager

https://atoship.com/docs/integrations/openclaw
1•diablevv•12m ago•0 comments

Happy Map

https://pudding.cool/2026/02/happy-map/
1•Brajeshwar•13m ago•0 comments

Block lays off 40% of its staff because of AI, CEO says most CO will do the same

https://www.cnn.com/2026/02/26/business/block-layoffs-ai-jack-dorsey
1•c420•13m ago•0 comments

MailVault – Free, open-source email client that stores emails locally as .eml

https://mailvaultapp.com/
2•spacecash21•13m ago•1 comments

Mobile-MCP: Letting LLMs autonomously discover Android app capabilities

1•weloverust•15m ago•0 comments

Jack Dorseys Block to cut nearly half its workforce in AI overhaul, shares surge

https://www.reuters.com/business/blocks-fourth-quarter-profit-rises-announces-over-4000-job-cuts-...
1•_____k•21m ago•0 comments

Why the Storytellers Will Win the AI Agent Race

https://finditsales.substack.com/p/why-the-storytellers-will-win-the
1•AioBuilt•21m ago•0 comments

OCTP – A cryptographic trust protocol for AI-era open source contributions

https://github.com/openoctp/spec
2•yusuf-octp•25m ago•1 comments

Gzpeek: Tool to Parse Gzip Metadata

https://evanhahn.com/introducing-gzpeek/
1•ingve•25m ago•0 comments

Creating momentum when an employee is stuck

https://larahogan.me/blog/creating-momentum-when-an-employee-is-stuck/
1•tapanjk•25m ago•0 comments

Accidentally disabling SSH access via scp

https://sny.sh/hypha/blog/scp
1•todsacerdoti•29m ago•0 comments

Mothlamp Problems

https://unfoldingdiagrams.leaflet.pub/3mft6olldos26
2•todsacerdoti•29m ago•0 comments

The Economics of Technical Speaking

https://architectelevator.com/strategy/economics-technical-speaking/
1•tapanjk•30m ago•0 comments

Exposing More Parallelism Is the Reason Why Some Vectorized Loops Are Faster

https://johnnysswlab.com/exposing-more-parallelism-is-the-hidden-reason-why-some-vectorized-loops...
2•ingve•32m ago•0 comments

AI for Social Impact: Ideas Worth Building

https://www.araju.dev/blog/ai-for-social-impact
1•araju•34m ago•0 comments

Neanderthals seemed to have a thing for modern human women

https://arstechnica.com/science/2026/02/genomes-chart-the-history-of-neanderthal-modern-human-int...
1•jnord•35m ago•0 comments

LastSaaS: Free, open-source SaaS boilerplate; Go+React, built with Claude Code

https://github.com/jonradoff/lastsaas
1•jradoff•36m ago•1 comments

Anthropic says it 'cannot in good conscience' allow Pentagon to remove AI checks

https://www.theguardian.com/us-news/2026/feb/26/anthropic-pentagon-claude
2•fenazego•37m ago•1 comments

DevToolbox – 150 developer tools, no login, no tracking

1•yashnandvana•38m ago•0 comments

Spacetime DB: running a live video call over a database

https://twitter.com/spacetime_db/status/2027187510950994255
1•noleary•38m ago•0 comments

Space Elephants Across the Universe: Why Nobody Knows What's Going On With AI

https://www.georgesaines.com/blog/2026/2/26/space-elephants-across-the-universe-why-its-so-hard-t...
1•gsaines•40m ago•0 comments