Scan your whole stack
Are you using zcode-expert-system?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.2.3
zcode-expert-system was last scanned on 24 Nov 2026 at version 3.2.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.2.3 LATEST | 24 Nov 2026 | No rules fired |
| 3.2.2 | 24 Nov 2026 | No rules fired |
| 3.2.1 | 19 Nov 2026 | No rules fired |
| 2.0.7 | 12 Nov 2026 | Not shown |
| 2.0.6 | 12 Nov 2026 | Not shown |
Findings for v3.2.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.2.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
English · 简体中文
ZCode Expert System is an expert-routing plugin that runs on both ZCode and Claude Code. It ships the full persona prompts of 331 specialists from dsh-agency-agents, adapted with two-axis routing: the scale axis decides how long a workflow runs, the domain axis decides which expert handles it.
The same package deploys to either host. ZCode reads .zcode-plugin/ and hooks/hooks.json; Claude Code reads .claude-plugin/ and hooks/claude-hooks.json. The two sides are fully isolated — installing on one never affects the other.
| Host | Manifest | Hooks config | Sub-agent location | Dispatch name |
|---|---|---|---|---|
| ZCode | .zcode-plugin/plugin.json |
hooks/hooks.json (type: process) |
~/.zcode/agents/ |
后端架构师 (Chinese bare name) |
| Claude Code | .claude-plugin/plugin.json |
hooks/claude-hooks.json (type: command) |
agents/ inside plugin |
zcode-expert-system:后端架构师 (qualified name) |
ZCode Expert System v3.2.3 is an expert-routing plugin for ZCode. It ships the full persona prompts of 331 specialists from dsh-agency-agents, fused with Superpowers engineering discipline and OpenSpec spec-driven development. The plugin uses two-axis orthogonal routing:
| Axis | Question | Implementation |
|---|---|---|
| Scale axis | How long to run (which stages, how many gates) | zcode_dev_workflow.py → readonly/light/medium/large/bug, trim_matrix + minimum_gates |
| Domain axis | Which expert handles it | zcode_expert_system.py → 32 categories → 331 specialists, subagent_type |
Two axes are independent: scale decides stage trimming, domain decides subagent_type. All tasks (including readonly and mechanical tasks) must complete both-axis triage — domain routing cannot be skipped (W10).
User task
│
├─── Scale axis (zcode_dev_workflow.py) ─────────────────────┐
│ readonly / light / medium / large / bug │
│ → which of the 9 stages to run (trim_matrix) │
│ → how many gates must pass (minimum_gates) │
│ │
└─── Domain axis (zcode_expert_system.py) ──────────────────┐
32 categories → 331 specialists │
→ subagent_type (expert display name) │
▼
Two-axis dispatch plan
Within the domain axis, routing happens in three layers:
User task
│
▼
┌─────────────────────────────────┐
│ Layer 1: Task Classification │
│ 32 top-level categories │
└──────────┬──────────────────────┘
│
▼
┌─────────────────────────────────┐
│ Layer 2: Domain Manager (32) │
│ Task decomposition & dispatch │
│ addressed by slug `manager-<cat>`│
└──────────┬──────────────────────┘
│
▼
┌─────────────────────────────────┐
│ Layer 3: Specialist (331) │
│ Registered as ZCode sub-agents │
│ addressed by Chinese display │
│ name, e.g. "后端架构师" │
└─────────────────────────────────┘
Dispatch flow:
zcode_expert_system.classify_task_detailed)manager-<category>)top_candidates[].score_detail and make the final judgment; Python's choice is only token-counting heuristic, not semantic judgmentAgent(subagent_type="<specialist display name>") with a process-contract prefixSemantic selection contract: The plugin deliberately does not configure an external LLM/Embedding service — it depends on the model already active in the session.
scripts/llm_client.py_call_llmandembedding_client.pyget_embeddingreturnNone, so coarse screening degrades to local token-overlap scoring. Whensemantic_selection_required=true, the controller must reviewscore_detailand may override withbuild_dispatch_for_expert("<specialist name>", task). A wrong specialist name raisesValueErrorwith the closest matches (difflib suggestion) rather than silently degrading.
Confidence guard rails (applied during plan generation):
| Condition | Behaviour |
|---|---|
confidence ≥ 0.5 |
Proceed to semantic review |
confidence < 0.5 and selection_basis: heuristic |
Implementer dispatch is blocked (action: blocked_low_confidence + plan.blocking); clarify the domain with the boss first — token-fallback experts are not dispatched |
confidence < 0.5, semantic review already done |
Dispatch proceeds, but a semantic_recheck action is emitted so the controller re-checks score_detail |
confidence = 0 |
domain.no_signal = true — the category is only the business-support default, not a real domain judgement |
Word-boundary guards:
返回500does not fire on返回5000行数据(a trailing numeric segment must not be followed by another digit), and zero-width characters (ZWSP / BOM / soft hyphen) are stripped before matching, so they cannot be used to slip past Bug detection.
Workflow roles are responsibilities; 331 specialists are domain capabilities. They combine orthogonally:
| Role | Dispatched by | Core constraints |
|---|---|---|
| Orchestrator | ❌ Controller self-tasks | Sole state writer, runs verification, records Rulings |
| Implementer | ✅ Domain specialist | No sub-delegation; cannot exceed brief scope; TDD required |
| Reviewer | ✅ Different-domain specialist | Read-only; does not trust self-assessment; must give spec + quality dual conclusions |
| Investigator | ✅ Domain specialist | Read-only; conclusions carry file:line evidence |
| Analyst | ✅ Domain specialist | Read-only analysis; four-part "phenomenon → cause → impact → suggestion"; domain judgment not left to controller |
Process contract takes precedence over specialist persona — the dispatch prompt's first segment hard-declares this, otherwise architecture-type specialists will re-architect on their own.
Only 1 of the 331 specialists is "Code Reviewer", so independence cannot rely on "more types". Three guarantees:
type ≠ Implementer (different specialist)instance ≠ independently dispatched, independent contextinput isolation — only brief / report / change-set, no dialogue contextIndependence level must be recorded: L0 (independent sub-agent, deliverable) / L1 (controller self-review downgrade, must be declared) / L2 (no review, delivery prohibited).
PENDING → IN_PROGRESS → REVIEW → NEEDS_FIX → DONE, plus BLOCKED and PARKED. SDD's four statuses (DONE / DONE_WITH_CONCERNS / NEEDS_CONTEXT / BLOCKED) are edge labels, not states — they convert to state transitions immediately.
Key transitions:
| Transition | Trigger | Evidence |
|---|---|---|
IN_PROGRESS → REVIEW |
Implementer reports DONE / DONE_WITH_CONCERNS | Non-empty change set + report contains command exit codes |
REVIEW → DONE |
Reviewer gives spec ✅ + quality pass | Dual conclusions + controller runs full test suite green |
NEEDS_FIX → PARKED |
5 fix rounds still open, controller decision | Ruling line with cost |
DONE → NEEDS_FIX |
Regression breakage found before archive | Real RED output + tasks.md rollback |
Invariants: one task has exactly one state at a time; DONE iff tasks.md shows - [x]; non-DONE is always - [ ] (including PARKED); ledger first line must be # SDD ledger — plan: <path>; every DONE traces back to non-empty change set + review conclusions.
| Level | Location | Content | Lifecycle |
|---|---|---|---|
| P1 | File snapshot hash or git commit | What actually changed | Archived after delivery |
| P2 | openspec/changes/<n>/tasks.md + plan ## Rulings |
Completion, ADR decisions | Permanent after archive |
| P3 | Plan doc ## Baseline / ## Review / ## Rulings / ## Integration Verification |
Baseline, review, ruling, delivery re-test | With repository |
| P4 | .superpowers/sdd/<plan>/ |
ledger / brief / report / snapshot | Deleted after final review; must export to P3 first |
Iron rule: P4 not exported, workspace not deleted. Otherwise baseline, rulings, and re-test records vanish — this is the spec's most dangerous loss point.
The system does not use Git Worktree. Conserved relationship:
| Kept parallel | Cancelled parallel |
|---|---|
| ✅ Read-only investigation parallel (multiple unrelated failure investigations by domain) | ❌ Multi-agent implementation parallel |
| ✅ Review parallel (multiple Reviewers same batch, read-only, no conflict) | — |
Reason: without an isolated workspace there cannot be two writers. Implementation is always serial — this is conservation, not conservatism.
Git is an optional enhancement layer:
| Detection | Change-set source | Wrap-up |
|---|---|---|
| Has git | review-package BASE..HEAD diff |
Finishing: one of three options |
| No git (default) | File snapshot sha256 difference + changed file full text | Change-list acceptance |
Snapshot mechanism: before dispatch, sha256 of each file in the task Files list; after implementation, recompute; difference = added / modified / deleted. The change-set is computed independently by the controller, not by the implementer's self-report — this is what makes it trustworthy in a no-git environment.
The controller does not run git init for the boss's project without permission.
workflow.json → conflict_rulings)Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.