一键导入
backend-add
Use when registering a new APXM inference backend (cloud, on-prem, or local). Enforces hard-fail-at-config-time resolver behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when registering a new APXM inference backend (cloud, on-prem, or local). Enforces hard-fail-at-config-time resolver behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when changing APXM compiler frontends: Rust AirModule, TypeScript @apxm/frontend, Python apxm, frontend codegen, or Studio/source lowering into AIR.
Use when working on APXM MCP surfaces: the Rust HTTP `/v1/mcp` endpoint, the Rust stdio `mcp-server` binary, or cross-agent MCP registration. Prefer server-owned HTTP MCP for workflow/orchestration control.
Use when rebasing the external/vllm fork onto a new upstream tag, cherry-picking APXM commits, or resolving conflicts in the fork. Covers the G1 build/smoke gate.
Commit gate — runs simplify + finish first, drafts message in repo log style, lints it with dekk agents commit-lint, commits at a clean stopping point, and pushes only when authorized. Never --force. Does not open PRs.
Use when editing conceptual docs under docs/. Gates two shipped failure modes — overclaim (present-tense prose about unwired behaviour) and citation drift (claims with no anchor to shipped code).
Use when adding, modifying, or reordering MLIR passes in the APXM compiler pipeline. Enforces the single pass-list source of truth, the AIS-core ownership rule, and the build-dialect + codegen cadence after .td edits.
| name | backend-add |
| group | Domain |
| description | Use when registering a new APXM inference backend (cloud, on-prem, or local). Enforces hard-fail-at-config-time resolver behavior. |
| user-invocable | true |
Load _shared/apxm-development-rules.md before broad work.
dekk agents backend list # what's registered
dekk agents backend add # register a new backend
dekk agents backend test <name> # connectivity probe
dekk agents backend remove <name>
dekk agents backend status <name> # registry status, not process lifecycle
dekk agents backend sync-models <name> # Ollama model discovery
dekk agents backend add-model <name> <model-id>
cfg or env or "default", no
apxm_endpoints_available-style flags, no resolver "last resort"
branches, no silent round-robin fallback.model.id must match the backend's served_model_name exactly.
Bare name (e.g. gpt-oss-120b), not HF repo (openai/gpt-oss-120b).
Mismatch → silent 404 storm. See
feedback_apxm_model_id_must_match_served.~/.apxm/config.toml with a project-local file
that only sets data-dir. The resolver is first-wins, not merge —
see apxm_config_resolver_does_not_merge. Either keep all config in
one file or fully merge the backend block.dekk agents vllm zoo-apply over backend add — the zoo manifest is the operator surface.dekk agents vllm ....env:<NAME> for API keys and
sensitive headers; durable OAuth/API-key custody belongs to auth.# Cloud / on-prem (manual entry):
dekk agents backend add
# Follow the prompts; supply endpoint and API-key reference
# (`env:NAME`, never a literal secret).
dekk agents backend test <name>
dekk agents backend add-model <name> <model.id>
# vLLM:
# Use the zoo path instead — see model-zoo-operate.
dekk agents backend test <name> — connectivity + auth.dekk agents doctor — env / resolver sanity.dekk agents vllm probe <api_base> — APXM-vLLM-specific route probe.Implementing a provider (vs. registering one) spans:
crates/runtime/backends/src/<provider>/{mod.rs,client.rs,config.rs},
…/registry.rs (enum + dispatch), …/apxm-runtime/src/executor.rs (if a
dispatch hint is needed), config/backends.example.toml,
tests/backends/<provider>_smoke.rs. vLLM dispatch hints go through
fork-vllm-rebase (cherry-pick against apxm-rebase-v0.21.0; never edit
external/vllm in place).
backend test afterward — the registry can
hold a broken config silently.api_base = "http://127.0.0.1:8916" — port 8916 lints
as hardcoded-port-8916 outside the allocator-range default.env:<NAME> reference..apxm/config.toml that only sets
data-dir (shadows user-global backends)."reuse_group") in a handler — promote it
to a graph_attrs::* / metrics_keys::* constant
(feedback_attribute_dual_naming).