AGENCYSCRIPT
CoursesEnterpriseBlog
👑FoundersSign inJoin Waitlist
AGENCYSCRIPT

Governed Certification Framework

The operating system for AI-enabled agency building. Certify judgment under constraint. Standards over scale. Governance over shortcuts.

Stay informed

Governance updates, certification insights, and industry standards.

Products

  • Platform
  • Certification
  • Launch Program
  • Vault
  • The Book

Certification

  • Foundation (AS-F)
  • Operator (AS-O)
  • Architect (AS-A)
  • Principal (AS-P)

Resources

  • Blog
  • Verify Credential
  • Enterprise
  • Partners
  • Pricing

Company

  • About
  • Contact
  • Careers
  • Press
© 2026 Agency Script, Inc.·
Privacy PolicyTerms of ServiceCertification AgreementSecurity

Standards over scale. Judgment over volume. Governance over shortcuts.

On This Page

The IP Layers in AI Agency WorkLayer 1: Client-Specific Custom WorkLayer 2: Agency Framework and ToolsLayer 3: Prompt Libraries and TemplatesLayer 4: Models and TrainingLayer 5: AI-Generated OutputsIP Ownership ModelsModel 1: Client Owns EverythingModel 2: Agency Retains Framework, Client Owns Custom WorkModel 3: Shared OwnershipModel 4: Agency Owns, Client LicensesContract LanguageThe IP Clause FrameworkRed Flags in Client IP ClausesProtecting Your IPDocumentationCode ArchitectureOpen Source ConsiderationsAI-Specific IP ChallengesFine-Tuned Model OwnershipPrompt Library OwnershipTraining DataCommon IP Mistakes
Home/Blog/Settle Who Owns the Code Before the First Line Ships
Operations

Settle Who Owns the Code Before the First Line Ships

A

Agency Script Editorial

Editorial Team

·March 18, 2026·11 min read
ai agency intellectual propertyip ownership ai projectsai agency ip rightscode ownership agency

Every AI agency project creates intellectual property. The question is who owns it—and most agencies never clarify this until a dispute forces the conversation.

IP disputes can destroy client relationships, kill acquisition deals, and create legal exposure that threatens the entire business. The time to sort out IP ownership is before the first line of code is written, not after the project is delivered.

AI agency IP is more complex than traditional software development because it involves multiple layers: custom client code, reusable agency frameworks, pre-trained models, fine-tuned models, prompt libraries, training data, and AI-generated outputs. Each layer may have different ownership implications.

The IP Layers in AI Agency Work

Layer 1: Client-Specific Custom Work

Code, configurations, and workflows built specifically for one client's needs. This includes custom integrations, client-specific business logic, and configurations tailored to their data and systems.

Default ownership: Client owns this. They paid for it, and it has no value outside their specific context.

Layer 2: Agency Framework and Tools

Reusable code libraries, templates, evaluation frameworks, and tools that your agency developed before or during the engagement and uses across multiple clients.

Default ownership: Agency retains this. It is your competitive advantage and the source of your delivery efficiency.

Layer 3: Prompt Libraries and Templates

Prompt templates, system instructions, and prompt engineering patterns developed for specific use cases.

Ownership complexity: If the prompts are generic (usable across clients), the agency should retain them. If they are highly customized with client-specific terminology and business logic, they may be considered client work.

Layer 4: Models and Training

Pre-trained foundation models, fine-tuned models, and training data.

Ownership complexity: Foundation models are third-party IP (OpenAI, Anthropic, Meta, etc.) governed by their licenses. Fine-tuned models may incorporate client data, creating shared ownership questions. Training data may be the client's proprietary information.

Layer 5: AI-Generated Outputs

Content, code, or analysis produced by AI systems during the engagement.

Ownership complexity: AI-generated content has uncertain copyright status in most jurisdictions. The legal landscape is evolving rapidly.

IP Ownership Models

Model 1: Client Owns Everything

The client receives full ownership of all work product, including code, models, and documentation.

Pros: Simple, clear, and easy for clients to accept Cons: You cannot reuse anything from the engagement. Every project starts from scratch. Your efficiency never improves.

When to use: Almost never. This model prevents you from building institutional knowledge and reusable assets.

Model 2: Agency Retains Framework, Client Owns Custom Work

The client owns all custom work product. The agency retains ownership of pre-existing frameworks, tools, and reusable components, with the client receiving a perpetual license to use them.

Pros: Balances client ownership with agency efficiency. Clients get full use of everything in the project. The agency retains the ability to reuse its frameworks. Cons: Requires clear documentation of what is pre-existing vs new

When to use: This is the recommended default for most AI agency engagements.

Model 3: Shared Ownership

Both parties co-own certain elements (typically fine-tuned models trained on client data using agency methodology).

Pros: Reflects the genuine dual contribution Cons: Complex to manage, potential conflicts over future use

When to use: When fine-tuning involves significant contributions from both the agency's methodology and the client's proprietary data.

Model 4: Agency Owns, Client Licenses

The agency retains ownership of all work product and licenses it to the client.

Pros: Maximum protection for agency IP. Good for productized services. Cons: Many clients will not accept this for custom work.

When to use: For standardized, productized offerings where the client is essentially licensing a pre-built solution.

Contract Language

The IP Clause Framework

A well-structured IP clause should address:

Pre-existing IP: "Agency retains all rights to its pre-existing intellectual property, including frameworks, libraries, tools, and methodologies that exist prior to or are developed independently of this engagement."

Client license to pre-existing IP: "Agency grants Client a perpetual, non-exclusive, non-transferable license to use Agency's pre-existing IP solely as incorporated in the deliverables."

Custom work product: "Client shall own all right, title, and interest in custom work product created specifically for Client under this Agreement, upon full payment."

Definition of custom work product: "Custom work product means code, configurations, and documentation created specifically for Client that has no application outside Client's specific use case."

Agency right to general knowledge: "Nothing in this Agreement restricts Agency from using general knowledge, skills, experience, and techniques acquired during the engagement, including know-how and methodologies, in future work for other clients."

Red Flags in Client IP Clauses

Watch for client contract language that:

  • Claims ownership of all IP created during the engagement period (including your frameworks)
  • Restricts your ability to work with other clients in the same industry
  • Requires assignment of IP before payment is received
  • Does not distinguish between pre-existing and newly created IP
  • Claims ownership of AI-generated outputs without consideration for the underlying model licenses

Protecting Your IP

Documentation

Maintain clear documentation of your pre-existing IP:

  • Date-stamped repository of framework code and tools
  • Version history showing when components were created
  • Documentation of components used across multiple client projects
  • Clear separation between client repos and agency framework repos

Code Architecture

Structure your code to clearly separate reusable components from client-specific work:

  • Agency framework code in separate repositories
  • Client projects import and use framework code, they do not contain it
  • Clear naming conventions that distinguish agency components from custom work

Open Source Considerations

If your frameworks use open source components, understand the license implications:

  • MIT and Apache licenses are generally safe for commercial use
  • GPL licenses may require derivative works to be open-sourced
  • Some AI model licenses restrict commercial use or require attribution
  • Document all open source components and their licenses

AI-Specific IP Challenges

Fine-Tuned Model Ownership

When you fine-tune a foundation model using client data and your methodology:

  • The base model is owned by the model provider (OpenAI, Anthropic, etc.)
  • The client's data remains the client's property
  • The fine-tuning methodology is your know-how
  • The resulting fine-tuned model is a combination of all three

Recommended approach: The fine-tuned model is treated as a deliverable owned by the client, but the agency retains the right to use the same fine-tuning methodology with other clients on different data.

Prompt Library Ownership

Prompts occupy an unusual space:

  • Generic prompt templates (usable across clients) should be agency IP
  • Client-specific prompts (containing business rules, terminology) should be client IP
  • The line between them is often blurry

Recommended approach: Agency retains ownership of generic prompt patterns and templates. Client-specific adaptations are included in the custom work product.

Training Data

Client data used for training or fine-tuning remains client property. Your contract should specify:

  • How client data will be used during the engagement
  • Whether client data will be deleted after the engagement
  • Whether anonymized or aggregated insights from client data can be retained
  • Data handling and security requirements

Common IP Mistakes

  1. No IP clause in the contract: Defaulting to "we'll figure it out" creates disputes
  2. Giving away framework IP: Assigning all IP to the client means you cannot use your own tools on the next project
  3. No documentation of pre-existing IP: Without documentation, it is hard to prove what existed before the engagement
  4. Ignoring model licenses: Using a model commercially without understanding its license terms creates legal risk
  5. No code separation: Mixing client code and agency framework code makes it impossible to determine ownership

Get your IP structure right from the beginning, document it clearly in every contract, and maintain clean separation between client work and agency assets. Your intellectual property is one of your most valuable business assets—protect it accordingly.

Search Articles

Categories

OperationsSalesDeliveryGovernance

Popular Tags

prompt engineeringai fundamentalsai toolsthe difference between AIMLagency operationsagency growthenterprise sales

Share Article

A

Agency Script Editorial

Editorial Team

The Agency Script editorial team delivers operational insights on AI delivery, certification, and governance for modern agency operators.

Related Articles

Operations

Understaffed or Overstaffed? Both Camps Were Right.

You cannot manage what you cannot see. Here is how to build a team capacity dashboard that prevents burnout, eliminates bench time, and keeps projects staffed correctly.

A
Agency Script Editorial
March 21, 2026·12 min read
Operations

Optimizing Daily Standups for Distributed AI Agency Teams

Optimized standups keep distributed AI agency teams aligned without consuming the focused work time that engineers need to ship quality deliverables.

A
Agency Script Editorial
March 21, 2026·10 min read
Operations

Complete Utilization Rate Management Guide — The Metric That Makes or Breaks Agency Profitability

A 5% shift in utilization can swing agency profit by 30% or more. Here is the definitive guide to measuring, managing, and optimizing the most important metric in your agency.

A
Agency Script Editorial
March 21, 2026·13 min read

Ready to certify your AI capability?

Join the professionals building governed, repeatable AI delivery systems.

Explore Certification