Project

kintsugi

experimental

Runs coding agents on your own server, with your choice of model providers and tools for checking their work.

Overview

Kintsugi runs coding agents on your own server, with your choice of model providers and tools for checking their work. It is an opinionated fork of Lucas Meijer's AgentsInTheCloud, named after the Japanese art of repairing pottery with gold. Its web interface brings together agent conversations, workspace files, Git changes, terminals, embedded VS Code and draw.io editing, and previews.

The fork adds per-agent plans, code mode and subagents, workspace resource monitoring, a credential catalogue, private-network access controls, shared MCP connections and an opt-in token optimiser.

How it works

A Bun server on a dedicated Linux Docker host provisions a container for each workspace and runs agent sessions in it. Browsers get live updates over WebSocket, with an SSE fallback that can be chosen per browser for clients that cannot hold a WebSocket open.

Credentials live in an instance catalogue and are granted per workspace template. Agents only see placeholders; an egress proxy substitutes the real value for the configured destination. Private-network access needs exact host and port grants, separately from Git-host credentials. HTTP and OAuth MCP connections can be shared with selected workspaces; stdio servers stay bound to one workspace.

Releases publish native AMD64 and ARM64 images. A host updater installs them, with version pins and rollback. Updates interrupt running workspaces.

Features

→

Coding-agent workspaces

Per-agent plans, code mode with slash templates, subagents, a Background view for delegated work and full-text search over agent history.

→

VS Code and draw.io

Embedded code and diagram editing, previews, CSV/TSV tables and read-only DOCX, Excel/ODS and PPTX views.

→

Workspace monitoring

RAM, swap, CPU and task limits, out-of-memory protection, and CPU, RAM and I/O charts collected even when no browser is open.

→

Credentials and networking

Per-template credential grants with proxy-side substitution and exact private host and port permissions. Git connections for GitHub, GitLab.com, Bitbucket Cloud and Gitea.

→

Optional token optimisation

A TypeScript port of Microsoft's TokenEconomizer for context pruning, learned facts and loop detection, off by default. Basic mode makes no extra model calls; the cost and quality effects of the model-assisted mode have not been measured.

→

MCP connections

HTTP and OAuth servers shared across workspaces with per-workspace agent restrictions, workspace-bound stdio servers and bounded result recall.

→

Deployment controls

Native AMD64 and ARM64 images, configurable release sources, version pins and rollback.

→

Optional management API

A JSON API, disabled by default, with scoped bearer tokens and TLS required on non-loopback listeners. It does not expose agent prompting, terminals or commands.

Architecture

Browser workspace Agents, files, Git, editors Bun server Modules + live updates Docker host Workspace provisioning Agent container Tools + workspace files Self-hosted coding-agent workspaces

Posts