Skip to content

/wbExplain — Live Demo () ​

What /wbExplain would actually produce on wb-labs today (2026-05-04). Rows, files, and concepts in this matrix are real — the explanations the agent would generate are excerpted from realistic outputs.


1. Live target ​

FieldLive value
Active packagecore2/packages/wb-core
Active planreports/20260504/plans/plan_wb-core_20260504.md (3 rows, all ⬜)
Memory available to the agentMEMORY.md index plus 12 leaf files (user profile, project tech debt, feedback rules, etc.)
Search corpus for free-text targetsThe full working tree under /home/wissemb11/Allprojects/wb-labs/

/wbExplain is the only command in this group that actively reads memory at runtime. When you ask "what is the docs edition," it's the memory file project_docs_edition.md that tells it. The other commands in the QA group read code; /wbExplain reads code and memory.


2. What each target form would resolve to today ​

TargetLive resolution
--id="1"Row 1 of plan_wb-core_20260504.md — JWT handshake. Files referenced: tierEnforcement.js.
--id="*"All 3 rows: JWT handshake, renderString escape, WBC.js decomposition. Synthesized as one narrative.
core2/packages/wb-core/Package-level explanation: role, exports, position in the monorepo.
core2/packages/wbc-ui2-cdn/Triggers the parked tech-debt note: "package declares main at dist/ but vite writes to dist-dev/" (per project_pkg_dist_mismatch.md).
"the wbCode dev gate"Resolves to the __WBC_DEV__ 3-mode pattern (full / dev / hidden) — visible in feedback_wbCode_dev_only.md.
"WBDataViewer apiResponse_"Resolves to the cache-pattern memory note plus the actual code in core2/packages/wb-dataviewer/.
"docs edition"Resolves to project_docs_edition.md (the structural rules for this very documentation project).

The free-text resolutions are interesting because they pull from memory + code. A naive grep would miss them; a code-only search would miss the context the memory adds.


3. Per-flag behavior, applied live ​

Flag combinationWhat /wbExplain would produce
--id="1" (no style)~400-word principle-first explanation of the JWT handshake row.
--id="1" --as="eli5"~200-word version with bouncer/bracelet metaphors.
--id="1" --as="fr, expert"Same content, French, with technical vocabulary preserved (no translation of JWT, tierEnforcement).
"WBDataViewer apiResponse_" --as="senior reviewer, skeptical"Surfaces the three open questions (key scope, naming, no invalidation) before any approval.
"docs edition" (no style)The structural rules: 33 commands × 6 layers, no hub files, english-only docs.

4. Pipelines ​

📋/wbExplain Live Execution Simulator
Onboarding doc for the IPEIM student/wbExplain "frontEnd/wbc-ui/core2/packages/wb-flow/templates/" --as="expert, fr, IPEIM CS senior, internship onboarding"
> /wbExplain "frontEnd/wbc-ui/core2/packages/wb-flow/templates/" --as="expert, fr, IPEIM CS senior, internship onboarding"
[EXPLAIN] Target: frontEnd/wbc-ui/core2/packages/wb-flow/templates/ (the agentic framework root)
[STYLE] expert FR — assume systems thinking, no agent 101 preamble.
[CONTEXT] Memory: user is IPEIM CS instructor; the documentation docs convention applies.
# Le framework wb-flow — vue d'ensemble pour stagiaire
Le système repose sur trois invariants, et tout le reste découle d'eux.
**Invariant 1 — le plan est l'unique source de vérité.** Chaque journée
de travail est représentée par un fichier `plan_<package>_<date>.md`.
Ce fichier contient un tableau dont chaque ligne décrit une tâche, son
implémenteur (`Done`), son validateur (`Valid`), et ses dépendances.
Aucune autre forme de tracking n'est autorisée.
**Invariant 2 — le worker et le validateur ne sont jamais le même
modèle.** `/wbWork` écrit la cellule `Done`. `/wbValid` écrit la
cellule `Valid`. Une seule commande peut écrire une cellule donnée.
Cela élimine l'auto-validation et force une revue indépendante.
**Invariant 3 — chaque commande mute zéro ou une cellule.** `/wbExplain`
mute zéro (production de prose). `/wbWork` mute une (`Done`). `/wbPlan`
peut muter les deux dans une transition d'état (rare). Toute tentative
de muter plusieurs cellules dans une commande viole le contrat.
À partir de ces trois règles, l'arborescence `frontEnd/wbc-ui/core2/packages/wb-flow/templates/` se déduit...
⚠️ Note: Wissem teaches at IPEIM (CS instructor since 2018, per memory). A senior-year student joining wb-labs for an internship needs the conceptual map of the agentic framework, in French.

💠 Pipeline Onboarding doc for the IPEIM student ​

Wissem teaches at IPEIM (CS instructor since 2018, per memory). A senior-year student joining wb-labs for an internship needs the conceptual map of the agentic framework, in French.

💠 Pipeline The WBDataViewer apiResponse_ design review ​

A reviewer comes back to the WBDataViewer code six months from now. They see apiResponse_ (with the trailing underscore) and don't remember why. Run live:

💠 Pipeline The dist-folder mismatch, explained for a fresh pair of eyes ​

A real piece of tech debt parked in memory: the wbc-ui2 packages declare main at dist/ but vite writes to dist-dev/. Someone new sees a "module not found" error and asks /wbExplain "core2 dist folder mismatch":


5. What would refuse today ​

TriggerLive response
/wbExplain with no targetHalt. Provide --id, a path, or a concept string.
/wbExplain --id="*" right nowProduces the 3-row epic overview (rows are ⬜ but explanation doesn't require Done).
/wbExplain --id="4"Halt. Plan only contains 3 rows.
/wbExplain "the auth thing"Disambiguation prompt — could be JWT in wb-core, login in wbc-ui.com, session handling in wbc-ui2-cdn. Lists all three; asks user to pick.
/wbExplain "rebuild the universe"Honest "no clear target found in workspace" with suggestions of nearby concepts.
/wbExplain --id="1" --as="haiku"Honors the constraint. Produces a haiku about the JWT handshake row. The user owns the format.

The unifying point: /wbExplain is the most permissive command in the QA group on the input side and the most disciplined on the output side. It accepts almost any target; it refuses to produce content that's incorrect-but-confident. When in doubt, it asks; when truly unable, it admits.