I mean, I'm not a lawyer or CPA, and I'd advise any HN readers to consult such before deciding on a tax strategy based on HN thread. Because, also, yeah, no.
Honestly, if you are sleeping in an actual office as your primary residence, you probably technically have to include the fair market value as income on your personal taxes, but if you're really on a couch in an office building maybe you can get away with it (until the landlord of the office building kicks you out because it's not zoned for or up to code for residential and thus illegal for them to rent to you for that purpose). If it's a residential apartment... sounds like out and out tax fraud to me. I am not a lawyer and this is not legal or tax advice.