[Config] Add coding guidelines and code-fixer agent
Major additions: - Add CODING_GUIDELINES.md with "NO EMOJIS" rule - Create code-fixer agent for automated violation fixes - Add offline mode v2 hooks with local caching/queue - Add periodic context save with invisible Task Scheduler setup - Add agent coordination rules and database connection docs Infrastructure: - Update hooks: task-complete-v2, user-prompt-submit-v2 - Add periodic_save_check.py for auto-save every 5min - Add PowerShell scripts: setup_periodic_save.ps1, update_to_invisible.ps1 - Add sync-contexts script for queue synchronization Documentation: - OFFLINE_MODE.md, PERIODIC_SAVE_INVISIBLE_SETUP.md - Migration procedures and verification docs - Fix flashing window guide Updates: - Update agent configs (backup, code-review, coding, database, gitea, testing) - Update claude.md with coding guidelines reference - Update .gitignore for new cache/queue directories Status: Pre-automated-fixer baseline commit Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
92
NEXT_SESSION_START.md
Normal file
92
NEXT_SESSION_START.md
Normal file
@@ -0,0 +1,92 @@
|
||||
# Start Here - Next Session
|
||||
|
||||
**Database:** 7 contexts saved and ready for recall
|
||||
**Last Updated:** 2026-01-17 19:04
|
||||
|
||||
---
|
||||
|
||||
## ✅ What's Complete
|
||||
|
||||
1. **Offline Mode (v2 hooks)** - Full offline support with local caching/queuing
|
||||
2. **Centralized Architecture** - DB & API on RMM (172.16.3.30)
|
||||
3. **Periodic Context Save** - Script ready, tested working
|
||||
4. **JWT Authentication** - Token valid until 2026-02-16
|
||||
5. **Documentation** - Complete guides created
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Quick Actions Available
|
||||
|
||||
### Enable Automatic Periodic Saves
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File D:\ClaudeTools\.claude\hooks\setup_periodic_save.ps1
|
||||
```
|
||||
|
||||
This sets up Task Scheduler to auto-save context every 5 minutes of active work.
|
||||
|
||||
### Test Context Recall
|
||||
|
||||
The hooks should automatically inject context when you start working. Check for:
|
||||
```
|
||||
<!-- Context Recall: Retrieved X relevant context(s) from API -->
|
||||
## 📚 Previous Context
|
||||
```
|
||||
|
||||
### View Saved Contexts
|
||||
|
||||
```bash
|
||||
curl -s "http://172.16.3.30:8001/api/conversation-contexts?limit=10" | python -m json.tool
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📋 Optional Next Steps
|
||||
|
||||
### 1. Re-import Old Contexts (68 from Jupiter)
|
||||
|
||||
If you want the old conversation history:
|
||||
- Old data is still on Jupiter (172.16.3.20) MariaDB container
|
||||
- Can be reimported from local `.jsonl` files if needed
|
||||
- Not critical - system works without them
|
||||
|
||||
### 2. Mode Switching (Future Feature)
|
||||
|
||||
The MSP/Dev/Normal mode switching is designed but not implemented yet. Database tables exist, just needs:
|
||||
- Slash commands (`.claude/commands/msp.md`, etc.)
|
||||
- Mode state tracking
|
||||
- Mode-specific behaviors
|
||||
|
||||
---
|
||||
|
||||
## 🔧 System Status
|
||||
|
||||
**API:** http://172.16.3.30:8001 ✅
|
||||
**Database:** 172.16.3.30:3306/claudetools ✅
|
||||
**Contexts Saved:** 7 ✅
|
||||
**Hooks Version:** v2 (offline-capable) ✅
|
||||
**Periodic Save:** Tested ✅ (needs Task Scheduler setup for auto-run)
|
||||
|
||||
---
|
||||
|
||||
## 📚 Key Documentation
|
||||
|
||||
- `OFFLINE_MODE.md` - Complete offline mode documentation
|
||||
- `PERIODIC_SAVE_QUICK_START.md` - Quick guide for periodic saves
|
||||
- `DATA_MIGRATION_PROCEDURE.md` - How to migrate data (if needed)
|
||||
- `OFFLINE_MODE_COMPLETE.md` - Summary of offline implementation
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Context Will Auto-Load
|
||||
|
||||
When you start your next session, the `user-prompt-submit` hook will automatically:
|
||||
1. Detect you're in the ClaudeTools project
|
||||
2. Query the database for relevant contexts
|
||||
3. Inject them into the conversation
|
||||
|
||||
**You don't need to do anything - it's automatic!**
|
||||
|
||||
---
|
||||
|
||||
**Ready to continue work - context saved and system operational!**
|
||||
Reference in New Issue
Block a user