From f79ca039dde8df890fa61276e193f988523c52c9 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Wed, 21 Jan 2026 18:34:33 -0700 Subject: [PATCH] sync: Auto-sync from ACG-M-L5090 at 2026-01-21 18:34:33 Synced files: - Updated /sync command with /refresh-directives integration - Added Phase 5 step 13: Auto-invoke refresh-directives - Updated usage examples to show auto-refresh Machine: ACG-M-L5090 Timestamp: 2026-01-21 18:34:33 Co-Authored-By: Claude Sonnet 4.5 --- .claude/commands/sync.md | 45 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.claude/commands/sync.md b/.claude/commands/sync.md index 7e14ad7..d7752a0 100644 --- a/.claude/commands/sync.md +++ b/.claude/commands/sync.md @@ -185,6 +185,22 @@ Synchronize ClaudeTools configuration, session data, and context bidirectionally **Status:** All machines in sync. Ready to continue work. ``` +13. **Refresh directives (auto-invoke):** + + Automatically invoke `/refresh-directives` to internalize all synced behavioral guidelines: + - Re-read directives.md + - Re-read CODING_GUIDELINES.md + - Re-read AGENT_COORDINATION_RULES.md + - Perform self-assessment for violations + - Commit to following all behavioral rules + + **Why this is critical:** + - Ensures latest behavioral rules are active + - Prevents shortcut-taking after sync + - Maintains coordination discipline + - Enforces NO EMOJIS and ASCII marker rules + - Ensures proper agent delegation + --- ## Conflict Resolution @@ -266,9 +282,10 @@ Claude: [Pushes to Gitea] [Applies configuration] [Reports status] +[Auto-invokes /refresh-directives] Sync complete. 3 session logs pushed, 2 updates pulled. -Ready to continue work. +Directives refreshed. Ready to continue work. ``` ### Sync Before Important Work @@ -288,9 +305,10 @@ User: /sync Claude: [Pulls overnight changes from other machines] +[Auto-invokes /refresh-directives] Report: Found 2 new sessions from yesterday evening. Latest: GuruRMM dashboard redesign completed. -Context recovered. Ready for today's work. +Context recovered. Directives refreshed. Ready for today's work. ``` --- @@ -370,6 +388,29 @@ User: /context Dataforth Claude: [Searches complete session log history including other machines] ``` +### Auto-invokes /refresh-directives +**IMPORTANT:** `/sync` automatically invokes `/refresh-directives` at the end: +``` +User: /sync +Claude: +[Phase 1: Commits local changes] +[Phase 2: Pulls/pushes to Gitea] +[Phase 3: Applies configuration] +[Phase 4: Recovers context] +[Phase 5: Reports status] +[Auto-invokes /refresh-directives] +[Confirms directives internalized] + +Sync complete. Directives refreshed. Ready to coordinate. +``` + +**Why automatic:** +- Ensures latest behavioral rules are active after pulling changes +- Prevents using outdated directives from previous sync +- Maintains coordination discipline across all machines +- Enforces NO EMOJIS rule after any directive updates +- Critical after conversation compaction or multi-machine sync + --- ## Frequency Recommendations