{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/comfymind-toward-general-purpose-generation","title":"ComfyMind: Toward General-Purpose Generation via Tree-Based Planning and Reactive Feedback","arxiv_id":"2505.17908","date":"2025-05-23","proceeding":null,"authors":["Litao Guo","Xinli Xu","Luozhou Wang","Jiantao Lin","Jinsong Zhou","Zixin Zhang","Bolan Su","Ying-Cong Chen"],"abstract":"With the rapid advancement of generative models, general-purpose generation has gained increasing attention as a promising approach to unify diverse tasks across modalities within a single system. Despite this progress, existing open-source frameworks often remain fragile and struggle to support complex real-world applications due to the lack of structured workflow planning and execution-level feedback. To address these limitations, we present ComfyMind, a collaborative AI system designed to enable robust and scalable general-purpose generation, built on the ComfyUI platform. ComfyMind introduces two core innovations: Semantic Workflow Interface (SWI) that abstracts low-level node graphs into callable functional modules described in natural language, enabling high-level composition and reducing structural errors; Search Tree Planning mechanism with localized feedback execution, which models generation as a hierarchical decision process and allows adaptive correction at each stage. Together, these components improve the stability and flexibility of complex generative workflows. We evaluate ComfyMind on three public benchmarks: ComfyBench, GenEval, and Reason-Edit, which span generation, editing, and reasoning tasks. Results show that ComfyMind consistently outperforms existing open-source baselines and achieves performance comparable to GPT-Image-1. ComfyMind paves a promising path for the development of open-source general-purpose generative AI systems. Project page: https://github.com/LitaoGuo/ComfyMind","url_abs":"https://arxiv.org/abs/2505.17908v1","url_pdf":"https://arxiv.org/pdf/2505.17908v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"comfymind-toward-general-purpose-generation","repo_url":"https://github.com/litaoguo/comfymind","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"comfymind-toward-general-purpose-generation","repo_url":"https://github.com/EnVision-Research/ComfyMind","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"attention","method_name":"Attention"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.17908","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.17908"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/litaoguo/comfymind","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/EnVision-Research/ComfyMind","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"unverified":8},"by_repo_kind":{"official":{"samples":10,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"0ea99cab0cdb51ab","entry":"encode_image","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0ea99cab0cdb51ab"}},{"code_sha256_prefix":"50b302b35ddbddda","entry":"load_image","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"50b302b35ddbddda"}},{"code_sha256_prefix":"7652d95cf7d6258b","entry":"build_evaluation_messages","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation_wise.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation_wise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7652d95cf7d6258b"}},{"code_sha256_prefix":"393004fc099595af","entry":"encode_image","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation_wise.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation_wise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"393004fc099595af"}},{"code_sha256_prefix":"00e58640391e7193","entry":"extract_json","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"utils/tools.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/utils/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"00e58640391e7193"}},{"code_sha256_prefix":"4b8a94cc59053bf8","entry":"extract_scores","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation_wise.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation_wise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4b8a94cc59053bf8"}},{"code_sha256_prefix":"eed76456e1986f29","entry":"file_to_path","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"main_gradio.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/main_gradio.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eed76456e1986f29"}},{"code_sha256_prefix":"3e644685f037489f","entry":"invoke_text_reasoning","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"utils/model.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/utils/model.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3e644685f037489f"}},{"code_sha256_prefix":"43c17cc3d3f4e7e8","entry":"invoke_vision","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"script/evaluation.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/script/evaluation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"43c17cc3d3f4e7e8"}},{"code_sha256_prefix":"e0a5e7aa877646e5","entry":"invoke_vision_reasoning","repo":"EnVision-Research/ComfyMind","repo_kind":"official","path":"utils/model.py","file_url":"https://github.com/EnVision-Research/ComfyMind/blob/HEAD/utils/model.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0a5e7aa877646e5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}