Auto-rebuild command cache