# AI and the Coase Theory of the Firm: What 199 Context Files Can't Carry

> By our own count, 5.9% of lines in 199 public AGENTS.md and CLAUDE.md files are tacit. Cheap context moves modular, easy-to-check work from contractors to agents; checking it and answering for it stay with staff.

**Author:** LAXIMA Team  
**Published:** 2026-11-25  
**Updated:** 2026-11-25  
**Reading time:** 17 min  
**Category:** industry insights  
**Tags:** theory of the firm, AI agents, AGENTS.md, CLAUDE.md, outsourcing, future of work, AI economics  
**Canonical URL:** https://laxima.tech/blog/coase-theory-of-the-firm-ai-context-files

---
AI hasn't broken the Coase theory of the firm. By our own count, made with a model, 5.9% of lines in 199 public AGENTS.md and CLAUDE.md files carry tacit knowledge. In our own onboarding test a preloaded AGENTS.md halved the cost of lookup questions, but the agent explained past decisions only from a memo written from the review threads. Modular, easy-to-check work is moving from contractors to agents the firm directs. Writing that memo, checking the work and answering for it stay with staff.

The argument we set out to test is our editor's, from seven years of hiring. Firms exist, Ronald Coase showed, because using the market costs something, and the costliest part is context: each new hire spent about a month and a half learning who owns what and where things live, so it paid to keep people who already carried it. An Uber driver gets the context with the order. If AI makes handing over context nearly free, the firm stops hiring labour as a person and starts calling it as a function, and, the editor bets, everyone will feel it by the end of 2027.

Half of that holds. Commands and conventions now load for about a cent, and contracted work is the first labour being swapped for agents. But the tacit layer barely transfers, and work leaving contractors goes to agents the firm directs, which by Coase's own test is insourcing. What holds a firm together now is the cost of checking the work and answering for it.

## Coase wrote about work you can't specify in advance, and expected cheaper coordination to grow firms

