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/josephoibrahim/comfy-cozy/setupgit clone --depth 1 https://github.com/JosephOIbrahim/Comfy-CozyWrote 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/josephoibrahim/comfy-cozy/setup)<a href="https://agentmods.dev/commands/josephoibrahim/comfy-cozy/setup"><img src="https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/setup.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.00000 | $0.05523 |
| Opus 5 | $0.00000 | $0.02762 |
| Sonnet 5 | $0.00000 | $0.01105 |
| Haiku 4.5 | $0.00000 | $0.00552 |
Grade A, and why
setup scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://127.0.0.1:8188/system_stats 2>/dev/null && echo "ComfyUI is running on port 8188" How it starts
The opening of the file, as written. The whole thing — 564 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/project:setup — Automated Setup for Video Recreation Agent Team
You are setting up the Video Recreation Agent Team inside this comfyui-agent repo. Run every step below automatically. Don't ask permission — just do it, report what happened.
Step 1: Detect the current repo location
echo "AGENT_PATH=$(pwd)"
Store this as AGENT_PATH. This is the comfyui-agent repo root.
Step 2: Find ComfyUI installation
Search these common locations. Use the FIRST one that has main.py inside it:
# Check common ComfyUI install locations
for path in \
"$HOME/ComfyUI" \
"$HOME/comfyui" \
"/Applications/ComfyUI" \
"/opt/ComfyUI" \
"C:/ComfyUI" \
"D:/ComfyUI" \
"G:/COMFYUI_Database" \
"G:/ComfyUI" \
"$HOME/Documents/ComfyUI" \
"$HOME/Desktop/ComfyUI" \
"/mnt/c/ComfyUI" \
"/mnt/d/ComfyUI"; do
if [ -f "$path/main.py" ]; then
echo "FOUND: $path"
break
fi
done
Also try to find it by checking if ComfyUI is currently running:
# If ComfyUI is running, we can ask it
curl -s http://127.0.0.1:8188/system_stats 2>/dev/null && echo "ComfyUI is running on port 8188"
If you can't find ComfyUI's folder automatically, ask the user ONE question:
"Where is ComfyUI installed? Paste the folder path (the one with main.py in it):"
If ComfyUI is running but you don't know the folder, that's OK — the bridge only needs HTTP access. Set COMFYUI_PATH to empty and note it.
Step 3: Create all workspace directories
mkdir -p workspace/reference
mkdir -p workspace/keyframes
mkdir -p workspace/workflows
mkdir -p workspace/outputs
mkdir -p workspace/qa/frames
echo "✓ Workspace directories created"
Step 4: Create the .claude/commands directory if it doesn't exist
mkdir -p .claude/commands
echo "✓ Commands directory ready"
Step 5: Write the bridge.env config
Using the paths you detected, write config/bridge.env:
mkdir -p config
cat > config/bridge.env << 'ENVEOF'
# Video Recreation Agent — Bridge Configuration
# Auto-generated by /project:setup
COMFYUI_PATH=${DETECTED_COMFYUI_PATH}
COMFYUI_HOST=127.0.0.1
COMFYUI_PORT=8188
AGENT_PATH=${DETECTED_AGENT_PATH}
WORKSPACE=${DETECTED_AGENT_PATH}/workspace
ENVEOF
echo "✓ Bridge config written to config/bridge.env"
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.
- 4d ago First seen · 564 lines · 0 tokens per session scan A 62bdaa168a78
setup is a command published in the GitHub repository JosephOIbrahim/Comfy-Cozy (24 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,523 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
director
Direct a short film from a story. Generates scenes, frames, and video clips.
gen
Generate an image with ComfyUI from a text prompt.
batch
Parameter sweep generation across multiple values.
compare
Diff two ComfyUI workflows to see what changed.
install
Install a ComfyUI custom node pack.
recipe
Run a multi-step generation recipe (portrait, hires-fix, style-transfer, etc.).