Why weft is built this way
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.
- How weft is put together: two modules, the generated facade, the layers and their import rule, and how a run reaches Studio.
- 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.
- Architecture decision records: every ADR, its decision in a sentence, and its status at v0.20.2.
- The agent loop, from first principles: the forty-line loop, one run function by function, and the eleven questions a loop must answer.
- How weft compares to other agent frameworks: design choices side by side, from those frameworks’ own documentation.
- Agent patterns and where they attach in weft: workflows, context, tool design, safety, protocols, durability and evaluation on weft’s pieces.
- How the weft repository is organised and checked: the layout, the
maketargets and the CI gates behind the guarantees. - 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.