Mix the beef, almond flour, egg, garlic, thyme and coconut aminos with a good pinch of salt and pepper. Shape into 6 oval patties about 3/4 inch thick.
Melt the ghee in a large saucepan over medium-high heat and cook the onions, stirring occasionally, until they begin to brown, about 8 minutes.
Add 1/4 cup of the stock and keep cooking and stirring 10 minutes more, until the onions are deep brown and soft. Pour in the wine, if using, and boil until reduced by half.
Add the rest of the stock and the tomato paste, season and simmer 10 minutes. Whisk in the tapioca starch a teaspoon at a time until the gravy is as thick as you like. Keep warm over low heat.
Heat the oil in a large skillet over medium-high heat and sear the patties 3 to 5 minutes per side.
Pour the gravy over the patties and simmer 10 minutes, until they reach 160°F (71°C) inside.