comfy-draftsman: Instructions file for Codex

AGENTS.md

comfy-draftsman AGENTS.md is an instructions file for Codex, OpenCode from EnragedAntelope/comfy-draftsman. It costs 2,618 tokens per session, scanned A, original, MIT.

Project instructions for ComfyUI workflow software, which creates image-processing graphs from connected steps.

In plain words
What is it for?
They are for changing, testing, publishing, and maintaining the Python server that drafts, organizes, validates, runs, and saves ComfyUI workflows.
Why use it?
They provide the project’s current status, architecture guidance, supported workflow formats, and development commands.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is EnragedAntelope/comfy-draftsman's own configuration. It tells Codex and OpenCode how to work on comfy-draftsman 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 comfy-draftsman configures →

Reuse

Borrowing it

Nothing to install: this file belongs to EnragedAntelope/comfy-draftsman. 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/EnragedAntelope/comfy-draftsman/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/EnragedAntelope/comfy-draftsman

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 comfy-draftsman AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/enragedantelope/comfy-draftsman/agents-md/github.svg)](https://agentmods.dev/instructions/enragedantelope/comfy-draftsman/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/enragedantelope/comfy-draftsman/agents-md"><img src="https://agentmods.dev/badge/instructions/enragedantelope/comfy-draftsman/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 comfy-draftsman AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/enragedantelope/comfy-draftsman/agents-md"><img src="https://agentmods.dev/badge/instructions/enragedantelope/comfy-draftsman/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,618 This file is loaded in full into every session.
When invoked 2,618 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.02618 $0.02618
Opus 5.5 $0.01047 $0.01047
Sonnet 5.5 $0.00524 $0.00524
Haiku 4.5 $0.00262 $0.00262

Measured yesterday against content hash 50f3c72c7ff1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comfy-draftsman 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 yesterday.

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 · 101 lines

How it starts

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

AGENTS.md — comfy-draftsman

A local-first MCP server that drafts, organizes, validates, and runs ComfyUI workflows. Delivers clean, labeled, annotated UI-format graphs that humans can read — computed layout, colored stage groups, titled nodes, green-highlighted knobs, and generated guidance notes. Python ≥3.11, hatchling build, httpx + websockets + mcp stack.

Deep reference: docs/ARCHITECTURE.md (read it before engine/graph/validation changes)

Current state

Last verified: 2026-10-23

  • Status: in development; v0.25.0 (src/comfy_draftsman/__init__.py is the single source of truth for the version). CI green. Published to PyPI as comfy-draftsman via Trusted Publishing (.github/workflows/release.yml); a v* tag push publishes and cuts the GitHub Release - see README -> "Publishing a release".
  • Works: the full draft → organize → validate → run → save loop against a live ComfyUI instance; schema 0.4 and 1.0 graphs including subgraph flatten/rebuild; V3 dynamic combos, autogrow inputs and match types round-tripping through the API's dotted-key form; organize_workflow's labeled stage groups, knob cards and guidance notes; workflow import straight from ComfyUI's browser (list_workflows + import_workflow(name=…)); the per-family knowledge floor plus a persistent learned overlay written by record_learning; to_api bypass routing that mirrors the frontend's; organize_workflow staging that uses graph position (switches, primitives, MODEL patches, i2i preprocessing) with row-wrapped bands.
  • In progress: nothing half-built - each round lands complete. 0.25.0 adds the fibo2, flux3_klein, minimax_h3 and anima families, a spectral color-stripe banding score (checked on real MOSS SFT renders), above-native-resolution and hidden-troubleshooting lints, headless fresh LoRA Manager loaders (text and loras kept in sync), off-step values accepted at edit time, unwrapped text/JSON outputs, record_learning shape hints, and sweep sampling_s and crop guide. 0.24.0 adds the moss_image family with a family-avoid-node lint, guards record_learning shapes, maps imported LoRA Manager widgets by their saved names, makes organize text plain (no emoji), refreshes object_info on edits naming an unlisted model, and gives sweeps fractional crops, per-crop sheets and cached-run marking. 0.23.0 fixes upload cache refresh, partial-edit reporting and template findings, adds sweep output relocation/reuse hints and sampling-size lint. 0.22.0 fixes a LoRA Manager feedback round: JS-widget inputs added as widget-backed slots, stale link slots repaired on import, collapsed-node overlap lint, disconnect/set_color/group bounding ops, and organize guidance that keeps hand-arranged layouts. CHANGELOG.md records older rounds and what was deliberately not changed.
  • Known gaps / next steps: confirmation dialogs fall back to the explicit confirm flag on the 2026-07-28 MCP protocol (no back-channel for ctx.elicit; pre-2026 handshakes still get the dialog); misaligned pack nodes are reported, not realigned, so they can't run headlessly; no confirmation popup appears in the Claude Code VS Code extension (verified 2026-10-11 on 0.21.0); gates take the ask-in-chat fallback, and overwrite proceeds; add_node treats a custom type nothing outputs as a JS widget, so a real socket whose producer pack is missing gets a widget marker too; some families carry no VRAM data and correctly stay silent; acceleration variants match the UNet filename only, not lora_name; COMFY_DYNAMICSLOT_V3 is classified but never exercised (no live instance declares one - do not implement it speculatively); widget-backed custom-JS inputs stay a deliberate loud stop rather than a silently-wrong emit (the LM Lora Loader is the one pack resolved by name); flux3_klein, minimax_h3 and anima floors come from public sources and have not been rendered locally. All written up in full under docs/ARCHITECTURE.md -> "Remaining TODOs".
  • Deep docs: docs/ARCHITECTURE.md (module map, data flow, subgraph mechanics, hard-won gotchas, open TODOs), docs/PERMISSIONS.md (which tools are read-only), CHANGELOG.md.

Read the full file on GitHub · 101 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. yesterday Changed · +155 tokens per session 50f3c72c7ff1
  2. 6d ago Changed · -22 tokens per session 5857fdf4c09f
  3. 7d ago Changed · -95 tokens per session 2bac1ad7c190
  4. 9d ago Changed · +91 tokens per session 8913ea711e5c
  5. 14d ago Changed · +55 tokens per session b84521a1f44b
  6. 15d ago Changed · +100 tokens per session afd18986da64
  7. 22d ago Changed · +33 tokens per session f8ae3794e470
  8. 25d ago Changed · +151 tokens per session eead8d8a9af1
  9. 1mo ago First seen · 101 lines · 2,150 tokens per session scan A 5e0b2d85c76f

Subscribe to this mod's changes

comfy-draftsman AGENTS.md is an instructions file published in the GitHub repository EnragedAntelope/comfy-draftsman (3 stars, last pushed 2d ago), licensed MIT. It adds 2,618 tokens to every session, about $0.0105 per session on Opus 5.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-31.

Related

Other instructions, from other repositories

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 · 9,715 tokens

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,581 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens