Skip to content

covalence-org/haven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haven

A Linux-based runtime for running AI agents in isolated, policy-controlled sessions.

What it does

Each agent session runs in its own set of Linux namespaces (PID, mount, network, UTS) with cgroup resource limits. File access goes through an OverlayFS layer so the agent's changes never touch the original files. Network access is restricted to explicitly allowed endpoints via network namespace routing. File modifications are automatically versioned and reversible.

Architecture

HavenOS is a purpose-built Linux distribution. havend runs as PID 1 and manages the full session lifecycle. No systemd, no SSH, no shell, no package manager. The root filesystem is immutable. Isolation is enforced at the kernel level through namespaces, cgroups, and routing.

Status

Early development. Working through the core runtime: namespace isolation, OverlayFS workspaces, network namespaces, checkpoint/restore.

Building

Requires Linux and root privileges for namespace and cgroup operations.

go build -o haven ./cmd/haven
sudo ./haven session create /bin/bash

Project structure

cmd/haven/          CLI entry point
internal/session/   Session data and path management
internal/runtime/   Namespace init, overlay, cgroups

License

TBD

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages