<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Predrag Gajic's Blog]]></title><description><![CDATA[Predrag Gajic's Blog]]></description><link>https://pedrogajic.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 13:02:45 GMT</lastBuildDate><atom:link href="https://pedrogajic.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Freelancers and AI code licensing: which of your repos actually qualify (most client work doesn't)]]></title><description><![CDATA[Disclosure: this post contains referral links – Pangea pays me a commission on top, it doesn't reduce your payout. This post was written with the…]]></description><link>https://pedrogajic.hashnode.dev/freelancers-and-ai-code-licensing-which-of-your-repos-actually-qualify-most-client-work-doesn-t</link><guid isPermaLink="true">https://pedrogajic.hashnode.dev/freelancers-and-ai-code-licensing-which-of-your-repos-actually-qualify-most-client-work-doesn-t</guid><category><![CDATA[Freelancing]]></category><dc:creator><![CDATA[Predrag Pedro Gajic]]></dc:creator><pubDate>Wed, 25 Nov 2026 06:56:28 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p><strong>Disclosure:</strong> this post contains referral links – Pangea pays me a commission on top, it doesn't reduce your payout. This post was written with the assistance of an AI writing tool.</p>
</blockquote>
<p>Freelancers get a confusing message about "selling your code to AI labs". Most of what a freelancer writes belongs to clients, so the honest answer is: <strong>most of your work does not qualify – but some of it might.</strong> This post is a quick sorting exercise.</p>
<h2>How the licensing works (30 seconds)</h2>
<p>AI labs license private, human-written code together with its git history to train and evaluate coding models. Pangea brokers this under a <strong>non-exclusive licence</strong> – you keep ownership and keep using the code. You earn based on how much eligible code you submit – the more you submit, the more you can earn. Earnings depend on buyer demand and <strong>aren't guaranteed</strong> (see <a href="https://pangea.ai/code-licensing/companies">Pangea's page</a>); you get a per-repo estimate after connecting your Git host read-only. In Pangea's words: "Once the buyer's payment is received, you are paid within 15 days to your nominated payout account."</p>
<h2>Sort your repos into three piles</h2>
<h3>Pile A – probably yours (candidates)</h3>
<ul>
<li><strong>Your own side projects and products</strong> that stayed private – the SaaS that never launched, the mobile app with 40 users, the browser extension you sold for a while.</li>
<li><strong>Your own internal tooling</strong> – invoicing scripts, deploy pipelines, scrapers for your own use, your personal "starter kit" (if it was never published publicly).</li>
<li><strong>Code where your contract says you keep the IP</strong> and the client only got a licence. Rare, but it happens – read the contract.</li>
</ul>
<h3>Pile B – client deliverables: out</h3>
<ul>
<li><strong>Client deliverables.</strong> Under most freelance contracts (and work-for-hire rules) the client owns what you built for them, and Pangea's page is explicit: "Do not submit client-owned, previously public or forked code." Don't rely on "they went out of business" either; the IP still belongs to someone.</li>
</ul>
<h3>Pile C – never</h3>
<ul>
<li>Anything that was <strong>ever public</strong> (including old public GitHub repos you later made private).</li>
<li><strong>Forks</strong> of open-source projects.</li>
<li>Code under <strong>NDA</strong> or containing confidential data or third-party rights.</li>
</ul>
<h2>What makes a Pile A repo valuable</h2>
<ol>
<li><strong>Age (my tip, not a Pangea rule):</strong> older code is likely more interesting, since newer code is more likely to be AI-generated.</li>
<li><strong>History:</strong> a long, real commit history adds value. Don't squash or rewrite it before submitting – Pangea scrubs secrets and personal data on its own copy and pseudonymises contributors, and your original repo isn't modified.</li>
<li><strong>Size and substance:</strong> a real product with a backend, tests and infra counts for much more than a weekend toy.</li>
</ol>
<h2>The realistic outcome</h2>
<p>For a typical freelancer, Pile A is a handful of repos. That may still be worth a free estimate – it takes a read-only connection and a few minutes – but treat any number as an estimate until a lab actually licenses the code. You can read the full agreement before signing.</p>
<h2>Links</h2>
<ul>
<li>Individuals: <a href="https://pangea.ai/code-licensing/companies?id=1340">https://pangea.ai/code-licensing/companies?id=1340</a></li>
<li>If you run a small agency: <a href="https://pangea.ai/code-licensing/agency?id=1340">https://pangea.ai/code-licensing/agency?id=1340</a></li>
<li>Longer step-by-step guide (GitHub): <a href="https://github.com/PedroGajic/license-your-private-code">https://github.com/PedroGajic/license-your-private-code</a></li>
</ul>
<p><em>Referral links – Pangea pays me a commission on top, it doesn't reduce your payout. Not legal advice; when a contract is unclear, ask the client or a lawyer.</em></p>
]]></content:encoded></item><item><title><![CDATA[What AI labs pay for private code in 2026 – and a 30-minute pre-flight before you submit a repo]]></title><description><![CDATA[Disclosure: this post contains my referral links for Pangea.ai. If you license code through them, Pangea pays me a referral fee on top – it is not deducted…]]></description><link>https://pedrogajic.hashnode.dev/what-ai-labs-pay-for-private-code-in-2026-and-a-30-minute-pre-flight-before-you-submit-a-repo</link><guid isPermaLink="true">https://pedrogajic.hashnode.dev/what-ai-labs-pay-for-private-code-in-2026-and-a-30-minute-pre-flight-before-you-submit-a-repo</guid><category><![CDATA[Git]]></category><category><![CDATA[Security]]></category><dc:creator><![CDATA[Predrag Pedro Gajic]]></dc:creator><pubDate>Tue, 24 Nov 2026 14:12:24 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p><strong>Disclosure:</strong> this post contains my referral links for <a href="http://Pangea.ai">Pangea.ai</a>. If you license code through them, Pangea pays me a referral fee on top – it is not deducted from your share. This post was written with the assistance of an AI writing tool.</p>
</blockquote>
<p>I wrote earlier posts about licensing old <strong>private</strong> code to AI labs (how it works, and an honest eligibility checklist). The most common follow-up question was practical: <em>"OK, I have a few old private repos – what do I actually check before I submit anything?"</em></p>
<p>This is that pre-flight checklist. It takes about 30 minutes per repo and it will tell you whether a repo is worth submitting at all.</p>
<h2>1. Ownership: can you license this code?</h2>
<p>This is the step that matters most, because the ownership warranty in these agreements is serious – if you submit code you don't have the rights to, you carry the risk.</p>
<p>Ask yourself, for each repo:</p>
<ul>
<li><strong>Did I (or my company) write it and do we own it?</strong> Side projects, a startup that wound down, internal tools, in-house R&amp;D – good candidates.</li>
<li><strong>Was it written for a client?</strong> Client deliverables are out – Pangea: "Do not submit client-owned, previously public or forked code."</li>
<li><strong>Was it written while employed somewhere?</strong> Check your employment contract's IP clause. Many contracts assign everything written on company time or equipment to the employer.</li>
<li><strong>Co-founders / ex-partners?</strong> If the code belongs to a company with several owners, get agreement in writing.</li>
<li><strong>Third-party code inside?</strong> Vendored libraries and copied snippets don't belong to you and don't count toward value anyway.</li>
</ul>
<p>If any answer is unclear, park the repo. Don't guess.</p>
<h2>2. Has it <em>ever</em> been public?</h2>
<p>Labs want code they have never seen. Pangea's rules exclude code that is public <strong>or was public at any point</strong>:</p>
<ul>
<li>Was the repo ever public on GitHub/GitLab, even briefly?</li>
<li>Is there an Internet Archive capture of it?</li>
<li>Was any part of it published as an npm / PyPI package?</li>
<li>Is it a fork, or a renamed copy of somebody else's project?</li>
</ul>
<p>A public starter template is fine as a base if most of the code and the commits are yours. A public repo you later made private is not.</p>
<h2>3. When was it written?</h2>
<p>My tip (not a Pangea rule): older, human-written code is likely the best fit, since labs increasingly avoid AI-generated code. Be ready to explain how newer repos were built.</p>
<p>Quick check:</p>
<pre><code class="language-bash">git log --reverse --format="%ad %an" --date=short | head -5   # first commits
git log --format="%ad" --date=short | cut -c1-4 | sort | uniq -c  # commits per year
</code></pre>
<h2>4. Is the git history intact?</h2>
<p>Full history is a big part of the value – the indicative rate for history is separate from source (see below). A repo with years of commits from several developers is much more useful than a single "initial commit" dump.</p>
<ul>
<li>Don't squash, rebase-flatten or re-upload the repo as a zip.</li>
<li>Connect it directly from GitHub, GitLab or Bitbucket so history, PRs, reviews and issues stay attached.</li>
<li>If you have the history only locally, push it to a <strong>private</strong> remote first.</li>
</ul>
<pre><code class="language-bash">git rev-list --count HEAD          # number of commits
git shortlog -sn | head            # contributors
</code></pre>
<h2>5. Is there enough real source code?</h2>
<p>What does <strong>not</strong> count: generated files, vendored dependencies, build output, binaries, data dumps, minified bundles. What labs like: real products – SaaS backends, internal tools, full applications, games, legacy systems. Bigger and more complete is better. WordPress sites/themes/plugins are declined.</p>
<p>Pangea/pre.dev publish a token counter that runs locally (the code is downloaded to your machine and nothing is uploaded). Read the script before running it, as you would with anything you download:</p>
<pre><code class="language-bash">curl -fsSLO https://api.pre.dev/api/code-licensing/estimate.mjs
node estimate.mjs /path/to/repo
</code></pre>
<h2>6. Secrets and personal data</h2>
<p>Pangea says secrets and personal data are stripped from the review copy (code and history) before any buyer sees it, and your original repo isn't touched. Still, do your own pass – it's good hygiene anyway:</p>
<pre><code class="language-bash"># scan the whole history for secrets
gitleaks detect --source . --log-opts="--all"
</code></pre>
<p>If you find live keys: <strong>rotate them</strong> regardless of what you decide about licensing.</p>
<h2>7. The money, honestly</h2>
<ul>
<li>You earn based on how much eligible code you submit – the more you submit, the more you can earn. Earnings depend on buyer demand and aren't guaranteed – see <a href="https://pangea.ai/code-licensing/companies">Pangea's page</a>. The real per-repo estimate appears after you connect Git, and the agreement sets the terms.</li>
<li>The licence is <strong>non-exclusive</strong>: you keep ownership and can keep using the code; the same repo can be licensed again if there's demand.</li>
<li><strong>Income is not guaranteed.</strong> Pangea: "licensing is subject to demand rather than guaranteed, but normally between 2 and 16 weeks."</li>
<li>When a deal happens, owners are <strong>paid within 15 days after the buyer pays</strong>.</li>
<li>No fee to join; you can review the agreement (ideally with a lawyer) before signing, and nothing goes to labs until you sign.</li>
</ul>
<h2>8. The 30-minute pre-flight, as a table</h2>
<table>
<thead>
<tr>
<th>Check</th>
<th>Pass if…</th>
</tr>
</thead>
<tbody><tr>
<td>Ownership</td>
<td>You or your company own it; no client-owned code; employment IP clause checked</td>
</tr>
<tr>
<td>Never public</td>
<td>Never public on any host, no archive capture, no published package, not a fork</td>
</tr>
<tr>
<td>Age</td>
<td>My tip: older, human-written code; be ready to explain how newer code was written</td>
</tr>
<tr>
<td>History</td>
<td>Full history on a private GitHub/GitLab/Bitbucket remote</td>
</tr>
<tr>
<td>Substance</td>
<td>Real application code, not mostly vendored/generated/data</td>
</tr>
<tr>
<td>Hygiene</td>
<td>Secrets scan done, live keys rotated</td>
</tr>
</tbody></table>
<p>If a repo passes all six, it's worth getting an estimate.</p>
<h2>Links</h2>
<ul>
<li>Individuals and companies: <a href="https://pangea.ai/code-licensing/companies?id=1340">https://pangea.ai/code-licensing/companies?id=1340</a></li>
<li>Software agencies (own R&amp;D / internal tools only, never client deliverables): <a href="https://pangea.ai/code-licensing/agency?id=1340">https://pangea.ai/code-licensing/agency?id=1340</a></li>
<li>Longer guide on GitHub: <a href="https://github.com/PedroGajic/license-your-private-code">https://github.com/PedroGajic/license-your-private-code</a></li>
</ul>
<blockquote>
<p><strong>Disclosure (again):</strong> these are referral links – Pangea pays me a referral fee. It doesn't change what you're paid. I'm not a lawyer; check the agreement and your contracts yourself. Questions welcome in the comments.</p>
</blockquote>
]]></content:encoded></item><item><title><![CDATA[Before you license your old code to AI labs: an honest checklist for developers and agencies]]></title><description><![CDATA[Disclosure: I'm a Pangea.ai referral partner. The links at the end are referral links; if you license code through them, Pangea pays me a commission on top…]]></description><link>https://pedrogajic.hashnode.dev/before-you-license-your-old-code-to-ai-labs-an-honest-checklist-for-developers-and-agencies</link><guid isPermaLink="true">https://pedrogajic.hashnode.dev/before-you-license-your-old-code-to-ai-labs-an-honest-checklist-for-developers-and-agencies</guid><category><![CDATA[AI]]></category><category><![CDATA[programming]]></category><category><![CDATA[Career]]></category><category><![CDATA[side project]]></category><dc:creator><![CDATA[Predrag Pedro Gajic]]></dc:creator><pubDate>Mon, 23 Nov 2026 12:00:09 GMT</pubDate><content:encoded><![CDATA[<p><strong>Disclosure:</strong> I'm a <a href="http://Pangea.ai">Pangea.ai</a> referral partner. The links at the end are referral links; if you license code through them, Pangea pays me a commission on top of your payout, not out of it. Nothing here is a promise of income. This post was written with the assistance of an AI writing tool.</p>
<p>AI labs now license real-world private code to train and evaluate coding models. This is the checklist I wish I'd had before sending it to people: what qualifies, what doesn't, and what to expect. Short version: only private code you own, ideally written before 2025, and no income is guaranteed.</p>
<h2>Why labs want this code</h2>
<p>Coding models are trained and evaluated on real production code, <em>and on the git history behind it</em>: how features shipped, how bugs got fixed. Labs have become strict about AI-written code, so human-written code with a long commit history is what they're after.</p>
<h2>How the licence works</h2>
<ul>
<li><strong>Non-exclusive:</strong> you keep ownership and keep using, modifying and shipping the code. The same repo can be licensed more than once; how often depends on demand.</li>
<li><strong>Read-only access:</strong> you connect GitHub, GitLab or Bitbucket and pick individual repos.</li>
<li><strong>Scrubbing:</strong> secrets and personal data are stripped from the review copy, in both code and history, before any buyer sees it. Your repo is untouched.</li>
</ul>
<h2>Eligibility checklist</h2>
<ul>
<li>✅ Private and <strong>never</strong> public (an old Internet Archive capture or an npm/PyPI release counts as public)</li>
<li>✅ Written by people. My tip (not a Pangea rule): older, human-written code is likely the strongest fit; be ready to explain how newer code was built.</li>
<li>✅ Your own work, or code you hold full rights to license</li>
<li>✅ Real products (SaaS, backends, internal tools, full apps) with <strong>full git history</strong> connected directly; a flattened copy loses most of the value</li>
<li>❌ Client-owned code (Pangea: "Do not submit client-owned, previously public or forked code")</li>
<li>❌ Forks, renamed copies, duplicates, or thin wrappers around public templates</li>
<li>❌ WordPress sites, themes and plugins</li>
<li>❌ Data dumps, generated output, or repos that are mostly vendored code</li>
</ul>
<h2>For agencies specifically</h2>
<p>Most agency code belongs to clients, and that stays out (Pangea's agency page: "Client work, NDAs, and confidential data stay out of it."). What usually qualifies is what you own outright: internal tools, accelerators and boilerplates you built yourself, R&amp;D, and retired in-house products. Pangea tells partners there's current demand for legacy production code (COBOL, Fortran, JCL), Kotlin, TypeScript/React/Next.js and playable game projects. That's their statement, not a guarantee.</p>
<h2>The money, honestly</h2>
<ul>
<li>You earn based on how much eligible code you submit – the more you submit, the more you can earn. Earnings depend on buyer demand and aren't guaranteed – see <a href="https://pangea.ai/code-licensing/companies">Pangea's page</a>.</li>
<li>Your real estimate comes from connecting Git. Pangea also publishes a counter you can run locally to check token counts.</li>
<li>Pangea: preparation takes "from a few hours to four weeks"; "licensing is subject to demand rather than guaranteed, but normally between 2 and 16 weeks."</li>
<li>Pangea: "Once the buyer's payment is received, you are paid within 15 days to your nominated payout account."</li>
</ul>
<h2>Responsibilities and exits</h2>
<ul>
<li>You warrant that you own the code, and that warranty is <strong>uncapped</strong>. If it's wrong, you may have to return payments and cover claims. Only submit what you're sure about.</li>
<li>You can withdraw a repo any time before it goes to labs. Afterwards, you can opt out of future deals with 30 days' notice; completed licences stay valid.</li>
<li>You get the full agreement to review (ideally with a lawyer) before signing.</li>
</ul>
<h2>Links</h2>
<ul>
<li>Individuals / companies: <a href="https://pangea.ai/code-licensing/companies?id=1340">https://pangea.ai/code-licensing/companies?id=1340</a></li>
<li>Agencies: <a href="https://pangea.ai/code-licensing/agency?id=1340">https://pangea.ai/code-licensing/agency?id=1340</a></li>
</ul>
<p><em>Disclosure again: these are referral links. Pangea pays my commission on top; it doesn't reduce your share. Questions welcome in the comments.</em></p>
]]></content:encoded></item></channel></rss>