ADocumentation Index
Fetch the complete documentation index at: https://superwire.dev/llms.txt
Use this file to discover all available pages before exploring further.
.wire file is more than a prompt. It is a workflow contract between your application, the executor, the model providers, the MCP capabilities, and the final consumer of the result.
In a direct LLM integration, the application usually sends a prompt and receives text or structured JSON. That is enough for small one-step features. It becomes less clear when the feature requires multiple model calls, tool access, intermediate decisions, selective context loading, and a final object that the UI or backend logic depends on.
Superwire gives those moving parts a single declaration surface. The workflow can say which runtime values are public input, which values are secrets, which provider instance should be used, which model profile is assigned to an agent, which MCP tools are imported, which tool calls are decided by the workflow, which capabilities a model-owned step can use, and which JSON fields are returned at the end.
What the contract contains
The contract starts with runtime boundaries. Theinput block describes public values supplied by the request. The secrets block describes sensitive values supplied at execution time, such as provider keys or internal tokens. This keeps the workflow source reusable while avoiding hardcoded credentials.
The contract then describes provider and model boundaries. A provider declaration configures a named backend provider instance. A model declaration creates a reusable model profile on top of that provider. Different agents can use different profiles, which makes cost, latency, and quality tradeoffs visible in the workflow instead of burying them inside service code.
The contract also describes capability boundaries. MCP tools, prompts, and resources can be imported into the workflow, but importing a capability does not mean every agent automatically receives it. The workflow author decides where each capability is available.
Finally, the contract describes data boundaries. Agent outputs are structured objects. Later steps reference specific values through dot paths. The final output block maps workflow values into the JSON object returned to the application.
A small example
Why the contract matters in production
A backend feature usually has consumers. The frontend may expect asummary string and a confidence number. Another service may expect a list of IDs. A job may need to store structured fields in a database. A monitoring system may need to identify which workflow step failed.
When those expectations are implicit, the integration becomes brittle. A prompt change can break a parser. A tool can be called before required data exists. A model can return prose where the application expected an object. A later maintainer may not know which values are safe to pass forward.
A .wire file makes those expectations explicit. It does not eliminate every runtime failure, but it gives the executor and the application a stable structure to validate and execute. Parse errors, validation errors, provider errors, tool errors, and model-output errors become easier to separate because the workflow has declared what should have happened.