📍 Location: ai/docs/ | 🏠 Home: ai/README.md | 📚 Main: README.md
Essential commands for working with the case-note-simulator AI system.
Switch between AI assistant personas with different expertise areas:
# Load the system
source('ai/scripts/ai-context-management.R')
# Switch personas
activate_project_manager() # Strategic oversight + full project context
activate_developer() # Technical focus, minimal context
activate_casenote_analyst() # Domain expertise + specialized context
activate_data_engineer() # Data pipeline specialist, minimal context
activate_research_scientist() # Statistical analysis specialist, minimal context
activate_prompt_engineer() # RICECO framework specialist + specialized context
activate_reporter() # Analytical storytelling, on-demand context
activate_default() # General assistance, minimal context
# Check current status
show_context_status()Manage additional context files for the AI assistant:
# Add specific files to context
add_context_file('./ai/project/mission.md')
add_context_file('./analysis/eda-1/README.md')
# Remove files from context
remove_context_file('./ai/project/mission.md')
# List available .md files
list_available_md_files()
list_available_md_files('pattern') # Filter by patternTrack project memory and status:
# Memory functions
memory_status() # Quick memory system status
ai_memory_check() # Comprehensive memory analysis with intent detection
context_refresh() # Complete status scan with options
# Project status
show_context_status() # Current persona and context statusTrack file modifications in the project:
# Log file changes
log_change('analysis/eda-1/eda-1.qmd', 'Added new visualizations')
log_file_change('scripts/common-functions.R', 'Updated data loading functions')New to the project?
source('ai/scripts/ai-context-management.R')show_context_status()- See current configurationactivate_project_manager()- Load full project context- Start working with complete project understanding
Daily workflow:
show_context_status()- Check current setup- Switch persona if needed with
activate_*() - Add relevant context with
add_context_file() - Log changes with
log_change()
- Project Manager persona includes full project context (mission, method, glossary)
- Developer persona is minimal context for focused technical work
- Case Note Analyst includes domain-specific knowledge for case note work
- Use
show_context_status()to see what's currently loaded - Context files are automatically managed - no manual cleanup needed
- All personas have access to the same core commands
Updated: October 2025 | Current system functions only