Coase's ["The Nature of the Firm"](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1468-0335.1937.tb00002.x) (Economica, 1937) names the costs of using the market: discovering prices, negotiating each contract, and, for labour, specifying a long-term service up front. The longer the contract, "the less possible, and indeed, the less desirable it is for the person purchasing to specify what the other contracting party is expected to do." Employment buys direction instead. The words "context" and "onboarding" don't appear; the onboarding cost fits Oliver Williamson's "relationship-specific investments in physical or human capital" better, as the [2009 Nobel committee](https://www.nobelprize.org/uploads/2018/06/advanced-economicsciences2009.pdf) put it. A context file lowers the cost of specifying work. Coase's [Nobel lecture](https://www.nobelprize.org/prizes/economic-sciences/1991/coase/lecture/) also lists inspections and settling disputes, and a file does nothing for either.

Coase also predicted that "the telephone and the telegraph which tend to reduce the cost of organising spatially will tend to increase the size of the firm", adding in a footnote that "most inventions will change both the costs of organising and the costs of using the price mechanism." AI is one more such invention, and the debate that started in late October 2026 splits on that footnote. Imas, Koh and Legg's ["Organizing Intelligence"](https://arxiv.org/abs/2611.05417) argue that better AI coordination "can break the Coasean ceiling on firm size". DeepMind's [companion essay](https://institute.deepmind.com/essays/the-economics-of-intelligence/) starts from our editor's premise, that a human handoff "compresses rich context into lossy summaries", and concludes firms get bigger. Richard Langlois [replied on 15 Nov 2026](https://organizationsandmarkets.substack.com/p/smoothing-the-handoffs) that if handoffs become near-lossless, "then those transactions can be handed off to the price system."

Nobody has measured which cost AI cuts more. We measured something smaller: how much of a codebase's context fits in the file meant to hand it over.

## A model labelled 199 public context files: 61% of lines are the kind a repo shows, 6% are tacit

![Stacked bar chart of AGENTS.md and CLAUDE.md lines: about 61% discoverable, 33% convention, 6% tacit](https://hfbnuyccaqnjpljtffvu.supabase.co/storage/v1/object/public/blog-images/coase-theory-of-the-firm-ai-context-files-line-split.jpg)

We gave Claude Haiku 5.5 three classes. **Discoverable**: what an agent could recover from the repo in minutes, such as layout and build commands. **Convention**: rules it couldn't reliably infer, such as naming, commit format and required checks. **Tacit**: who owns or decides what, what was tried and rejected, and the business reasons behind a decision.

On 25 Nov 2026 we pulled the top 100 GitHub code-search hits for a root-level AGENTS.md and for CLAUDE.md and had the model label every line, through Claude Code CLI 2.1.331 run headless. One file timed out, leaving 100 AGENTS.md and 99 CLAUDE.md files. This is GitHub's best-match ranking, not a random sample, and the classifier saw each file without its repository. Median sizes in our own sample: AGENTS.md 4,018 bytes, CLAUDE.md 5,204 bytes.

In our own run the classifier put 60.8% of content lines in discoverable, 33.3% in convention and 5.9% in tacit, and 113 of the 199 files have no tacit line at all. Four decision logs hold 536 of the 777 tacit lines in CLAUDE.md files; the one worth copying is [zw3rk/hyper-linux's](https://github.com/zw3rk/hyper-linux/blob/8048a96ba0abc7e2f548da684690bf415c99214e/CLAUDE.md), with its list of "Previous incorrect theories (now disproven)". Elsewhere tacit lines are rare and short, like "Only `SpicyMarinara` may promote the repository's `staging` branch into `main`" in [Marinara-Engine's AGENTS.md](https://github.com/Pasta-Devs/Marinara-Engine/blob/61edb47b1329abfcdf8fdb28f50a2d1c4ce56cc0/AGENTS.md).

The labels are a model's judgement: Sonnet 5.5 on 15 random AGENTS.md files gave a near-identical pooled split but agreed with Haiku on whether a file has any tacit line in only 10 of 15. The shape matches a [study of 2,303 context files](https://arxiv.org/abs/2511.12884) and the [ETH Zurich study of AGENTS.md](https://arxiv.org/abs/2602.11988), which found repository overviews unhelpful and non-standard rules well followed. And these are public files. A private AGENTS.md can name customers, owners and pricing rules no open-source repo would publish, so our own 5.9% describes what public files carry, not what a firm could write down. What it does show is that even where the tacit layer is public, in PR threads, maintainers rarely copy it into the file.

## In our onboarding test the file taught one rule, hid the CI gate, and never answered "why" on its own

We asked Claude Code (Sonnet 5.5) six new-hire questions about [PaloAltoNetworks/docusaurus-openapi-docs](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs) at commit 50b2608, which ships a 7,952-byte AGENTS.md and no CLAUDE.md: two discoverable (setup commands, package roles), two convention (required checks, changelog format) and two tacit (why the packages ship `src/types.d.ts`, and whether pretty-printing the generated MDX was tried before). Tools: Read, Grep, Glob and read-only git, no web. Five conditions: no AGENTS.md; AGENTS.md on disk; AGENTS.md preloaded into the system prompt; and the last two plus a 1,883-byte memo we wrote from the public PR #1258 and #648 threads. Two runs each: 59 of 60 finished, for $1.76.

For the on-disk conditions we added a CLAUDE.md that @-imported AGENTS.md and the memo, the setup we recommend at the end, but in this headless hosted environment it didn't load, which a probe confirmed. So "on disk" means the agent had to find the files itself, and preloading with `--append-system-prompt-file` stands in for an import that works. On a normal install Claude Code [loads CLAUDE.md and its imports at launch, and since v2.1.277 reads AGENTS.md directly when there is no CLAUDE.md](https://code.claude.com/docs/en/memory).

-   **Discoverable questions didn't need the file.** All 10 runs of each were right, including the two with no AGENTS.md. The changelog "convention" turned out to be code: `scripts/changelog.ts` holds the same emoji table.
    
-   **The file carried one rule the repo doesn't.** Docs- and comment-only changes are exempt from checks, a rule stated only in AGENTS.md: found 0/2 without the file, 8/8 with it.
    
-   **The agent trusted an incomplete file.** Its "Required Checks" lists `yarn lint` and `yarn test`. CI's `.github/workflows/validate.yaml` also runs a Prettier check, fails lint on any warning, builds, and runs Cypress. Preloaded, the agent repeated the file's list in one to three turns and never mentioned the CI gate (0/4); on disk 2/4 did, with no file 2/2. That is the review problem at the size of one question: the cheaper answer was wrong in a way the file's own checklist can't catch.
    
-   **"Why" questions failed without a memo.** 0/11 finished runs answered fully. Agents found the rename commit but not the reason or the review.
    
-   **A memo helps only if the agent reads it.** Preloaded, it gave 3 full answers out of 4. On disk, 2/2 on the MDX question and 0/4 on the rename: in the two traced runs the agent went straight to `git log` and never opened `TEAM_MEMORY.md`.
    

Part of the memo, so you can see what the tacit layer looks like on paper:

```markdown
## Why the packages ship `src/types.d.ts` instead of `src/types.ts`
- Downstream sites running `tsc` with `skipLibCheck` still got TS2307 errors from our `src/types.ts`.
  `skipLibCheck` only skips `.d.ts` files, so renaming to `.d.ts` makes those errors go away.
- First attempt: PR #1258. It only renamed the theme file by mistake and was closed. Replaced by PR #1281.
```

In our own runs, preloading AGENTS.md halved the cost of the four lookup questions: $0.017-0.019 and about two turns each, against $0.033-0.038 and 4.5 turns without it. On the checks question it got cheaper partly by stopping early. It did nothing for "why" questions ($0.040 either way); the preloaded memo cut them to $0.023.

So keep what our own classifier calls discoverable, as long as it is exact commands and one line per package rather than narrative overviews, and if you list required checks, list what CI actually runs. None of this contradicts [ETH's finding](https://arxiv.org/abs/2602.11988) that context files add over 20% to inference cost: they measured issue fixing, we measured Q&A with two runs per cell in one repo, so read our numbers as a direction, not an effect size.

## Writing the tacit layer down is the expensive part, and only insiders can do it

Practitioners write context files the way our test suggests. [pamelafox](https://news.ycombinator.com/item?id=47044313): "This is why I only add information to AGENTS.md when the agent has failed at a task." [deaux](https://news.ycombinator.com/item?id=47048090) names what's worth writing: "things that can't be inferred from the repo." We described the same loop in [turning agent failures into rules and regression tests](https://laxima.tech/blog/self-harness-for-ai-agents). Agent builders hit the gap from the other side. A consultant replacing contractors with agents found ["nobody had written down the actual standards the contractors were supposed to hit"](https://www.reddit.com/r/SaaS/comments/1ryxgky/i_replaced_3_parttime_contractors_with_ai_agents/), and Joshua Kappers, after an agent-led migration, [wrote](https://jkappers.me/writing/memo-agent-led-migration/): "None of that is in the code, so no agent could have worked it out."

Reading a context file is cheap; writing the tacit layer into it is not. Our own 1,883-byte memo needed someone who had read both PR threads, and grading the agent's "why" answers took the same threads. Inside a company, those threads are meetings and chat. A context file doesn't make the tacit layer free: it moves the cost of writing it down from the new hire to the people who already know it. One of our agents, cut off from the "why", tried `gh pr view 1281 --comments`, which our permission policy blocked. An agent can be connected to chat. It can't be connected to the meeting nobody wrote up.

## The first labour called as a function was already outside the firm

"Labour as a function" is an old forecast. [Malone, Yates and Benjamin](https://cacm.acm.org/research/electronic-markets-and-electronic-hierarchies/) predicted in 1987 "an overall shift toward proportionately more use of markets", yet the US independent-contractor share was [6.7% of employment in 1995](https://www.bls.gov/news.release/history/conemp_082595.txt) and [7.4% in July 2023](https://www.bls.gov/news.release/conemp.htm), with no reading since. Uber is a weaker example than it looks: Coase defines the firm by direction, the right of control that classification cases fight over, and the [UK Supreme Court ruled in 2021](https://www.supremecourt.uk/uploads/uksc_2019_0029_press_summary_573bbeb959.pdf) that Uber drivers are workers.

What AI is replacing first is contracted work. Anthropic's ["Working with AI"](https://www.anthropic.com/research/working-with-ai) (23 Nov 2026) interviewed people at 58 of its own customers, a vendor's self-reported sample: nine firms cut contracted modular work, much of it offshore, two-thirds reported hiring less, and only two saw a staff role fully eliminated. [Bricktop72](https://www.reddit.com/r/ExperiencedDevs/comments/1ts9e87/comment/ootgvs5/): "We've replaced a few offshore teams with a senior+AI with success." On a large freelancing platform, posts for automation-prone writing and coding work [fell 21% relative to manual-intensive jobs](https://pubsonline.informs.org/doi/10.1287/mnsc.2024.05420) within eight months of ChatGPT. It isn't one-way: five big Indian IT firms [added 13,918 people net](https://www.zeebiz.com/companies/news-it-q2-results-fy27-tcs-infosys-hcltech-wipro-tech-mahindra-who-led-in-revenue-profit-ai-guidance-hiring-404539) in the quarter to September 2026.

Now look at where that work goes. Tokens are bought on the market, but by Coase's test of direction the agent sits inside the firm: the firm decides what it does next and carries the review, while a contractor is paid for a stated deliverable. Replacing contractors with agents is insourcing, which is what Coase predicts when organising gets cheaper. Anthropic's interviewees also merged roles because AI made "context loss" at a handoff relatively more costly, and 20% of the AI-built software they described [replaced existing software, often from vendors](https://www.anthropic.com/research/working-with-ai). Firms can still shrink while doing it: a litigation partner at a 40-lawyer firm [plans a 2-5 lawyer group](https://www.reddit.com/r/LawFirm/comments/1xwprhx/ais_effect_on_traditional_model/).

## Cheap drafting moves the cost to review, and review needs someone with a name

Chen and Stratton's [Harvard job-market paper](https://fion.ac/jellyfish.pdf) (Jellyfish data, 655 firms, not peer reviewed) finds "AI substantially increases code output but has small effects on final software output and no detectable effect on employment." After firms adopt agents, submit-to-merge time rises 56.1% in the November version. Martin Seibert ran up to 15 coding agents [until 1 Nov 2026](https://us.seibert.group/blog/firstmate-15-ai-coding-agents-dark-factory): "By 16 September the fleet had put 50 decisions in front of me. 28 of them were still open." Then he "had lost the context completely" and switched them off.

This is the inspection and dispute cost from Coase's Nobel lecture, and it favours insiders, the people who know what "done" means in this company. Our preloaded agent's 0/4 on the CI gate is the same failure at the size of one question. We made the longer case in [AI-generated code is cheap, reliability isn't](https://laxima.tech/blog/ai-generated-code-is-cheap-reliability-isnt).

## Hire, contract or call an agent: what does each cost once you count the checking?

Prices are linked to primary sources; the arithmetic is our own.

<table class="blog-table" style="min-width: 100px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th class="blog-table-header" colspan="1" rowspan="1"><p></p></th><th class="blog-table-header" colspan="1" rowspan="1"><p>Hire a developer</p></th><th class="blog-table-header" colspan="1" rowspan="1"><p>Contract on Upwork</p></th><th class="blog-table-header" colspan="1" rowspan="1"><p>Agent with a context file</p></th></tr><tr><td class="blog-table-cell" colspan="1" rowspan="1"><p>Price of the labour</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p><a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://www.bls.gov/ooh/computer-and-information-technology/software-developers.htm">$135,980 median wage</a>; ~$194,000 loaded (our own arithmetic)</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p>Rate + <a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://support.upwork.com/hc/en-us/articles/4660220468499-What-is-the-Client-Marketplace-Fee">3-7.99% client fee</a> + <a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://support.upwork.com/hc/en-us/articles/211062538-Freelancer-Service-Fees">0-15% freelancer fee</a></p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p><a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://claude.com/pricing">$20-$200 a month per seat</a>; Ultra is 1.8% of the median wage (our own arithmetic)</p></td></tr><tr><td class="blog-table-cell" colspan="1" rowspan="1"><p>Handing over context</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p><a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://doi.org/10.1109/ms.2023.3291158">~19 weeks</a> to cruising speed at Google, before AI; our editor's month and a half is at most $17,000 in wages (our own arithmetic)</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p>No source we found measures it</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p>5,000-token file: $0.01 uncached, $0.0005 cached on <a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://platform.claude.com/docs/en/about-claude/pricing">Sonnet 5.5</a></p></td></tr><tr><td class="blog-table-cell" colspan="1" rowspan="1"><p>Checking the result</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p>Normal team review</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p>You, at hand-off; no source we found measures it</p></td><td class="blog-table-cell" colspan="1" rowspan="1"><p><a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://fion.ac/jellyfish.pdf">Submit-to-merge up 56.1%</a>; one owner had <a target="_blank" rel="noopener noreferrer nofollow" class="text-brand-red hover:underline" href="https://us.seibert.group/blog/firstmate-15-ai-coding-agents-dark-factory">28 of 50 decisions open</a>; our own preloaded agent missed the CI gate 0/4</p></td></tr></tbody></table>

Loaded cost is $135,980 / 0.70, the private-industry [wage share of compensation](https://www.bls.gov/news.release/ecec.nr0.htm); the month and a half is $135,980 / 52 x 6.5 in wages, an upper bound, since a new hire produces something while ramping. DX reports faster onboarding among its AI-using customers ([49 vs 91 days to a 10th PR](https://newsletter.getdx.com/p/ai-cuts-developer-onboarding-time-in-half)), but that is a vendor measuring self-selected users on a different milestone, so it can't be subtracted from Google's figure.

Size your own file with the [context window fit tool](https://laxima.tech/tools/context-window-fit). It estimates Claude tokens at 3.5 characters each; the one file we measured came out at about 2.65 (2,969 tokens for 7,878 characters), so the tool would have undercounted that file by about a quarter. If the exact cost matters, measure your own. For one development job in detail, see [Claude Code vs hiring a developer](https://laxima.tech/blog/claude-code-vs-hiring-a-developer).

## Work moves to agents when it is cheap to check, and stays with staff when someone must sign for it

Offshore development, support, back office and freelance writing go first: modular jobs with little context, cheap to check, and mostly bought from outside already. They move from contractors to agents the firm directs, not out to the market. Work stays, or comes back, when it carries knowledge nobody wrote down, needs a named reviewer, or teaches the firm something it has to keep. NTT DATA's notes from the Academy of Management meeting name that last cost: ["Outsourcing AI-enabled work may also mean outsourcing the learning generated by that work."](https://www.nttdata-strategy.com/knowledge/reports/2026/261027-en/) And only the people who hold the tacit layer can write the memo that lets an agent use it.

Law moves the boundary too, which Coase allowed for: the EU Platform Work Directive's presumption of employment is due by 2 Dec 2026, yet [no member state had fully transposed it by 3 Nov](https://knowledge.dlapiper.com/dlapiperknowledge/globalemploymentlatestdevelopments/2026/updated-tracker-for-the-european-platform-work-directive).

The risk sits with juniors. In Brynjolfsson, Chandar and Chen's ["Canaries in the Coal Mine"](https://digitaleconomy.stanford.edu/app/uploads/2026/08/Canaries_August2026.pdf) (ADP payroll data through June 2026), employment of 22-25-year-olds in AI-exposed jobs is 19% below trend, mostly through less hiring. Our read: the slow onboarding a context file replaces was also where juniors picked up the tacit layer.

As for "everyone will feel it by the end of 2027": no source we found puts a date on any of this, and outside entry-level hiring the studies above find no big employment effect yet. We'd change our view if the next BLS supplement shows the contractor share rising, if a study shows a document carrying tacit knowledge to an agent, or if review costs fall sharply.

Until then: write the context file, add a line after each failure, list every check CI runs or none, and put the "why" in a short decisions memo imported with an `@docs/decisions.md` line from the file your agent loads. In Claude Code that is CLAUDE.md, or AGENTS.md when the repo has no CLAUDE.md; adding a CLAUDE.md that doesn't import AGENTS.md stops Claude Code reading AGENTS.md. Then ask the agent to quote a line from the memo to check the import loaded: in our hosted test it silently didn't. Imports load every session, so keep the memo short.

_Cover image: screenshot of the test repo's AGENTS.md on GitHub._

### Did AI break Coase's theory of the firm?

No. Coase's 1937 theory says firms exist because using the market has costs, and that an invention cutting both internal and market costs can grow or shrink firms, depending on which falls more. AI changes those inputs, not the rule. So far it mostly moves contracted work to agents the firm directs, which is insourcing, not outsourcing.

### What should go in an AGENTS.md or CLAUDE.md file, and what should stay out?

Put in exact commands, rules the repo doesn't encode (such as exemptions) and every check CI enforces, adding a line after each failure. Leave out narrative overviews. Keep past decisions and their reasons in a short memo the file imports: in LAXIMA's one-repo test, Claude Code fully answered no 'why' question in 11 runs without one.

### Will AI agents replace contractors or full-time employees first?

So far, contractors. In Anthropic's interviews at 58 of its own customers, nine companies cut contracted modular work, two-thirds reported hiring less, and only two fully eliminated a staff role. The sample is the vendor's own, and five big Indian IT firms still added 13,918 people net in the quarter to September 2026.

### Does a context file make an AI coding agent cheaper or more expensive to run?

It depends on the task. On ETH Zurich's issue-fixing benchmark, context files added over 20% to inference cost. In LAXIMA's one-repo test, a preloaded AGENTS.md roughly halved the cost of lookup questions, partly by ending the search early, and did nothing for questions about past decisions. Loading a 5,000-token file costs about $0.01 uncached on Sonnet 5.5.

### What is the 'Coasean ceiling' in the DeepMind paper on AI and firm size?

It is the limit on how large a firm can grow, because coordinating more people gets harder with size. In 'Organizing Intelligence' (arXiv 2611.05417, with a companion Google DeepMind essay), Imas, Koh and Legg argue better AI coordination can break that ceiling. Richard Langlois replies that their model ignores AI's effect on market costs.
