<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat" -->

---
title: Truss: A programming language optimized for...
description: Truss is a prototype programming language built on the assumption that AI agents, not humans, write the code. It optimizes for human verification and...
canonical: https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Truss: A programming language optimized for agent-written software | daily.dev
og:description: Truss is a prototype programming language built on the assumption that AI agents, not humans, write the code. It optimizes for human verification and...
og:url: https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat
og:image: https://api.daily.dev/og/posts/AOdLusLat.png
og:image:alt: Truss: A programming language optimized for agent-written software
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Truss: A programming language optimized for agent-written software

**[Hacker News](https://daily.dev/sources/hn)** · 7 min read · 2 upvotes · 0 comments

## Summary

Truss is a prototype programming language built on the assumption that AI agents, not humans, write the code. It optimizes for human verification and correctness rather than authoring convenience. A package is built around a contract that specifies functions and formally verified behaviors. Providers implement the contract and ship a proof of conformance, which clients only need to check, not rebuild. The `truss proof update` command generates the proof. The author, Bret Taylor, wants to start a conversation about platforms for provably correct, secure software.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/finiteloop/truss>

## Community take

How the wider developer community reacted, aggregated from 4 discussions and 79 comments across hackernews (as of 2026-12-03).

**TL;DR:** The core concern is whether an entirely new language can be effective given LLMs aren't pretrained on it, with many disputing this via counterexamples of successfully teaching models novel syntax; others question what Truss offers beyond existing formal-verification tools like Dafny, Lean, or Eiffel, and whether contracts actually solve the 'right thing vs. right way' problem.

**Sentiment:** 15% positive · 30% mixed · 55% skeptical

**The case for**

- Several people report success teaching LLMs entirely new, even exotic, languages via docs, BNF grammars, or small skill files.
- Decoupling declarative specification from implementation is seen as a genuine improvement that lets humans review a much smaller contract instead of all generated code.
- Formal contracts can catch classes of bugs (like the TimSort example) that slipped through years of implementation-level testing.

**The pushback**

- Training data skepticism: models have never seen Truss and perform better in languages with similar constructs they were already trained on (Ada, Eiffel, Dafny, Lean).
- Several note the syntax looks derivative of Dafny/Eiffel-style contracts without crediting or differentiating from that prior art.
- Writing a correct contract is itself hard and doesn't eliminate the core problem of specifying the right behavior — you can prove internal consistency while still building the wrong thing.
- Some find the lack of benchmarks, a clear differentiation from existing verification languages (F*, Dafny, Idris, Verus), or human involvement in the project's promotion suspicious.
- Several see the project as needlessly anti-human in framing, and joke that it may just be AI-hype-driven vaporware given the huge initial AI-generated commit.

**By community**

- hackernews (heated): Heavy debate over whether LLMs can effectively learn an untrained new language, mixed with skepticism about differentiation from existing formal verification tools and some outright mockery of the project's premise and name.

**Hottest debate:** Whether LLMs can write a brand-new, untrained-on language as well as (or better than) existing languages they already know deeply.

**Open questions**

- Does a new language actually outperform adding contracts/verification on top of existing languages models already know well?
- How is this meaningfully different from established formal verification systems like Dafny, Lean, Eiffel, or Verus?
- Can writing a correct, complete contract avoid the same 'building the right thing' problem that plagues natural-language specs?
- Will model providers eventually fine-tune or RLVR models specifically for Truss if it gains traction?

**Highlights**

> Difficulty: no existing model is trained on Truss. They have been trained on examples of design by contract in other languages (Ada, Eiffel, Java etc) and would do a better job with those and with contract-enforcement rules. Or even with grammar-constrained output and those languages. Source: I also tried writing an agent-optimized language (for concision and adaptability, not correctness), then I measured.
> — [grahamlee on hackernews · 9 comments](https://news.ycombinator.com/item?id=50734227)

> Original commit two days ago with +663,934 lines of Rust. Eight commits. Already reposted six times on HN since then. I'm not sure I want to bother with something where the only human involvement was generating the hype.
> — [rahen on hackernews · 1 comments](https://news.ycombinator.com/item?id=50735717)

> it's interesting you mentioned Dafny, as after taking a look myself, I see the method specification syntax that Truss uses, has keywords like ensures and requires which is straight up from Dafny, which itself is a Microsoft Research language made by a person who worked on SpecSharp (basically contracts for .NET). I couldn't find a connection between Truss's author and Microsoft, so I do wonder if he maybe got an LLM to design the syntax, which then included prior art from Microsoft etc.
> — [miffy900 on hackernews](https://news.ycombinator.com/item?id=50736799)

> The spec is far smaller than the implementation. For example take the TimSort case whose implementation in Java and Python had a bug that was there for years until someone tried to formally prove it correct.  I also think many valuable properties do not need specific domain judgement like never crashes, no out of bounds access, no data races etc. A spec says "what" not the "how" you still need someone who understands the requirement but they don't have to get every single edge case right.  If a model writes both the implementation and the proof, the checker doesn't care who wrote them. Human review shrinks from "read all the generated code" to "read the spec".
> — [pratzc07 on hackernews · 1 comments](https://news.ycombinator.com/item?id=50736295)

> > The spec is far smaller than the implementation. That heavily depends on what problem you're trying to solve. The very example from TFA is quite illustrative:     contract ReplaceElement {         function replace(words: &mutable Slice<UInt64>, index: UInt64, value: UInt64) -> UInt64             requires index < words.len             ensures result == old(words[index])                 and snapshot(words) == update(old(snapshot(words)), index, value)             terminates             effects { read(words), write(words) }     }     implementation InlineReplaceElement of ReplaceElement {         function replace(words: &mutable Slice<UInt64>, index: UInt64, value: UInt64) -> UInt64 {             let previous = words[index]             words[index] = value             previous         }     } Or take, for instance, this spec in English prose: "given a predicate that returns true or false for each value, and a list of values, `filter` returns a new list that contains exactly the values in the original for which the predicate returned true". I guarantee you that turning this into the Truss contract would produce a significantly larger amount of code that the implementation that would consist of just the following 5 lines, modified accordingly:     result := []{}     for _, v := range list {         if predicate(v) { result = append(result, v) }     }     return result And of course, please note that the spec I've given is defective: it doesn't say anything about the order of the elements in the resulting list, or the presence/absence of duplicates. Also, you probably will have to insist on the predicate being a pure or at least a repeatable (reproducible?) function — I don't know how you'll spec `filter` when it's given a non-idempotent predicate.
> — [Joker\_vD on hackernews](https://news.ycombinator.com/item?id=50737200)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50700121) · 11 points · 0 comments
- [hackernews](https://news.ycombinator.com/item?id=50710989) · 1 points · 0 comments
- [hackernews](https://news.ycombinator.com/item?id=50733838) · 99 points · 77 comments
- [hackernews](https://news.ycombinator.com/item?id=50715914) · 2 points · 2 comments

## Similar posts on daily.dev

- [Harness Engineering](https://daily.dev/posts/harness-engineering-l1sahcwor) · Martin Fowler · 4 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Truss: A programming language optimized for agent-written software","url":"https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat"},"datePublished":"2026-12-02T20:14:25.797Z","dateModified":"2026-12-03T02:56:40.326Z","description":"Truss is a prototype programming language built on the assumption that AI agents, not humans, write the code. It optimizes for human verification and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9b8d005214a96abf3f5c9ac70e2c6174?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9b8d005214a96abf3f5c9ac70e2c6174?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/truss-a-programming-language-optimized-for-agent-written-software-aodluslat","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,rust","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Truss: A programming language optimized for agent-written software"}]}
```

