Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

zcode-expert-system

Latest version: v3.2.3

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: wutian222
0 Stars
0 Forks
11 Versions
1.4K Downloads
Python Repo language

Scan summary

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.

  • Releases: 11 versions; the latest 3 were published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 3.2.3.
  • Downloads: 1,394 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 3.2.3

Findings

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.

README

The publisher’s own README, as collected from the registry.

ZCode Expert System v3.2

English · 简体中文

📋 Overview

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)

🏗️ Plugin Architecture

System Overview

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
Three-Layer Routing (Domain Axis)

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:

  1. Classify the task into one of 32 categories (zcode_expert_system.classify_task_detailed)
  2. Route to the matching domain manager (manager-<category>)
  3. Coarse-screen candidate specialists in that category (Top-5 by embedding or token-overlap)
  4. Semantic selection — the controller (host model) must review top_candidates[].score_detail and make the final judgment; Python's choice is only token-counting heuristic, not semantic judgment
  5. Dispatch via Agent(subagent_type="<specialist display name>") with a process-contract prefix
  6. Propagate context across stages via return values

Semantic 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_llm and embedding_client.py get_embedding return None, so coarse screening degrades to local token-overlap scoring. When semantic_selection_required=true, the controller must review score_detail and may override with build_dispatch_for_expert("<specialist name>", task). A wrong specialist name raises ValueError with 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: 返回500 does 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.

Role × Specialist Matrix (Workflow Roles)

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.

Reviewer Independence

Only 1 of the 331 specialists is "Code Reviewer", so independence cannot rely on "more types". Three guarantees:

  1. type ≠ Implementer (different specialist)
  2. instance ≠ independently dispatched, independent context
  3. input isolation — only brief / report / change-set, no dialogue context

Independence level must be recorded: L0 (independent sub-agent, deliverable) / L1 (controller self-review downgrade, must be declared) / L2 (no review, delivery prohibited).

Seven-State State Machine (Single Source of Truth)

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.

Evidence Levels (Anti-Loss)
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.

No-Git-Worktree Parallel Model

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.

Conflict Resolutions (10 Rulings, workflow.json → conflict_rulings)

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm zcode-expert-system

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229