Architecture
See the MVP specification sections 2 and 3.
Trust boundaries
- Browser to API: TLS, secure cookie session, CSRF, RBAC.
- API to PostgreSQL: internal network, least-privilege DB role.
- API/worker to Ollama: loopback or private Docker network only.
- Managed agent to API: outbound HTTPS + mTLS, identity bound to certificate.
- 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:
- Perceive -- collect OS, kernel, CPU, memory, disk, uptime and service status.
- Plan -- the LLM proposes a sequence of tool calls from a registered catalogue.
- Validate -- every tool call is checked against deterministic policies (tool allowlist, argument schema, permissions, risk level, approvals).
- Act -- approved calls are dispatched to the unprivileged agent on the managed host.
- Verify -- results are checked and a diagnosis is produced.
- 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.
