Why it matters
Spectra offers developers a flexible and performant foundation for building AI agents in both TypeScript and Rust, without the overhead of shared runtimes or FFI. Its focus on core primitives and independent SDKs allows for greater control and customization, which is crucial for developing robust and scalable AI applications.

Spectra is an open-source AI agent framework developed by codex-mohan, providing distinct SDKs for TypeScript and Rust. The project prioritizes a minimal and fast approach, aiming to offer core primitives that enable developers to build complex AI agent functionalities without framework limitations. Both the TypeScript and Rust SDKs are complete, independent native implementations, ensuring identical API surfaces and behaviors without relying on shared runtimes, bindings, or Foreign Function Interfaces (FFI).

The framework includes features such as an LLM abstraction for streaming and completion, multi-turn tool dispatch with Zod validation, hooks, and retry mechanisms. The TypeScript SDK further provides production runtime infrastructure like SessionEngine for lifecycle orchestration, various SessionStore options (in-memory, filesystem, SQLite, Redis), and distributed rate limiting with RedisRateLimiter and CompositeRateLimiter. It also features a CircuitBreaker for resilience and SseBridge for SSE streaming. The Rust SDK includes core types, agent, tools, events, and HTTP clients for various LLM providers, with a focus on zero unsafe code and rustls for security.

Spectra supports a range of LLM providers including Anthropic, OpenAI, and Groq, with streaming and tool use capabilities across both TypeScript and Rust implementations. The project's architecture is designed to scale from local CLI applications to distributed cloud deployments, offering different configurations for session management and rate limiting based on deployment needs. The latest release, v0.4.0, includes updates such as an npm scope migration, a new model registry supporting 158 providers and 4039 models, a mode-switching agent system, and a full rewrite of the TUI with @opentui/react.

Sources

Written with AI assistance from the linked sources; every claim below was checked against them automatically. How we produce articles.

Claim check: 6/6 supported claims - 6 evidence links - 88% avg confidence
  • Spectra is a fast and minimal AI agent library available for TypeScript and Rust.supported - github.com
  • The project provides independent native SDKs for TypeScript and Rust, ensuring the same API surface and behavior without shared runtimes or FFI.supported - github.com
  • Spectra's latest release is v0.4.0, which includes updates like an npm scope migration, a new model registry, and a rewritten TUI.supported - github.com
  • The framework supports 158 providers and 4039 models through its new `generate-models` script, fetching data from OpenRouter and models.dev.supported - github.com
  • Spectra includes features such as multi-turn tool dispatch with Zod validation, retry with backoff, and support for parallel/sequential execution.supported - github.com
  • The TypeScript SDK offers production runtime infrastructure including `SessionEngine`, `RedisRateLimiter`, `CompositeRateLimiter`, and `CircuitBreaker`.supported - github.com

Caveats

  • The exact number of models and providers is stated in the release notes, but the functionality of the `generate-models` script is a claim from the author.
  • Single-source caution: verify critical details at the linked source.
Radar score 87/100 - how it was calculated
Reliability82
Freshness92
Novelty77
Technical87
Developer96
Ecosystem72
Confidence93
  • Reliability 82: GitHub metadata supports source trust
  • Freshness 92: Fresh GitHub activity
  • Novelty 77: Fresh GitHub release
  • Technical 87: Repository technical metadata
  • Developer 96: Developer tooling signals
  • Ecosystem 72: Fresh GitHub release
  • Confidence 93: Claims have reliable evidence
Share
XLinkedInHacker News

Discussion

Loading comments...

Related articles

AI Coding - Oct 24, 2026Poracode: Unified AI Coding Agent InterfacePoracode offers a unified desktop interface for managing multiple AI coding agents, including Claude, Codex, Gemini, and Copilot. The application supports side-by-side execution with customizable terminal and chat layouts.AI Coding - Oct 24, 2026mu (μ) v0.2.0: AI Coding Agent with Fast JudgeThe mu (μ) project, version v0.2.0, introduces an AI coding agent designed to "think before it acts." It utilizes a small, fast judge for routine decisions, delegating complex tasks to a larger model, and is built upon the pi framework.AI Coding - Oct 29, 2026Axocoatl v1.5.1: Unattended Coding Agent ExecutionAxocoatl v1.5.1 enables unattended execution of coding agents, supporting models like Claude Code, Codex, or local LLMs within a sandbox. It integrates host-side checks, a separate review model, and generates signed receipts with CI exit codes.Agents - Oct 29, 2026CloakPipe v0.14.0: Verifiable Control Plane for AI AgentsCloakPipe has released version v0.14.0, introducing a verifiable control plane for production AI agents. This Rust-based system focuses on evaluating, certifying, and enforcing policies at runtime, while also providing proof of operations.AI Coding - Oct 29, 2026Ataraxy Labs SEM: Semantic Version Control for Code AgentsAtaraxy Labs SEM offers semantic version control on top of Git, providing entity-level diffs, blame, and impact analysis. It supports 28 languages via tree-sitter and is specifically built for coding agents.Agents - Oct 29, 2026NodeCode AI Agent Release v0.1.3NodeCode has released version v0.1.3 of its AI agent, described as a 'living agent organism' written in Common Lisp. This project focuses on AI agents and LLM integration within a terminal environment.