Aegis OS: A Transactional Multi-Tenant Operating System Runtime for Eliminating Authorization Fatigue in Autonomous Coding Agents
Abstract
Autonomous coding agents such as Google Antigravity (agy), Anthropic Claude Code (claude), and OpenAI Codex CLI (codex) execute multi-step software engineering workflows on workstations and cloud hosts. Existing agent environments face a Security-Autonomy Dilemma: operators must choose between per-action confirmation prompts, which interrupt workflows on 45%-57% of tool calls and induce authorization fatigue, or unconfined execution (--yolo / --dangerously-skip-permissions), which exposes host files, SSH/cloud credentials, and API tokens to prompt injection and hallucination risks. Furthermore, concurrent agents editing a shared working tree clobber one another's changes, while passing large artifacts inline through LLM context windows incurs high token overhead. We present Aegis OS (aegis-os), a transactional, multi-tenant Agent Operating System Runtime in Rust exposed via the Model Context Protocol (MCP) and Google Agent2Agent (A2A) protocol. Aegis OS shifts the authorization boundary from individual tool calls to transactional workspace boundaries. Each agent runs inside a kernel-enforced OS sandbox (macOS Seatbelt and Linux Bubblewrap with default-deny --tmpfs $HOME isolation and a Unix-socket egress bridge) backed by a Copy-on-Write (CoW) shadow workspace (APFS clonefile; single-open Linux FICLONE reflinks), an identity-pinned HTTP Egress Proxy with L7 method/path-scoped secret injection and outbound DLP, and an A2A IPC bus with Content-Addressable Storage (CAS). Across 1,500 controlled calls and 28,087 real calls across 52 coding-agent sessions, Aegis OS reduces prompts by 94.19%-99.88% (controlled) and 90.7%-97.9% (real sessions, 1.12% IPR), lowers attack success rate across 80 attacks in eight categories from 100.0% to 0.0% on macOS and Linux, clones 1,000-file (78.1 MB) repos in 6.3 ms on APFS and 15.6 ms on btrfs, and catches 10/10 syntactic and semantic merge conflicts.
Create a lesson
Metadata
- Categories
- cs.OS, cs.CR, cs.MA, cs.SE
- Comments
- 19 pages, 3 TikZ figures, 13 tables. Open-source Rust implementation and reproducible benchmark suite available at https://github.com/heurion-org/aegis-os
Related papers
Global Simulation-Guided Dynamic Operator Scheduling for Efficient Multi-Tenant Model Serving
Shared title terminologycs.OSWeinan Liu, Zeyuan Ding, Dian Ding et al.
TinyContainer: Container Runtime Middleware Enabling Multi-tenant Microcontrollers with Built-in Security
Shared title terminologycs.OSBastien Buil, Chrystel Gaber, Samuel Legouix et al.
Grouper: Scheduling Groups for Multi-Tenant Microsecond-Scale Microservices
Shared title terminologycs.OSKoosha Kazemi, Mohammad Siavashi, Ahmad Siavashi et al.
OSFoundry: Building and Evolving Operating Systems with Specification-Guided Agents
Shared title terminologycs.OSHengbin Zhang, Qingyuan Liu, Mo Zou et al.
LUMOS: A Semantic Operating-System Layer for Accessibility-Grounded AI Agents
Shared title terminologycs.OSYogeswar Reddy Thota
Polymorph: Operating System Kernel Optimization Through Artificial Intelligence
Shared title terminologycs.OSDean Sysman, Georgios Liargkovas, Tal Zussman et al.