Isaiah51:12

אָנֹכִי אָנֹכִי הוּא מְנַחֶמְכֶם מִי־אַתְּ וַתִּירְאִי מֵאֱנוֹשׁ יָמוּת וּמִבֶּן־אָדָם חָצִיר יִנָּתֵן׃

I, I am He who comforts you. Who are you that you fear a man who will die, and a son of man who is made like grass?

Isaiah 51:12

אָנֹכִי אָנֹכִי הוּא

Yeshayahu / Isaiah 51:12 · Sod

Isaiah 51:12

אָנֹכִי אָנֹכִי הוּא מְנַחֶמְכֶם מִי־אַתְּ וַתִּירְאִי מֵאֱנוֹשׁ יָמוּת וּמִבֶּן־אָדָם חָצִיר יִנָּתֵן׃

I, I am He who comforts you. Who are you that you fear a man who will die, and a son of man who is made like grass?

Sod סוֹד

I am I

People usually look for comfort in changes for the better. Here it is found in what does not change.

Ba'al Shem Tov: when you know that there is no "I" but His "I", then He is the One who comforts you. Kedushat Levi: the Creator wants to give more than a person wants to receive. When people cannot receive His bounty, as it were there is no wholeness in Him either. "I, I": I remain Myself, without change, and that itself is your comfort.

How Ba'al Shem Tov and Kedushat Levi explain it

Ba'al Shem Tov I, I am He who comforts you

I heard in the name of the Ba'al Shem Tov, of blessed memory, on the verse "I, I am He who comforts you" (Yeshayahu / Isaiah 51:12): that is, when you know that there is no "I" but My "I" alone, and there is none besides Me, then surely He is the One who comforts you. And the words of a wise man's mouth are gracious. (Teshuot Chen, portion Tzav.)

Kedushat Levi I, I am He who comforts you

The general rule: when the Holy One, blessed is He, pours good upon a person, and the person can receive His goodness, for His way is always to pour kindness upon Israel, as our sages, of blessed memory, said: "More than the calf wants to suck" and so on (Pesachim 112a), this is the delight of the Creator, blessed is He: when the creatures can receive His goodness. For if, Heaven forbid, the creatures cannot receive His bounty, then the Creator, as it were, is not whole, as our sages, of blessed memory, said: "When a person suffers, what does the Shechinah say? I am in pain" and so on (Chagigah 15b). And when the creatures can receive the bounty from the Creator, then, as it were, there is wholeness in Him and no change at all. And this is the hint of "I, I": that I am I, that there is no change in Me, this is your comfort. That is, then surely you can receive the bounty and the goodness, and then surely there is no change in Me. And this is "I, I": that I am I, that there is no change in Me, this is "He who comforts you", this itself is your comfort.

Takeaway

"More than the calf wants to suck, the cow wants to suckle" are words of Rabbi Akiva (Pesachim 112a): the giver wants to give more than the receiver wants to take.
"My head is heavy, My arm is heavy": so the Shechinah speaks of a person's suffering. These words also stand in the Mishnah (Sanhedrin 6:5).
The Shechinah (שְׁכִינָה) is the presence of the Most High among people.
The Ba'al Shem Tov wrote nothing down himself. His words came through his students, here through the book Teshuot Chen.
"The words of a wise man's mouth are gracious" (Kohelet / Ecclesiastes 10:12).