Commit Graph

85 Commits

Author SHA1 Message Date
Mai Development
c254e1df30 feat(02-02): Create Docker sandbox manager
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-27 15:36:47 -05:00
Mai Development
c14ab4319e docs(02-01): add execution summary
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-27 15:33:12 -05:00
Mai Development
e407c32c82 feat(02-01): add security dependencies and configuration
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-27 15:31:19 -05:00
Mai Development
93c26aaf6b feat(02-01): create security assessment module
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-27 15:29:56 -05:00
Mai Development
f7d263e173 docs(02): create phase plan
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 02: Safety & Sandboxing
- 4 plans in 3 waves
- Security assessment, sandbox execution, audit logging, integration
- Wave 1 parallel: assessment (02-01) + sandbox (02-02)
- Wave 2: audit logging (02-03)
- Wave 3: integration (02-04)
- Ready for execution
2026-01-27 14:28:35 -05:00
Mai Development
298d57c037 docs(02): research phase domain
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 02: Safety & Sandboxing
- Standard stack identified (Docker, Bandit, Semgrep)
- Architecture patterns documented (sandbox isolation, security assessment)
- Pitfalls catalogued (container isolation, resource limits)
- Ready for planner to create execution plans
2026-01-27 14:05:49 -05:00
Mai Development
351a1a76d7 docs(02): capture phase context
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 02: Safety & Sandboxing
- Security assessment levels defined
- Audit logging scope established
- Sandbox technology decisions made
- Resource limits policy set
2026-01-27 13:57:06 -05:00
Mai Development
629abbfb0b docs(01): complete model interface phase
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 01: Model Interface & Switching
  - All 3 plans executed and verified
  - LM Studio connectivity, resource monitoring, and intelligent switching implemented
2026-01-27 12:55:04 -05:00
Mai Development
b1a3b5e970 docs(01-03): complete intelligent model switching integration
Some checks failed
Discord Webhook / git (push) Has been cancelled
Tasks completed: 3/3
- ModelManager with intelligent selection and switching
- Core Mai orchestration class
- CLI interface for testing and monitoring

SUMMARY: .planning/phases/01-model-interface/01-03-SUMMARY.md

Phase 1 complete - model interface foundation ready for Phase 2: Safety & Sandboxing
2026-01-27 12:38:43 -05:00
Mai Development
5297df81fb feat(01-03): create CLI entry point for testing
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Implement __main__.py with argparse command-line interface
- Add interactive chat loop for testing model switching
- Include status commands to show current model and resources
- Support models listing and manual model switching
- Add proper signal handling for graceful shutdown
- Include help text and usage examples
- Fix import issues for relative imports in package
2026-01-27 12:33:50 -05:00
Mai Development
24ae542a25 feat(01-03): create core Mai orchestration class
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Initialize ModelManager, ContextManager, and subsystems
- Provide main conversation interface with process_message
- Support both synchronous and async operations
- Add system status monitoring and conversation history
- Include graceful shutdown with signal handlers
- Background resource monitoring and maintenance tasks
- Model switching commands and information methods
2026-01-27 12:26:02 -05:00
Mai Development
0b7b527d33 feat(01-03): implement ModelManager with intelligent switching
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Load model configuration from config/models.yaml
- Intelligent model selection based on system resources and context
- Dynamic model switching with silent behavior (no user notifications)
- Fallback chains for model failures
- Proper resource cleanup and error handling
- Background preloading capability
- Auto-retry on model failures with graceful degradation
2026-01-27 12:23:52 -05:00
Mai Development
2e04873b1a docs(01-02): complete conversation context management plan
Some checks failed
Discord Webhook / git (push) Has been cancelled
Tasks completed: 2/2
- Created conversation data structures with Pydantic validation
- Implemented intelligent context manager with hybrid compression

SUMMARY: .planning/phases/01-model-interface/01-02-SUMMARY.md
STATE: Updated to reflect Plan 2 completion
ROADMAP: Updated Plan 2 as complete
2026-01-27 12:15:57 -05:00
Mai Development
7bbf5e17f1 fix(01-02): correct ConversationMetadata import and initialization
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Add ConversationMetadata to imports
- Fix metadata initialization in create_conversation()
- Resolve type error for conversation metadata

