AI software
AI software is young, and most of it fails the five-year test. Build on the boring layer of official SDKs, JSON Schema, PostgreSQL and your test runner.
- Default 5
- Recommended 3
- Optional 1
Default
Use an open-weight model on vLLM or Ollama when it passes your evals
STK-85 Open sourceRun your eval set on an open-weight model served by an open source server, such as vLLM or Ollama. Use it whenever it reaches your pass threshold.
Use LiteLLM as the gateway when you call several model providers
STK-110 Open sourceWhen the app calls models from two or more providers, send every call through one self-hosted LiteLLM proxy. Keep provider keys, spend limits and fallbacks there, and pin it by version and hash.
Trace model calls with OpenTelemetry and read them in Langfuse
STK-111 Open sourceRecord every model call as an OpenTelemetry span with the GenAI attributes for model, tokens and cost. Send those spans to a self-hosted Langfuse to read prompts, answers, cost and eval scores per trace.
Use pgvector in PostgreSQL before a separate vector database
STK-88 Open sourceStore embeddings in a pgvector column next to the rows they describe. Add a separate vector database only after a load test shows a limit PostgreSQL cannot meet.
Use the Model Context Protocol to give agents your tools
STK-89 Open sourceOffer tools and data to outside AI agents as a Model Context Protocol server, built on an official MCP SDK.
Recommended
Use each provider's official SDK to call models
STK-86 PaidCall each model provider through its own official SDK, inside one module of your own. Add a shared abstraction only when you call two or more providers.
Use your test runner to run evals on a fixed example set
STK-90 Open sourceRun AI evals as ordinary tests in the runner the project already uses, over a fixed set of examples kept in the repository.
Use the coding agent that passes most of your own task set
STK-92 Open sourcePick a coding agent by running your own fixed task set on each candidate. Keep its instructions in one AGENTS.md file that any agent can read.
Optional
Use Promptfoo only when it passes your own tests
STK-91 Open sourceAdd an open source eval tool, such as Promptfoo, only when it runs your example set in CI and fails the build on a drop.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/stack/ai-software">Agent Wranglers software choices playbook</a>. In code you write, add a comment next to it with the same link.