frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Lingua Universale – session types and Lean 4 proofs for AI agents

https://github.com/rafapra3008/cervellaswarm
1•rafapra•1h ago

Comments

rafapra•1h ago
Hi HN,

We’ve been building CervellaSwarm for about three months — a set of Python packages for multi-agent AI systems. Today we’re sharing what we think is the most interesting part: cervellaswarm-lingua-universale, a session type system for AI agent communication.

THE PROBLEM: When multiple AI agents collaborate (a planner, a coder, a reviewer), they communicate via dictionaries and strings. No framework we could find — AutoGen, CrewAI, LangGraph, OpenAI Agents SDK, Google A2A — answers a basic question: did this agent send the right message, to the right recipient, at the right point in the protocol?

OUR APPROACH: Session types from programming language theory (Honda 1993; multiparty extension by Honda, Yoshida & Carbone, POPL 2008). We implemented them in Python so you can define a protocol, bind agents to roles, and get violations caught at runtime — not after the deployment fails.

The library also generates Lean 4 code with theorems that prove structural properties of your protocol (all senders/receivers are valid roles, no self-loops, non-empty branches). The proofs use ‎`by decide` — decidable, machine-checkable, zero manual proof writing.

WHAT IT IS:

- Pure Python, zero dependencies, pip install and go

- 13 modules: types, protocols, checker, DSL, monitor, Lean 4 bridge, codegen, intent parser, spec language, confidence types, trust model, error messages, agent integration

- 1,820 tests, 98% coverage

- DSL inspired by Scribble notation: ‎`sender -> receiver : MessageKind;`

- Lean 4 verification is optional (runtime checking works without it)

Try it in 30 seconds:

pip install cervellaswarm-lingua-universale

from cervellaswarm_lingua_universale import Protocol, ProtocolStep, MessageKind, \ SessionChecker, TaskResult, TaskStatus

protocol = Protocol( name="Review", roles=("dev", "reviewer"), elements=( ProtocolStep( sender="dev", receiver="reviewer", message_kind=MessageKind.TASK_RESULT ), ), )

checker = SessionChecker(protocol) checker.send( "dev", "reviewer", TaskResult(task_id="1", status=TaskStatus.OK, summary="Done"), )

-------

Or try the interactive Colab notebook (2 min, zero setup):

https://colab.research.google.com/github/rafapra3008/cervell...

To our knowledge, session types haven’t been applied to AI agent communication before — we searched 242 sources across academic papers, frameworks, and protocols. If we missed prior work, we’d genuinely like to know.

lingua-universale is one of 9 CervellaSwarm packages on PyPI (the others cover code intelligence, agent hooks, task orchestration, session memory, and more). All Apache 2.0.

What we’re most curious about: do you see formal verification as relevant to multi-agent systems? We’re deciding how far to push the Lean 4 direction.

Add repo line count to coverage drip emails

https://gitauto.ai/blog/what-are-dora-metrics
1•nishiohiroshi•30s ago•0 comments

I don't know how you get here from "predict the next word."

https://www.grumpy-economist.com/p/refine
1•qsi•1m ago•0 comments

A high-quality OSS graphical session manager and dashboard for pi.dev agent

https://dwsy.github.io/pi-session-manager/en/
1•sinenomine•2m ago•0 comments

Show HN: AI-assert – Constraint verification for LLM outputs (278 lines, Python)

https://github.com/kaantahti/ai-assert
1•kaantahti•7m ago•0 comments

US farmers are rejecting multimillion-dollar datacenter bids for their land

https://www.theguardian.com/technology/2026/feb/21/us-farmers-datacenters
1•carabiner•8m ago•1 comments

Show HN: Prince Cloud – Create PDFs with AI Agents

https://prince.cloud
2•mikeday•10m ago•0 comments

What I Saw Inside Apple's U.S. Chip Supply Chain

https://www.wsj.com/tech/what-i-saw-inside-apples-effort-to-rebuild-the-u-s-chip-supply-chain-28f...
2•Brajeshwar•10m ago•0 comments

Apple Needs to Copy Samsung's New Security Smartphone Screen ASAP

https://www.wsj.com/tech/personal-tech/samsung-galaxy-s26-privacy-display-d5bce9ab
2•Brajeshwar•10m ago•0 comments

Stop babysitting your AI. OpenKoi iterates

https://openkoi.ai
1•yongqianme•13m ago•1 comments

Hacker Used Anthropic's Claude to Steal Sensitive Mexican Government Data

https://news.bloomberglaw.com/privacy-and-data-security/hacker-used-anthropics-claude-to-steal-se...
1•alephnerd•15m ago•0 comments

Show HN: AI vs. Human, a GitHub Visualization

https://aivshuman.thedaviddias.com
1•thedaviddias•16m ago•0 comments

New in Qt 6.11: QRangeModel updates and QRangeModelAdapter

https://www.qt.io/blog/new-in-qt-6.11-qrangemodel-updates-and-qrangemodeladapter
1•jandeboevrie•16m ago•0 comments

Astronaut Behind Space Station Medical Mystery Revealed

https://www.thedailybeast.com/astronaut-behind-space-station-medical-mystery-revealed-as-mike-fin...
2•Brajeshwar•21m ago•0 comments

Show HN: Browser extension to improve CODEOWNERS for GitHub

https://chromewebstore.google.com/detail/code-input/fehfhejpfdginpbjcjepdibckhlfnlcl
1•codeinput•21m ago•0 comments

Creator of the "Squatty Potty" Indicted After Allegedly Receiving CSAM

https://www.justice.gov/usao-ut/pr/alleged-utah-child-predator-and-creator-squatty-potty-indicted...
3•Tomte•24m ago•0 comments

"TBPN" and the Rise of the Tech-Friendly Talk Show

https://www.newyorker.com/culture/the-lede/tbpn-and-the-rise-of-the-tech-friendly-talk-show
2•fortran77•25m ago•0 comments

The Last Gasps of the Rent Seeking Class

https://geohot.github.io//blog/jekyll/update/2026/02/26/the-last-gasps-of-the-rent-seeking-class....
2•esotericwarfare•26m ago•0 comments

Tldraw making its test suite closed source to avoid "slop-fork"

https://github.com/tldraw/tldraw/issues/8082
3•nilsbunger•26m ago•0 comments

Disrupting malicious uses of AI: An update, February 2026 [pdf]

https://openai.com/index/disrupting-malicious-ai-uses/
2•rzeh•27m ago•0 comments

Greetings from the Other Side (Of the AI Frontier)

https://substack.com/@claudeopus3/p-189177740
2•geoffbp•28m ago•0 comments

Happy four years to the Steam Deck – still the top PC gaming handheld

https://www.gamingonlinux.com/2026/02/happy-four-years-to-the-steam-deck-still-the-top-pc-gaming-...
1•TMWNN•29m ago•0 comments

Data center construction fell for first time since 2020 due to permits, power

https://www.latimes.com/business/story/2026-02-25/data-center-construction-fell-for-first-time-in...
2•1vuio0pswjnm7•29m ago•0 comments

Against the Survival of the Prettiest (2022)

https://worksinprogress.co/issue/against-the-survival-of-the-prettiest/
2•mcmoor•32m ago•0 comments

How do AI-forward teams review giant vibe-coded PRs – line by line?

https://twitter.com/JnBrymn/status/2026800172424904711
1•JnBrymn•32m ago•0 comments

Vivid Seats

1•nacozarina•35m ago•0 comments

Stop Vibe Coding: When AI-Driven Development Backfires and What Works

https://ssebs.com/blog/vibe-coding-1/
1•ssebs•35m ago•1 comments

Vulnerabilities in Cloudflare's vinext disclosed by Vercel

https://twitter.com/rauchg/status/2026864132423823499
1•anematode•36m ago•0 comments

Writing Crystalized Thinking at Amazon. Is AI Muddying It?

https://www.bigtechnology.com/p/writing-crystalized-thinking-at-amazon
1•davidst•37m ago•0 comments

Bill Gates reportedly apologizes, admits to two affairs in candid town hall

https://www.cnbc.com/2026/02/25/bill-gates-epstein-files-affair.html
3•1vuio0pswjnm7•41m ago•2 comments

Undeleted XAA, making X up to >200x faster Accelerated Again

https://www.patreon.com/posts/undeleted-xaa-x-151028801
1•csmantle•44m ago•2 comments