CLEANUP_LIST.md
1 # Echo Repository Cleanup List 2 3 **Generated:** 2025-11-05 4 **Purpose:** List of deprecated files to be deleted after distributed context implementation 5 6 ## 🗑️ Files to Delete 7 8 ### Category 1: Temporary Fix/Summary Documents (22 files) 9 10 These are historical records of fixes that are now complete and integrated: 11 12 ```bash 13 ALL_AGENTS_UPDATED.md 14 AUTONOMOUS_AGENT_SUCCESS.md 15 CLEANUP_COMPLETE.md 16 CRITICAL_FIXES_SUMMARY.md 17 CURIOSITY_AGENDA_SUCCESS.md 18 DATABASE_CONFIG_FIX_SUMMARY.md 19 DAY_TRAINING_20MIN_UPDATE.md 20 DAY_TRAINING_FIXES.md 21 DOCKER_UPDATE_SUMMARY.md 22 FIX_SUMMARY.md 23 FIXES_APPLIED_DAY2.md 24 FIXES_APPLIED.md 25 LLM_INTEGRATION_SUMMARY.md 26 LLM_TESTING_SUCCESS.md 27 LLM_TIMEOUT_FIX.md 28 LLM_MODELS_OPTIMIZED.md 29 LLM_BENCHMARK_SYSTEM_READY.md 30 MONITORING_DASHBOARD_SUMMARY.md 31 OLLAMA_SETUP_COMPLETE.md 32 POSTGRES_FIX_SUMMARY.md 33 POSTGRES_FIX.md 34 REDIS_MESSAGE_BUG_FIX.md 35 TESTING_SUCCESS.md 36 ``` 37 38 ### Category 2: Old Training Documentation (14 files) 39 40 Superseded by current training scripts and guides: 41 42 ```bash 43 DAY_1_AGENT_ACTIONS.md 44 DAY_1_COMPANY_INTRO.md 45 DAY_1_READY.md 46 DAY_1_RESULTS.md 47 DAY_1_SIMULATION.md 48 DAY_TRAINING_GUIDE.md 49 DAY_TRAINING_TEST_RESULTS.md 50 DAY2_TESTING_GUIDE.md 51 DAY2_TRAINING_GUIDE.md 52 DAY2_WORKFLOW_DESIGN.md 53 HOW_DAY_1_WORKS.md 54 HOW_TO_RUN_CURIOSITY_AGENDA.md 55 HOW_TO_RUN_REAL_AGENT_COMMUNICATION.md 56 REAL_AGENT_COMMUNICATION.md 57 ``` 58 59 ### Category 3: Old Testing Documentation (5 files) 60 61 ```bash 62 TESTING_AGENT_SELF_SELECTION.md 63 TESTING_SUCCESS.md 64 TESTING_THE_DASHBOARD.md 65 REAL_AGENTS_QUICK_START.md 66 STARTING_AGENTS.md 67 ``` 68 69 ### Category 4: Old Architecture Documents (6 files) 70 71 These are superseded by ECHO_ARCHITECTURE.md and current docs: 72 73 ```bash 74 PHASE_3_ARCHITECTURE.md 75 PHASE_4_ARCHITECTURE.md 76 DISTRIBUTED_SYSTEMS_IMPROVEMENTS.md 77 WEEK_1_BUGS_FOUND.md 78 WHAT_AGENTS_DID.md 79 WHY_PING_ERRORS_ARE_NORMAL.md 80 ``` 81 82 ### Category 5: Logs and Backup Files (4 files) 83 84 ```bash 85 ollama_setup_fixed.log # 7.4MB 86 ollama_setup.log # 3.7KB 87 day_training.sh.bak # Backup script 88 run_migrations.sql # Should be in shared/priv/repo/migrations/ 89 ``` 90 91 ### Category 6: Root Test Scripts (2 files) 92 93 Should be in test/ directory: 94 95 ```bash 96 test_llm_integration_simple.exs 97 test_remote_llm.exs 98 ``` 99 100 ### Category 7: Deprecated Shell Scripts (13 files) 101 102 ```bash 103 day2_training.sh # Replaced by day2_training_v2.sh 104 monitor_conversation.sh # Unused (460 bytes) 105 run_day1_all_agents.sh # Replaced by run_day1_autonomous.sh 106 run_day1_autonomous.sh # Use run_autonomous_agents.sh instead 107 send_agent_message.sh # Replaced by send_agent_message_fixed.sh 108 start_ceo.sh # Functionality in start_ceo_cto.sh 109 start_cto.sh # Functionality in start_ceo_cto.sh 110 test_fix.sh # Temporary test script 111 test_senior_architect_llm.sh # Use scripts/agents/test_agent_llm.sh instead 112 trigger_curiosity_autonomous.sh # Specific to old workflow 113 ``` 114 115 **Keep these testing scripts:** 116 - `test_agents.sh` ✅ (Still used) 117 - `test_agent_conversation.sh` ✅ (Still used) 118 - `test_self_selection.sh` ✅ (Still used) 119 120 ### Category 8: Old Training Logs Directories (8 directories) 121 122 Inside `logs/` directory: 123 124 ```bash 125 logs/day1_20251103_141751/ 126 logs/day1_20251103_141850/ 127 logs/day1_20251103_142258/ 128 logs/day1_20251103_150000/ 129 logs/day1_20251103_150507/ 130 logs/day1_20251103_151242/ 131 logs/day1_20251103_153301/ 132 logs/day1_20251103_154010/ 133 logs/day1_20251103_160332/ 134 ``` 135 136 **Keep these log directories:** 137 - `logs/autonomous/` ✅ 138 - `logs/curiosity_agenda/` ✅ 139 - `logs/curiosity_session/` ✅ 140 - `logs/day_training/` ✅ 141 142 ### Category 9: Duplicate Config Files (2 files) 143 144 ```bash 145 claude_desktop_config_all_agents.json # Specific config, may keep if needed 146 claude_desktop_config.template.json # Template, may keep if needed 147 ``` 148 149 **Decision:** Review these - may be useful as templates 150 151 --- 152 153 ## ✅ Files to KEEP (Important Documentation) 154 155 These are current, referenced, and actively used: 156 157 ```bash 158 # Core Documentation 159 CLAUDE.md ✅ New distributed root 160 CLAUDE.md.backup ✅ Backup of original 161 README.md ✅ Main readme 162 GETTING_STARTED.md ✅ Setup guide 163 ECHO_ARCHITECTURE.md ✅ Architecture reference 164 QUICK_REFERENCE.md ✅ Quick commands 165 166 # Current Guides (referenced in README.md) 167 CLAUDE_DESKTOP_SETUP.md ✅ Setup guide 168 DEMO_GUIDE.md ✅ Demo scenarios 169 AGENT_INTEGRATION_GUIDE.md ✅ Integration guide 170 AUTONOMOUS_MODE_GUIDE.md ✅ Autonomous mode 171 HOW_TO_TEST.md ✅ Testing guide 172 HOW_TO_RUN_REAL_AGENTS.md ✅ Running agents guide 173 174 # Setup & Deployment 175 DOCKER_QUICKSTART.md ✅ Docker setup 176 MAC_MINI_SETUP_GUIDE.md ✅ Hardware setup 177 OLLAMA_GUIDE.md ✅ LLM setup 178 179 # Specific Guides 180 MONITORING_DASHBOARD_GUIDE.md ✅ Dashboard guide 181 CEO_CTO_DISCUSSION_GUIDE.md ✅ Conversation guide 182 183 # New Distributed Context Files 184 agents/claude.md ✅ Agent patterns 185 shared/claude.md ✅ Shared library 186 monitor/claude.md ✅ Dashboard context 187 workflows/claude.md ✅ Workflow patterns 188 training/claude.md ✅ Training context 189 scripts/claude.md ✅ Scripts context 190 docker/claude.md ✅ Deployment context 191 192 # Structure Documentation 193 .claude/CONTEXT_STRUCTURE.md ✅ Context documentation 194 DISTRIBUTED_CONTEXT_COMPLETE.md ✅ Implementation summary 195 ``` 196 197 --- 198 199 ## 📊 Summary 200 201 | Category | Files | Size Impact | 202 |----------|-------|-------------| 203 | Fix/Summary Docs | 22 | ~150KB | 204 | Training Docs | 14 | ~120KB | 205 | Testing Docs | 5 | ~50KB | 206 | Architecture Docs | 6 | ~80KB | 207 | Logs/Backups | 4 | ~7.5MB | 208 | Test Scripts | 2 | ~10KB | 209 | Deprecated Scripts | 13 | ~150KB | 210 | Old Log Directories | 8 | ~2MB | 211 | **TOTAL** | **74 items** | **~10MB** | 212 213 --- 214 215 ## 🚀 Cleanup Commands 216 217 ### Safe Cleanup Script 218 219 ```bash 220 #!/bin/bash 221 # cleanup_deprecated.sh - Remove deprecated files from echo repo 222 223 set -euo pipefail 224 225 echo "🗑️ Echo Repository Cleanup" 226 echo "=============================" 227 echo "" 228 echo "This will delete 74 deprecated files (~10MB)" 229 read -p "Continue? (yes/no): " confirm 230 231 if [[ "$confirm" != "yes" ]]; then 232 echo "Cancelled." 233 exit 0 234 fi 235 236 # Create backup before deletion 237 BACKUP_DIR="./deprecated_backup_$(date +%Y%m%d_%H%M%S)" 238 mkdir -p "$BACKUP_DIR" 239 240 echo "" 241 echo "📦 Creating backup in $BACKUP_DIR..." 242 243 # Backup files before deletion 244 cp *_FIX*.md *_SUMMARY*.md *_SUCCESS*.md *_COMPLETE*.md "$BACKUP_DIR/" 2>/dev/null || true 245 cp DAY*.md HOW*.md REAL*.md TESTING*.md STARTING*.md "$BACKUP_DIR/" 2>/dev/null || true 246 cp *.log *.bak *.exs "$BACKUP_DIR/" 2>/dev/null || true 247 248 echo "✅ Backup created" 249 echo "" 250 echo "🗑️ Deleting deprecated files..." 251 252 # Delete fix/summary documents 253 rm -f *_FIX*.md *_SUMMARY*.md *_SUCCESS*.md *_COMPLETE*.md *_FIXES*.md *_UPDATE*.md 254 255 # Delete old training docs 256 rm -f DAY_1_*.md DAY_TRAINING*.md DAY2_*.md HOW_DAY_1*.md 257 rm -f HOW_TO_RUN_CURIOSITY*.md HOW_TO_RUN_REAL*.md REAL_*.md 258 259 # Delete old testing docs 260 rm -f TESTING_*.md STARTING_AGENTS.md 261 262 # Delete old architecture docs 263 rm -f PHASE_*.md DISTRIBUTED_SYSTEMS_IMPROVEMENTS.md WEEK_1_BUGS_FOUND.md 264 rm -f WHAT_AGENTS_DID.md WHY_PING_ERRORS_ARE_NORMAL.md 265 266 # Delete logs and backups 267 rm -f *.log *.bak run_migrations.sql 268 269 # Delete test scripts from root 270 rm -f test_llm_integration_simple.exs test_remote_llm.exs 271 272 # Delete deprecated shell scripts 273 rm -f day2_training.sh monitor_conversation.sh 274 rm -f run_day1_all_agents.sh run_day1_autonomous.sh 275 rm -f send_agent_message.sh start_ceo.sh start_cto.sh 276 rm -f test_fix.sh test_senior_architect_llm.sh 277 rm -f trigger_curiosity_autonomous.sh 278 279 # Delete old log directories 280 rm -rf logs/day1_20251103_* 281 282 # Note: DISTRIBUTED_CONTEXT_COMPLETE.md - keep this one (it's new) 283 # Note: Keep CLAUDE_DESKTOP_GUIDE.md - still referenced 284 # Note: Keep ADD_ALL_AGENTS.md, AGENT_BUILD_TEST_RESULTS.md - may be useful 285 286 echo "✅ Cleanup complete!" 287 echo "" 288 echo "📊 Summary:" 289 echo " - Deleted: ~74 files" 290 echo " - Freed: ~10MB disk space" 291 echo " - Backup: $BACKUP_DIR" 292 echo "" 293 echo "💡 If you need any deleted file, restore from: $BACKUP_DIR" 294 ``` 295 296 ### Quick Cleanup (No Backup) 297 298 **⚠️ WARNING: No backup created!** 299 300 ```bash 301 # Delete all deprecated files at once 302 rm -f *_FIX*.md *_SUMMARY*.md *_SUCCESS*.md *_COMPLETE*.md *_FIXES*.md *_UPDATE*.md 303 rm -f DAY_1_*.md DAY_TRAINING*.md DAY2_*.md HOW_DAY_1*.md 304 rm -f HOW_TO_RUN_CURIOSITY*.md HOW_TO_RUN_REAL*.md REAL_*.md 305 rm -f TESTING_*.md STARTING_AGENTS.md 306 rm -f PHASE_*.md DISTRIBUTED_SYSTEMS_IMPROVEMENTS.md WEEK_1_BUGS_FOUND.md 307 rm -f WHAT_AGENTS_DID.md WHY_PING_ERRORS_ARE_NORMAL.md 308 rm -f *.log *.bak run_migrations.sql 309 rm -f test_llm_integration_simple.exs test_remote_llm.exs 310 rm -f day2_training.sh monitor_conversation.sh run_day1_all_agents.sh run_day1_autonomous.sh 311 rm -f send_agent_message.sh start_ceo.sh start_cto.sh test_fix.sh 312 rm -f test_senior_architect_llm.sh trigger_curiosity_autonomous.sh 313 rm -rf logs/day1_20251103_* 314 315 echo "✅ Cleanup complete!" 316 ``` 317 318 --- 319 320 ## 🔍 Verification After Cleanup 321 322 ```bash 323 # Check remaining documentation 324 ls -lh *.md | grep -v "CLAUDE\|README\|GETTING_STARTED\|ECHO_ARCHITECTURE\|QUICK_REFERENCE" 325 326 # Verify distributed context files exist 327 ls -l agents/claude.md shared/claude.md monitor/claude.md workflows/claude.md training/claude.md scripts/claude.md docker/claude.md 328 329 # Check repo size 330 du -sh . 331 332 # Verify git status 333 git status 334 ``` 335 336 --- 337 338 ## 📋 Post-Cleanup Checklist 339 340 - [ ] Backup created successfully 341 - [ ] All deprecated files deleted 342 - [ ] Distributed context files intact 343 - [ ] Active documentation files preserved 344 - [ ] Git status clean (no important files deleted) 345 - [ ] Scripts still work (./setup.sh, ./echo.sh) 346 - [ ] Monitor dashboard still accessible 347 - [ ] Agents still compile 348 349 --- 350 351 **Ready to clean up? Use the safe cleanup script above!**