create-byan-agent 2.5.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,403 +1,409 @@
1
- # BYAN v2.5.0 - Build Your AI Network
1
+ # BYAN v2.6.1 Build Your AI Network
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/create-byan-agent.svg)](https://www.npmjs.com/package/create-byan-agent)
3
+ [![npm](https://img.shields.io/npm/v/create-byan-agent.svg)](https://www.npmjs.com/package/create-byan-agent)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![Tests](https://img.shields.io/badge/tests-1308%2F1308-brightgreen.svg)](https://github.com/Yan-Acadenice/BYAN)
5
+ [![Tests](https://img.shields.io/badge/tests-1444%2F1466-brightgreen.svg)](https://github.com/Yan-Acadenice/BYAN)
6
6
  [![Node](https://img.shields.io/badge/node-%3E%3D12.0.0-brightgreen.svg)](https://nodejs.org)
7
7
 
8
- **🏛️ Intelligent AI Agent Ecosystem** | Powered by Merise Agile + TDD + 64 Mantras
8
+ **Créateur intelligent d'agents IA** | Merise Agile + TDD + 64 Mantras
9
9
 
10
- Create custom AI agents through intelligent interviews + **Hermes Universal Dispatcher** for intelligent routing across 35+ specialized agents.
10
+ > Documentation en anglais disponible ici : [README-EN.md](./README-EN.md)
11
11
 
12
- ### 🎯 New in v2.5.0: Hermes - Universal Dispatcher
12
+ ---
13
13
 
14
- **One entry point to rule them all** 🏛️
14
+ ## Bonjour
15
15
 
16
- ```bash
17
- @hermes # → Menu-driven navigation to 35+ agents
18
- @hermes @dev # → Direct invocation
19
- @hermes rec créer API backend # → Smart routing
20
- @hermes pipe feature complète # → Multi-agent pipelines
21
- ```
16
+ Bonjour à tous ! J'ai l'honneur de vous présenter **BYAN**, votre ami sur vos projets — que vous soyez développeur, vibe codeur ou juste curieux.
22
17
 
23
- **Features:**
24
- - 🎯 **Smart Routing**: Describe your task → Hermes recommends best agents
25
- - 🔗 **Pipelines**: Pre-configured multi-agent workflows (Feature Complete, Bug Fix, etc.)
26
- - 📋 **Agent Directory**: Browse 35+ agents organized by module (core, bmm, bmb, cis, tea)
27
- - 💰 **Cost Optimizer**: 87.5% LLM cost savings (optional integration)
28
- - 🌐 **Multi-Platform**: GitHub Copilot CLI, Claude Code, Codex
29
- - 🪶 **Node 12+ Compatible**: Works on legacy servers
18
+ > **Important :** Je précise que c'est un projet pas fini et plus un MVP/note d'intention qu'une vraie version finale en production. C'est un outil en évolution active, et c'est précisément là où réside son intérêt.
30
19
 
31
- [→ Full Hermes Guide](./install/HERMES-GUIDE.md)
20
+ ### Pourquoi BYAN existe
32
21
 
33
- ---
22
+ Pour comprendre le contexte de BYAN, il faut comprendre pourquoi j'ai décidé de le créer. La problématique de base est simple.
34
23
 
35
- ## 🚀 Quick Start
24
+ Je me suis retrouvé avec un gros projet sur les bras, des deadlines très serrées, pas de budget, et une équipe inexpérimentée pour le faire. Ce qui m'a amené à faire des crunchs stupides avec des développeurs en dépression.
36
25
 
37
- ### Install & Run
26
+ Pour résoudre ce problème, m'est venue l'idée d'utiliser les agents IA pour accélérer le développement du projet. Grâce à un de mes étudiants en dev (crédité dans les contributeurs du projet) à qui je donne cours, j'ai découvert la méthode **BMAD**, qui est un framework d'agents IA. Au départ sceptique, j'ai été bluffé du résultat, bien que ces agents IA souffraient des biais habituels des IA, en particulier en fonction du modèle utilisé et de qui l'utilise et comment.
38
27
 
39
- ```bash
40
- # Using npx (recommended - no installation needed)
41
- npx create-byan-agent
28
+ Alors une idée simple est venue : **et si on pouvait mettre un cadre à tous ces agents pour y apporter de "l'intelligence", peu importe le projet, en mettant des règles et contraintes de base pour contrer les biais des modèles d'IA ?**
42
29
 
43
- # Or install globally
44
- npm install -g create-byan-agent
30
+ C'est que m'est venue l'idée de leur insuffler des **mantras** — des règles absolues auxquelles l'agent devait se conformer. Des gardes-fous épistémiques, méthodologiques et comportementaux qui transforment un LLM bavard en partenaire fiable.
45
31
 
46
- # Then run
47
- create-byan-agent
48
- ```
32
+ Maintenant, la problématique se pose en multi-agents : comment faire pour que tous mes agents aient bien ces bonnes pratiques et règles ?
49
33
 
50
- ### Programmatic Usage
34
+ Il suffit de les instaurer à la source, c'est-à-dire **à la création des agents**. C'est là que BYAN intervient : il va vous assister dans la création intelligente d'agents IA.
51
35
 
52
- ```javascript
53
- const ByanV2 = require('create-byan-agent');
36
+ ### Ce que BYAN n'est pas
54
37
 
55
- const byan = new ByanV2({
56
- maxQuestions: 12,
57
- outputDir: './_byan-output'
58
- });
38
+ Par contre, attention : **BYAN n'est pas magique**. Le but est de pousser le "homme-machine" pour faire des agents IA une extension de votre cerveau. Donc BYAN va vous challenger, éprouver votre problème et votre solution — mais mal utilisé, il ne résoudra pas vos problèmes comme par magie.
59
39
 
60
- await byan.startSession();
61
-
62
- // Interactive interview (12 questions)
63
- while (!byan.isComplete()) {
64
- const question = byan.getNextQuestion();
65
- const answer = await getUserInput(question.text);
66
- await byan.submitResponse(answer);
67
- }
68
-
69
- // Generate agent profile
70
- const profile = await byan.generateProfile();
71
- console.log('Agent created:', profile.filePath);
72
- ```
40
+ C'est juste un agent intelligent avec les bons softskills et hardskills pour vous accompagner dans la réalisation de vos projets.
73
41
 
74
42
  ---
75
43
 
76
- ## ✨ What's New in v2.1.0
44
+ ## Installation
77
45
 
78
- ### 4 New BMAD Modules
46
+ ### Prérequis
79
47
 
80
- **📚 Glossary Builder** - Auto-builds domain vocabularies
81
- - Auto-triggers for complex domains (ecommerce, finance, healthcare)
82
- - Validates definition clarity (min 70%)
83
- - Suggests related concepts
48
+ - Node.js >= 12.0.0
49
+ - npm >= 6.0.0
50
+ - Un compte GitHub Copilot, Claude Code ou Codex (selon la plateforme cible)
84
51
 
85
- **🔍 Five Whys Analyzer** - Root cause analysis
86
- - Detects pain points automatically
87
- - 5 sequential WHY questions
88
- - Categorizes causes (technical/process/people/resource)
52
+ ### Installation rapide (recommandée)
89
53
 
90
- **👂 Active Listener** - Intelligent response processing
91
- - Auto-reformulation every 3rd response
92
- - Validates confirmations
93
- - Session summaries with insights
54
+ Aucune installation préalable n'est nécessaire. Lancez simplement :
94
55
 
95
- **✅ Mantras Validator** - Quality validation
96
- - 64 BMAD/IA mantras
97
- - Compliance scoring (target: 80%+)
98
- - Category-based validation
99
-
100
- **417 new tests** | **100% passing** | **95%+ coverage** | **< 10% overhead**
101
-
102
- ---
56
+ ```bash
57
+ # Crée un nouveau projet BYAN (via npx, sans installation préalable)
58
+ npx create-byan-agent
103
59
 
104
- ## 🎯 Features
60
+ # Ou installation globale
61
+ npm install -g create-byan-agent
62
+ create-byan-agent
63
+ ```
105
64
 
106
- ### Core Capabilities
65
+ L'installeur (Yanstaller) vous guide interactivement à travers le processus :
107
66
 
108
- - **Intelligent 4-Phase Interview**: Context → Business → Agent Needs → Validation
109
- - **Automatic Profile Generation**: Creates `.md` agent files with YAML frontmatter
110
- - **Built-in Validation**: Validates against GitHub Copilot CLI requirements
111
- - **Template System**: Flexible templates with placeholder resolution
112
- - **Quality Enforcement**: Zero emoji policy, clean code principles
113
- - **State Machine Workflow**: INTERVIEW ANALYSIS GENERATION → COMPLETED
67
+ ```
68
+ ? Nom du projet : mon-projet
69
+ ? Langue de communication : Francais
70
+ ? Plateforme cible : GitHub Copilot CLI
71
+ ? Activer le fact-check scientifique ? [Y/n]
72
+ ? Activer le système ELO de confiance ? [Y/n]
73
+ ? Optimiser les coûts LLM automatiquement (~54% d'économies) ? [Y/n]
74
+ ```
114
75
 
115
- ### Advanced BMAD Features (v2.1.0)
76
+ ### Structure du projet après installation
116
77
 
117
- - **Domain Glossaries**: Auto-build glossaries with clarity validation
118
- - **Root Cause Analysis**: 5 Whys technique for pain point analysis
119
- - **Active Listening**: Intelligent reformulation and validation
120
- - **Mantra Validation**: 64 mantras compliance checking
78
+ À la fin de l'installation, votre projet contient :
121
79
 
122
- ### 100% Backwards Compatible
80
+ ```
81
+ votre-projet/
82
+ _byan/ # Plateforme BYAN — cœur du système
83
+ _config/ # Manifestes des agents et workflows
84
+ _memory/ # Mémoire persistante (ELO, fact-graph, session-state)
85
+ agents/ # Agents disponibles (core, bmm, bmb, cis, tea)
86
+ workflows/ # Workflows guidés
87
+ knowledge/ # Base de connaissances sources (axiomes, benchmarks)
88
+ config.yaml # Configuration principale (langue, utilisateur, chemins)
89
+ .github/agents/ # Wrappers GitHub Copilot CLI
90
+ .claude/ # Intégration Claude Code (si activée)
91
+ .codex/ # Intégration Codex/OpenCode (si activée)
92
+ bin/byan-v2-cli.js # CLI BYAN
93
+ ```
123
94
 
124
- All v2.0.0 code works unchanged in v2.1.0. BMAD features are opt-in.
95
+ ### Commandes CLI disponibles
125
96
 
126
- ---
97
+ Une fois installé, vous pouvez utiliser le CLI BYAN :
127
98
 
128
- ## 📖 Usage Examples
99
+ ```bash
100
+ # Lancer l'interview intelligente (crée un agent en 12 questions)
101
+ node bin/byan-v2-cli.js create
129
102
 
130
- ### Example 1: Basic Agent Creation
103
+ # Vérifier l'état de la session
104
+ node bin/byan-v2-cli.js status
131
105
 
132
- ```javascript
133
- const ByanV2 = require('create-byan-agent');
106
+ # Système ELO — score de confiance par domaine technique
107
+ node bin/byan-v2-cli.js elo summary
108
+ node bin/byan-v2-cli.js elo context security
109
+ node bin/byan-v2-cli.js elo record javascript VALIDATED
134
110
 
135
- async function createAgent() {
136
- const byan = new ByanV2();
137
- await byan.startSession();
138
-
139
- // Answer 12 interview questions
140
- await byan.submitResponse('code-review-assistant');
141
- await byan.submitResponse('Reviews code for bugs and best practices');
142
- // ... 10 more responses
143
-
144
- const profile = await byan.generateProfile();
145
- console.log('✅ Agent created');
146
- }
111
+ # Fact-check scientifique — vérifier une assertion
112
+ node bin/byan-v2-cli.js fc check "Redis est toujours plus rapide que PostgreSQL"
113
+ node bin/byan-v2-cli.js fc parse "C'est évidemment la meilleure approche"
114
+ node bin/byan-v2-cli.js fc graph
147
115
  ```
148
116
 
149
- ### Example 2: With BMAD Features
117
+ ### Utilisation programmatique (via npm)
150
118
 
151
119
  ```javascript
152
120
  const ByanV2 = require('create-byan-agent');
153
121
 
154
- async function createWithBMAD() {
155
- const byan = new ByanV2({
156
- bmad_features: {
157
- glossary_builder: { enabled: true },
158
- five_whys: { enabled: true },
159
- active_listener: { enabled: true },
160
- mantras_validator: { enabled: true }
161
- }
162
- });
163
-
164
- await byan.startSession();
165
-
166
- // Glossary auto-triggers for complex domains
167
- const glossary = byan.startGlossary('ecommerce');
168
- byan.addConcept('Order', 'Customer purchase request...');
169
-
170
- // Pain point detection
171
- const detection = byan.detectPainPoints('Slow checkout');
172
- if (detection.needsWhys) {
173
- const question = byan.askWhy();
174
- // ... 5 Whys analysis
175
- }
176
-
177
- // Generate and validate
178
- const profile = await byan.generateProfile();
179
- const validation = byan.validateAgent(profile.content);
180
-
181
- console.log(`Score: ${validation.score * 100}%`);
122
+ const byan = new ByanV2({ maxQuestions: 12 });
123
+ await byan.startSession();
124
+
125
+ // Interview guidée
126
+ while (!byan.isComplete()) {
127
+ const question = byan.getNextQuestion();
128
+ const answer = await getUserInput(question.text);
129
+ await byan.submitResponse(answer);
182
130
  }
183
- ```
184
131
 
185
- ### Example 3: Validate Existing Agent
132
+ // Générer le profil d'agent
133
+ const profile = await byan.generateProfile();
134
+ console.log('Agent créé :', profile.filePath);
186
135
 
187
- ```javascript
188
- const ByanV2 = require('create-byan-agent');
189
- const fs = require('fs');
136
+ // Fact-check
137
+ const result = byan.checkClaim("Redis est plus rapide");
138
+ console.log(result.assertionType, result.score + '%');
190
139
 
191
- const byan = new ByanV2({
192
- bmad_features: {
193
- mantras_validator: { enabled: true }
194
- }
195
- });
140
+ // Score ELO
141
+ const ctx = byan.getClaimContext('security');
142
+ console.log('Scaffold level :', ctx.scaffoldLevel);
143
+ ```
144
+
145
+ ### Activer les agents dans GitHub Copilot CLI
196
146
 
197
- const agentContent = fs.readFileSync('my-agent.md', 'utf-8');
198
- const validation = byan.validateAgent(agentContent);
147
+ Une fois installé, les agents sont disponibles via `@agent-name` :
199
148
 
200
- console.log(`Compliance: ${validation.score * 100}%`);
201
- console.log(`Compliant: ${validation.compliant.length}/64`);
202
- console.log(`Non-compliant: ${validation.nonCompliant.length}/64`);
149
+ ```bash
150
+ @hermes # Dispatcher universel — recommande le bon agent
151
+ @byan # Créateur d'agents (interview intelligente)
152
+ @analyst # Analyste business (Mary)
153
+ @architect # Architecte technique (Winston)
154
+ @pm # Product Manager (John)
155
+ @dev # Développeur (Amelia)
156
+ @fact-checker # Fact-check scientifique
157
+ # ... et 30+ autres agents
203
158
  ```
204
159
 
205
160
  ---
206
161
 
207
- ## 🔧 Configuration
162
+ ## Liste des Agents Disponibles
163
+
164
+ BYAN contient **27 agents spécialisés** organisés en **5 modules** :
165
+
166
+ ### Core — Fondation de la Plateforme
167
+
168
+ | Agent | Persona | Rôle | Cas d'usage typique |
169
+ |-------|---------|------|---------------------|
170
+ | **hermes** | Dispatcher | Routeur universel — recommande le bon agent selon votre tâche | "Quel agent pour créer une API REST ?" |
171
+ | **bmad-master** | Orchestrateur | Exécute workflows et tasks BMAD directement | Lancer un workflow complet sans intermédiaire |
172
+ | **yanstaller** | Installeur | Installation intelligente et interactive de BYAN | Setup initial d'un nouveau projet |
173
+ | **expert-merise-agile** | Expert | Conception Merise Agile + MCD/MCT + cahiers des charges | Modélisation d'un schéma de données métier |
174
+
175
+ ### BMB — Créateurs d'Agents et de Modules
176
+
177
+ | Agent | Persona | Rôle | Cas d'usage typique |
178
+ |-------|---------|------|---------------------|
179
+ | **byan** | Builder | Créateur d'agents via interview intelligente (12 questions, 64 mantras). Intègre [FC] fact-check et [ELO] | Créer un agent spécialisé pour votre domaine |
180
+ | **fact-checker** | Scientifique | Fact-check d'assertions, audit de documents, analyse de chaînes de raisonnement | Vérifier une spec technique avant sprint |
181
+ | **agent-builder** | Bond | Expert en construction d'agents BMAD-compliant | Construire un agent complexe manuellement |
182
+ | **module-builder** | Morgan | Architecte de modules BYAN complets | Créer un nouveau module métier |
183
+ | **workflow-builder** | Wendy | Designer de workflows guidés | Concevoir un processus multi-étapes |
184
+ | **marc** | Spécialiste | Intégration GitHub Copilot CLI | Déployer des agents sur Copilot |
185
+ | **rachid** | Spécialiste | Déploiement npm/npx | Publier un package BYAN |
186
+ | **carmack** | Optimiseur | Optimisation tokens (-46%) | Réduire le coût d'utilisation des agents |
187
+ | **patnote** | Gestionnaire | Mises à jour BYAN et résolution de conflits | Mettre à jour un projet BYAN existant |
188
+ | **claude** | Spécialiste | Intégration Claude Code + MCP | Configurer les agents sur Claude |
189
+ | **codex** | Spécialiste | Intégration OpenCode/Codex | Configurer les agents sur Codex |
190
+
191
+ ### BMM — Cycle de Développement Logiciel
192
+
193
+ | Agent | Persona | Rôle | Cas d'usage typique |
194
+ |-------|---------|------|---------------------|
195
+ | **analyst** | Mary | Analyse business, étude de marché, brief produit | "J'ai une idée, aide-moi à la structurer" |
196
+ | **pm** | John | Product management, création de PRD, roadmap | Rédiger un Product Requirements Document |
197
+ | **architect** | Winston | Architecture technique, tech stack, patterns | Concevoir l'architecture d'un système |
198
+ | **ux-designer** | Sally | Design UX/UI, empathie utilisateur, parcours | Créer les maquettes et user flows |
199
+ | **dev** | Amelia | Implémentation, coding, ultra-succincte | Développer une user story |
200
+ | **sm** | Bob | Scrum master, sprint planning, backlog grooming | Préparer et planifier un sprint |
201
+ | **quinn** | Quinn | QA engineer, tests, couverture de code | Générer des tests pour une feature |
202
+ | **tech-writer** | Paige | Documentation, guides utilisateur, clarté | Rédiger la doc d'une API |
203
+ | **quick-flow-solo-dev** | Barry | Développement rapide sur code existant (brownfield) | Petites features sans cérémonie |
204
+
205
+ ### CIS — Innovation et Stratégie Créative
206
+
207
+ | Agent | Persona | Rôle | Cas d'usage typique |
208
+ |-------|---------|------|---------------------|
209
+ | **brainstorming-coach** | Carson | Idéation, énergie "YES AND", 20+ techniques | "J'ai un problème compliqué, aide-moi à penser" |
210
+ | **creative-problem-solver** | Dr. Quinn | Résolution systématique (TRIZ, Theory of Constraints) | Débloquer un problème technique difficile |
211
+ | **design-thinking-coach** | Maya | Design thinking humain-centré, empathie maps | Concevoir une solution centrée utilisateur |
212
+ | **innovation-strategist** | Victor | Stratégie d'innovation, Blue Ocean, disruption | Trouver un angle différenciant pour un produit |
213
+ | **presentation-master** | Caravaggio | Présentations, slides, storytelling visuel | Créer un pitch deck ou une présentation technique |
214
+ | **storyteller** | Sophia | Storytelling, narratives, communication de marque | Rédiger un texte qui engage et convainc |
215
+
216
+ ### TEA — Architecture de Tests
217
+
218
+ | Agent | Persona | Rôle | Cas d'usage typique |
219
+ |-------|---------|------|---------------------|
220
+ | **tea** | Murat | Master test architect — ATDD, NFR, CI/CD, risk-based testing | Concevoir la stratégie de test complète d'un projet |
221
+
222
+ ### Agents Custom — Créés avec BYAN
223
+
224
+ | Agent | Persona | Rôle | Cas d'usage typique |
225
+ |-------|---------|------|---------------------|
226
+ | **jimmy** | Jimmy | Spécialiste documentation technique — Runbooks, Infrastructure, Déploiement, Procédures, Web. Publie dans Outline Wiki via API REST | Documenter un runbook serveur, une procédure de déploiement ou une config infrastructure |
208
227
 
209
- ### Basic Configuration
228
+ ---
210
229
 
211
- ```javascript
212
- const byan = new ByanV2({
213
- maxQuestions: 12,
214
- outputDir: './_byan-output/bmb-creations',
215
- sessionId: 'my-session'
216
- });
217
- ```
230
+ ## Contributeurs
218
231
 
219
- ### BMAD Configuration
232
+ ### Créateur et Lead Developer
220
233
 
221
- ```javascript
222
- const byan = new ByanV2({
223
- bmad_features: {
224
- glossary_builder: {
225
- enabled: true,
226
- auto_trigger_domains: ['ecommerce', 'finance', 'healthcare'],
227
- min_concepts: 5,
228
- clarity_threshold: 0.7
229
- },
230
- five_whys: {
231
- enabled: true,
232
- max_depth: 5,
233
- auto_trigger: true
234
- },
235
- active_listener: {
236
- enabled: true,
237
- reformulation_frequency: 3
238
- },
239
- mantras_validator: {
240
- enabled: true,
241
- min_compliance_score: 0.8
242
- }
243
- }
244
- });
245
- ```
234
+ **[Yan-Acadenice](https://github.com/Yan-Acadenice)** — Conception, architecture, développement de BYAN
246
235
 
247
- ---
236
+ ### Contributeur Principal — Agent Hermes
237
+
238
+ **[Wazadriano](https://github.com/orgs/Centralis-V3/people/Wazadriano)** — Agent Hermes, Dispatcher Universel (v2.3.2)
239
+ - Architecture et conception du dispatcher universel Hermes
240
+ - Règles de routage intelligent et pipelines multi-agents
241
+ - Intégration complète avec l'écosystème BYAN
248
242
 
249
- ## 📊 Quality Metrics
243
+ ### Remerciements
250
244
 
251
- - **Tests**: 1,308/1,308 passing (100%)
252
- - Core v2.0: 891 tests
253
- - BMAD v2.1: 417 tests
254
- - **Coverage**: 95%+
255
- - **Performance**: < 10% overhead vs v2.0.0
256
- - **Principles**: KISS, DRY, SOLID, TDD
257
- - **Standards**: Zero emojis (Mantra IA-23)
245
+ BYAN est construit au-dessus de la méthode **[BMAD](https://github.com/bmadcode/BMAD-METHOD)**, découverte grâce à un étudiant de la formation **[Acadenice](https://acadenice.fr/)** à qui je donne cours.
258
246
 
259
247
  ---
260
248
 
261
- ## 📚 API Reference
249
+ ## Explication de l'Architecture BYAN — Workflow/Context/Agent/Worker (WCAW)
262
250
 
263
- ### Main Class: ByanV2
251
+ BYAN est organisé autour de quatre concepts fondamentaux qui interagissent ensemble :
264
252
 
265
- #### Core Methods
253
+ ### Agent
266
254
 
267
- - `constructor(config)` - Initialize BYAN
268
- - `startSession()` - Start interview session
269
- - `getNextQuestion()` - Get next interview question
270
- - `submitResponse(answer)` - Submit answer
271
- - `generateProfile()` - Generate agent profile
272
- - `isComplete()` - Check if interview complete
255
+ Un agent est un spécialiste IA avec une identité définie. Il possède :
256
+ - **Persona** : qui il est, son style de communication, ses forces
257
+ - **Menu** : les actions disponibles, chacune liée à un workflow ou une commande
258
+ - **Rules** : les contraintes absolues qu'il ne peut pas violer (les 64 mantras)
259
+ - **Capabilities** : ce qu'il peut faire, ce qu'il ne fait pas
273
260
 
274
- #### Glossary Builder (BMAD)
261
+ Les agents sont définis en Markdown avec des sections XML. Ils sont stockés dans `_byan/{module}/agents/` et exposés sur chaque plateforme via un wrapper léger (`.github/agents/`, `.claude/`, `.codex/prompts/`).
275
262
 
276
- - `startGlossary(domain, options)` - Initialize glossary
277
- - `addConcept(term, definition)` - Add concept
278
- - `getConcepts()` - Get all concepts
279
- - `getGlossary()` - Get full glossary
263
+ ### Workflow
280
264
 
281
- #### Five Whys Analyzer (BMAD)
265
+ Un workflow est une séquence d'étapes guidées qu'un agent exécute pour accomplir une tâche complexe. Par exemple, le workflow `create-prd` guide l'agent PM à travers la création d'un Product Requirements Document en 6 étapes structurées.
282
266
 
283
- - `detectPainPoints(response)` - Detect pain points
284
- - `askWhy()` - Get WHY question
285
- - `processWhyAnswer(answer)` - Process answer
286
- - `getRootCause()` - Get root cause analysis
267
+ Les workflows peuvent être :
268
+ - **Tri-modaux** : Create / Validate / Edit (ex: PRD, Architecture)
269
+ - **Séquentiels** : processus multi-phases guidés (ex: interview BYAN en 4 phases)
270
+ - **Utilitaires** : tâches ponctuelles (ex: fact-check, shard-doc)
287
271
 
288
- #### Active Listener (BMAD)
272
+ ### Context Layer
289
273
 
290
- - `listen(input, context)` - Process input with listening
291
- - `reformulate(input, style)` - Reformulate input
292
- - `validateResponse(input)` - Validate confirmation
293
- - `summarizeSession()` - Generate session summary
274
+ Le contexte est la couche de mémoire et d'état partagée entre tous les agents sur un projet. Il contient :
275
+ - `_byan/config.yaml` : configuration globale (langue, nom utilisateur, chemins de sortie)
276
+ - `_byan/_memory/elo-profile.json` : score de confiance ELO persistant par domaine
277
+ - `_byan/_memory/fact-graph.json` : base de connaissances vérifiées (persiste entre sessions)
278
+ - `_byan-output/` : tous les artefacts générés (PRD, architecture, stories, fact sheets)
279
+ - `_byan/knowledge/` : sources vérifiées, axiomes, benchmarks ELO par domaine
294
280
 
295
- #### Mantras Validator (BMAD)
281
+ ### Worker
296
282
 
297
- - `validateAgent(definition)` - Validate against mantras
298
- - `generateComplianceReport()` - Generate report
299
- - `validateMantra(mantraId, content)` - Validate specific mantra
300
- - `getMantras(category)` - Get mantras by category
283
+ Un worker est un module utilitaire npm-installable qui fait un travail spécifique en arrière-plan. Il est indépendant du cycle agent/workflow et peut être utilisé directement dans votre code.
301
284
 
302
- ---
285
+ Workers disponibles :
286
+ - `_byan/workers/fact-check-worker.js` : vérification scientifique de claims
287
+ - `_byan/workers/cost-optimizer.js` : routage LLM intelligent (~54% d'économies)
303
288
 
304
- ## 🔄 Migration from v2.0.0
289
+ ```javascript
290
+ const FactCheckWorker = require('./_byan/workers/fact-check-worker');
291
+ const fc = new FactCheckWorker({ verbose: true });
305
292
 
306
- **Good news**: Zero breaking changes! Your v2.0.0 code works unchanged.
293
+ // Vérifier un claim
294
+ fc.check("Redis est toujours plus rapide que PostgreSQL");
295
+ // → { assertionType: 'HYPOTHESIS', level: 5, score: 20, status: 'OPINION' }
307
296
 
308
- ```javascript
309
- // v2.0.0 code - still works in v2.1.0
310
- const ByanV2 = require('create-byan-agent');
311
- const byan = new ByanV2();
312
- await byan.startSession();
313
- // ... your existing workflow
297
+ // Détecter les claims implicites dans un texte
298
+ fc.parse("C'est évidemment la meilleure approche pour la sécurité");
299
+ // [{ matched: 'évidemment', position: 5, ... }]
314
300
  ```
315
301
 
316
- To use new BMAD features, simply enable them in config. See [MIGRATION.md](https://github.com/Yan-Acadenice/BYAN/blob/main/MIGRATION-v2.0-to-v2.1.md) for details.
317
-
318
302
  ---
319
303
 
320
- ## 📖 Documentation
321
-
322
- - [Full Documentation](https://github.com/Yan-Acadenice/BYAN/blob/main/README-BYAN-V2.md)
323
- - [CHANGELOG v2.1.0](https://github.com/Yan-Acadenice/BYAN/blob/main/CHANGELOG-v2.1.0.md)
324
- - [Migration Guide](https://github.com/Yan-Acadenice/BYAN/blob/main/MIGRATION-v2.0-to-v2.1.md)
325
- - [Manual Testing Guide](https://github.com/Yan-Acadenice/BYAN/blob/main/BYAN-V2.1.0-MANUAL-TEST-PLAN.md)
326
- - [BMAD Quick Reference](https://github.com/Yan-Acadenice/BYAN/blob/main/BMAD-QUICK-REFERENCE.md)
304
+ ## Schéma de Fonctionnement — Architecture WCAW
327
305
 
328
- ---
306
+ Le diagramme conceptuel ci-dessous montre comment les quatre composants interagissent. **Hermes** est le point d'entrée universel : il reçoit votre requête et la route vers le bon agent.
329
307
 
330
- ## 🤝 Contributing
308
+ ```
309
+ VOUS → @hermes "je veux créer un agent"
310
+
311
+
312
+ ┌─────────────────────────────────────────────────────────┐
313
+ │ AGENT (spécialiste IA) │
314
+ │ Persona · Menu · Rules (64 mantras) · Capabilities │
315
+ └────────────┬─────────────────────────┬───────────────────┘
316
+ │ déclenche │ appelle
317
+ ▼ ▼
318
+ ┌────────────────────┐ ┌─────────────────────────────┐
319
+ │ WORKFLOW │ │ WORKER │
320
+ │ Steps guidés │ │ ELO Engine │
321
+ │ Artifacts générés │ │ Fact-Checker │
322
+ │ Validation steps │ │ Cost Optimizer │
323
+ └────────┬───────────┘ └─────────────┬───────────────┘
324
+ │ lit/écrit │ persiste
325
+ ▼ ▼
326
+ ┌─────────────────────────────────────────────────────────┐
327
+ │ CONTEXT LAYER │
328
+ │ config.yaml · elo-profile.json · fact-graph.json │
329
+ │ _byan-output/ · _byan/knowledge/ · session-state │
330
+ └─────────────────────────────────────────────────────────┘
331
+ ```
331
332
 
332
- Contributions welcome! Please read our contributing guidelines and submit pull requests to our [GitHub repository](https://github.com/Yan-Acadenice/BYAN).
333
+ ### Diagrammes interactifs draw.io
333
334
 
334
- ---
335
+ Pour une visualisation plus détaillée, ouvrez ces fichiers avec draw.io :
335
336
 
336
- ## 👥 Contributors
337
+ - **Architecture globale BYAN** : [byan-architecture.drawio](https://github.com/Yan-Acadenice/BYAN/blob/main/byan-architecture.drawio)
338
+ - **Concept Workflow/Context/Agent/Worker** : [byan-wcaw-concept.drawio](https://github.com/Yan-Acadenice/BYAN/blob/main/byan-wcaw-concept.drawio)
337
339
 
338
- ### Core Team
339
- - **[Yan-Acadenice](https://github.com/Yan-Acadenice)** - Creator & Lead Developer
340
+ ---
340
341
 
341
- ### Special Contributors
342
- - **[Wazadriano](https://github.com/Wazadriano)** - Hermes Universal Dispatcher (v2.3.2)
343
- - Designed and documented the Hermes agent architecture
344
- - Smart routing rules and multi-agent pipelines
345
- - Complete integration with BYAN ecosystem
342
+ ## Système ELO — Confiance Épistémique
346
343
 
347
- ---
344
+ BYAN v2.6.1 introduit un système de calibration de la confiance par domaine technique (algorithme Glicko-2, échelle 0-1000).
348
345
 
349
- ## 💝 Credits
346
+ | Plage ELO | Niveau | Comportement BYAN |
347
+ |-----------|--------|-------------------|
348
+ | 0–200 | Apprenti | Explications complètes, analogies, scaffold maximum |
349
+ | 201–450 | Débutant | Guide pas-à-pas, vérification fréquente |
350
+ | 450–550 | Zone morte | Challenge intense (pic de Dunning-Kruger) |
351
+ | 551–750 | Intermédiaire | Challenge modéré, hypothèses testées |
352
+ | 751–900 | Avancé | Challenge minimal, discussion pair-à-pair |
353
+ | 901–1000 | Expert | Réponses courtes, pas d'explications de base |
350
354
 
351
- **Créé avec passion par [Yan-Acadenice](https://github.com/Yan-Acadenice)**
352
- Pour la communauté [Acadenice](https://acadenice.fr/)
355
+ **Principe :** un score bas ne punit pas — il augmente la pédagogie. BYAN s'adapte à votre niveau réel, pas à celui que vous déclarez.
353
356
 
354
357
  ---
355
358
 
356
- ## 📄 License
359
+ ## Fact-Check Scientifique
357
360
 
358
- MIT © [Yan-Acadenice](https://github.com/Yan-Acadenice)
359
-
360
- ---
361
+ BYAN applique Zero Trust sur lui-même : tout claim doit être **démontrable**, **quantifiable**, **reproductible**.
361
362
 
362
- ## 🆘 Support
363
+ ```
364
+ [REASONING] Déduction logique — sans garantie de vérité
365
+ [HYPOTHESIS] Plausible dans ce contexte — à vérifier avant action
366
+ [CLAIM L{n}] Assertion sourcée — niveau 1 à 5
367
+ [FACT USER-VERIFIED date] Validé par l'utilisateur avec artefact de preuve
368
+ ```
363
369
 
364
- - **Issues**: [GitHub Issues](https://github.com/Yan-Acadenice/BYAN/issues)
365
- - **Repository**: [github.com/Yan-Acadenice/BYAN](https://github.com/Yan-Acadenice/BYAN)
370
+ Domaines stricts : `security` / `performance` / `compliance` → LEVEL-2 minimum ou BLOCKED.
366
371
 
367
372
  ---
368
373
 
369
- ## 🎯 Use Cases
370
-
371
- ### For Solo Developers
372
- Create specialized agents for your workflow without complex setup.
374
+ ## Workflows Principaux
375
+
376
+ | Workflow | Description | Agent principal |
377
+ |----------|-------------|-----------------|
378
+ | `create-prd` | Créer un Product Requirements Document | pm |
379
+ | `create-architecture` | Concevoir l'architecture technique | architect |
380
+ | `create-epics-and-stories` | Découper en epics et user stories | sm |
381
+ | `sprint-planning` | Planifier un sprint | sm |
382
+ | `dev-story` | Développer une user story | dev |
383
+ | `code-review` | Revoir du code | dev / quinn |
384
+ | `quick-spec` | Spec rapide conversationnelle | quick-flow-solo-dev |
385
+ | `quick-dev` | Dev rapide sur code existant | quick-flow-solo-dev |
386
+ | `testarch-atdd` | Générer des tests ATDD avant implémentation | tea |
387
+ | `fact-check` | Analyser une assertion ou un document | fact-checker |
388
+ | `elo-workflow` | Consulter et gérer le score de confiance ELO | byan |
373
389
 
374
- ### For Teams
375
- Build consistent agent profiles following team standards and mantras.
390
+ ---
376
391
 
377
- ### For Agencies
378
- Rapid agent prototyping with built-in quality validation.
392
+ ## Plateformes Supportées
379
393
 
380
- ### For Open Source
381
- Generate well-documented agent profiles for public repositories.
394
+ | Plateforme | Invocation | Chemin de config |
395
+ |------------|-----------|------------------|
396
+ | GitHub Copilot CLI | `@agent-name` | `.github/agents/*.md` |
397
+ | Claude Code | `@agent-name` | `.claude/rules/*.md` |
398
+ | Codex / OpenCode | `@agent-name` | `.codex/prompts/*.md` |
399
+ | CLI direct | `node bin/byan-v2-cli.js` | `_byan/config.yaml` |
382
400
 
383
401
  ---
384
402
 
385
- ## 🌟 Highlights
403
+ ## Licence
386
404
 
387
- - **Zero Setup**: Works immediately with npx
388
- - ✅ **Intelligent**: Smart interview adapts to your answers
389
- - ✅ **Quality**: Built-in validation against 64 mantras
390
- - ✅ **Fast**: Create agents in 10-15 minutes
391
- - ✅ **Flexible**: Use as CLI or programmatically
392
- - ✅ **Tested**: 1,308 tests, 100% passing
393
- - ✅ **Compatible**: Works with v2.0.0 code unchanged
405
+ MIT © [Yan-Acadenice](https://github.com/Yan-Acadenice)
394
406
 
395
407
  ---
396
408
 
397
- **Ready to create your first AI agent?**
398
-
399
- ```bash
400
- npx create-byan-agent
401
- ```
402
-
403
- 🚀 Let's build something amazing!
409
+ *Fait avec de la frustration, de la curiosité, et l'envie que l'IA soit vraiment utile — pas juste impressionnante.*