Changelog
This file records notable changes to the CANNBot plugin orchestration and delivery repository.
Unreleased
Fixed
-
Restored the original TileLang AGENTS.md, role adapters and workflows directory verbatim. Migration now adapts only Skill source resolution and installation; no extra orchestration Skill or workflow rewrite is introduced.
-
TileLang source installation now defaults to the plugin directory instead of the CANNBot repository root, preserving its AGENTS.md on repeated installs. Explicit project paths remain supported.
Added
model-recommend-infer-optimizenow declaresdependencies: ["model-recommend-skills"], and the marketplace registers that Skills pack as agit-subdirsource (cannbot-skillscommunity/model) pinned to the same commit as thevendor/cannbot-skillssubmodule (b4baf2a). Claude Code marketplace installs therefore ship the 18 Skills through the dependency pack instead of ending up with an emptyskills/;npm run build:pluginskeeps bundling them intodist/plugins/model-recommend-infer-optimize/skills/as before.- Migrated
tilelang-op-orchestratorfrom cannbot-skills, preserving the independent Ascend910 / Ascend950 workflows, six role agents and SessionStart hook. The unified installer links thirteen shared Skills fromvendor/cannbot-skills; npm builds bundle those Skills. The original AGENTS.md, role definitions and platform workflows are preserved; TileLang installation resolves the shared Skill sources and retains their original relative layout. - Installers now prepare the knowledge base for use: both the unified installer and
triton-auto-evolve/init.shbuild the retrieval index (search/okf.index.json, ~50s, ~310MB) right after cloningcannbot-knowledge, instead of leaving the first query to pay for it (and instead of failing with "knowledge base root does not look ready" on the old code). Failures degrade to a warning and the next query retries;CANNBOT_SKIP_KNOWLEDGE_INDEX=1skips the step andCANNBOT_REBUILD_KNOWLEDGE_INDEX=1forces a rebuild. triton-auto-evolve/init.shgenerates a project-levelconfig.jsonafter a project-level install (target_mfu=60,max_rounds=2), withnpu_idlethresholds probed from the current machine andnpu_device_idpinned to a free card whennpu-smianswers (falling back toTRITON_NPU_DEVICE_ID, then to auto-selection). Without it the orchestrator fell back toDEFAULT_CONFIG(max_rounds=10,npu_idle.hbm=10), which marks every card busy on a shared machine and fails round 1.triton-auto-evolve/init.shinstalls onlytriton-auto-evolveitself. It no longer provisionstriton-op-generator:--with-op-generatornow fails with a hint to run that plugin's own installer, and--no-op-generatoris accepted as a no-op. The orchestration flow already reaches the same shared ops Skills, while co-installing costs a second knowledge clone and index (~310MB), grows the project instructions file from 18KB to 97KB, and registers op-generator's PreToolUse baseline guard for every CLI in that project.
Fixed
dispatch_parallel.pyhard-coded--model claude-sonnet-4-6in the CLI default, inRouteRunCtxand in_launch_route, sogene-fusionroute workers failed outright on gateways that only serve other models. The default now comes fromTRITON_ROUTE_MODEL/CANNBOT_ROUTE_MODEL, and when neither is set the--modelflag is omitted so the CLI inherits its own default; the route prompt is still passed positionally after the optional model flag.triton-op-generator/plugin-sources.jsonandtriton-auto-evolve/plugin-sources.jsonnow declareops/triton-mfu-analyzer. Both agents require that Skill for MFU measurement (Phase 4/ metric_mode=mfu), but it was never installed, so agents reported "there's no triton-mfu-analyzer" and fell back to ad-hoc measurement tooling.config_loader.pynormalisestarget_mfutotarget_speedup, andcheck_npu_idle.pyhonoursTRITON_NPU_SMI_TIMEOUT(default unchanged at 10s): on a busy machinenpu-smi info -mcan take over 20s, which made every device look unusable and aborted the round withNpuIdleCheckError.
Changed
triton-auto-evolve/init.shdefaults to theclaudeclient, soinit.sh projectalone produces the Claude Code layout (CLAUDE.md,.claude/);opencode,trae,cursorandcopilotremain available as an explicit second argument.- Added the
model-recommend-infer-optimizecommunity plugin: end-to-end inference optimization for recommendation / search / ranking / vision-encoder models on Ascend NPU. The primary agent drives entries 0-14 (environment baseline → model analysis → single-card baseline → concurrency and core policy → precision gate → performance analysis) and then a one-action-per-round optimization loop gated by both precision and performance, dispatching four subagents (runner / analyzer / implementer / reviewer). Its eighteen atomic Skills live in thecannbot-skillsrepository undercommunity/model/and are pulled throughplugin-sources.json; the plugin itself keeps the orchestration assets and bundles the GE_SESSION_DEMO framework underframework/(upstream Apache-2.0, LICENSE/NOTICE shipped, exempted inOAT.xml), which is copied to the project root at install time for the onnx path — pytorch / HuggingFace inputs stay on the model's own script plustorch_npuand are documented as experimental. - Added the
ops-direct-invoke-flashplugin (migrated from the cannbot-skills repository): end-to-end construction of a brand-new Ascend C kernel from a CPU function, a mathematical formula, a code fragment, or a text description, covering environment probing, definition and design documents, incremental implementation, on-device NPU verification, and wrap-up documentation;AscendC::Regcode is generated natively when the target is Ascend950 /dav-3510. The entry Skillops-direct-invoke-flashships inside the plugin with its own hooks, references, scripts, and theadd/mul/sqrtreference operators;ascendc-st-designandascendc-whitebox-designare sourced fromvendor/cannbot-skillsviaplugin-sources.json, which setspreserveSkillInvocationPolicyso the bundler leaves the entry Skill'sdisable-model-invocation: trueintact and an npm install behaves like a source install. The three reference operators moved from the plugin root toskills/ops-direct-invoke-flash/operators/so they remain reachable through${CLAUDE_SKILL_DIR}after installation;AGENTS.mdgained anameand is declared inagents, so it installs as thedirect-invoke-flashprimary agent alongside theops-direct-invoke-flash-reviewersubagent. The plugin's self-contained 322-lineinit.shis replaced by the shared thin source adapter: the cursor/copilot/codearts targets and global-level installation are no longer offered, and installs are recorded in the sharedcannbot-plugin.jsonregistry instead of the per-toolcannbot-manifest.jsonthe old installer wrote. The shared installer splicesAGENTS.mdinto a marker block instead of symlinking it as the project instruction file, which left the old fixedparents[3]lookup invalidate_test_gate.pyunable to find any config once installed, silently forcingharness.test_gatetooff; the validator now locates its own<!-- cannbot:ops-direct-invoke-flash:start -->block wherever it sits in the file (the installer appends it after existing content, and other plugins splice their own), acceptsCLAUDE.mdas well asAGENTS.md, and resolves the config file — not merely its directory — as the nearest one actually declaringharness.test_gateat or above--operator-doc-dir, falling back to its own plugin directory. The upward search stops at the project root (.git/.cannbot) so a user-level config cannot supply the switch, and ignores the operator doc directory, which the workflow writes into. A resolution miss is now a gate failure (config_not_found, exit 1) instead of a silentoff, and the file the setting came from is printed. - Added the
ops-perf-optimizeplugin (migrated from the cannbot-skills repository): end-to-end AscendC operator performance tuning through the five-stage workflow (baseline evaluation, preparation, diagnostic analysis, implementation verification, post-processing), with project extraction and restoration, precision gates, generalization tuning, and per-case regression protection. Its nine workflow Skills ship inside the plugin; seventeen shared AscendC Skills plus theknowledge-querySkill are sourced fromvendor/cannbot-skillsviaplugin-sources.json. The cannbot-knowledge knowledge base,asc-devkit, andcann-samplesare declared inplugin-install.jsonand cloned under.cannbot/dependencies/ops-perf-optimize/(asc-devkit/cann-samples exposed at the project root); scheme design (analysis) and scheme implementation consume KB cards through theKB_ROOTdispatch-envelope field — citingkb_cardsdoc-ids in the analysis report andscheme-conformance.json, degrading tokb_unavailablewhen the knowledge base is absent; the installer replaces the previous self-containedinit.sh. - Added the
triton-op-generatorplugin (migrated from the cannbot-skills repository): Triton-Ascend operator generation and optimization in Phase 0-7 direct-execution mode. Its eight triton Skills plusknowledge-query/ops-knowledge-ingestare sourced fromvendor/cannbot-skillsviaplugin-sources.json; the cannbot-knowledge knowledge base is auto-cloned at install time viaplugin-install.json; the baseline guard hook uses the standardhooks/hooks.jsonlayout; all knowledge cards are served from cannbot-knowledge. - Added the
pypto-op-orchestratorplugin for PyPTO operator development: the 7-stage state machine (plan → golden → design → verify-prep → per-module implementation → final E2E → performance tuning) is orchestrated as two harness workflows (pypto-op-develop.yamlfor generation plus tuning,pypto-op-tune.yamlfor tuning only) in the node-as-agent style, withgeneral-executor/general-verifierprotocol shells and stage behaviour carried by node fields. The plugin ships no PyPTO Skills, role agents, or hooks itself;plugin-install.jsondeclares the cannbot-skills repository as a dependency with anassetsmapping, and the installer clones it at install time and links the declared Skills/hooks/AGENTS.md into the target project (relative symlinks, trackingmaster). The installer gained the dependency-asset mechanism for this:assetsonplugin-install.jsondependencies, the dependency repository'splugin-assets.jsonmanifest (inline keys override), andresolvePluginDirnow accepts a plugin without a localskills/directory when it declares such assets. The harness orchestrator also fixes subprocessPWDpropagation so providers that resolve the project directory fromPWDwork when the orchestrator is started from another directory. - Added the
hccl-op-generatorplugin for HCCL AICPU standard communication operator development, with four Agent state-machine workflow, from the cannbot-hccl repository. Corresponding Skills are contributed to the cannbot-skills repository undercommunication/. - Community plugin channel:
plugins-community/is recognised by the bundler and the installer, and a community plugin is indexed by its manifestname, so its directory name is only a storage location.plugins-official/keeps the rule that the directory name is the plugin id. - Agent and workflow bodies have
skills/<name>/references rewritten to the installed Skill path, matched only against Skill names that resolved, so prose is not altered. - A Skill name claimed by two plugins is refused only when the resolved sources differ; two plugins resolving the same Skill from the same place install as before.
- Community plugin
cake(CAKE2, Collaborative Ascend Kernel Evolution): 19 Skills and 3 agents for AscendC operator generation and evaluation, atplugins-community/collaborative-agent-kernel-evolution/. The content is the copy published incann/cannbot-skills; registration files (plugin-sources.json,init.sh,.codex-plugin/plugin.json, marketplace entry,OAT.xmlfilteritem) are new here. The remaining Skills of the TileLang, EasyAsc and CV routes follow separately. - Third-party attribution for cake: 40 files obtained from
just-it/ascendopgenagent(commitd530e7b, offered under Apache-2.0) now record that provenance and a modification notice instead of a CANN-2.0 header. The notice states where the content came from rather than who holds copyright in it, because that repository declares no copyright holder and is not the origin of the Triton-derived DSL it documents;LICENSE-APACHEships with the plugin,README.OpenSourcerecords the component, andOAT.xmlexempts those paths from the CANN-2.0 header policy.skills/reference-generation/references/hardtanh.pyThe torch_npu path block inskills/ascendc-evaluation/scripts/template/CppExtension/ setup.pyis registered against the Ascend samples (Apache-2.0). The notices lead with Huawei's modification claim so the repository's header rule still matches, and state the acquisition route rather than asserting who holds copyright upstream. skills/ascendc-evaluation/scripts/template/CppExtension/csrc/pytorch_npu_helper.hpphas its upstream BSD-3-Clause notice restored and is registered as third-party. The notice had been replaced with a CANN-2.0 header, while a second copy of the same file elsewhere in this plugin family retains BSD-3-Clause and is registered under it. The composition scan did not report this file.skills/cake-docs-search/scripts/*record that they share origin withops/ascendc-docs-searchincann/cannbot-skills, which this plugin vendors asvendor/cannbot-skills, first published in CAKE2 on 2026-03-24.skills/reference-generation/references/hardtanh.pyis removed from this change. It adapted a Stanford KernelBench task, and the step 4 bullet in that skill'sSKILL.mdwhich pointed at it is removed with it;linear_softplus.pyremains as the reference example for that step.
Fixed
- A clean install could leave
knowledge-queryinstalled but unusable, so agents ran on the skeleton path while the knowledge base sat unused in the project. The retrieval index is built lazily on first query, but that auto-build — and the rebuild after the index goes stale — was gated by a stricter rule than root discovery uses, socannbot-knowledgecheckouts provisioned byplugin-install.json(which carry onlyops/+index.md) were rejected with "does not look ready". The fix lives incannbot-skills(knowledge-query: three readiness checks now share one trust rule); thevendor/cannbot-skillsgitlink will be bumped to the merged commit in a follow-up, and this entry records the user-visible behaviour change.triton-op-generator's quickstart now states that the index is built lazily on first query rather than at install time, so the one-off ~50s cost is not mistaken for a hang.
Fixed
triton-auto-evolve'sinit.shresolved the shared Skills from thevendor/cannbot-skillsgitlink, so a fresh clone installed whatever commit the gitlink pinned instead of the current branch: users got stale Skills and a staleknowledge-queryeven after the Skills repository had moved. It now resolves the shared checkout the way the unified installer does — explicit--skills <path|SHA>first, otherwise the latest commit of the same-named remote branch (falling back tomaster), failing loudly instead of silently installing the pinned revision — and prints the resolved revision so staleness is visible at install time.
Changed
- The
model-recommend-infer-optimizeinstaller now mergessettings.jsonhooks by JSON instead of skipping them when the file already exists, splices its instruction file into a marker block with a backup instead of overwritingAGENTS.md/CLAUDE.md, quotes hook command paths, and fails the health check when hooks are not actually registered. - The installer now copies a plugin's
framework/directory along withworkflows/,agents/andhooks/. Plugins that ship runtime assets outside those well-known directories previously lost them oncannbot install; the bundledGE_SESSION_DEMOframework ofmodel-recommend-infer-optimizeis the first consumer. - Renamed the official plugin directory
plugins/toplugins-official/, aligning with thecannbot-skillsrepository layout and pairing withplugins-community/; updated the marketplace sources, installer discovery paths, bundling, tests, and documentation accordingly. The npm package layout (dist/plugins/) and the installed layout (.cannbot/plugins/) are unchanged. - A plugin may set
preserveSkillInvocationPolicyinplugin-sources.jsonto keep thedisable-model-invocationvalue each of its Skills was authored with. Without it the bundler rewrites the value as before. - Community plugins are not stamped with a plugin-root licence; each keeps the licence it
ships with, and
plugins-community/carries none.
Removed
- Removed the test-oriented
ascendc-st-designplugin fromplugins-official/and its marketplace entry. Theascendc-st-designSkill remains available incannbot-skillsand is still bundled byops-direct-invoke.
1.3.2 - 2026-08-31
Changed
- Switched plugin homepage URLs to the canonical production HTTPS endpoint.
1.3.1 - 2026-08-31
Changed
- Aligned plugin homepage URLs with the production HTTP endpoint.
- Added the static CANNBot plugin portal and aligned its operator test page with
ascendc-st-design.
1.3.0 - 2026-08-31
Added
- Added repository-level CANN Open Software License 2.0 metadata and OAT compliance configuration.
- Added a Claude Code marketplace catalog for the three official plugins.
- Added Git text normalization and binary file rules.
- Added per-plugin license delivery and npm package installation smoke tests.
- Added the
ascendc-st-designplugin for L0/L1/L2 system test design.
Changed
- Standardized repository metadata on the official URL,
https://gitcode.com/cann/cannbot. - Unified npm and source installations behind the same Node.js installer.
- Added plugin-level
init.shadapters for source installations. - Made source installation initialize the Skill submodule only when required.
- Renamed
npm/toscript/andplugin-official/toplugins/. - Added the repository architecture, directory responsibilities, and release flow to the root README.
- Made plugin instructions and installation records coexist across multiple installed plugins.
- Renamed the internal CLI entry point to
cannbot.js.
1.2.2 - 2026-08-21
Changed
- Moved npm tooling into its own directory.
- Enabled shallow initialization of the Skill submodule.
1.2.1 - 2026-08-21
Changed
- Established
cannbot-skillsas the single Skill source through a pinned Git submodule. - Added build-time plugin assembly for npm packages.
1.2.0 - 2026-08-21
Changed
- Made published official plugins self-contained so npm users do not clone the Skill repository.
1.1.0 - 2026-08-21
Added
- Added packaged official plugins and native plugin initialization support.
1.0.0 - 2026-08-19
Added
- Published the cross-client installer as
@cannbot-plugin/cannbot.