Your best option would be to use onlyoffice. Not sure what you mean by copilot. Copilot is available in vscode, vim, jetbrains, all of which are cross platform. You can also try using bavarder if you want something like chatgpt.
I personally use a small tool called mods to access gpt 4 using an openai API key in my terminal, but this option is only great if you have a terminal heavy workflow.
It shouldn't matter if the user is leaning or jumping or whatever. If the variable says "is_person_standing" then the only information I get out of it is whether the person is standing or not. It would be much simpler to use enums to represent the state if there are such other options. If you don't have enums in your language, then use constants.