tilelang-ascend AGENTS.md

tilelang-ascend AGENTS.md is an instructions file for Codex, OpenCode from tile-ai/tilelang-ascend. It costs 2,141 tokens per session, scanned A, original, MIT.

A project instruction file for TileLang-Ascend, a toolkit for writing AI computation kernels for Huawei Ascend chips with Python. It lists the project’s development skills, debugging tools, performance guidance, and working rules.

In plain words
What is it for?
Use it as a starting reference when developing operators, compiler passes, APIs, tests, debugging setups, or performance improvements.
Why use it?
It gives coding agents the shared project context and directs them to the right instructions for designing, testing, debugging, and optimizing code.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/tile-ai/tilelang-ascend/agents-md
Clone the repo
git clone --depth 1 https://github.com/tile-ai/tilelang-ascend

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 tilelang-ascend AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tile-ai/tilelang-ascend/agents-md.svg)](https://agentmods.dev/instructions/tile-ai/tilelang-ascend/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tile-ai/tilelang-ascend/agents-md"><img src="https://agentmods.dev/badge/instructions/tile-ai/tilelang-ascend/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,141 This file is loaded in full into every session.
When invoked 2,141 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02141 $0.02141
Opus 5 $0.01071 $0.01071
Sonnet 5 $0.00428 $0.00428
Haiku 4.5 $0.00214 $0.00214

Measured 4d ago against content hash c2f376b32df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tilelang-ascend 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 4d ago.

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

How it starts

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

AGENTS.md

项目概述

本项目是 TileLang-Ascend 算子开发项目,基于 TVM 编译器基础设施,提供 Python DSL 用于开发华为昇腾 NPU 上的高性能 AI 计算 kernel。

核心功能

  • 使用 Python DSL + @tilelang.jit 编写昇腾 NPU 自定义 kernel
  • 支持 Developer 模式(自动化)和 Expert 模式(手动控制)两种编程范式
  • 提供完整的编译、测试、调试及性能调优工作流

Skills 索引

算子开发与编排
  • tilelang-op-design:生成算子设计方案(design.md),含三维 Kernel / threads / 动态边界 / L0C 容量 / GEMM 非整除等技术约束检测
  • tilelang-op-develop:基于 design.md 生成算子实现代码、内嵌 golden 与测试用例
  • tilelang-ascend-tile-api:新增或封装 T.tile.xxx 小 API 时端到端打通前端、lowering / codegen、helper、测试与文档
  • tilelang-programming-model-guide:Developer / Expert / 混合模式选择、pass_configs 配置与转换指南
  • tilelang-api-best-practices:TileLang API 速查与最佳实践(Kernel 定义、内存分配、计算原语、调度同步)
Pass 分析与设计
  • tilelang-pass-analyzer:Pass 功能分析、对比、分类查询
  • tilelang-pass-workflow-analyzer:Pass 工作流分析、执行顺序、依赖关系、新 Pass 定位
  • tilelang-pass-design:Pass 设计方案与实现模式
调试与错误处理
  • tilelang-debug-helper:为算子添加 GDB 调试代码,配置 CMakeLists.txt 与 VSCode 联合调试
  • tilelang-error-fixer:编译 / 运行时错误诊断与修复
性能调优
  • tilelang-perf-optimization:性能优化方案、最佳实践(Flash Attention / GEMM intrinsic / RoPE)与反模式排查
环境与工具
  • tilelang-env-check:环境检查与配置验证(CANN、torch_npu、子模块、编译产物、环境变量)
  • tilelang-submodule-pull:自动拉取代码和子模块
  • tilelang-github-operations:GitHub PR 创建与操作
Skill 管理
  • skill-creator:创建新 skill
  • skill-journal:算子开发反馈记录 schema
  • tilelang-skill-review:聚合 skill-journal 反馈,按命令式 apply / reject 落到对应 SKILL.md
  • tilelang-review:通用 skill 质量评审

算子开发编排体系(OpenCode 多代理)

@tilelang-op-orchestrator 作为 Primary 驱动 3 阶段状态机,调度 3 个 Subagent:

  • @tilelang-op-analyst (Stage 1):调用 tilelang-op-design 完成需求理解与设计
  • @tilelang-op-developer (Stage 2):调用 tilelang-op-develop 完成代码实现、测试、精度调试(一站式,attempt 上限 5 次)
  • @tilelang-op-perf-tuner (Stage 3,可选):调用 tilelang-perf-optimization 完成性能调优

DESIGN.md 非硬性约束——Subagent 在实施中发现设计错误时返回 [DESIGN_ERROR],Orchestrator 回退到 Stage 1 重做(不设次数上限)。新建算子直接对 @tilelang-op-orchestrator 描述需求;单独使用某个 skill 可走 /tilelang-op-design/tilelang-op-develop/tilelang-perf-optimization/tilelang-env-check 跳过编排层。

Read the full file on GitHub · 129 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. 4d ago First seen · 129 lines · 2,141 tokens per session scan A c2f376b32df8

Subscribe to this mod's changes

tilelang-ascend AGENTS.md is an instructions file published in the GitHub repository tile-ai/tilelang-ascend (358 stars, last pushed 7d ago), licensed MIT. It adds 2,141 tokens to every session, about $0.0107 per session on Opus 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-30.

Related

Other instructions, from other repositories

firmware CLAUDE.md

Claude Code instructions for OpenIPC/firmware, covering claude.md, what this is, before you start: is this the right repository?, build and common tasks.

OpenIPC/firmware · 4,948 tokens

Tutorial_AwesomeModernCPP AGENTS.md

AGENTS.md instructions for Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP, covering agents.md, 这是什么, 通用 essentials(所有 agent 必读) and 你来做什么?(按场景路由).

Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP · 778 tokens

brilliant_sdk AGENTS.md

Instructions for brilliantlabsAR/brilliant_sdk, covering brilliant sdk — agent guide, how an app works (the pattern behind everything), minimal reading paths, verify without hardware and testing.

brilliantlabsAR/brilliant_sdk · 1,817 tokens

NeoMind CLAUDE.md

Claude Code instructions for camthink-ai/NeoMind, covering neomind — edge ai platform for iot, development commands, ecosystem repositories, extension package contract (.nep) and device type template contract (json).

camthink-ai/NeoMind · 4,457 tokens

zmk-config AGENTS.md

AGENTS.md instructions for urob/zmk-config, covering customization guide, ground rules, how the multi-board layout works, adding a new board and where to change what.

urob/zmk-config · 1,867 tokens

ext-apps CLAUDE.md

Claude Code instructions for modelcontextprotocol/ext-apps, a project described as: Official repo for spec & SDK of MCP Apps protocol - standard for UIs embedded AI chatbots, served by MCP servers.

modelcontextprotocol/ext-apps · 3 tokens