Back to directory

TypeScript Agent Runtime

A production-minded, dependency-free server-side agent runtime in TypeScript that handles streaming chat, tool calling and knowledge-base retrieval with explicit, tested handling of edge cases like aborted runs and token-limit cutoffs.

TypeScript Agent Runtime

This is a server-side AI agent runtime written in plain TypeScript, with no LangChain, LangGraph or workflow engine. It handles edge cases most agent tutorials skip: a model requesting two tools at once, tool arguments cut off by a token limit, a user closing the tab mid-run, and a late retried result trying to overwrite an already-finished run.

Each run is committed as a single transaction covering the message, its steps and final state, so only one outcome wins a race; when the commit result is uncertain the system reports that instead of assuming success. Each run is stored as a sequence of steps, visible in an admin console timeline with token usage, latency and failure causes.

Each run gets its own token budget, estimated with a local tokenizer, with oldest-first history trimming. It supports DeepSeek's API directly and OpenAI-compatible relays for GPT, Grok and Gemini, with provider API keys encrypted at rest. It ships with a web app and an admin console.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.