daemon.pt

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

A Mac command-line tool for running monitoring and web-dashboard services in the background. A background service keeps working without an open terminal.

In plain words
What is it for?
Use it to collect system and inference metrics at set intervals, send webhook alerts, or keep a local web dashboard running.
Why use it?
It removes the need to start monitoring or the dashboard manually after each restart. It also provides commands to check status, stop services, and view logs.

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.pt
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.pt

README.md
[![agentmods](https://agentmods.dev/badge/commands/druide67/asiai/daemon.pt.svg)](https://agentmods.dev/commands/druide67/asiai/daemon.pt)
Your own site
<a href="https://agentmods.dev/commands/druide67/asiai/daemon.pt"><img src="https://agentmods.dev/badge/commands/druide67/asiai/daemon.pt.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 588 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.00588
Opus 5 $0.00014 $0.00294
Sonnet 5 $0.00005 $0.00118
Haiku 4.5 $0.00003 $0.00059

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

Security

Grade A, and why

daemon.pt 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.pt.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

Gerencie serviços em segundo plano via LaunchAgents do macOS launchd.

Serviços

Serviço Descrição Modelo
monitor Coleta métricas de sistema + inferência em intervalos regulares Periódico (StartInterval)
web Executa o dashboard web como serviço persistente Longa duração (KeepAlive)

Uso

# Daemon de monitoramento (padrão)
asiai daemon start                     # Iniciar monitoramento (a cada 60s)
asiai daemon start --interval 30       # Intervalo customizado
asiai daemon start --alert-webhook URL # Habilitar alertas via webhook

# Serviço de dashboard web
asiai daemon start web                 # Iniciar web em 127.0.0.1:8899
asiai daemon start web --port 9000     # Porta customizada
asiai daemon start web --host 0.0.0.0  # Expor na rede (sem autenticação!)

# Status (mostra todos os serviços)
asiai daemon status

# Parar
asiai daemon stop                      # Parar monitor
asiai daemon stop web                  # Parar web
asiai daemon stop --all                # Parar todos os serviços

# Logs
asiai daemon logs                      # Logs do monitor
asiai daemon logs web                  # Logs do web
asiai daemon logs web -n 100           # Últimas 100 linhas

Como funciona

Cada serviço instala um plist LaunchAgent separado em ~/Library/LaunchAgents/:

  • Monitor: executa asiai monitor --quiet no intervalo configurado (padrão: 60s). Dados são armazenados em SQLite. Se --alert-webhook for fornecido, alertas são enviados via POST em transições de estado (pressão de memória, térmico, motor down).
  • Web: executa asiai web --no-open como processo persistente. Reinicia automaticamente se crashar (KeepAlive: true, ThrottleInterval: 10s).

Ambos os serviços iniciam automaticamente no login (RunAtLoad: true).

Segurança

  • Serviços rodam no nível do usuário (sem root necessário)
  • O dashboard web faz bind em 127.0.0.1 por padrão (apenas localhost)
  • Um aviso é exibido ao usar --host 0.0.0.0 — nenhuma autenticação está configurada
  • Logs são armazenados em ~/.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 274bb4294a21

Subscribe to this mod's changes

daemon.pt 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 588 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.