File: src/models/context_manager.py
2026-01-27 12:12:36 -05:00
Mai Development
ef2eba2a3f feat(01-02): implement context manager with intelligent compression
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Create ContextManager class for conversation history management
- Implement hybrid compression strategy at 70% threshold
- Add message importance scoring for selective retention
- Support system message preservation during compression
- Include conversation statistics and session management
- Provide context retrieval with token limit enforcement

Key methods:
- add_message(): Add messages and trigger compression when needed
- get_context_for_model(): Retrieve context within token limits
- compress_conversation(): Apply hybrid compression preserving important messages
- get_conversation_summary(): Generate conversation summaries

File: src/models/context_manager.py (320 lines)
2026-01-27 12:09:23 -05:00
Mai Development
221717d3a3 feat(01-02): create conversation data structures
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Define Message, Conversation, ContextBudget, and ContextWindow classes
- Implement MessageRole and MessageType enums for classification
- Add Pydantic models for validation and serialization
- Include importance scoring and token estimation utilities
- Support system, user, assistant, and tool message types

File: src/models/conversation.py (147 lines)
2026-01-27 12:07:29 -05:00
Mai Development
2ef1eafdb8 docs(01-01): complete LM Studio connectivity and resource monitoring plan
Some checks failed
Discord Webhook / git (push) Has been cancelled
Tasks completed: 4/4
- Created Python project foundation with dependencies
- Implemented LM Studio adapter with model discovery
- Implemented system resource monitoring with trend analysis
- Created model configuration system with fallback chains

SUMMARY: .planning/phases/01-model-interface/01-01-SUMMARY.md
STATE: Updated to reflect plan completion
2026-01-27 12:03:58 -05:00
Mai Development
446b9baca6 feat(01-01): create model configuration system
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Created comprehensive model definitions in config/models.yaml
- Defined model categories: small, medium, large
- Specified resource requirements for each model
- Added context window sizes and capability lists
- Configured fallback chains for graceful degradation
- Included selection rules and switching triggers
- Added context management compression settings
2026-01-27 12:00:30 -05:00
Mai Development
e6f072a6c7 feat(01-01): implement system resource monitoring
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Created ResourceMonitor class with psutil integration
- Monitor CPU usage, memory availability, and GPU VRAM
- Added resource trend analysis for load prediction
- Implemented should_switch_model() logic based on thresholds
- Added can_load_model() method with safety margins
- Follow Pattern 2 from research: Resource-Aware Model Selection
- Graceful handling of missing gpu-tracker dependency
2026-01-27 12:00:06 -05:00
Mai Development
f5ffb7255e feat(01-01): implement LM Studio adapter with model discovery
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Created LMStudioAdapter class using lmstudio-python SDK
- Added context manager get_client() for safe client handling
- Implemented list_available_models() with size estimation
- Added load_model(), unload_model(), get_model_info() methods
- Created mock_lmstudio.py for graceful fallback when lmstudio not installed
- Included error handling for LM Studio not running and model loading failures
- Implemented Pattern 1 from research: Model Client Factory
2026-01-27 11:59:48 -05:00
Mai Development
de6058f109 feat(01-01): create Python project foundation with dependencies
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Created pyproject.toml with lmstudio, psutil, pydantic dependencies
- Created requirements.txt as fallback for pip install
- Created src/models/__init__.py with proper imports
- Set up PEP 518 compliant package structure
- Fixed .gitignore to allow src/models/ directory
2026-01-27 11:59:37 -05:00
Mai Development
1d9f19b8c2 docs(01): create phase plan
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 01-model-interface: Foundation systems
- 3 plan(s) in 2 wave(s)
- 2 parallel, 1 sequential
- Ready for execution
2026-01-27 10:45:52 -05:00
Mai Development
3268f6712d docs(01): capture phase context
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 01: Model Interface & Switching
- Implementation decisions documented
- Phase boundary established
2026-01-27 09:53:46 -05:00
fe8a2f5bf3 Fixed .png not working
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-27 05:04:43 +00:00
Mai Development
da20edbc3d docs(01): research phase domain
Some checks failed
Discord Webhook / git (push) Has been cancelled
Phase 01: Model Interface & Switching
- Standard stack identified (lmstudio-python, psutil)
- Architecture patterns documented (model client factory, resource-aware selection)
- Pitfalls catalogued (memory leaks, context overflow, race conditions)
2026-01-26 23:51:24 -05:00
Mai Development
8adf0d9b4d docs: create milestone-based roadmap with v1.0, v1.1, v1.2 structure
Some checks failed
Discord Webhook / git (push) Has been cancelled
Organizes 15 phases into three major milestones:
- v1.0 Core (Phases 1-5): Foundation systems with models, safety, memory
- v1.1 Interfaces (Phases 6-10): CLI, self-improvement, approval, personality, Discord
- v1.2 Presence (Phases 11-15): Offline, voice visualization, avatar, Android, sync

