I'm curious how does it work, you handover the tools you wrote, .bashrc/.zshrc, etc?
When I'm hired in a company (not contract), they wipe the harddrive when I leave (well, I also do it before I hand it over sometimes). So they don't get the tools (I take them with myself, it would be a waste to loose them)
If you are a W2 employee in the US, you are almost certainly in violation of your PIIA if you take anything off the company-issued computer and keep it.
Some agencies do, however; it's dependent on the contract specifics.