Skip to content

Why weft is built this way

View as Markdown

These pages explain why weft is shaped the way it is: a small loop with two seams and one tap, tool errors as data, approval as a run boundary, and everything else in layers above the loop. They explain; the guides apply and the reference lists. Read them in any order.

  1. How weft is put together: two modules, the generated facade, the layers and their import rule, and how a run reaches Studio.
  2. Design principles: the rules weft keeps: the 13 loop rules and 5 thread rules, each with the failure it prevents and the test or gate that pins it.
  3. Architecture decision records: every ADR, its decision in a sentence, and its status at v0.20.2.
  4. The agent loop, from first principles: the forty-line loop, one run function by function, and the eleven questions a loop must answer.
  5. How weft compares to other agent frameworks: design choices side by side, from those frameworks’ own documentation.
  6. Agent patterns and where they attach in weft: workflows, context, tool design, safety, protocols, durability and evaluation on weft’s pieces.
  7. How the weft repository is organised and checked: the layout, the make targets and the CI gates behind the guarantees.
  8. Roadmap: what v0.20.2 ships and where the planned work is listed.

AGENTS.md holds the whole API on one screen and the rules in their original words; pkg.go.dev has the signatures.