truefoundry/trueforge

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

What TrueForge Is

TrueForge is an open‑source runtime harness that turns a large language model (LLM) into a fully‑featured autonomous agent. It handles the heavy‑lifting that most developers would otherwise have to build themselves: calling the model, managing tool (MCP) invocations, sandboxed code execution, session persistence, approvals, and context management.

How It Works

  • Agent loop runs on a server (Node ≥ 22) and talks to any OpenAI‑compatible model provider (OpenAI, Anthropic, Gemini, etc.).
  • Resources such as models, MCP tool servers, skill packs, and a sandbox are defined once in YAML catalogs and can be selected by agents at runtime.
  • The harness exposes three ways to interact:
    1. Chat UI – a bundled web interface.
    2. HTTP API – documented with OpenAPI.
    3. TypeScript SDK – @truefoundry/trueforge-sdk for programmatic control, plus @truefoundry/trueforge-ui for embedding the UI.
  • Storage can be SQLite for a single‑user local mode or PostgreSQL + Redis for hosted, multi‑replica deployments (Docker‑Compose, Helm, Railway).

Key Features

  • Model‑agnostic: plug in any OpenAI‑compatible endpoint.
  • MCP tools: remote tool servers with header auth or OAuth, plus in‑chat authorization.
  • Skills: git‑backed SKILL.md instruction packs loaded on demand.
  • Sandbox‑as‑tool: isolated code/file execution (currently via Daytona) with secrets kept inside the harness.
  • Human checkpoints: tool approval prompts, ask‑user‑questions, generative UI elements.
  • Context engineering: sub‑agents, deferred tool loading, Code Mode, large‑result offloading, and automatic conversation compaction.
  • Scheduling: run saved agents on a recurring cadence without manual intervention.
  • Benchmarking: claims lower cost with comparable accuracy to Claude Managed Agents and deepagents.

Getting Started

# One‑liner to spin up a local instance (SQLite, no extra infra)
npx @truefoundry/trueforge@latest

After the quickstart you can:

  • Connect your own models, MCP servers, and skill catalogs via the web UI or YAML files.
  • Use the SDK (npm i @truefoundry/trueforge-sdk) to create sessions, send messages, and listen for events.
  • Embed the UI component (@truefoundry/trueforge-ui) in your own web app.

Who It’s For

  • Developers who want a ready‑made agent runtime without building the plumbing themselves.
  • Teams needing a shared, production‑grade deployment (Postgres/Redis, Docker‑Compose, Helm, Railway).
  • Researchers who want a reproducible environment for benchmarking LLM agents.

Documentation & Community

  • Full docs: https://trueforge.dev (intro, quickstart, API reference, architecture, etc.)
  • Discord community, founder contact emails, and a security disclosure program are provided.

License

MIT – free to use, modify, and distribute.

Related

  • Project
  • Project
  • Project
  • Project
  • Project