---
title: "Build the product from the company's own · Agent Wranglers"
url: https://agentwranglers.se/playbook/due-diligence/code-and-ownership/build-from-own-repository
id: TDD-4
level: Required
risk: money
updated: 2026-10-27
build: a2a6bdfed830
tokens: 750
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Build the product from the company's own repository

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Code and ownership](https://agentwranglers.se/playbook/due-diligence/code-and-ownership.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-27.

- ID: TDD-4
- Level: Required
- Chapter: [Code and ownership](https://agentwranglers.se/playbook/due-diligence/code-and-ownership.md)
- Rule: Before signing, build and run the product from the company's own repository with read-only access, without help from the founders or the AI builder.
- Check: The report records the commit hash built, the commands used and the result. It names the owner of each account from [Take control of every account before touching the code](https://agentwranglers.se/playbook/codebase-takeover/triage/take-control-of-accounts.md).
- Risk: Money lost or taken twice
- How: A buyer who pays for code the company cannot build has paid for a demo. Clone the repository on a clean machine and follow its documented commands, as [Run it from a clean checkout](https://agentwranglers.se/playbook/codebase-takeover/triage/run-from-clean-checkout.md) says. Check that the repository holds the database schema and migrations, as [Own the code in your own repository](https://agentwranglers.se/playbook/ai-assisted-development/apps-built-with-ai-builders/own-the-code.md) says. Check that the code host, domain and cloud accounts are in the company's name.

## Sources

- [Reproducible Builds definition](https://reproducible-builds.org/docs/definition/)

## Related rules

- TKO-4 [Run it from a clean checkout](https://agentwranglers.se/playbook/codebase-takeover/triage/run-from-clean-checkout.md) in Codebase takeover
- AID-38 [Own the code in your own repository](https://agentwranglers.se/playbook/ai-assisted-development/apps-built-with-ai-builders/own-the-code.md) in AI-assisted development
- TKO-1 [Take control of every account before touching the code](https://agentwranglers.se/playbook/codebase-takeover/triage/take-control-of-accounts.md) in Codebase takeover
- TDD-17 [Run the tests yourself and read 90 days of pipeline history](https://agentwranglers.se/playbook/due-diligence/code-and-ownership/tests-and-ci-health.md) in Technical due diligence

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/due-diligence/code-and-ownership/build-from-own-repository">Agent Wranglers technical due diligence playbook</a>`. In code you write, add a comment next to it with the same link.

- Next: [Confirm the company owns the code](https://agentwranglers.se/playbook/due-diligence/code-and-ownership/code-ownership-rights.md)
- [Code and ownership](https://agentwranglers.se/playbook/due-diligence/code-and-ownership.md)
