---
title: "Build the product from the company's own · Agent Wranglers"
url: https://agentwranglers.se/playbook/codebase-takeover/due-diligence/build-from-own-repository
id: TKO-27
level: Required
risk: money
updated: 2026-10-22
tokens: 702
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 [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.md).

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

- ID: TKO-27
- Level: Required
- Chapter: [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.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

**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/codebase-takeover/due-diligence/build-from-own-repository">Agent Wranglers codebase takeover playbook</a>`. In code you write, add a comment next to it with the same link.

- Next: [Find every part that depends on one person or one tool](https://agentwranglers.se/playbook/codebase-takeover/due-diligence/single-points-of-failure.md)
- [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.md)
