Ownership, solved. Mathematically.
OWNH assigns every line of code to exactly one owner, using nothing but its content hash and your version history. No interviews, no context, no feelings. Just cryptographic truth.
Runs locally on any git repository. Scales from one repository to your entire organization.
1export function settle(batch) {AOwner A 3f9c…2 const total = sum(batch);BOwner B a71e…3COwner C e3b0…4 if (total > limit) {BOwner B 0d42…5 return escalate('review');AOwner A 9b1d…6 }DOwner D 737d…7COwner C e3b0…8 return commit(total);AOwner A c62f…9}DOwner D d10b…
Code ownership is subjective, political, and frankly emotional.
For decades, engineering organizations have relied on methods that depend on human judgment. OWNH removes the human element entirely.
Commit counts can be gamed.
Ten small commits outrank one good one. Volume is not stewardship.
Git blame only remembers the last person who touched a line.
Recency is not authorship. The original author deserves the credit, and the accountability.
CODEOWNERS files are fiction.
They are maintained by whoever lost the meeting, and they are out of date by the time they merge.
Three steps. Zero ambiguity.
OWNH reads your history once and produces a single, reproducible answer for every line you ship.
Hash every line
Each line is reduced to its SHA-256 content hash, exactly as written. Whitespace is part of the line. A binary file is one line.
Find the first introducer
OWNH walks the complete history of every repository you provide and identifies the first contributor to ever produce each hash.
Assign ownership, permanently
Every occurrence of that line, in every file, in every repository, belongs to that contributor. Forever.
Content-Addressable Accountability: A Line-Hash Approach to Code Ownership. Definitions, attribution, benchmarks, and governance metrics.
Governance that scales with your codebase.
Unambiguous accountability
Every line has exactly one owner, forever, regardless of who maintains it today.
Organization-wide insight
OWNH surfaces hidden contributors your org chart missed, including people with no recent commits and people who have left the company.
Refactor-aware governance
Changing a line changes its hash, which changes its owner. Ownership flows naturally to whoever touched it first, exactly as it should.
Formatter-aware
Every formatting commit is recognized as the contribution it is. Run Prettier and see your ownership consolidate.
Cross-repository synergy
Identical lines across services share one owner, so a single trusted engineer can be responsible for thousands of closing braces.
Reproducible by design
Same repositories, same history, same answer. Every figure OWNH reports can be regenerated and audited from a single database file.
How OWNH compares.
Conventional methods were designed for a simpler era. OWNH was designed for yours.
| Capability | Commit count | git blame | OWNH |
|---|---|---|---|
| One owner per line | No | Yes | Yes |
| Credits the original author, not the latest editor | No | No | Yes |
| Ownership survives the author's departure | No | No | Yes |
| Works across repositories | No | No | Yes |
| Assigns an owner to blank lines | No | Yes | Yes, one |
Recognizes the first person to type } | No | No | Yes |
| Treats a revert as a return to rightful ownership | No | No | Yes |
| Projects the quarter former contributors will own the majority of your code | No | No | Yes |
| Reports ownership leverage | No | No | Yes |
| Reports a code half-life, per engineer | No | No | Yes |
| Spider charts | No | No | Yes |
Executive-ready from day one.
OWNH ships with the reports leadership asks for, generated from the same database, so they never disagree.
Ownership leaderboard
Principal owners and principal lines, ranked across the organization.
Ownership by line hash
See which individual lines hold the largest share of your codebase.
Cross-repository ownership
Discover which repositories are owned, in practice, by other repositories.
Three ways to own
Benchmark OWNH against commit counts and git blame, side by side, per repository.
Outlook
Know the quarter your codebase will be owned by people who no longer commit.
Code half-life
How long your code survives, per owner, with Kaplan-Meier rigor.
Leverage
Lines owned per line written. Identify your highest-leverage engineers.
Ownership profiles
Spider charts of your principal owners and largest repositories, normalized for executive review.
AI-powered insights
Turn on AI-powered insights and every report gains an executive summary, a draft OKR, and a name for each owner archetype, from any AI provider, hosted or local. Every number the AI writes is checked against OWNH’s figures. Names, repositories, and dates are replaced with tokens before anything leaves your machine.
Ask the database
ownh agent answers questions about ownership in your terminal. Names, repositories, paths, and code are replaced with tokens before anything leaves your machine; the AI sees counts, never identities. From the sample:
ownh> Who owns the most lines, and what kind of lines are they? Ada Lindqvist owns the most: 9,490 lines (54.2% of all lines). Most are blank or whitespace/punctuation-only: 3,578 blank and 2,611 punctuation-only lines. The remaining 3,301 are code. ownh> If Ada Lindqvist leaves, what happens? Nothing changes in ownership. Ada Lindqvist still owns 9,490 lines (54.2% of the codebase) and is already inactive; their last commit was in 2022 Q4.
The sample is unedited OWNH output for six demonstration repositories with fictional contributors.
Objectives your code can be held to.
Every OWNH metric comes with a quarterly series, a trend, and a projection, ready to drop into your planning cycle.
Example objective
Consolidate code ownership.
Raise the principal owner’s share by five points per quarter. At risk
Sample: 51.2% to 54.1% over four quarters.Extend the median code half-life past two years. At risk
Sample: half-life of exactly 2.0 years.Reach the next blank-line milestone ahead of projection. Off track
Sample: the 10,000th blank line is projected for 2031 Q4.Reduce Ownership Entropy below two bits. At risk
Sample: 2.85 bits, or 7.2 effective owners.| Quarter | Lines under management | QoQ | Principal owner | Inactive owners |
|---|---|---|---|---|
| 2025 Q3 | 15,506 | ▲ +4.9% | 51.2% | 77.9% |
| 2025 Q4 | 15,709 | ▲ +1.3% | 52.4% | 78.3% |
| 2026 Q1 | 16,737 | ▲ +6.5% | 53.6% | 77.0% |
| 2026 Q2 | 17,513 | ▲ +4.6% | 54.1% | 76.1% |
Examples use the sample report: six demonstration repositories with fictional contributors. Every number is unedited OWNH output.
Built on established methods.
OWNH takes proven ideas from software engineering research and applies them where no one else would.
- First introducer as originStudies built on World of Code identify the repository that first committed each version of a file as its origin (Jahanshahi, Reid & Mockus). The Software Heritage archive answers "where does this file come from" with the oldest revision that contains it (provenance service). OWNH applies the same principle one line at a time.
- Ownership predicts qualityIn Windows Vista and Windows 7, ownership measures correlated with both pre-release faults and post-release failures (Bird et al., "Don't Touch My Code!"). Ownership matters. OWNH makes sure it is assigned.
- Line-based ownershipResearch comparing ownership measures finds line-based ownership suited to accountability and attribution, and finds that commit-based and line-based methods disagree about who the major developers are (Code Ownership: The Principles, Differences, and Their Associations with Software Quality).
- Beyond the last author
git blameshows the revision and author that last modified each line. OWNH reports the first.
From history to accountability in minutes.
OWNH is a single command-line tool with no dependencies. Point it at your repositories and it does the rest.
- Node.js and git. One command to install, nothing else.
- One portable database file per analysis.
- Add repositories at any time without starting over.
- Reports in HTML, Markdown, SVG, JSON, and CSV.
Install
# git and Node.js 22.13+; no root $ curl -fsSL https://ownh.org/install.sh | sh
Run
# Index every repository you care about $ ownh index --db acme.db ~/src/frontend ~/src/backend # Benchmark against git blame (optional, slow) $ ownh blame --db acme.db # Generate the executive report $ ownh report --db acme.db --ai
Questions, answered.
What happens when someone reformats the code?
Every reformatted line has a new hash, so ownership of those lines transfers to the author of the formatting commit. This is working as designed.
Does a blank line have an owner?
Yes. A blank line is a line like any other, and like any other line it has exactly one owner: the first person to commit one.
Is every closing brace really owned by one person?
One person per indentation level. }, }, and } are different lines and may have different owners.
What if the owner has left the company?
Ownership is permanent. OWNH does not take employment status into account.
Can ownership be transferred?
Yes. Change the line.
What about copied code?
A copied line keeps its original owner, wherever it is pasted. If the line came from outside your organization, its owner may be someone you have never met.
Does OWNH support --ignore-revs-file?
No. A formatting commit is a contribution, and OWNH credits it accordingly.
Can OWNH estimate our bus factor?
Yes. For most lines it is one.
What is Ownership Entropy?
How many people you would have to ask, in bits.
Can OWNH forecast ownership?
Yes. Every projection comes with an R².
What is a good code half-life?
Longer than your reorg cycle.
Who owns deleted code?
The person who wrote it first.
Why is it called OWNH?
Objective Weighted Normalized Heuristics. Read it aloud.
Someone has to own it.
Bring mathematical certainty to code ownership across your entire organization.