Superwire exists because adding AI behavior to a backend product is different from running an autonomous agent on a personal machine. A local assistant can be very flexible. The user asks for a goal, the model decides a plan, the model chooses tools, and the user watches the result. If the agent makes a questionable decision, the user can interrupt it, inspect what happened, and correct the next attempt. The blast radius is usually limited to one person, one environment, and one supervised session. A product backend has a different operating model. The agent may run after an API request, inside a queue worker, during an admin action, or as part of a scheduled process. It may run thousands of times. It may touch user data. It may call internal services. It may create or update records. It may need to return data that a UI renders directly. In that environment, the application cannot rely only on the model deciding the whole process from a prompt. The problem is not that models are useless. The problem is that unrestricted autonomy is the wrong default boundary for many backend features.Documentation Index
Fetch the complete documentation index at: https://superwire.dev/llms.txt
Use this file to discover all available pages before exploring further.
The backend needs to own the process
When a backend feature performs work on behalf of a user, the product usually already has a domain model and an expected sequence of operations. A project must exist before tasks can be created inside it. A survey answer index may need to be fetched before expensive transcripts are loaded. A classification step may need to happen before a creation step receives write access. A final response may need to match a JSON shape that the frontend expects. These are control-flow and contract concerns. They should not be hidden inside a large system prompt if the application depends on them. Superwire gives those concerns a dedicated place. The workflow author declares the steps, the dependencies, the scoped capabilities, and the output shape. The model still performs reasoning where reasoning is useful, but the backend keeps ownership of the workflow boundary.The cost of building this manually
Without a workflow DSL, teams often rebuild the same orchestration layer inside application code. They define request DTOs, response DTOs, provider clients, prompt templates, tool wrappers, JSON validators, retry behavior, intermediate state, test fakes, and streaming surfaces. They also have to decide how model outputs flow into later model calls and how to prevent tools from being available too early. That approach works, but it tends to scatter the AI feature across many files. A future maintainer may need to inspect a controller, a service class, a provider adapter, a prompt file, a schema definition, a queue job, and several tests before they understand the intended workflow. The actual product behavior becomes implicit in implementation details. Superwire concentrates the AI workflow into one readable source file. The surrounding application still owns authentication, authorization, persistence, queues, billing, and transactions. The.wire file owns the shape and sequence of the AI work.