@dosco: use perplexity, parallel, google, x search whatever and build this in 5 minutes using DSPy+RLM (ax-agent) http://axllm.…
Summary
Ax is an open-source TypeScript library that implements DSPy-style typed signatures and agent frameworks for building reliable AI applications with minimal prompting. It supports multiple LLM providers and includes features like agents, flows, RAG, and self-improving pipelines.
View Cached Full Text
Cached at: 06/03/26, 03:52 PM
use perplexity, parallel, google, x search whatever and build this in 5 minutes using DSPy+RLM (ax-agent) https://t.co/y45nH1PCrQ https://t.co/6YxKiaqHUb
Build Reliable AI Apps in TypeScript
Source: https://axllm.dev/
DSPy for TypeScript
Declare signatures, not prompts. Ax compiles type-safe inputs and outputs into optimized LLM calls — then chains them into agents, flows, and self-improving pipelines.
Auto-installs Claude & Codex skills
Why teams choose Ax
Built for production from day one
Simple & Powerful
Define what you want, not how to prompt for it
Three ways to define signatures
Quick string syntax, type-safe fluent builder, or your existing zod schemas — same pipeline, same retries, same type inference.
Ax Agent
DSPy + RLM agents thatactually work
Typed DSPy signatures, a secure JS runtime, and checkpointed context management — a full agent harness that keeps long-running loops stable without prompt bloat.
Prompt stays lean — across every turn
State lives in the JS runtime, not the LLM context
RLM
Production-ready from day one
Extensive test coverage, full OpenTelemetry integration, cost tracking, and enterprise-grade error handling — built in, not bolted on.
What’s in the box
Everything you need to build production AI applications
### AxGen The generator engine. Define signatures, get structured LLM outputs with streaming, assertions, and auto-retry.### AxAI 15+ LLM providers through one unified interface. OpenAI, Anthropic, Google, and more.### AxAgent Agents with tools, child agents, and ReAct loop machines for complex multi-step tasks.### AxAgent Optimize Tune agents with judges, eval datasets, and reusable optimized artifacts.### AxFlow Pipeline orchestration with auto-parallelism and DAG execution.### AxLearn Self-improving optimization with teacher-student training.### AxSignature Type-safe I/O schemas with validation constraints.### AxRAG Retrieval-augmented generation with built-in chunking and reranking.### DSPy Notebook Interactive playground to experiment with signatures and prompts live.
Declare capabilities, not prompts
Define your inputs and outputs with type-safe signatures. Ax generates the optimal prompt automatically.
One interface, every LLM
Switch providers with a single line. Your signatures work everywhere.
OpenAI
ai\(\{ name: 'openai' \}\)
Anthropic
ai\(\{ name: 'anthropic' \}\)
Google Gemini
ai\(\{ name: 'google\-gemini' \}\)
Ollama
ai\(\{ name: 'ollama' \}\)
Cohere
ai\(\{ name: 'cohere' \}\)
DeepSeek
ai\(\{ name: 'deepseek' \}\)
Together
ai\(\{ name: 'together' \}\)
Mistral
ai\(\{ name: 'mistral' \}\)
HuggingFace
ai\(\{ name: 'huggingface' \}\)
AWS Bedrock
new AxAIBedrock\(\{ region: 'us\-east\-2' \}\)
Rich type system
Type-safe signatures with automatic validation and retry on failure.
Connect AI to your database
GraphJincompiles GraphQL to efficient SQL and doubles as an MCP server — giving Claude Desktop and Ax agents direct, safe access to your data.
Connect GraphJin as an MCP tool inside Ax agents
Works withPostgreSQLMySQLSQLiteMongoDBOracleMSSQLSnowflake
Perplexity (@perplexity_ai): Introducing Search as Code, our new search architecture for AI agents.
It writes Python that calls our search stack directly, instead of looping through function calls one at a time.
Available in the Perplexity Agent API, and now default in Computer.
Similar Articles
@dosco: PEEK coming to ax-agent https://github.com/ax-llm/ax
PEEK feature is coming to ax-agent, a TypeScript library for automatic prompt generation and AI agents, supporting multiple providers.
@dosco: the ax framework is a set of ideas some mine, many from others, consolidated together into js/ts library that makes it …
Ax is a JS/TS library providing high-level abstractions for LLM usage (signatures, agents, flows, optimizers). It now introduces axIR, allowing compilation to Python, Java, C++, and Go, making the same programming model available across multiple languages.
@MaximeRivest: https://x.com/MaximeRivest/status/2055293570119065875
MaximeRivest explains DSPy's five core components—Optimizers, Signatures, LMs, Modules, and Adapters—and argues that effective AI engineering requires mastering these elements, highlighting the often-overlooked role of rendering structured outputs.
@tom_doerr: Builds custom AI agents with reinforcement learning https://github.com/agentica-project/rllm…
rLLM is an open-source framework for post-training language agents via reinforcement learning, with notable model releases like DeepSWE-Preview and DeepCoder-14B-Preview achieving state-of-the-art results.
A developer shares insights on how to maximize AI agent capabilities, arguing that simpler setups and understanding core principles are more effective than complex harnesses and libraries.
A developer shares insights on how to maximize AI agent capabilities, arguing that simpler setups and understanding core principles are more effective than complex harnesses and libraries.