mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #181] docs: add AGENTS.md and CLAUDE.md shim #200
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/181
Author: @mattmillerai
Created: 9/16/2026
Status: 🔄 Open
Base:
main← Head:matt/be-3580-agents-md📝 Commits (5)
7865da4docs: add AGENTS.md and CLAUDE.md shime43c361docs(AGENTS.md): qualify --no-cuda with --hip; ruff check is lint only68e0b39Merge origin/main into matt/be-3580-agents-mde82b219docs(AGENTS.md): document the Ascend backend and current dispatch order48b30dbdocs(AGENTS.md): narrow HIP auto-selection; distinguish Linux/Windows CI wheels📊 Changes
2 files changed (+75 additions, -0 deletions)
View changed files
➕
AGENTS.md(+73 -0)➕
CLAUDE.md(+2 -0)📄 Description
ELI-5
Different AI coding tools each look for their own instructions file. This repo had none, so every tool started cold and had to re-learn how to build, test and navigate the kernel library. This PR adds one short guidebook,
AGENTS.md(the cross-tool standard), plus a tinyCLAUDE.mdthat just says "read AGENTS.md" — because Claude Code only readsCLAUDE.mdand does not fall back toAGENTS.mdon its own. No code changes, so nothing about the library's behavior moves.What this adds
AGENTS.md(73 lines) — a tight, verified guide written from the repo's actual contents (README,pyproject.toml,pytest.ini,MANIFEST.in, the CI workflows, and the top-level layout): one-paragraph purpose, including the dispatch order (ascend→cuda→triton→eagerby default,hipfirst under ROCm) and the optional torch-npuascendbackend; build/install commands and env-var knobs; the exact lint/test commands CI runs; a directory map; and repo-specific conventions/gotchas (ruff as the style source, DCO sign-off, the CLA workflow, mandatory submodules,MANIFEST.in/package-datafor native sources, the abi3 Stable-ABI requirement, fail-closed HIP arch overrides, and the constraint-gated dispatch model).CLAUDE.md— the canonical shim only (an HTML comment plus@AGENTS.md), so agent instructions have a single source of truth.How this was verified
ruff check .(CI's lint step) passes clean on the branch — the change is Markdown-only at the repo root and does not touch Python, the build, or any CI-relevant path.pip install .,pip install -e ".[dev]",git submodule update --init --recursive) and test (ruff check .,python -m pytest tests/ -v --tb=short) commands documented inAGENTS.mdare transcribed fromREADME.mdand thetest_*jobs in.github/workflows/build-wheels.yml, which is the authoritative pipeline..cursorrulesexists anywhere in the tree, so none needed removing.AGENTS.mdis 73 lines (well under the 200-line cap);CLAUDE.mdmatches the required shim content byte-for-byte.Provenance
ruff check .passed on the original authoring head. Every later commit changes only Markdown or mergesmain; ruff was not re-run on the current head.comfy_kitchen/registry.pyandcomfy_kitchen/__init__.pyon currentmain, which added theascendbackend.get_extensions()insetup.py. CI wheel/test descriptions checked against thetest_linux,test_windowsandtest_windows_armjobs in.github/workflows/build-wheels.yml.README.mdand the CI workflow, not executed locally (see Residual).mainwas merged into the branch soAGENTS.mddescribes the tree it will land on (Ascend backend, new default priority).Residual
pytestcommands inAGENTS.mdwere verified against CI config rather than executed locally: the authoring environment has no PyTorch, no CUDA/ROCm toolchain, and no compiler, so a source build and the test suite could not be run here. They are copied verbatim fromREADME.mdand the greentest_*jobs in.github/workflows/build-wheels.yml. A follow-up could confirm them end-to-end by runningpip install -e ".[dev]"+pyteston a machine with PyTorch (and, for the native paths, a CUDA/ROCm toolchain).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.