Skip to content

Add cross-platform time detection for universal accessibility#3

Merged
Kiyoraka merged 1 commit intoKiyoraka:mainfrom
faizkhairi:feature/cross-platform-time-detection
Mar 21, 2026
Merged

Add cross-platform time detection for universal accessibility#3
Kiyoraka merged 1 commit intoKiyoraka:mainfrom
faizkhairi:feature/cross-platform-time-detection

Conversation

@faizkhairi
Copy link
Copy Markdown
Contributor

Summary

Implements cross-platform time detection to make Project-AI-MemoryCore universally accessible across all operating systems and shell environments. Addresses #2.

Changes:

  • Added cascading detection strategy to time-aware-core.md: tries bash date first, then PowerShell Get-Date, then CMD time /T, with a graceful fallback
  • Added platform compatibility matrix covering Linux, macOS, Windows (Git Bash/MSYS2, WSL, PowerShell, CMD)
  • Added "commands to avoid" section to prevent common cross-platform pitfalls (e.g., bare date on Windows CMD triggers interactive date setter)
  • Updated Save-Diary-System install protocol and SKILL.md to reference cross-platform commands instead of platform-specific ones
  • Updated Time-based-Aware-System README with universal accessibility claims and detection table

Files modified (4):

  • Feature/Time-based-Aware-System/time-aware-core.md -- core detection strategy + compatibility matrix
  • Feature/Time-based-Aware-System/README.md -- cross-platform detection table + universal accessibility
  • Feature/Save-Diary-System/install-save-diary.md -- replaced Get-Date-only fallback
  • Feature/Save-Diary-System/SKILL.md -- updated timestamp rule

Tested on

  • Windows 11 + Git Bash (MSYS2) -- date +"%H:%M" works (MSYS2 bundles GNU date)
  • Windows 11 + PowerShell -- Get-Date -Format "HH:mm" works
  • Production AI companion system running daily on Windows with Claude Code CLI

Notes

  • This PR focuses on the Time-based Aware System and Save Diary System, which are the two features that directly reference time detection commands
  • The LRU Project Management and Auto-Commit systems use generic "current date/time" references (no platform-specific commands) so they don't need changes
  • Backward compatible -- no breaking changes to existing behavior

Replace platform-specific date/time commands with a cascading detection
strategy that works across all shell environments:

- bash/zsh (Linux, macOS, Git Bash/MSYS2, WSL): date +"%H:%M"
- PowerShell: Get-Date -Format "HH:mm"
- Windows CMD: time /T

Updated files:
- time-aware-core.md: Added full detection strategy, compatibility matrix,
  environment detection logic, and commands-to-avoid section
- Time-based-Aware-System README.md: Added cross-platform detection table
  and universal accessibility claims
- Save-Diary install-save-diary.md: Replaced Get-Date-only fallback with
  cross-platform reference
- Save-Diary SKILL.md: Updated timestamp rule with platform-specific commands

Addresses Kiyoraka#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants