ANOLISA: Alibaba's Agentic OS Reshaping the AI Agent Runtime Environment

ANOLISA: Alibaba's Agentic OS Reshaping the AI Agent Runtime Environment

作者 铂傲智能团队
英文版本稍后补充。
#ANOLISA #Agentic OS #AI Agent #eBPF #Alibaba #Anolis OS

ANOLISA: Alibaba’s Agentic OS Reshaping the AI Agent Runtime Environment

Abstract


What Is ANOLISA?

ANOLISA stands for Agentic Nexus Operating Layer & Interface System Architecture, an open-source project by Alibaba on GitHub that represents a major step in Anolis OS’s evolution toward an Agentic OS—an operating system built natively for AI Agent workloads.

Traditional server-side operating systems primarily serve human users and conventional applications. ANOLISA’s core philosophy is different: the OS should natively support AI Agent workloads. It is not merely a tool but a complete operating system architecture tailored for AI Agents.

Core Architecture Overview

ANOLISA comprises four core components, each with distinct responsibilities:

ComponentDescriptionBased On
Copilot ShellAI-powered terminal assistant for code understanding, task automation, and system managementQwen Code v0.9.0
Agent Sec CoreOS-level security kernel—system hardening, sandboxing, asset integrity verification, and security decision-makingloongshield + GPG + SHA-256
AgentSighteBPF-based observability for AI Agents—zero-intrusion monitoring of LLM API calls, token consumption, and process behavioreBPF + SQLite + SLS
OS SkillsCurated skill library for system administration, monitoring, security, DevOps, and cloud integrationLocal + remote skill orchestration

Deep Dive into Each Component

1. Copilot Shell: AI-Powered Terminal Assistant

Copilot Shell is ANOLISA’s primary interface, built on Alibaba’s Qwen Code (v0.9.0) from the Tongyi Qianwen team. It seamlessly bridges natural language with code operations, enabling ops and development personnel to describe tasks in everyday language while AI handles execution.

Key Capabilities:

Quick Start:

# Install
sudo yum install copilot-shell

# Build
cd src/copilot-shell
make build

# Launch interactive mode
cosh

Copilot Shell uses an npm workspaces monorepo layout with three sub-packages: packages/cli (terminal UI layer), packages/core (backend core), and packages/test-utils (shared test utilities).


2. Agent Sec Core: OS-Level Security Kernel

As AI Agents progressively gain OS-level execution capabilities (file I/O, network access, process management, etc.), traditional application security boundaries no longer apply. Agent Sec Core addresses this by building a three-layer defense system from system hardening to security decision-making.

Security Principles:

Three-Phase Security Check Architecture:

┌─────────────────────────────────────────────┐
│           Agent Application                 │
├─────────────────────────────────────────────┤
│     Security Decision (Risk Classification) │
├─────────────────────────────────────────────┤
│     Phase 3: Final Security Confirmation    │
├─────────────────────────────────────────────┤
│  Phase 2: Asset Protection (GPG + SHA-256)  │
├─────────────────────────────────────────────┤
│   Phase 1: System Hardening (loongshield)   │
├─────────────────────────────────────────────┤
│              Linux Kernel                  │
└─────────────────────────────────────────────┘

Risk Classification & Handling:

LevelExamplesAction
LowFile reads, info queries, text processingAllow (sandboxed)
MediumCode execution, package install, external API callsSandbox isolation + user confirmation
HighReading .env/SSH keys, data exfiltration, modifying system configBlock unless explicitly approved
CriticalPrompt injection, secret leakage, disabling security policiesImmediate block + audit log + notify user

Mandatory Protected Paths: /etc/ssh/, ~/.ssh/, /etc/shadow, /etc/gshadow, API token storage paths, database credentials, and more.

Sandbox Policy Templates:

TemplateFilesystemNetworkUse Case
read-onlyEntire filesystem read-onlyDeniedRead operations: ls, cat, grep, git status, etc.
workspace-writecwd + /tmp writable, rest read-onlyDeniedBuild, edit, script execution requiring file writes
danger-full-accessUnrestrictedAllowed⚠️ Reserved for special scenarios only

