R493 · Harness tips › Harness tips

Reorganizing a monorepo by feature so agents copy the right thing: 55 bugs and 145 merge conflicts

Read the original

repo-structure, lint-boundaries, agent-friendly-code, testing

Source: Takuya Matsuyama (creator of Inkdrop), How I fixed 55 bugs in a week by making my monorepo more agent-friendly, 2026-11-20 (devas.life). Surfaced by TLDR Dev 2026-12-02.

What he changed

Why it matters

The argument is that agents imitate whatever nearby code looks like, so the repository's layout is a prompt. Feature folders with a single public entry point give the agent a coherent example to copy, and lint-enforced import boundaries make the architecture checkable instead of advisory. One developer's experience, with no measurement of agent output before and after; the bug count comes from the testing discipline as much as from the reorganization.

Connections

See R493 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.