SuperAPIAI Directory

Sage

github.com · AI agents

Sage is an RSI (Recursive Self-Improvement) Agent Harness for running, evaluating, and evolving AI agents. Starting from a goal or curated usage history, it preserves every version and its evidence, and the user decides whether to adopt improvements. Sage provides a desktop app, a server, and a Python SDK, supports tools, skills, MCP, stateful execution, and multi-agent workflows, and includes built-in RSI workflows, evaluation, and selection rules. The project is under the MIT license, and the current version is 2.2.0.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Sage is an RSI Agent Harness for running, evaluating, and evolving AI agents. RSI (Recursive Self-Improvement) starts from a goal or curated usage history, preserves every version and its evidence, and the final decision on whether to adopt is made by the user.

Key capabilities

  • RSI workflows: support multi-round agent package optimization, suite auditing, semantic review, desktop progress display, and agent-level version history. The default workflow uses a fixed dev set and a continuously expanding train set; dev guides development, and independent test measurements are observational only. RSI generates candidates but does not activate them automatically.
  • Harness capabilities: support tools, skills, MCP, stateful execution, and multi-agent workflows. Agent packages define agent capabilities, sessions preserve conversation history across Runs, and Runs execute tasks and provide real-time progress and interaction.
  • New in Desktop 2.2.0: desktop plugins (upload ZIPs, launch or pin installed plugins, agents can build plugins and open them in the workspace), Sage Voice (voice conversation with real-time captions and interruption, tools can be enabled separately and voice progress updates customized, runs independently of source code on Apple Silicon Macs), Run-level skills (agents can discover authorized skills and load the versions referenced by search results).
  • Deployment forms: desktop app, server, and Python SDK are provided. The desktop app bundles Python and the backend, requiring no repository checkout, system Python, or Flutter; the server requires Python 3.12+, Node.js 22.12+, and one of MySQL or PostgreSQL.

Usage

  • Desktop: download the installer for your platform (macOS arm64/x86_64, Windows x86_64, Linux arm64/x86_64), install and open it, then add a model and start a conversation via Settings → Configure an Agent → Start a conversation. The app automatically starts the local backend; settings and session data are located in ~/sage/runtime, and the default workspace is ~/sage/agent_workspace. Linux still requires GTK and bubblewrap.
  • Running the desktop app from source:Requires Python 3.12+, Flutter (Dart ^3.12.2 and desktop support); the Desktop OpenUI streaming parser also requires Node.js 22+.
  • Server side: activate the Python environment in the checkout root directory, configure a database URL in .env (MySQL or PostgreSQL, the two cannot be configured at the same time), a JWT secret, and initial administrator credentials, then run the service and open localhost:8090. When using PostgreSQL, install the postgres extra and set SAGE_SERVER_POSTGRES_URL. The server currently supports only a single worker, and database persistence does not enable horizontal scaling.
  • Python SDK: can be used as a single file without sage.yaml. loads() parses YAML text, and build() directly accepts a manifest object; the example prints events and the final state and does not include file or shell tools.

Use cases Suitable for developers and teams that need to run, evaluate, and iteratively improve AI agents, including building agents with tools and MCP integration, performing multi-round Agent package optimization and version comparison, interactive development and voice operation on the desktop, and integrating into their own applications via the server side or SDK.

Limitations

  • Desktop RSI currently supports simple types and native tools; general MCP integration does not mean MCP is supported in RSI bindings.
  • The built-in configuration targets a single process or single host, and the server side supports only a single worker; local execution is not container isolation.
  • Callers need to organize history into goals or suites; RSI generates candidates but does not activate them, and persistent state does not provide distributed task takeover or automatic checkpoint recovery.
  • The macOS package is not notarized, and the Windows installer is not code-signed.
  • Model services may charge usage fees.
  • Some component guides are currently in Chinese.

The project uses the MIT license.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools