SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.05010 · ACL · 2025

ComfyUI-Copilot: An Intelligent Assistant for Automated Workflow Development

Weihua Luo, Longyue Wang, Min Zhang, Xue Yang, Baotian Hu, Kaifu Zhang, Zhenran Xu, Yiyu Wang, Qingli Hu, Zijiao Wu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.05010.json · badge: /api/ran/2506.05010.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AIDC-AI/ComfyUI-Copilot canonical (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
FunctionStatusWhere it lives
analyze_required_node_types Ran
ran on a synthesized input
AIDC-AI/ComfyUI-Copilot/backend/service/link_agent_tools.py
code served (permissive licence) · get_code("87722fa305d34888")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Construct the object_info dictionary with node class information
object_info = {
    'CheckpointLoaderSimple': {
        'output': ['MODEL', 'CLIP', 'VAE']
    },
    'CheckpointLoader': {
        'output': ['MODEL', 'CLIP', 'VAE']
    },
    'UNETLoader': {
        'output': ['MODEL']
    },
    'CLIPLoader': {
        'output': ['CLIP']
    },
    'VAELoader': {
        'output': ['VAE']
    },
    'CLIPTextEncode': {
        'output': ['CONDITIONING']
    },
    'EmptyLatentImage': {
        'output': ['LATENT']
    },
    'VAEEncode': {
        'output': ['LATENT']
    },
    'LoadImage': {
        'output': ['IMAGE']
    },
    'VAEDecode': {
        'output': ['IMAGE']
    },
    'LoadImageMask': {
        'output': ['MASK']
    },
    'ControlNetLoader': {
        'output': ['CONTROL_NET']
    },
    'LoraLoader': {
        'output': ['LORA']
    },
    'IPAdapterModelLoader': {
        'output': ['IPADAPTER']
    },
    'CustomNode': {
        'output': ['CUSTOM_TYPE']
    }
}

# Define expected_types - a list of output types we need
expected_types = ['MODEL', 'CLIP', 'VAE', 'CONDITIONING', 'CUSTOM_TYPE']

ARGS = {
    'expected_types': expected_types,
    'object_info': object_info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
comfyui_agent_invoke Ran
ran on a synthesized input
AIDC-AI/ComfyUI-Copilot/backend/service/mcp_client.py
code served (permissive licence) · get_code("ebfee0d858a32627")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned async_generator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import asyncio
from typing import List, Dict, Any

class ImageData:
    """Image data structure to match reference implementation"""

    def __init__(self, filename: str, data: str, url: str=None):
        self.filename = filename
        self.data = data
        self.url = url


# Construct minimal valid arguments for comfyui_agent_invoke
messages = [
    {
        "role": "user",
        "content": "Hello, what can you do?"
    },
    {
        "role": "assistant",
        "content": "I can help you with various tasks.  "
    }
]

images = [
    ImageData(filename="test1.png", data="base64_encoded_image_data_1", url="http://example.com/image1.png"),
    ImageData(filename="test2.jpg", data="base64_encoded_image_data_2", url="http://example.com/image2.jpg")
]

ARGS = {
    "messages": messages,
    "images": images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
agents, openai, pydantic — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type async_generator — a async_generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a async_generator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_llm_config_from_headers Ran
ran on a synthesized input
AIDC-AI/ComfyUI-Copilot/backend/controller/conversation_api.py
code served (permissive licence) · get_code("eb4a6be796382cef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

class MockRequest:
    def __init__(self):
        self.headers = {
            'Openai-Api-Key': 'sk-test-key-12345',
            'Openai-Base-Url': 'https://api.openai.com/v1',
            'Workflow-LLM-Api-Key': 'workflow-key-67890',
            'Workflow-LLM-Base-Url': 'https://workflow.example.com/api',
            'Workflow-LLM-Model': 'gpt-4'
        }

request = MockRequest()

ARGS = {
    'request': request
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
upload_to_oss Ran
ran on a synthesized input
AIDC-AI/ComfyUI-Copilot/backend/controller/conversation_api.py
code served (permissive licence) · get_code("7cb121cf55fcc6fc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned coroutine. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import asyncio
import base64
import os
import tempfile
from unittest.mock import patch, MagicMock

# Create temporary directory for uploads
temp_uploads_dir = tempfile.mkdtemp()

# Prepare test data
file_data = b'This is test image data in binary format'
filename = 'test_image.png'

# Mock the log object since it's not defined in the function signature
mock_log = MagicMock()

# Construct ARGS dictionary
ARGS = {
    'file_data': file_data,
    'filename': filename,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
validate_expert_data Ran
ran on a synthesized input
AIDC-AI/ComfyUI-Copilot/backend/controller/expert_api.py
code served (permissive licence) · get_code("2645363bd90844e9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Dict, Any

# Construct valid arguments for validate_expert_data function
data_valid = {
    'name': 'Expert System',
    'description': 'A sample expert system for testing',
    'content': 'This is test content for the expert system'
}

ARGS = {
    'data': data_valid
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
save_checkpoint_before_link_modification Not yet run
unverified (harvested, no recorded run)
AIDC-AI/ComfyUI-Copilot/backend/service/link_agent_tools.py
code served (permissive licence) · get_code("cfa2e787cb49989b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce ComfyUI-Copilot, a large language model-powered plugin designed to enhance the usability and efficiency of Com-fyUI, an open-source platform for AI-driven art creation. Despite its flexibility and userfriendly interface, ComfyUI can present challenges to newcomers, including limited documentation, model misconfigurations, and the complexity of workflow design. ComfyUI-Copilot addresses these challenges by offering intelligent node and model recommendations, along with automated one-click workflow construction. At its core, the system employs a hierarchical multi-agent framework comprising a central assistant agent for task delegation and specialized worker agents for different usages, supported by our curated ComfyUI knowledge bases to streamline debugging and deployment. We validate the effectiveness of ComfyUI-Copilot through both offline quantitative evaluations and online user feedback, showing that it accurately recommends nodes and accelerates workflow development. Additionally, use cases illustrate that ComfyUI-Copilot lowers entry barriers for beginners and enhances workflow efficiency for experienced users. The ComfyUI-Copilot installation package and a demo video are available at https: //github.com/AIDC-AI/ComfyUI-Copilot.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.05010")
get_code_for_paper("2506.05010")
have("2506.05010")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.05010.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.05010.svg)](https://syntology.ai/paper/2506.05010)

Connect an agent — have() is free.