Patenting software, is the same as patenting anything else, and, it can all be done online from the comfort of your home or workshop. The complex nature of the requirements means you might want professional help.

Communication with a patent agent are confidential, just like those with an attorney. The client holds privilege to prevent the release of information, or to permit it.
Patent Services from a USPTO Registered Patent Practitioner are covered by client confidentiality. So, what you tell a patent agent is confidential and cannot be disclosed without your permission.
All patent services at Carson Patents are confidential.
Patenting software, is the same as patenting anything else, and, it can all be done online from the comfort of your home or workshop. The complex nature of the requirements means you might want professional help.
Patenting Costs article: How much does it cost to get a patent? $5-8k total (US Patent issued), depending on what kind (design or utility), how complex, and in which countries patent protection is sought.
Patent Agent Legal Services? When it comes to legal rights, in pertinent part, property rights, there are licensed professionals who offer help in exercising or protecting your rights. Lawyers. For patents there are patent practitioners (agent or attorney) to deal with these special rights.