daemon.ja

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

A command for running background services on macOS. It can keep a system-monitoring process or a local web dashboard running through macOS's launchd service manager.

In plain words
What is it for?
It helps start monitoring at a chosen interval, send optional webhook alerts, run the dashboard on a selected host and port, check service status, read logs, and stop one or all services.
Why use it?
It removes the need to start these services manually each time and provides commands for checking their status, viewing logs, and stopping them.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/druide67/asiai/daemon.ja.svg)](https://agentmods.dev/commands/druide67/asiai/daemon.ja)
Your own site
<a href="https://agentmods.dev/commands/druide67/asiai/daemon.ja"><img src="https://agentmods.dev/badge/commands/druide67/asiai/daemon.ja.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 693 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.00043 $0.00693
Opus 5 $0.00022 $0.00347
Sonnet 5 $0.00009 $0.00139
Haiku 4.5 $0.00004 $0.00069

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

Security

Grade A, and why

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • daemon.zh — 91% identical, 68 lines differ
docs/commands/daemon.ja.md · 58 lines

What it actually says

asiai daemon

macOS launchd LaunchAgentによるバックグラウンドサービスを管理します。

サービス

サービス 説明 モデル
monitor 定期的にシステム + 推論メトリクスを収集 周期的(StartInterval
web Webダッシュボードを永続サービスとして実行 常駐(KeepAlive

使用方法

# 監視デーモン(デフォルト)
asiai daemon start                     # 監視開始(60秒ごと)
asiai daemon start --interval 30       # カスタム間隔
asiai daemon start --alert-webhook URL # Webhookアラートを有効化

# Webダッシュボードサービス
asiai daemon start web                 # 127.0.0.1:8899でWeb開始
asiai daemon start web --port 9000     # カスタムポート
asiai daemon start web --host 0.0.0.0  # ネットワークに公開(認証なし!)

# ステータス(すべてのサービスを表示)
asiai daemon status

# 停止
asiai daemon stop                      # monitor停止
asiai daemon stop web                  # web停止
asiai daemon stop --all                # すべてのサービスを停止

# ログ
asiai daemon logs                      # monitorログ
asiai daemon logs web                  # webログ
asiai daemon logs web -n 100           # 最後の100行

仕組み

各サービスは ~/Library/LaunchAgents/ に個別のlaunchd LaunchAgent plistをインストールします:

  • Monitor: 設定された間隔(デフォルト:60秒)で asiai monitor --quiet を実行。データはSQLiteに保存。--alert-webhook が指定された場合、状態遷移(メモリプレッシャー、サーマル、エンジンダウン)時にアラートをPOST。
  • Web: asiai web --no-open を永続プロセスとして実行。クラッシュ時に自動再起動(KeepAlive: trueThrottleInterval: 10s)。

両サービスはログイン時に自動起動(RunAtLoad: true)。

セキュリティ

  • サービスはユーザーレベルで実行(root不要)
  • Webダッシュボードはデフォルトで 127.0.0.1 にバインド(ローカルホストのみ)
  • --host 0.0.0.0 使用時に警告を表示 — 認証は設定されていません
  • ログは ~/.local/share/asiai/ に保存
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 · 43 tokens per session scan A 928352157fc1

Subscribe to this mod's changes

daemon.ja is a command published in the GitHub repository druide67/asiai (11 stars, last pushed 5d ago), licensed Apache-2.0. It adds 43 tokens to every session and 693 once invoked, about $0.0002 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.