Krellin

Sandboxed Runtime for AI-Assisted Development

A local-first runtime for AI-assisted development that keeps agent work sandboxed, repeatable, and explainable.

1. Project Overview

Krellin pairs a lightweight daemon with per-repo Docker capsules so AI agents can run real commands and edit real files without directly touching your host environment.

The core goal is simple:

Let an agent do real work while keeping the host machine out of the blast radius.

Krellin is designed for developers who want agentic workflows but require:

This is actively being exercised against real agent workflows, and the current design reflects early constraints around reproducibility, failure isolation, and toolchain drift.

Status: under active development. Expect breaking changes and rough edges.

Key Guarantees

2. Design Principles

3. What it looks like (today)

A typical loop is:

  1. Start a repo capsule
  2. Ask the agent to make a change
  3. Inspect the action log
  4. Reset and replay if needed
User/TUI ──> Krellin Daemon ──> Capsule (per repo)

                    └── Ordered action log (commands, patches, file writes)

4. Architecture

Krellin is split into three conceptual parts:

  1. Daemon (Control Plane)
  2. Capsules (Execution Plane)
  3. Client / TUI (Operator Plane)

4.1 Daemon (Control Plane)

The daemon is responsible for:

Design goal: the daemon is predictable under failure.

4.2 Capsules (Execution Plane)

A capsule is a per-repo container environment that contains:

Invariants (non-negotiable):

4.3 Client / TUI (Operator Plane)

The UI exists to:

5. Execution Model: Serialized Actions

Krellin treats agent work as a sequence of actions.

An action may be:

Core invariant: actions are serialized, producing an ordered event log.

This:

6. Determinism & Resets

Krellin is built around fast, deterministic resets.

Reset scope typically includes:

Goal: retries happen under the same conditions.

7. Tooling Surface Area

AI agents require a non-trivial CLI surface:

Krellin makes this surface:

Missing tools should be a build-time concern, not a runtime surprise.

8. Failure Modes & Safety Posture

Krellin prefers safe failure over silent recovery.

8.1 Docker unavailable

8.2 Image drift

8.3 Bad agent output

8.4 Host protection

Krellin aims to prevent:

9. Design Constraints & Tradeoffs

These tradeoffs are intentional and may evolve with real-world use.

10. Non-Goals (v1)

11. Quick Start

curl -fsSL https://raw.githubusercontent.com/cbdeane/krellin/main/scripts/quickstart.sh | bash

Requirements: Docker, Git, Go.

12. What I’d Change Next

Closing Note

Krellin is intentionally opinionated: agentic workflows are only useful if they are resettable, replayable, and explainable.

The goal is not “AI writes code.”

The goal is agent work you can trust enough to run.