WeaveMindAI/weft

A programming language for AI orchestrations

What it solves

Running an agent puts one model in charge of the whole job, so you spend time and money waiting for the model to do everything. Building real AI workflows today means gluing together an agent framework, a durable engine, an observability platform, a policy layer, and more—a messy stack of tools. Weft gives you one artifact for the whole thing: you break any task into a graph of scoped nodes (LLM calls, agents, human approvals, APIs, databases, containers) and the graph coordinates them. Each node gets exactly the context it needs, so no node wastes compute on what others do.

How it works

You write programs in Weft's language, which describes how components interact—not what happens inside them. The program is natively a graph. Every node has defined inputs and outputs, and the compiler checks port types and required connections before the run, so errors are caught early. The compiler emits a Rust crate around the graph and builds it into a native binary, giving you memory safety and speed. During a run, every value passed between nodes is recorded in a journal (unless you turn recording off), and you can watch what happened or is happening interactively. Infrastructure nodes like databases are included: write pg = PostgresDatabase and the runtime starts a container with a disk that survives restarts. Tangle, the built-in AI assistant, knows the language and framework, and can build, test, and fix pieces of your program. It runs one piece, reads what came out, fixes it, re-runs only what changed, and freezes successful runs so later changes don't break them.

Who it’s for

Developers who want to build AI orchestrations without stitching together many products. It’s also approachable for non-developers because the graph representation can be viewed and manipulated through a GUI. Weft is designed from the ground up to be consumed and produced by AI assistants (Claude Code, Cline, Codex, Cursor, etc.), guided by humans. If you’re building workflows that mix LLMs, APIs, human reviews, and infrastructure, this is for you.

Highlights

  • Readable – A few lines of code describe an entire system, and the graph makes it easy to follow even without deep programming knowledge.
  • Compiled – The compiler checks connections and types before running, and produces a native binary with Rust’s speed and safety.
  • Alive – Parts of a program can stay up, wait for answers, and keep talking to each other while the rest continues.
  • Durable – Waits for humans or external events can survive restarts; every run is journaled for interactive inspection.
  • Self-testing – Tangle can build small pieces, test them, fix them, and freeze successful examples to catch regressions.
  • Infrastructure included – Containers for databases and services are managed automatically; write a node name and the runtime handles the rest.
  • Dynamic vocabulary – Nodes share common machinery for credentials, storage, and signals, so you write only the specific job, not the plumbing.

Related

  • Project
  • Project
  • Project
  • Project
  • Project