Linux Autopilot

Architecture

See the MVP specification sections 2 and 3.

Trust boundaries

  1. Browser to API: TLS, secure cookie session, CSRF, RBAC.
  2. API to PostgreSQL: internal network, least-privilege DB role.
  3. API/worker to Ollama: loopback or private Docker network only.
  4. Managed agent to API: outbound HTTPS + mTLS, identity bound to certificate.
  5. Tool execution: unprivileged agent plus restricted helper for approved writes.

Request flow

User message -> task creation -> orchestrator proposes tools -> validation -> policy check -> dispatch to agent -> execution -> verification -> report. All tool output is treated as untrusted data.

Components

  • Web (Next.js): dashboard, chat, tasks, approvals, settings.
  • API (FastAPI): auth, orchestration, policy, task management.
  • Agent (Python): heartbeat, tool execution, enrollment.
  • Contracts (shared schemas): tool definitions, validation.
  • Eval (model evaluation harness): tool-calling accuracy tests.

Agentic administration

Linux Autopilot is an agentic administration platform: an AI agent (LLM) acts on behalf of an administrator to inspect and modify a managed Linux host, but only within a strictly bounded, policy-governed framework.

The agent follows a controlled loop:

  1. Perceive -- collect OS, kernel, CPU, memory, disk, uptime and service status.
  2. Plan -- the LLM proposes a sequence of tool calls from a registered catalogue.
  3. Validate -- every tool call is checked against deterministic policies (tool allowlist, argument schema, permissions, risk level, approvals).
  4. Act -- approved calls are dispatched to the unprivileged agent on the managed host.
  5. Verify -- results are checked and a diagnosis is produced.
  6. Audit -- every step is recorded with who requested, approved and executed it.

Human approval is required for sensitive actions (e.g. service restart). The model never executes a command directly or bypasses the policy layer. Tool outputs are treated as untrusted data to resist prompt injection.

Architecture Decision Records

Key architectural decisions for the MVP.

ADRs