weftai

Composable AI workflows: the model plans, your code executes, results never travel through the model.

Active · LUCY family · runtime

A model emits a declarative plan of named steps. Your application validates it against Zod schemas and runs it. Results flow between steps by name and stay in a session-scoped store, so one tool call can chain three dependent lookups with zero identifiers copied by the model. Published as five npm packages under one version and as the same library on PyPI, with the same plan format.

What stands out

  • One tool call, three dependent lookups, zero identifiers copied by the model
  • Operations defined once: name, description, Zod input schema, output type, handler
  • Previews for the model, full sets for the code; positions index the full set
  • Released on npm (weftai, @weftai/*) and PyPI together, at one version
  • Property-based tests with fast-check, Biome, changesets