ComfyUI-Mie-Package-Launcher: Instructions file for Codex

AGENTS.md

ComfyUI-Mie-Package-Launcher AGENTS.md is an instructions file for Codex, OpenCode from MieMieeeee/ComfyUI-Mie-Package-Launcher. It costs 6,361 tokens per session, scanned A, original, Apache-2.0.

An agent guide for a Windows ComfyUI launcher, a desktop and command-line program that starts, stops, monitors, and switches between ComfyUI environments.

In plain words
What is it for?
Use it for scripted or monitored ComfyUI startup, shutdown, restart, health checks, configuration inspection, and environment selection.
Why use it?
It explains the available commands, configuration rules, output formats, and exit codes so automation can control ComfyUI reliably.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is MieMieeeee/ComfyUI-Mie-Package-Launcher's own configuration. It tells Codex and OpenCode how to work on ComfyUI-Mie-Package-Launcher itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ComfyUI-Mie-Package-Launcher configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MieMieeeee/ComfyUI-Mie-Package-Launcher. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MieMieeeee/ComfyUI-Mie-Package-Launcher/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/MieMieeeee/ComfyUI-Mie-Package-Launcher

Made for: Codex, OpenCode.

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 ComfyUI-Mie-Package-Launcher AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md/github.svg)](https://agentmods.dev/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md"><img src="https://agentmods.dev/badge/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ComfyUI-Mie-Package-Launcher AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md"><img src="https://agentmods.dev/badge/instructions/miemieeeee/comfyui-mie-package-launcher/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,361 This file is loaded in full into every session.
When invoked 6,361 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.06361 $0.06361
Opus 5 $0.03180 $0.03180
Sonnet 5 $0.01272 $0.01272
Haiku 4.5 $0.00636 $0.00636

Measured 2d ago against content hash 0d8d1779b0ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ComfyUI-Mie-Package-Launcher AGENTS.md 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 2d 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.

AGENTS.md · 193 lines

How it starts

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

AGENTS.md — 给 AI agent 的操作指南

本文件是 agent 操作本启动器的入口。完整 CLI 契约见 cli.md

这是什么

ComfyUI 启动器(PyQt5,Windows)。无参数启动 = GUI 图形界面;带子命令 = headless CLI, 复用 GUI 同一套启动/停止路径,适合自动化、监控、开机自启。

支持多环境:一个 ComfyUI 根目录 + python 路径的组合 = 一个「环境」,config 里可存多组。 同时只能运行一个环境,切换前必须先停止当前服务(CLI 会拒绝重复 start,GUI 会提示)。

怎么调用

agent / 自动化推荐 ComfyUI启动器-CLI.cmd:和下面 ComfyUI启动器.exe 行为完全等价(参数 + 退出码透传),但名字带 -CLI,对监控脚本 / NSSM / systemd / GitHub Actions 更友好。必须和 ComfyUI启动器.exe 同目录。

# 打包版(部署/运维场景,agent 通常用这个)—— exe 会自动切到自身所在目录找配置
ComfyUI启动器.exe <command> [--json] [-v]

# 开发版(从仓库根目录跑)
python __main__.py <command> [--json] [-v]
  • 无子命令ComfyUI启动器.exe(裸跑)会启动 GUI;ComfyUI启动器-CLI.cmd(裸跑)会转发到 help,不弹窗口。
  • 未知子命令或仅传 flags(如 frobnicate--json 单独)→ wrapper exit 1 + stderr 一行 [ComfyUI启动器-CLI] ERROR: ...,不弹 GUI。
  • 所有子命令都支持 --json(输出单行 JSON,便于解析)和 -v/--verbose(可叠加 -vv)。

子命令速查(agent 最常用)

目的 命令 判断方式
健康检查 status --json 退出码 0=在跑 / 3=未跑 / 1=异常;或解析 .running
启动 start 阻塞到 /system_stats 就绪;加 --no-wait 立即返回
停止 stop 幂等,未跑也退 0;加 --force 直接 taskkill /F
重启 restart stop 旧 + start 新
看配置 info --json .comfyui_path .python_path .port .launcher_version .environments .active_env_id
看日志 logs comfyui -n 100 --no-follow comfyui / launcher / webui 三选一;务必带 --no-follow
更新内核 update comfyui --dry-run 然后 update comfyui 先 dry-run 看会做什么
webui 工作台(非核心,可选服务) webui status / webui start / webui info 与 ComfyUI 平级的服务;退出码多了 6(ComfyUI 未跑) / 7(未安装) / 8(依赖缺失);详见 webui --help
整合包更新(v1.1.0+) package show <path-or-url> --jsonpackage apply <path-or-url> --auto-yes 加载 UP 主写的 manifest(本地文件/HTTPS URL),show 看 diff,apply 执行;退出码 5(部分失败) / 9(前置不兼容) / 10(manifest 无效) / 11(源不可达);model 项永远需用户手动下载
查帮助 help / help <command> / <command> --help

agent 默认不传 --envstart / restart / info / update / logs 接受可选的 --env ENV_ID 覆盖本次调用的环境,仅供跨环境自动化脚本用;status / stop 不接受 --env(作用于「当前在跑的那个」)。切环境是 GUI 的事,agent 不要主动切。

Read the full file on GitHub · 193 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. 2d ago Changed · +63 tokens per session 0d8d1779b0ff
  2. 10d ago First seen · 193 lines · 6,298 tokens per session scan A 5b61c75194ec

Subscribe to this mod's changes

ComfyUI-Mie-Package-Launcher AGENTS.md is an instructions file published in the GitHub repository MieMieeeee/ComfyUI-Mie-Package-Launcher (273 stars, last pushed 3d ago), licensed Apache-2.0. It adds 6,361 tokens to every session, about $0.0318 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens