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.
npx agentmods add commands/druide67/asiai/daemon.zhgit clone --depth 1 https://github.com/druide67/asiaiWrote 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.
[](https://agentmods.dev/commands/druide67/asiai/daemon.zh)<a href="https://agentmods.dev/commands/druide67/asiai/daemon.zh"><img src="https://agentmods.dev/badge/commands/druide67/asiai/daemon.zh.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00033 | $0.00603 |
| Opus 5 | $0.00016 | $0.00302 |
| Sonnet 5 | $0.00007 | $0.00121 |
| Haiku 4.5 | $0.00003 | $0.00060 |
Grade A, and why
daemon.zh 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 5d 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.
This is a copy
91% identical to daemon.ja — 68 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
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 # 停止监控
asiai daemon stop web # 停止 web
asiai daemon stop --all # 停止所有服务
# 日志
asiai daemon logs # 监控日志
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: true,ThrottleInterval: 10s)。
两个服务都在登录时自动启动(RunAtLoad: true)。
安全性
- 服务在用户级别运行(无需 root)
- Web 仪表板默认绑定
127.0.0.1(仅本地) - 使用
--host 0.0.0.0时显示警告——未配置认证 - 日志存储在
~/.local/share/asiai/
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.
- 5d ago First seen · 58 lines · 33 tokens per session scan A da35922a87d7
daemon.zh is a command published in the GitHub repository druide67/asiai (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 33 tokens to every session and 603 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to daemon.ja, differing in 68 lines, and is treated as a copy.
Other commands, from other repositories
perfup
Autonomous performance optimization: research, PoC, benchmark, implement, review, PR.
integrate-pipeline
Integrate a new document parsing pipeline into ParseBench: $ARGUMENTS.
netllm-setup
First-time netllm install from this repo (uv sync, init, discover, verify).
netllm-swarm
Configure multi-machine LAN mesh for netllm (mDNS, peers, gateway).
/opsx-explore
Enter explore mode - think through ideas, investigate problems, clarify requirements.
/opsx-propose
Propose a new change - create it and generate all artifacts in one step.