Maps all 99 requirements to phases with success criteria per milestone.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-26 23:41:06 -05:00
Mai Development
53fb8544fe docs: document and configure MCP tool integration
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Create comprehensive MCP.md documenting all available tools:
  * Hugging Face Hub (models, datasets, papers, spaces, docs)
  * Web search and fetch for research
  * Code tools (Bash, Git, file ops)
  * Claude Code (GSD) workflow agents

- Map MCP usage to specific phases:
  * Phase 1: Model discovery (Mistral, Llama, quantized options)
  * Phase 2: Safety research (sandboxing, verification papers)
  * Phase 5: Conversation datasets and papers
  * Phase 12: Voice visualization models and spaces
  * Phase 13: Avatar generation tools and research
  * Phase 14: Mobile inference frameworks and patterns

- Update config.json with MCP settings:
  * Enable Hugging Face (mystiatech authenticated)
  * Enable WebSearch for current practices
  * Set default result limits

- Update PROJECT.md constraints to document MCP enablement

Research phases will leverage MCPs extensively for optimal
library/model selection, architecture patterns, and best practices.
2026-01-26 23:24:00 -05:00
Mai Development
3861b86287 chore: configure auto-push to remote on every commit
- Enable git push.autoSetupRemote for automatic tracking setup
- Add push.followTags to include tags in pushes
- Install post-commit hook for automatic push after each commit
- Update config.json to document auto-push behavior
- Remote: master (giteas.fullmooncyberworks.com/mystiatech/Mai)

All commits will now automatically push to the remote branch.
2026-01-26 23:22:55 -05:00
Mai Development
3f41adff75 docs: establish fresh planning foundation with new features
- Update PROJECT.md: Add Android, visualizer, and avatar to v1
- Update REQUIREMENTS.md: 99 requirements across 15 phases (fresh slate)
- Add comprehensive README.md with setup, architecture, and usage
- Add PROGRESS.md for Discord forum sharing
- Add .gitignore for Python/.venv and project artifacts
- Note: All development via Claude Code/OpenCode workflow
- Note: Python deps managed via .venv virtual environment

Core value: Mai is a real collaborator, not a tool. She learns from you,
improves herself, has boundaries and opinions, and becomes more *her* over time.

v1 includes: Model interface, Safety, Resources, Memory, Conversation,
CLI, Self-Improvement, Approval, Personality, Discord, Offline, Voice
Visualization, Avatar, Android App, Device Sync.
2026-01-26 23:21:40 -05:00
Mai Development
5dc7b98abf rebased
Some checks failed
Discord Webhook / git (push) Has been cancelled
2026-01-26 23:16:30 -05:00
Mai Development
f238a958a0 docs: map existing codebase
- STACK.md - Technologies and dependencies
- ARCHITECTURE.md - System design and patterns
- STRUCTURE.md - Directory layout
- CONVENTIONS.md - Code style and patterns
- TESTING.md - Test structure
- INTEGRATIONS.md - External services
- CONCERNS.md - Technical debt and issues
2026-01-26 23:14:44 -05:00
Mai Development
b1d71bc22b fix(06): revise plans based on checker feedback
- Added missing <verify> element to Plan 06-05
- Created Plan 06-07 for help system gap
- Created Plan 06-08 for exit command gap
- Now addresses all 4 gaps identified by checker
2026-01-26 23:00:15 -05:00
Mai Development
54f6b4b40d docs(06): create gap closure plans for CLI interface issues
Phase 06: CLI Interface Gap Closure
- 2 plans addressing 3 UAT-identified issues
- Session persistence: Add missing set_conversation_history method
- Session feedback: Add verbose messaging for session file operations
- Resource display: Fix color coding with force_terminal=True
- Ready for execution to close CLI interface gaps
2026-01-26 22:51:49 -05:00
Mai Development
c70ee8816e Complete fresh slate 2026-01-26 22:43:41 -05:00
Mai Development
7c98aec306 Initial commit: Clean slate for Mai project 2026-01-26 22:40:49 -05:00