Writeups9 min read

Work for Hire vs IP Assignment: Who Owns Code an Agency Writes for You?

Work for Hire vs IP Assignment: Who Owns Code an Agency Writes for You?
StardeliteCode Ownership

Short answer: under US copyright law, paying an agency does not by itself make you the owner of the code it writes. Unless the agency's people are your employees, ownership generally moves to you only through a signed written transfer. So when you ask who owns the code an agency writes for you, the answer depends on one thing: whether your contract contains a clear, signed IP assignment. A "work for hire" label alone often does not do the job.

This post explains why, what a good assignment clause covers, and what to ask a studio before you sign. It is general information, not legal advice. Have a lawyer review any contract that matters to your business.

Why "work made for hire" usually isn't enough for custom software

Many contracts say the deliverables are "works made for hire" and stop there. That sounds protective, but the statutory definition is narrow.

According to the U.S. Copyright Office's Circular 30, a work made for hire arises in one of two situations: the work is created by an employee within the scope of their employment, or it is a specially ordered or commissioned work that meets several criteria. For commissioned work, the work must fall within one of nine listed categories, and the parties must agree in a signed written instrument that it is a work made for hire.

The nine categories are:

  • a contribution to a collective work
  • part of a motion picture or other audiovisual work
  • a translation
  • a supplementary work
  • a compilation
  • an instructional text
  • a test
  • answer material for a test
  • an atlas

"Software" is not on that list. Whether a particular deliverable could be squeezed into a category (a compilation, say) is a question for a lawyer, and you should not build your ownership on it. An agency is also not your employee. The Supreme Court's decision in Community for Creative Non-Violence v. Reid (1989) held that a commissioned sculpture was not a work for hire because the sculptor was an independent contractor, and the Court looked at general agency law to decide who counts as an employee. A studio you hire to build a product will almost always be an independent contractor.

The fix: a signed assignment of copyright

If the work-for-hire route is shaky, the reliable route is a transfer. The statute is plain: under 17 U.S.C. § 204(a), a transfer of copyright ownership is not valid unless it is in writing and signed by the owner of the rights being conveyed, or the owner's authorized agent.

In practice that means two things:

  1. A handshake, an email thread, or "we paid the invoices" is not a transfer. Without a signed writing, the agency (or whoever wrote the code) may remain the copyright owner, with you holding at most an implied permission to use what you paid for.
  2. The signature that matters is the owner's. The assignment has to be signed by the party giving up the rights, not only by you.

Two people reviewing and signing a contract at a desk

The Copyright Office notes that recording a transfer is not what makes it valid between the parties, though recordation has its own benefits. Its Circular 12 on recordation covers the details if your counsel wants to record the assignment.

The chain of title: who actually wrote the code?

Here is where remote and distributed teams deserve a direct question. Copyright starts with whoever created the work. When an agency's own employees write code within the scope of their jobs, that work is made for hire for the agency, so the agency is the initial owner. That is why you need the agency to assign it to you.

But code can also come from:

  • freelancers or subcontractors the agency brings in
  • contractors in other countries
  • open-source packages and third-party SDKs
  • the agency's own reusable components and internal tools

Each link in that chain needs its own paperwork. If a subcontractor never assigned their work to the agency, the agency cannot assign it to you, whatever your contract says. How authorship and employment are treated can differ between countries, and this post does not cover other countries' rules, so ask your counsel rather than assuming the US rules travel. What you can ask the vendor is simple: does every person who contributes code to our project, employee or contractor, sign an agreement assigning their work to the agency, and will you represent that in our contract?

What a good IP clause should say

When you read the draft agreement, look for these points. Think of them as questions for your lawyer.

  • An actual assignment, not just a label. The clause should transfer ownership of the deliverables to you, in clear words, rather than only saying "work made for hire." Ask counsel whether the wording is a present transfer or merely a promise to transfer later.
  • When it takes effect. Some contracts transfer ownership only on final payment. That is a common and reasonable position for a vendor, but you should know about it. Ask what happens to ownership if there is a dispute mid-project, or if you terminate early. Our post on payment milestones covers how payment terms interact with delivery.
  • What counts as a "deliverable." Source code, design files, documentation, database schemas, infrastructure scripts, and build configuration should be named, not implied.
  • Pre-existing and background IP. Agencies usually keep ownership of their own pre-existing tools and libraries and give you a license to use them inside your product. That is normal. What matters is that the license is perpetual, irrevocable, and not limited to the agency's continued involvement, so that your product doesn't stop working if you part ways.
  • Third-party and open-source components. The agency should list them and their licenses. You own your code, but you do not own the open-source code inside it, and some licenses carry obligations (such as attribution or sharing terms) that affect how you can distribute your product.
  • A warranty on originality. The vendor should state that the deliverables don't knowingly infringe anyone else's rights and that they have the right to assign them.
  • Further assurances. If a later filing or registration needs extra signatures, the vendor agrees to provide them.

Laptop with code on screen next to a notebook

What about AI-generated code?

If the agency uses AI coding tools, ownership of the output gets more complicated. In January 2025 the U.S. Copyright Office published Part 2 of its Copyright and Artificial Intelligence report. It concluded that human authors are entitled to copyright in their own expression that is perceptible in AI-generated outputs, and in their creative selection, arrangement, or modification of those outputs. The Office also reiterated that copyright requires human authorship.

This does not mean AI-assisted code is unprotectable. It means that code a model produced with little human direction may have weaker or no copyright protection, however well your assignment clause is written. Reasonable questions for a studio are:

  • Do you use AI coding assistants on client projects, and under what policy?
  • Is a human engineer reviewing and shaping everything that is delivered?
  • Do the assistants you use send our code to third-party services, and under what terms?

A good vendor will have clear answers and will be willing to put the key ones in writing.

Questions to ask before you sign

  1. Does the contract include a signed assignment of copyright, and is it effective on payment, on delivery, or on completion?
  2. Is every contributor (employee and contractor) bound by a written assignment to the agency?
  3. Which pre-existing tools or libraries stay with the agency, and what license do we get to them?
  4. Can we see a list of third-party and open-source dependencies and their licenses?
  5. Who owns the repositories, cloud accounts, app store listings, and domain registrations during the project? Ideally these sit in your accounts from day one.
  6. Does the agency have a policy on AI-generated code?
  7. Can the agency reuse our code or designs for other clients? Ownership and confidentiality are different things, so check the NDA and the IP clause together. We've written about whether to sign an NDA first.

Putting the repository in your own GitHub organization from the first commit is a practical safeguard that costs nothing. It does not replace a written assignment, but it makes the day you need the code a non-event. For what you should physically receive at the end, see our guide to software development handover.

Working with a remote team doesn't change the principle

A remote-first studio, including Stardelite, works with people in several places, which is exactly why the chain-of-title question matters. Distance is not the risk. Missing paperwork is. Ask any distributed vendor to describe how contributors are engaged and how assignments are documented, and have your counsel confirm that the contract works under the law that governs it.

References

If you're comparing studios and want to talk through how IP, access, and handover would work on your project, get in touch with Stardelite. We're a software development studio, and we're happy to walk through these questions before any contract is on the table.

Share this: