{"owner":"apache","repo":"tvm","hasSkills":true,"hasMcp":false,"mcpConfig":null,"found":["AGENTS.md"],"skills":{"AGENTS.md":"<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n-->\n\n# AGENTS.md\n\nThis file provides vendor-neutral guidance for agentic coding tools working\nwith Apache TVM.\n\n## Repository Overview\n\nApache TVM is an open-source machine learning compiler stack. The repository\ncontains the C++ compiler/runtime, Python bindings, TIR/Relax IRs, scheduling\nand lowering passes, target code generators, runtime integrations, tests,\ndocumentation, and application examples.\n\n## Repository Structure\n\n- `include/tvm/` - public C++ headers\n- `src/` - C++ implementation\n- `python/tvm/` - Python package\n- `tests/` - C++, Python, integration, and lint tests\n- `cmake/` - CMake modules and default configuration\n- `3rdparty/` - vendored dependencies and submodules\n- `docs/` - documentation source\n- `apps/` - application examples\n- `.agents/skills/` - reusable agent workflows for this repository\n\n## Build\n\nUse an existing `build/` directory when present:\n\n```bash\ncmake --build build --parallel\n```\n\nFor a fresh checkout, initialize submodules and configure CMake first:\n\n```bash\ngit submodule update --init --recursive\nmkdir -p build\ncp cmake/config.cmake build/config.cmake\ncmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo\ncmake --build build --parallel\n```\n\nDevelopment should use `PYTHONPATH`, not editable installs:\n\n```bash\nexport PYTHONPATH=\"$(pwd)/python:$(pwd)/.local/python\"\n```\n\nDo not use `pip install -e` for TVM or `tvm-ffi`; editable installs can make\none worktree silently import another worktree's code.\n\n## Test And Lint\n\nRun the smallest relevant test first, then broaden as needed. Common examples:\n\n```bash\npython -m pytest tests/python/all-platform-minimal-test/ -xvs\npython -m pytest tests/python/tir-base/test_tir_base.py -xvs\n./build/cpptest\n```\n\nFor lint validation on a pull request, run pre-commit on the files changed by\nthe branch instead of the whole repository:\n\n```bash\npre-commit run --files <changed-file>...\n```\n\nUse `python -m tirx_kernels.bench_suite` in the **tirx-kernels** repo\n(`tirx_kernels/bench_suite/`) when that workflow applies.\n\n## Coding Conventions\n\n- Follow the surrounding style before introducing new abstractions.\n- Keep changes scoped to the task and avoid unrelated cleanups.\n- Prefer explicit tests that show the IR or behavior being changed.\n- Use Apache TVM commit tags such as `[REFACTOR][IR]`, `[FIX][TIR]`, or\n  `[DOCS]` as appropriate.\n- Preserve Apache license headers in new source, script, and documentation\n  files when the surrounding tree uses them.\n"},"files":{"AGENTS.md":"<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n-->\n\n# AGENTS.md\n\nThis file provides vendor-neutral guidance for agentic coding tools working\nwith Apache TVM.\n\n## Repository Overview\n\nApache TVM is an open-source machine learning compiler stack. The repository\ncontains the C++ compiler/runtime, Python bindings, TIR/Relax IRs, scheduling\nand lowering passes, target code generators, runtime integrations, tests,\ndocumentation, and application examples.\n\n## Repository Structure\n\n- `include/tvm/` - public C++ headers\n- `src/` - C++ implementation\n- `python/tvm/` - Python package\n- `tests/` - C++, Python, integration, and lint tests\n- `cmake/` - CMake modules and default configuration\n- `3rdparty/` - vendored dependencies and submodules\n- `docs/` - documentation source\n- `apps/` - application examples\n- `.agents/skills/` - reusable agent workflows for this repository\n\n## Build\n\nUse an existing `build/` directory when present:\n\n```bash\ncmake --build build --parallel\n```\n\nFor a fresh checkout, initialize submodules and configure CMake first:\n\n```bash\ngit submodule update --init --recursive\nmkdir -p build\ncp cmake/config.cmake build/config.cmake\ncmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo\ncmake --build build --parallel\n```\n\nDevelopment should use `PYTHONPATH`, not editable installs:\n\n```bash\nexport PYTHONPATH=\"$(pwd)/python:$(pwd)/.local/python\"\n```\n\nDo not use `pip install -e` for TVM or `tvm-ffi`; editable installs can make\none worktree silently import another worktree's code.\n\n## Test And Lint\n\nRun the smallest relevant test first, then broaden as needed. Common examples:\n\n```bash\npython -m pytest tests/python/all-platform-minimal-test/ -xvs\npython -m pytest tests/python/tir-base/test_tir_base.py -xvs\n./build/cpptest\n```\n\nFor lint validation on a pull request, run pre-commit on the files changed by\nthe branch instead of the whole repository:\n\n```bash\npre-commit run --files <changed-file>...\n```\n\nUse `python -m tirx_kernels.bench_suite` in the **tirx-kernels** repo\n(`tirx_kernels/bench_suite/`) when that workflow applies.\n\n## Coding Conventions\n\n- Follow the surrounding style before introducing new abstractions.\n- Keep changes scoped to the task and avoid unrelated cleanups.\n- Prefer explicit tests that show the IR or behavior being changed.\n- Use Apache TVM commit tags such as `[REFACTOR][IR]`, `[FIX][TIR]`, or\n  `[DOCS]` as appropriate.\n- Preserve Apache license headers in new source, script, and documentation\n  files when the surrounding tree uses them.\n"},"items":[{"name":"AGENTS.md","path":"AGENTS.md","title":"AGENTS.md","content":"<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n-->\n\n# AGENTS.md\n\nThis file provides vendor-neutral guidance for agentic coding tools working\nwith Apache TVM.\n\n## Repository Overview\n\nApache TVM is an open-source machine learning compiler stack. The repository\ncontains the C++ compiler/runtime, Python bindings, TIR/Relax IRs, scheduling\nand lowering passes, target code generators, runtime integrations, tests,\ndocumentation, and application examples.\n\n## Repository Structure\n\n- `include/tvm/` - public C++ headers\n- `src/` - C++ implementation\n- `python/tvm/` - Python package\n- `tests/` - C++, Python, integration, and lint tests\n- `cmake/` - CMake modules and default configuration\n- `3rdparty/` - vendored dependencies and submodules\n- `docs/` - documentation source\n- `apps/` - application examples\n- `.agents/skills/` - reusable agent workflows for this repository\n\n## Build\n\nUse an existing `build/` directory when present:\n\n```bash\ncmake --build build --parallel\n```\n\nFor a fresh checkout, initialize submodules and configure CMake first:\n\n```bash\ngit submodule update --init --recursive\nmkdir -p build\ncp cmake/config.cmake build/config.cmake\ncmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo\ncmake --build build --parallel\n```\n\nDevelopment should use `PYTHONPATH`, not editable installs:\n\n```bash\nexport PYTHONPATH=\"$(pwd)/python:$(pwd)/.local/python\"\n```\n\nDo not use `pip install -e` for TVM or `tvm-ffi`; editable installs can make\none worktree silently import another worktree's code.\n\n## Test And Lint\n\nRun the smallest relevant test first, then broaden as needed. Common examples:\n\n```bash\npython -m pytest tests/python/all-platform-minimal-test/ -xvs\npython -m pytest tests/python/tir-base/test_tir_base.py -xvs\n./build/cpptest\n```\n\nFor lint validation on a pull request, run pre-commit on the files changed by\nthe branch instead of the whole repository:\n\n```bash\npre-commit run --files <changed-file>...\n```\n\nUse `python -m tirx_kernels.bench_suite` in the **tirx-kernels** repo\n(`tirx_kernels/bench_suite/`) when that workflow applies.\n\n## Coding Conventions\n\n- Follow the surrounding style before introducing new abstractions.\n- Keep changes scoped to the task and avoid unrelated cleanups.\n- Prefer explicit tests that show the IR or behavior being changed.\n- Use Apache TVM commit tags such as `[REFACTOR][IR]`, `[FIX][TIR]`, or\n  `[DOCS]` as appropriate.\n- Preserve Apache license headers in new source, script, and documentation\n  files when the surrounding tree uses them.\n","category":"root","tokens":807}]}