[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:
2026-01-17 12:51:43 -07:00
parent 390b10b32c
commit 25f3759ecc
52 changed files with 8692 additions and 53 deletions

View File

@@ -0,0 +1,9 @@
{
"context_type": "session_summary",
"title": "ClaudeTools Session - Offline Mode & Periodic Save Implementation",
"dense_summary": "COMPLETED: (1) Offline mode v2 hooks with local caching/queue - contexts cached in .claude/context-cache/, queued in .claude/context-queue/pending/, auto-sync when API restored. (2) Centralized architecture - DB and API on RMM (172.16.3.30:3306, :8001). (3) Periodic context save - auto-saves every 5min active time via periodic_save_check.py, Task Scheduler ready. (4) JWT authentication - new token generated, expires 2026-02-16. STATUS: Database has 2 contexts (this session + 1 periodic save test). Old 68 contexts on Jupiter not migrated (mysqldump unavailable in container). READY: System operational, hooks active, periodic save tested working. DOCS: OFFLINE_MODE.md, PERIODIC_SAVE_QUICK_START.md, test procedures created. FILES: .claude/hooks/user-prompt-submit (v2), task-complete (v2), periodic_save_check.py, setup_periodic_save.ps1",
"key_decisions": "[\"Use v2 hooks with offline fallback\", \"Centralize DB/API on RMM server\", \"Implement periodic save every 5min\", \"Skip Jupiter migration, rebuild from local if needed\"]",
"current_state": "{\"phase\": \"operational\", \"hooks\": \"v2\", \"database\": \"centralized_rmm\", \"contexts\": 2, \"offline_mode\": \"enabled\", \"periodic_save\": \"working\", \"next\": [\"Run setup_periodic_save.ps1\", \"Test context recall\", \"Optional: Re-import old contexts\"]}",
"relevance_score": 9.5,
"tags": "[\"offline-mode\", \"hooks\", \"v2\", \"migration\", \"rmm\", \"centralized\", \"periodic-save\", \"jwt\", \"context-recall\", \"complete\"]"
}