daemon.es

daemon.es is a command for coding agents from druide67/asiai. It costs 27 tokens per session (595 once invoked), scanned A, original, Apache-2.0.

A macOS background service for running asiai's monitoring and web dashboard automatically.

In plain words
What is it for?
Use it to collect system and inference metrics on a schedule, run the local web dashboard continuously, view service status and logs, or stop the services.
Why use it?
It removes the need to start monitoring or the dashboard by hand each time. It also keeps logs and can send webhook alerts when monitored conditions change.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/druide67/asiai/daemon.es
Clone the repo
git clone --depth 1 https://github.com/druide67/asiai

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for daemon.es

README.md
[![agentmods](https://agentmods.dev/badge/commands/druide67/asiai/daemon.es.svg)](https://agentmods.dev/commands/druide67/asiai/daemon.es)
Your own site
<a href="https://agentmods.dev/commands/druide67/asiai/daemon.es"><img src="https://agentmods.dev/badge/commands/druide67/asiai/daemon.es.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00595
Opus 5 $0.00014 $0.00298
Sonnet 5 $0.00005 $0.00119
Haiku 4.5 $0.00003 $0.00060

Measured 4d ago against content hash 494bbe4c585e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

daemon.es scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/daemon.es.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

asiai daemon

Gestiona servicios en segundo plano mediante LaunchAgents de macOS launchd.

Servicios

Servicio Descripción Modelo
monitor Recopila métricas del sistema e inferencia a intervalos regulares Periódico (StartInterval)
web Ejecuta el panel web como servicio persistente Larga ejecución (KeepAlive)

Uso

# Daemon de monitoreo (por defecto)
asiai daemon start                     # Iniciar monitoreo (cada 60s)
asiai daemon start --interval 30       # Intervalo personalizado
asiai daemon start --alert-webhook URL # Activar alertas por webhook

# Servicio del panel web
asiai daemon start web                 # Iniciar web en 127.0.0.1:8899
asiai daemon start web --port 9000     # Puerto personalizado
asiai daemon start web --host 0.0.0.0  # Exponer en la red (¡sin autenticación!)

# Estado (muestra todos los servicios)
asiai daemon status

# Detener
asiai daemon stop                      # Detener monitor
asiai daemon stop web                  # Detener web
asiai daemon stop --all                # Detener todos los servicios

# Logs
asiai daemon logs                      # Logs del monitor
asiai daemon logs web                  # Logs del web
asiai daemon logs web -n 100           # Últimas 100 líneas

Cómo funciona

Cada servicio instala un plist de LaunchAgent de launchd separado en ~/Library/LaunchAgents/:

  • Monitor: ejecuta asiai monitor --quiet en el intervalo configurado (por defecto: 60s). Los datos se almacenan en SQLite. Si se proporciona --alert-webhook, las alertas se envían por POST en transiciones de estado (presión de memoria, térmica, motor caído).
  • Web: ejecuta asiai web --no-open como proceso persistente. Se reinicia automáticamente si falla (KeepAlive: true, ThrottleInterval: 10s).

Ambos servicios se inician automáticamente al iniciar sesión (RunAtLoad: true).

Seguridad

  • Los servicios se ejecutan a nivel de usuario (no requieren root)
  • El panel web se enlaza a 127.0.0.1 por defecto (solo localhost)
  • Se muestra una advertencia al usar --host 0.0.0.0 — no hay autenticación configurada
  • Los logs se almacenan en ~/.local/share/asiai/

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 58 lines · 27 tokens per session scan A 494bbe4c585e

Subscribe to this mod's changes

daemon.es is a command published in the GitHub repository druide67/asiai (11 stars, last pushed 5d ago), licensed Apache-2.0. It adds 27 tokens to every session and 595 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.