3. AgentSight: eBPF-Powered AI Agent Observability

AgentSight is an observability tool built on eBPF (Extended Berkeley Packet Filter) technology, providing zero-intrusion monitoring for AI Agents.

Key Features:

Data Processing Pipeline:

┌──────────┐  ┌────────┐  ┌────────────┐  ┌──────────┐  ┌───────┐  ┌─────────┐
│  Probes  │─▶│ Parser  │─▶│ Aggregator │─▶│ Analyzer │─▶│ GenAI │─▶│ Storage │
└──────────┘  └────────┘  └────────────┘  └──────────┘  └───────┘  └─────────┘
 eBPF events HTTP/SSE  Req-Resp    Token/Audit  Semantic  SQLite /
 (kernel)   extraction  correlation extraction events       SLS export

eBPF Probe Types:

ProbeSource FileFunction
sslsniffsslsniff.bpf.cIntercepts SSL_read/SSL_write to capture plaintext from encrypted connections
proctraceproctrace.bpf.cTraces execve syscalls, captures command-line args, builds process tree
procmonprocmon.bpf.cLightweight process monitor for creation/exit events (agent discovery)

Quick Usage:

# Foreground tracing mode
sudo agentsight trace

# Daemon mode with SLS export
sudo agentsight trace --daemon \
  --sls-endpoint <endpoint> \
  --sls-project <project> \
  --sls-logstore <logstore>

# Query token consumption
agentsight token

# Audit event query
agentsight audit --summary

# Discover AI agents on the system
agentsight discover --verbose

Environment Requirements:

ComponentVersion
Linux kernel>= 5.8 (BTF support required)
Rust>= 1.70
clang / llvm>= 11
libbpf>= 0.8

4. OS Skills: Operations Skill Library

OS Skills is ANOLISA’s operations capability collection, providing curated skill libraries covering system administration, monitoring, security, DevOps, and cloud integration. These skills are organized as local + remote skills with priority-based orchestration (Project > User > Extension > Remote), ensuring that Agents have complete operational capability support when executing tasks.


One-Command Installation & Quick Start

One of ANOLISA’s key advantages is its minimal installation barrier—all components can be deployed via RPM package manager with a single command:

# Install all components
sudo yum install copilot-shell agent-sec-core agentsight anolisa-skills

# Launch Copilot Shell (AI terminal assistant)
cosh

This means even developers with limited operations experience can set up an AI Agent operating environment within minutes.


Technical Insights: Why Agentic OS Matters

ANOLISA’s emergence reflects a significant trend in the AI field—AI Agents are evolving from “conversational assistants” to “agents capable of executing complex tasks”—and this evolution presents entirely new requirements at the operating system level:

  1. Security Isolation: Agents require fine-grained permission control and sandboxing capabilities from the OS to prevent malicious or accidental operations from causing system-level damage.
  2. Observability: Agent decision-making processes are opaque, requiring kernel-level technologies like eBPF for non-intrusive monitoring.
  3. Native Interaction: Traditional CLI interfaces cannot meet the natural language interaction needs of Agents, requiring AI-native terminal experiences.
  4. Skill Orchestration: Agents need to invoke various tools and system interfaces, requiring the OS to provide standardized skill orchestration mechanisms.

ANOLISA represents Alibaba’s best-practice attempt in this direction, deeply integrating the experience accumulated by the open-source community in the AI Agent field with Linux operating system capabilities, providing a complete technical stack for the next generation of AI Agent operation.


Conclusion

ANOLISA (Agentic Nexus Operating Layer & Interface System Architecture) represents Alibaba’s exploration in the field of Agentic OS. Through the collaboration of four core components—Copilot Shell (interaction entry), Agent Sec Core (security kernel), AgentSight (observability), and OS Skills (operations library)—ANOLISA provides complete support for AI Agent operations from interaction to security, from monitoring to operations management.

As an open-source project, ANOLISA not only provides developers with a fully functional AI Agent operating system reference implementation but also contributes significant momentum to industry-wide standard-setting and technological evolution in the Agentic OS domain.

Project URL: https://github.com/alibaba/ANOLISA

License: Apache License 2.0