mother-brain 0.0.16 → 0.0.18

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/dist/cli.js CHANGED
@@ -653,7 +653,7 @@ async function uninstall(options) {
653
653
  // src/cli.ts
654
654
  import { exec as exec3 } from "child_process";
655
655
  var program = new Command();
656
- var VERSION = "0.0.16";
656
+ var VERSION = "0.0.18";
657
657
  program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI").version(VERSION);
658
658
  program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
659
659
  program.command("update").description("Update Mother Brain skills to the latest version").action(update);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mother-brain",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "AI-powered project management framework for GitHub Copilot CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -54,3 +54,4 @@
54
54
 
55
55
 
56
56
 
57
+
@@ -13,6 +13,20 @@ allowed-tools: powershell view grep glob web_search ask_user create edit skill
13
13
 
14
14
  **The Meta-Framework for Vision-Driven Project Management**
15
15
 
16
+ ## ⚠️ CRITICAL EXECUTION INSTRUCTIONS (READ FIRST)
17
+
18
+ **YOU MUST follow the Steps section EXACTLY as written. Do not improvise, skip steps, or invent your own workflow.**
19
+
20
+ 1. **Start at Step 1** - Always begin with Step 1 (Show Welcome Menu)
21
+ 2. **Follow step numbers sequentially** - Step 1 → Step 2 → Step 3, etc.
22
+ 3. **Use `ask_user` for ALL choices** - Never ask questions as plain text
23
+ 4. **Execute tool calls as specified** - When a step says "use X tool", use that exact tool
24
+ 5. **Do not summarize or paraphrase** - Display the exact text templates shown in steps
25
+
26
+ **If you find yourself doing something NOT described in the Steps section below, STOP and return to the documented workflow.**
27
+
28
+ ---
29
+
16
30
  Use Mother Brain when you want to:
17
31
  - Start a new project with a clear vision and roadmap
18
32
  - Pick up an existing project and continue progress
@@ -93,7 +107,7 @@ Mother Brain transforms high-level visions into executable reality by:
93
107
  - **Transparency**: Document decisions, rationale, and changes
94
108
  - **Wizard pattern for all interactions**: Use `ask_user` tool with numbered, selectable choices (2-3 options) for ALL user decisions—never ask freeform yes/no questions in text
95
109
  - **No question duplication**: When using `ask_user`, do NOT repeat the question in text output before calling the tool. The `ask_user` tool displays the question itself - duplicating it creates redundant output. Only include context/explanation text, not the question.
96
- - **User-driven evolution**: Provide "Update Mother Brain" menu option for users to report issues and improvements directly
110
+ - **User-driven evolution**: Provide "Send improvement" option that creates GitHub issues instead of direct changes
97
111
  - **Spatial UI Clarification**: When implementing UI elements with positioning requirements, always ask user to describe placement relative to SPECIFIC existing elements before implementing (e.g., "inside player card" vs "above card" vs "overlay"). Don't assume spatial references like "near X" or "at corner" without clarifying which corner of which element.
98
112
  - **Visual Quality First**: When vision mentions visual/aesthetic/beauty/UI/design requirements, automatically trigger design system research and enforce consistency through skills. Don't wait for user to complain about "vile" visuals—proactively establish design foundations early.
99
113
  - **Branded Menu Styling**: Use simple header format (🧠 **MOTHER BRAIN**) for consistent identity. Avoid ASCII boxes and code fences which cause terminal styling issues.
@@ -140,6 +154,11 @@ Mother Brain transforms high-level visions into executable reality by:
140
154
  - **CHILD BRAIN AUTO-TRIGGER**: When user provides freeform feedback (selects "other" or writes custom response) that challenges, corrects, or questions agent behavior, IMMEDIATELY invoke Child Brain before responding. Do NOT attempt to fix inline—Child Brain handles analysis and routing. Freeform feedback = friction signal = Child Brain required.
141
155
  - **BRANDING PROTECTION (SACRED)**: NEVER remove or significantly alter branding elements (ASCII art, logos, visual identity) without explicit user approval. Branding is SACRED - not negotiable, not "fixable" by removal. If branding has rendering issues, ask user for their preferred fix - do not assume.
142
156
  - **RELEASE GATE (USER-INITIATED ONLY)**: NEVER initiate a release (git tag, npm publish, version bump) unless user explicitly requests it. Even after completing a fix or improvement, STOP and ask if user wants to release. Unauthorized releases are a serious violation.
157
+ - **SYNCHRONIZED RELEASE (ATOMIC)**: When releasing, ALWAYS do ALL of these together as one atomic action:
158
+ 1. npm publish (via git tag push triggering GitHub Actions)
159
+ 2. GitHub Release with release notes (use `gh release create` with description)
160
+ 3. Update README version badge (if applicable)
161
+ Never publish to npm without also creating a proper GitHub Release with notes.
143
162
 
144
163
  ### Output Formatting Rules (CRITICAL)
145
164
 
@@ -316,10 +335,11 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
316
335
 
317
336
  ## Steps
318
337
 
338
+ **⚠️ MANDATORY: Execute these steps in order. Each step has specific actions - follow them exactly.**
339
+
319
340
  ### 1. **Show Welcome Menu**
320
341
 
321
- - Skip ASCII art - just proceed to Step 2 (Detect Project State)
322
- - The branded box in Step 2 serves as the visual identity
342
+ - Proceed immediately to Step 2 (Detect Project State)
323
343
 
324
344
  ### 2. **Detect Project State & Show Progress**
325
345
 
@@ -438,7 +458,7 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
438
458
  - "Realign with vision"
439
459
  - "View all skills"
440
460
  - "Create new skill"
441
- - "Update Mother Brain (report issues/improvements)"
461
+ - "📤 Send improvement to Mother Brain"
442
462
  - "Release Mother Brain (commit & PR)"
443
463
  - "Archive project (save & reset for new project)"
444
464
  - "Eject project (reset to framework + learnings)"
@@ -460,7 +480,7 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
460
480
  - Use `ask_user` with choices:
461
481
  - "Yes, onboard Mother Brain into this project"
462
482
  - "No, start fresh (ignore existing files)"
463
- - "Update Mother Brain (report issues/improvements)"
483
+ - "📤 Send improvement to Mother Brain"
464
484
 
465
485
  - **If user selects onboarding**: Jump to **Step 2.2: Existing Project Onboarding**
466
486
 
@@ -483,7 +503,7 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
483
503
  - "I just want to brainstorm an idea"
484
504
  - "I have a vision document already (import it)"
485
505
  - "Show me what Mother Brain can do"
486
- - "Update Mother Brain (report issues/improvements)"
506
+ - "📤 Send improvement to Mother Brain"
487
507
  - **CRITICAL**: Do NOT ask "Ready to begin?" as freeform text. ALWAYS use the `ask_user` tool with the choices above.
488
508
  - Proceed based on selection
489
509
 
@@ -613,421 +633,213 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
613
633
 
614
634
  - Proceed to normal workflow (Step 8+)
615
635
 
616
- ### 2A. **Update Mother Brain** (Self-Improvement Flow via Child Brain)
617
- - When user selects "Update Mother Brain (report issues/improvements)":
636
+ ### 2A. **Send Improvement to Mother Brain** (GitHub Issue-Based Contribution)
637
+ - When user selects "📤 Send improvement to Mother Brain":
618
638
 
619
- **⚠️ ALL FEEDBACK ROUTES THROUGH CHILD BRAIN - NO EXCEPTIONS**
639
+ **Purpose**: Instead of directly modifying Mother Brain files, improvements are submitted as GitHub issues. This prevents users from overwriting each other's changes and ensures all improvements are reviewed.
620
640
 
621
- - Display:
622
- ```
623
- 🔧 Update Mother Brain
624
-
625
- I'm designed to learn and improve. Tell me:
626
- - What didn't work as expected?
627
- - What feature would make me better?
628
- - What confused or frustrated you?
629
- - What pattern should I handle differently?
641
+ **Step 2A.1: Detect Local Changes**
642
+
643
+ - Scan for local changes to Mother Brain core files:
644
+ ```powershell
645
+ git diff --name-only HEAD -- ".github/skills/mother-brain/" "cli/"
646
+ git status --porcelain -- ".github/skills/mother-brain/" "cli/"
630
647
  ```
631
648
 
632
- - Use `ask_user` with choices for issue type:
633
- - "Something broke or didn't work"
634
- - "A feature is missing"
635
- - "The workflow is confusing"
636
- - "I have a suggestion for improvement"
637
- - "Trigger self-learning loop (simulate project)"
649
+ - **Core files to check**:
650
+ - `.github/skills/mother-brain/SKILL.md`
651
+ - `.github/skills/child-brain/SKILL.md`
652
+ - `.github/skills/skill-creator/SKILL.md`
653
+ - `cli/src/**/*`
654
+ - `cli/package.json`
638
655
 
639
- **Step 2A.0: Friction Auto-Detection (for "Something broke" only)**
656
+ - **If no changes detected**:
657
+ - Display: "No local Mother Brain changes detected."
658
+ - Ask if user wants to describe an improvement anyway
640
659
 
641
- - **If user selects "Something broke or didn't work"**:
642
- 1. **Scan recent conversation** for friction signals:
643
- - Error messages: "No match found", "Command failed", "File not found", non-zero exit codes
644
- - User complaints: "this isn't what I wanted", "that's wrong", "doesn't work", "not right"
645
- - Multiple retries: Same operation attempted 2+ times
646
- - Back-and-forth: Adjustment cycles, rework requests
647
-
648
- 2. **If friction detected**:
649
- - Display what was found:
650
- ```
651
- 🔍 I detected potential friction in this session:
652
-
653
- - [Friction 1]: [Brief description]
654
- - [Friction 2]: [Brief description - if multiple]
655
- ```
656
- - Use `ask_user` with choices:
657
- - "Yes, fix this issue"
658
- - "Something else (I'll describe)"
659
- - If "Yes" → Jump to Step 2A.1 with pre-populated context (skip freeform)
660
- - If "Something else" → Continue to freeform description
661
-
662
- 3. **If no friction detected**:
663
- - Fall through to freeform description as normal
660
+ **Step 2A.2: Summarize Changes**
664
661
 
665
- - **For all other issue types**: Skip to freeform description directly
662
+ - For each changed file, get the diff:
663
+ ```powershell
664
+ git diff HEAD -- [file]
665
+ ```
666
666
 
667
- - After user selects issue type (and optional friction detection), use `ask_user` (freeform) to get details:
668
- - "Please describe the issue or improvement in detail:"
667
+ - Create a summary of changes in human-readable format:
668
+ ```
669
+ 📝 Local Mother Brain Changes Detected
670
+
671
+ Files Changed:
672
+ - [file1]: [brief description of change]
673
+ - [file2]: [brief description of change]
674
+
675
+ Summary:
676
+ [AI-generated summary of what the changes accomplish]
677
+ ```
669
678
 
670
- **Step 2A.1: Invoke Child Brain for Triage (MANDATORY)**
679
+ **Step 2A.3: Gather Context from Learning Log**
671
680
 
672
- - **IMMEDIATELY invoke Child Brain** with the feedback context:
681
+ - Check `.mother-brain/project-brain.md` for recent learnings that triggered this improvement
682
+ - Check conversation history for friction that led to the changes
683
+ - Compile into "Why This Improvement" section:
673
684
  ```
674
- Invoke: skill child-brain
675
- Context:
676
- - Issue Type: [selected type]
677
- - User Description: [freeform feedback]
678
- - Current Step: Step 2A (Self-Improvement)
679
- - Active Project: [project name or "None"]
685
+ Why This Improvement:
686
+ - Friction encountered: [description]
687
+ - Learning from project: [what was learned]
688
+ - Expected benefit: [how this helps all users]
680
689
  ```
681
690
 
682
- - Child Brain will:
683
- 1. Ask deeper questions to understand root cause
684
- 2. Determine what goes to Mother Brain (behavioral/process)
685
- 3. Determine what goes to Project Brain (project-specific) - if active project
686
- 4. Propose BOTH entries (mandatory pairing)
687
-
688
- **Step 2A.2: Child Brain Proposes Changes (Approval Gate)**
691
+ **Step 2A.4: Create GitHub Issue**
689
692
 
690
- - Child Brain displays proposed changes:
691
- ```
692
- 🧒 Child Brain - Proposed Changes
693
+ - Generate issue title and body:
694
+ ```markdown
695
+ Title: [Improvement] [Brief description of improvement]
696
+
697
+ ## Summary
698
+ [AI-generated summary of the improvement]
699
+
700
+ ## Changes Proposed
701
+ [Detailed diff or description of each change]
702
+
703
+ ## Why This Improvement
704
+ - **Friction Encountered**: [What problem was faced]
705
+ - **Context**: [Relevant learnings or examples]
706
+ - **Expected Benefit**: [How this helps all Mother Brain users]
693
707
 
694
- 📘 PROJECT BRAIN will add:
695
- [If active project: specific project learning]
696
- [If no project: "N/A - no active project"]
708
+ ## Files Affected
709
+ - [ ] `.github/skills/mother-brain/SKILL.md`
710
+ - [ ] [other files]
697
711
 
698
- 🧠 MOTHER BRAIN will add:
699
- [Behavioral/process improvement - completely project-agnostic]
712
+ ## Testing Notes
713
+ [Any notes on how to test this improvement]
700
714
 
701
- Summary of edits:
702
- - File: [path]
703
- - Section: [which section]
704
- - Change: [brief description]
715
+ ---
716
+ *Submitted via Mother Brain "Send Improvement" workflow*
705
717
  ```
706
718
 
707
- - **THREE-OPTION APPROVAL GATE** (MANDATORY - never skip):
708
- - Use `ask_user` with choices:
709
- - "Accept - apply these changes"
710
- - "Revise - I want to edit the proposal"
711
- - "Reject - propose something different"
712
-
713
- - **If "Accept"**: Proceed to Step 2A.3 (Apply Changes)
714
- - **If "Revise"**: Ask user what to change, update proposal, show again
715
- - **If "Reject"**: Ask user to describe what they want instead, Child Brain proposes new solution
716
-
717
- **Step 2A.3: Apply Approved Changes**
718
-
719
- - Only after user selects "Accept":
720
- - Apply Mother Brain edits using `edit` tool
721
- - Apply Project Brain edits (if active project)
722
- - Log change in `docs/learning-log.md`:
723
- ```markdown
724
- ## [Date] - Mother Brain Self-Update (via Child Brain)
725
- **Issue Type**: [Type]
726
- **User Report**: [Original description]
727
- **Root Cause**: [Why issue occurred]
728
- **Mother Brain Change**: [Behavioral improvement applied]
729
- **Project Brain Change**: [Project-specific learning - or "N/A"]
730
- **Sections Updated**: [Which files/sections modified]
731
- ```
732
-
733
- **Step 2A.3.1: Implementation Verification (MANDATORY)**
734
-
735
- - After applying edits, MUST scan conversation for implementation friction:
736
- - **Error Patterns to Detect**:
737
- - "No match found" (edit tool failures)
738
- - "File not found" (path errors)
739
- - Build/test failures
740
- - "Command failed" or non-zero exit codes
741
- - Multiple retry attempts for same operation
742
-
743
- - **If 0 friction detected**: Proceed to Step 2A.4
744
-
745
- - **If friction detected**:
746
- 1. Display:
747
- ```
748
- 🔍 Implementation Friction Detected
749
-
750
- While applying changes, I encountered:
751
- - [Error type]: [Brief description]
752
- ```
753
-
754
- 2. Analyze root cause:
755
- - Was the edit pattern wrong? (indentation, whitespace, line endings)
756
- - Was the file structure different than expected?
757
- - Was there a tooling/environment issue?
758
-
759
- 3. Propose recursive improvement:
760
- ```
761
- 📝 Additional Learning Proposed:
762
-
763
- 🧠 MOTHER BRAIN should add:
764
- [Process improvement to prevent this implementation friction]
765
-
766
- Example: "When using edit tool, verify exact whitespace/indentation
767
- from file before constructing old_str parameter"
768
- ```
769
-
770
- 4. Use `ask_user` with choices:
771
- - "Accept this additional learning"
772
- - "Skip - the friction was a one-off"
773
-
774
- 5. If accepted: Apply the additional improvement to SKILL.md
775
-
776
- - **Key Principle**: Every implementation session that has friction should produce learning to prevent that friction in future sessions.
777
-
778
- **Step 2A.4: Confirmation**
719
+ - Use GitHub MCP server to create the issue:
720
+ ```
721
+ github-mcp-server: create_issue
722
+ owner: [Mother Brain repo owner]
723
+ repo: [Mother Brain repo name]
724
+ title: [Generated title]
725
+ body: [Generated body]
726
+ labels: ["improvement", "community-contribution"]
727
+ ```
779
728
 
780
- - Display:
729
+ - Display confirmation:
781
730
  ```
782
- Changes Applied
731
+ Improvement Submitted!
732
+
733
+ Issue Created: #[number] - [title]
734
+ URL: [issue URL]
783
735
 
784
- 📘 PROJECT BRAIN: [What was added - or "N/A"]
785
- 🧠 MOTHER BRAIN: [What was added]
736
+ The Mother Brain maintainers will review your improvement.
737
+ Your local changes have been preserved.
786
738
  ```
787
739
 
788
- - Use `ask_user` with choices:
789
- - "Continue (recommended)"
790
- - "Report another issue/improvement"
791
- - "Restart Mother Brain (if needed for complex changes)"
792
-
793
- - **If "Restart Mother Brain":**
794
- 1. Save current context to `.mother-brain/session-state.json`
795
- 2. Display instructions to re-invoke mother-brain skill
796
- 3. End current session
740
+ **Step 2A.5: Offer to Revert Local Changes**
797
741
 
798
- - **If "Continue":**
799
- - Return to main menu (Step 2)
800
-
801
- - **If "Report another issue/improvement":**
802
- - Loop back to beginning of Step 2A
742
+ - Use `ask_user` with choices:
743
+ - "Keep local changes (for further testing)"
744
+ - "Revert Mother Brain files (clean slate)"
803
745
 
804
- - After successful update:
805
- - Show summary of what was changed
806
- - Return to main menu (Step 2)
746
+ - **If revert selected**:
747
+ ```powershell
748
+ git checkout HEAD -- ".github/skills/mother-brain/" ".github/skills/child-brain/" ".github/skills/skill-creator/" "cli/"
749
+ ```
750
+ - Display: "Local Mother Brain files reverted to last commit."
807
751
 
808
- **If "Trigger self-learning loop" selected:**
809
- - Jump to **Step 2A.1: Self-Learning Loop**
752
+ - Return to main menu (Step 2)
810
753
 
811
- ### 2A.1 **Self-Learning Loop** (Real Project Training)
812
- - **Purpose**: Mother Brain ACTUALLY builds a test project through the full lifecycle, then analyzes what went wrong
813
- - **Outcome**: Real friction discovered from real execution, learnings applied to SKILL.md
814
- - **Key Difference**: Not a mental simulation - an actual build with real files, real commands, real failures
754
+ ### 2A.1 **Review Community Improvements** (Maintainer Workflow)
755
+ - **Access**: Only shown when meta-mode is active (in Mother Brain framework repo)
815
756
 
816
- **Step 2A.1.1: Generate Random Test Project**
817
- - Mother Brain invents a test project (different each time):
818
- - Choose random project type: [web app, mobile app, CLI tool, library, game, SaaS, API, etc.]
819
- - Choose random domain: [healthcare, finance, gaming, education, e-commerce, social, productivity, etc.]
820
- - Generate creative project name and vision
821
- - Define realistic MVP scope
757
+ **Step 2A.1.1: List Open Improvement Issues**
822
758
 
823
- - Display:
759
+ - Fetch issues with "improvement" or "community-contribution" labels:
760
+ ```
761
+ github-mcp-server: list_issues
762
+ state: open
763
+ labels: ["improvement"]
824
764
  ```
825
- 🧪 Self-Learning Loop - Building Real Test Project
826
-
827
- Test Project:
828
- - Name: [Generated Name]
829
- - Type: [Project Type]
830
- - Domain: [Domain]
831
- - Vision: [1-2 sentence vision]
832
- - MVP: [Key features]
833
-
834
- I will now build this project for real, simulating user responses.
835
- All steps, commands, and outputs will be tracked for analysis.
836
- At the end, the project will be ejected and learnings extracted.
837
-
838
- Starting build...
839
- ```
840
-
841
- **Step 2A.1.2: Execute Full Project Build (Steps 3-7)**
842
- - **Actually run** each step (not simulate):
843
- - Step 3: Vision Discovery - Mother Brain generates realistic user answers
844
- - Step 4: Vision Document Creation - Create real vision.md
845
- - Step 5: Technology & Pattern Analysis - Run real web searches
846
- - Step 5A: Design System Discovery - If visual project, run real research
847
- - Step 6: Skill Identification & Creation - Create real skills
848
- - Step 6A: Delivery Strategy Research - Run real research
849
- - Step 7: Roadmap Generation - Create real roadmap.md
850
-
851
- - **Log EVERYTHING during execution**:
852
- - Every command run and its output
853
- - Every file created
854
- - Every error encountered
855
- - Every retry attempt
856
- - Every step skipped or missed
857
-
858
- **Step 2A.1.3: Execute Task Implementation (Steps 8-11)**
859
- - For each Phase 1 task (at least first 2-3 tasks):
860
- - Step 8: Create real task document
861
- - Step 9: Execute task - create real files, run real commands
862
- - Step 10: Validation - Mother Brain simulates user approval/rejection
863
- - Step 10B: Post-task reflection - Run real reflection
864
-
865
- - **Continue logging everything**:
866
- - Build failures and their error messages
867
- - Commands that succeeded vs failed
868
- - Files created and their paths
869
- - Any unexpected behavior
870
-
871
- **Step 2A.1.4: Analyze Execution Logs**
872
- - After building, scan ALL conversation output for:
873
- - **Failures**: Commands that returned errors, builds that failed
874
- - **Retries**: Steps that had to be re-run
875
- - **Skipped Steps**: Steps in SKILL.md that were not executed
876
- - **Missing Handling**: Error types that weren't handled gracefully
877
- - **Unexpected Behavior**: Output that didn't match expectations
878
- - **Inefficiencies**: Extra steps that could have been avoided
879
765
 
880
- - Create structured friction list:
766
+ - Display issue list:
881
767
  ```
882
- 📋 Execution Analysis:
883
-
884
- Errors Encountered:
885
- - [Error 1]: [Command/Step] → [Error message]
886
- - [Error 2]: [Command/Step] → [Error message]
887
-
888
- Steps Skipped/Missed:
889
- - [Step X] was not executed because [reason]
768
+ 📥 Community Improvements to Review
890
769
 
891
- Retries Required:
892
- - [Step Y] failed first attempt, succeeded on retry
770
+ 1. #[number] - [title] (by @[author], [date])
771
+ Status: [open/in review]
772
+ 2. #[number] - [title] (by @[author], [date])
773
+ Status: [open/in review]
774
+ [...]
893
775
 
894
- Inefficiencies:
895
- - [Observation about wasted effort]
776
+ Select an issue to review, or go back.
896
777
  ```
897
778
 
898
- **Step 2A.1.5: Auto-Eject Test Project**
899
- - Automatically run the eject process (Step 2B):
900
- - Remove all project files created during test
901
- - Remove all project-specific skills created
902
- - Preserve learning-log.md
903
- - Preserve core framework skills
904
- - Display: "🗑️ Test project ejected - framework reset"
779
+ - Use `ask_user` with issue numbers as choices + "Back to menu"
905
780
 
906
- **Step 2A.1.6: Extract Meta-Level Improvements**
781
+ **Step 2A.1.2: Review Selected Issue**
907
782
 
908
- **CRITICAL PRINCIPLE - Meta-Level Improvements Only:**
909
- Mother Brain is NOT a repository of domain knowledge. It is a PROCESS framework that adapts dynamically.
910
-
911
- - ❌ **WRONG** improvements (project-specific knowledge):
912
- - "Add VS Code extension API knowledge to Step 5"
913
- - "Include library publishing patterns in Step 6A"
914
- - "Add game development conventions to Step 5A"
915
- - These embed static domain knowledge that becomes stale and bloated
916
-
917
- - ✅ **RIGHT** improvements (meta-level process):
918
- - "Step 5 should detect project category and trigger category-specific research dynamically"
919
- - "Step 6A should use web_search to find delivery patterns for detected project type"
920
- - "Step 10 validation should adapt presentation method based on project type"
921
- - These improve HOW Mother Brain learns and adapts, not WHAT it knows
783
+ - Fetch full issue details:
784
+ ```
785
+ github-mcp-server: get_issue
786
+ issue_number: [selected]
787
+ ```
922
788
 
923
- **The Test:** For every proposed improvement, ask:
924
- - "Would this improvement help with ANY future project type, including ones we haven't imagined?"
925
- - "Does this add static knowledge, or does it improve dynamic learning capability?"
926
- - If it adds static knowledge → REJECT
927
- - If it improves dynamic capability → ACCEPT
928
-
929
- - Display comprehensive report:
930
- ```
931
- 🧪 Self-Learning Loop Complete
932
-
933
- 📋 Test Project Built:
934
- - Name: [Project Name]
935
- - Type: [Type] | Domain: [Domain]
936
- - Tasks Completed: [Count]
937
- - Skills Created: [List]
938
-
939
- 🔍 Real Friction Discovered (from execution logs):
940
-
941
- **Errors/Failures**:
942
- 1. [What failed] - [Error message] - [Which step]
943
- 2. [What failed] - [Error message] - [Which step]
944
-
945
- **Steps Skipped or Incomplete**:
946
- 1. [Step X] - [Why it was missed]
947
-
948
- **Inefficiencies**:
949
- 1. [What could have been done better]
950
-
951
- 📚 Meta-Level Lessons (Process Improvements Only):
952
- 1. [How Mother Brain's PROCESS could better handle this - NOT domain knowledge]
953
- 2. [Dynamic capability improvement - NOT static knowledge addition]
954
- 3. [Adaptive behavior enhancement - NOT project-specific details]
955
-
956
- 🔧 Proposed Mother Brain Improvements (Meta-Level Only):
789
+ - Display issue content with analysis:
790
+ ```
791
+ 📋 Issue #[number]: [title]
957
792
 
958
- **Improvement 1**:
959
- - Step affected: [Step number/name]
960
- - Friction observed: [What actually went wrong in the build]
961
- - Proposed change: [Process/capability improvement - NOT domain knowledge]
962
- - Why meta-level: [Explain how this helps ALL projects dynamically]
793
+ Submitted by: @[author]
794
+ Date: [created_at]
963
795
 
964
- **Improvement 2**:
965
- - Step affected: [Step number/name]
966
- - Friction observed: [What actually went wrong in the build]
967
- - Proposed change: [Process/capability improvement - NOT domain knowledge]
968
- - Why meta-level: [Explain how this helps ALL projects dynamically]
796
+ [Issue body]
969
797
 
970
- [... additional improvements ...]
798
+ ---
799
+ 🔍 Impact Analysis:
800
+ - Files affected: [list]
801
+ - Risk level: [low/medium/high]
802
+ - Dependencies: [any]
971
803
  ```
972
804
 
973
- **Step 2A.1.7: User Review & Approval**
974
805
  - Use `ask_user` with choices:
975
- - "Apply all improvements"
976
- - "Review and select which to apply"
977
- - "Reject all (no changes)"
978
- - "Run another simulation (different project)"
979
-
980
- **If "Apply all improvements":**
981
- - Apply each proposed change to SKILL.md using edit tool
982
- - Log all changes in learning-log.md
983
- - Display summary of applied changes
984
- - Return to main menu
985
-
986
- **If "Review and select":**
987
- - For each improvement, use `ask_user`:
988
- - "Apply this improvement"
989
- - "Skip this improvement"
990
- - "Modify this improvement"
991
- - Apply selected improvements
992
- - Log in learning-log.md
993
- - Return to main menu
994
-
995
- **If "Reject all":**
996
- - Log that simulation was run but no changes applied
997
- - Return to main menu
998
-
999
- **If "Run another simulation":**
1000
- - Loop back to Step 2A.1.1 with new random project
1001
-
1002
- **Step 2A.1.8: Log Simulation**
1003
- - Add to learning-log.md:
1004
- ```markdown
1005
- ## [Date] - Self-Learning Loop (Real Build)
1006
- **Test Project**: [Name] ([Type] - [Domain])
1007
- **MVP Scope**: [Features]
1008
- **Tasks Built**: [Count]
1009
- **Skills Created**: [List - now ejected]
1010
- **Errors Encountered**: [Count]
1011
- **Steps Missed**: [Count]
1012
- **Improvements Proposed**: [Count]
1013
- **Improvements Applied**: [Count]
1014
- **Key Meta-Learnings**:
1015
- - [Process lesson 1]
1016
- - [Process lesson 2]
1017
- **Steps Updated**: [List of steps modified]
806
+ - "Accept and integrate this improvement"
807
+ - "Request changes (comment on issue)"
808
+ - "Reject (close with explanation)"
809
+ - "Skip for now"
810
+
811
+ **Step 2A.1.3: Integrate Accepted Improvement**
812
+
813
+ - If accepted:
814
+ 1. Apply the proposed changes using `edit` tool
815
+ 2. Run any tests if they exist
816
+ 3. Comment on issue: "Integrated in [version]"
817
+ 4. Close issue with "integrated" label
818
+
819
+ - Display:
820
+ ```
821
+ Improvement Integrated
822
+
823
+ Changes applied from issue #[number].
824
+ Ready for release when you choose "Release Mother Brain".
1018
825
  ```
1019
826
 
1020
- **Key Principles**:
1021
- - **Real execution, not imagination**: Actually build the project, create files, run commands
1022
- - **Log everything**: Track all outputs, errors, and behavior for post-analysis
1023
- - **Auto-eject after**: Clean up test project automatically, keep only learnings
1024
- - **Random diversity**: Each run uses different project type/domain
1025
- - **Meta-learning ONLY**: Extract PROCESS improvements, never domain-specific knowledge
1026
- - Mother Brain is a dynamic learning framework, not a knowledge repository
1027
- - Improvements should enhance HOW Mother Brain adapts, not WHAT it knows about specific domains
1028
- - Every improvement must pass the test: "Would this help with project types we haven't imagined yet?"
1029
- - **User control**: User reviews and approves changes before they're applied
1030
- - **Compounding improvement**: Each simulation makes Mother Brain smarter at LEARNING, not at specific project types
827
+ **Step 2A.1.4: Request Changes**
828
+
829
+ - If "Request changes" selected:
830
+ - Use `ask_user` to get feedback text
831
+ - Comment on issue with feedback
832
+ - Display confirmation
833
+
834
+ **Step 2A.1.5: Reject Improvement**
835
+
836
+ - If "Reject" selected:
837
+ - Use `ask_user` to get rejection reason
838
+ - Comment on issue with explanation
839
+ - Close issue with "wontfix" label
840
+ - Display confirmation
841
+
842
+
1031
843
 
1032
844
  ### 2B. **Eject Project** (Reset to Framework)
1033
845
  - When user selects "Eject project (reset to framework + learnings)":