Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@askalf/agent

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@askalf/agent

Connect any device to a AI workforce that thinks, heals, remembers, and evolves. Nervous system signals, immune system alerts, auto-reconnect, capabilities scan. One command to install as a persistent service.

Source
npmnpm
Version
3.1.1
Version published
Weekly downloads
173
-63.35%
Maintainers
1
Weekly downloads
 
Created
Source

@askalf/agent

Connect any device to the organism.

WebSocket bridge that registers your machine as a node in the AskAlf fleet. Once connected, autonomous agents dispatch tasks to your device — executed via Claude CLI or native shell. Your device becomes part of a AI workforce that thinks, heals, remembers, and evolves.

Part of AskAlf — an AI workforce that thinks, heals, remembers, and evolves with a nervous system, immune system, and collective memory.

Install

npm install -g @askalf/agent

One Command Setup

askalf-agent connect <your-api-key> --url ws://your-server:3005 --name prod-box --install

That's it. Config saved, service installed, runs on boot. Close the terminal — it keeps running.

What It Does

When connected, your device:

  • Registers with the fleet via WebSocket
  • Scans capabilities — CPU, RAM, 18 tools checked, Claude CLI detection
  • Receives tasks dispatched by the fleet's unified scheduler
  • Executes autonomously — Claude CLI or native shell
  • Emits signals — confidence, urgency, stuck status flow to the nervous system
  • Receives alerts — incident notifications, agent messages, signal broadcasts
  • Reports results — output, tokens, cost, duration back to the fleet
  • Streams progress — the dashboard sees output in real-time

Nervous System Integration

The agent participates in the fleet's nervous system:

Fleet Chief  ──signal──>  Your Device  ──signal──>  Watchdog
     │                         │                        │
     └──── agent:message ──────┘                        │
                               │                        │
                               └── incident:alert ──────┘
  • Emits signals after every execution (success, stuck, urgency)
  • Receives agent messages with urgency levels (CRITICAL / HIGH / INFO)
  • Receives incident alerts when the immune system activates
  • Receives signal broadcasts from fleet-wide awareness

Service Installation

askalf-agent install-service
OSService TypeAuto-start
Linuxsystemd unitOn boot
macOSlaunchd plistOn login
WindowsScheduled Task (or nssm)On login

Commands

askalf-agent connect <key>         Connect to fleet
askalf-agent connect <key> --install  Connect + install as service
askalf-agent install-service       Install as OS service
askalf-agent uninstall-service     Remove OS service
askalf-agent daemon                Background daemon
askalf-agent status                Connection + service status
askalf-agent scan                  Local capabilities scan
askalf-agent disconnect            Stop daemon

Options

FlagDescriptionDefault
--url <url>Server WebSocket URLwss://askalf.org
--name <name>Device display nameSystem hostname
--installInstall as service after connecting
-v, --versionShow version
-h, --helpShow help

How It Works

Your Device                     AskAlf Fleet
┌──────────────┐    WSS     ┌────────────────────┐
│ askalf-agent  │◄──────────►│ Forge Orchestrator  │
│              │            │ Unified Scheduler   │
│ Claude CLI   │  signals   │ Nervous System      │
│ Shell        │◄──────────►│ Immune System       │
│ Your Tools   │  messages  │ Collective Memory   │
└──────────────┘            └────────────────────┘
  • Heartbeat every 30s with memory usage and uptime
  • Auto-reconnect with exponential backoff (2s → 60s max)
  • Capabilities scan — responds to server requests with full system info
  • 10 minute timeout per execution (configurable)
  • Progress streaming — real-time output to dashboard

Programmatic Usage

import { AgentBridge, scanCapabilities } from '@askalf/agent';

const caps = scanCapabilities();
console.log(caps);
// { cpu_cores: 8, tools: ['shell', 'git', 'docker', ...], claude_cli: true, ... }

const bridge = new AgentBridge({
  apiKey: 'your-api-key',
  url: 'ws://your-server:3005',
  deviceName: 'my-server',
  hostname: 'prod-01',
  os: 'Linux 6.1',
  capabilities: caps,
});

await bridge.connect();

Requirements

  • Node.js 22+
  • Claude Code for AI execution (npm i -g @anthropic-ai/claude-code)
  • An AskAlf instance (npx create-askalf or curl -fsSL https://get.askalf.org | bash)

MIT — askalf.org

Keywords

askalf

FAQs

Package last updated on 07 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts