PitchHut logo
ASys — Agentic System Interface
A binary protocol interface designed for AI agents controlling Linux systems.
Pitch

ASys transforms how AI agents interact with Linux systems through a precise, typed binary protocol. By eliminating the ambiguities of text parsing, it provides clear and structured communication, ensuring consistent performance across diverse environments. Ideal for AI operations, ASys enhances efficiency with a specialized interface tailored for intelligent automation.

Description

ASys — Agentic System Interface

ASys is a specialized binary protocol designed to facilitate interactions between AI agents and Linux systems. Unlike traditional interfaces such as SSH, ASys eliminates the need for human-readable text parsing, allowing AI agents to communicate through fixed-length binary frames that guarantee consistency across environments. This innovative approach is centered around the following key features:

Advantages of ASys

  • Efficiency: AI agents can retrieve information such as process counts and resource usage through concise binary frames, significantly reducing processing time and complexity. For instance, the SYS_PROCS instruction provides a 44-byte response containing vital system information.
  • Simplicity: Remove the variability associated with text parsing; ASys utilizes a clear instruction set that is uniformly interpreted across various Linux distributions.
  • Security: Leveraging modern cryptography, ASys uses the Noise IK protocol for secure communication, ensuring session content is protected against eavesdropping and replay attacks.
  • Flexibility: Works alongside existing tools (e.g., SSH, Ansible) while offering a tailored interface for scenarios where AI agents operate autonomously.

System Architecture

ASys architecture comprises an AI agent leveraging a Python SDK to interact with a C daemon (asyd) that communicates directly with the Linux operating system via POSIX system calls. Here’s a visual representation of the architecture:

  AI Agent (LLM)
       │  Tool calls
  Python SDK  (~/.asys/id_curve25519)
       │  Noise_IK_25519_ChaChaPoly_BLAKE2b
       │  TCP port 7816
  asyd  (C daemon, zero dependencies)
       │  POSIX syscalls
  Linux

Instruction Set Overview

The instruction set is categorized for ease of use:

Core Instructions (0x00–0x0F)

These instructions provide read-only operations with guaranteed safety from side effects, including capabilities and status information about the system.

INSNameResponseDescription
0x00SYS_CAPS36BStatic capabilities: CPU, RAM, disk, ISA bitmap
0x01SYS_HELLO18BNode UID + nanosecond timestamp
0x02SYS_STATUS23BLoad avg, CPU%, available RAM, disk, network, RPI
0x03SYS_PROCS44BTotal procs + top-5 by CPU (PID, CPU%, MEM%)

Standard Instructions (0x20–0x2F)

These commands interact with processes and require appropriate permissions:

INSNameResponseDescription
0x20PROC_THROTTLESW onlySIGSTOP / SIGCONT a process by PID
0x21NET_ISOLATEIsolate process network access (planned)
0x22SVC_RESTART6BRestart a named systemd service (async)

Security Model

ASys implements robust security features through mutual authentication and cryptographic mechanisms that ensure integrity and confidentiality of communication. Key security highlights include:

  • Transport Security: Use of the Noise IK framework guarantees data privacy through advanced encryption methods, preventing unauthorized access.
  • Session Management: Secure handling of session keys ensures that compromised static keys do not jeopardize prior session content.
  • Privilege Containment: Execution under Caged Root limits capabilities to only what is necessary for operation, safeguarding the system from potential breaches.

Getting Started

To explore the capabilities of ASys, users can follow simple steps to set up an environment where they can register an agent, establish a connection to a server, and execute various instructions to monitor or alter system states. Example connections to demonstrate ASys operations can be performed with provided Python scripts that act as clients.

For detailed documentation including architectural designs, specifications, and operational guidelines, refer to the ASys documentation.

ASys represents a forward-thinking approach to automation and control, designed specifically with AI agents in mind, fostering enhanced interactions with Linux environments.

0 comments

No comments yet.

Sign in to be the first to comment.