agent-express
agent-express is a fast, minimal AI agent framework written in TypeScript, adopting an Express.js-like middleware pattern. It uses only three core concepts—Agent, Session, and Middleware—replacing the numerous concepts in other frameworks with a unified (ctx, next) interface. The framework provides 5 layers of onion-style middleware hooks (agent, session, turn, model, tool), and has built-in guard capabilities such as budget caps, input/output validation, timeouts, iteration limits, and human approval, and supports more than 12 model providers, complexity-based model routing, context window compaction, MCP integration, and SSE streaming output.