# Bret Taylor introduces Truss, a language for agent-written software

Digest AI · Agents & Tools · published 2026-12-02T18:51:35Z

Canonical: https://digestai.news/story/bret-taylor-introduces-truss-a-language-for-agent-written-software

## Summary

Bret Taylor announced Truss, a prototype programming language built around the assumption that code will be generated by AI agents rather than humans. The language shifts design focus from authoring convenience to compile‑time verification, requiring agents to produce formal proofs that contracts are satisfied. A Truss package consists of a contract that defines data structures, functions, and provable behavior, and one or more providers that must supply a proof alongside their implementation. When a program depends on a contract, the Truss compiler uses the provider’s proof to validate correctness without re‑verifying the code, dramatically reducing verification effort for downstream users.

The article walks through a concrete example: a ReplaceElement contract that guarantees safe replacement of an element in a slice, along with an InlineReplaceElement provider that implements the contract. It shows the command‑line steps to generate a proof file and bind the provider in a program. Taylor frames Truss as a step toward rewriting legacy software to be provably correct, secure, and fast, and invites discussion about the platforms needed to realize that vision.

## Key points

- Truss treats code as agent‑written and requires compile‑time formal verification of contracts.
- Providers must supply a proof file that the compiler uses to validate correctness without re‑verification.
- A sample ReplaceElement contract demonstrates safety guarantees like buffer‑overflow protection.

## Why it matters

If adopted, Truss could make AI‑generated software provably correct and secure, lowering verification costs for large codebases.

## Sources

1. [Truss: A programming language optimized for agent-written software](https://github.com/finiteloop/truss) (github.com, 2026-12-02, primary source)

## Cite

Digest AI, "Bret Taylor introduces Truss, a language for agent-written software", 2 December 2026, https://digestai.news/story/bret-taylor-introduces-truss-a-language-for-agent-written-software

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/bret-taylor-introduces-truss-a-language-for-agent-written-software.json
