Deep Dive · Agent Workflow

The Home Repo Pattern: One Repo to Point at All the Others

When your organisation has thirty repositories, skills and steering files get copied into each one and drift. Matt Pocock's fix is almost embarrassingly simple: keep one repo that holds the skills, settings and tooling, and always run the agent from there, letting it reach the other repos by path. What he leaves out is where the blast radius goes.

The Home Repo Pattern — video thumbnail
Video: Matt Pocock 8:53 12 November 2026
multi-repo skills AGENTS.md worktrees

🧩 The multi-repo problem 0:27

Start with the shape almost every organisation has: a storefront, a payments API, an admin dashboard, and twenty more repos nobody touches for months. Working in one is easy. Working in two is also easy — the agent can operate in multiple directories and open a pull request in each.

The real problemWhy it hurts
Skills, steering files and tooling are per-repoCopied into each repo, then they drift out of sync across thirty of them
They must be present in every sessionNot just in the repo you happen to start in
Nobody wants to maintain thirty copiesSo people stop updating them, or copy a stale set
This is the same drift problem as duplicated CI config or repeated lint rules, and it has the same cause: a shared resource stored inside each consumer. The pattern that fixes it is not new — keep one canonical source and reference it — but applying it to agent context is new enough to be worth writing down.

🚫 Three bad options 1:28

OptionWhy it fails
Duplicate into every repoSync burden grows with repo count; drift is guaranteed
Put it in the user's home directoryInvisible to the team, so it never gets updated — and it conflates personal preference with team standard
Do nothingEveryone's agent is a little different, and nobody knows which baseline is current
The distinction he draws between the two levels is the useful part, not the solution: team configuration belongs in version control where it can be reviewed and updated; personal configuration belongs in the home directory where the individual can diverge. The failure of the home-directory option is not technical, it is organisational — invisible configs rot.

🏠 The pattern 2:20

One repository — the home repo — contains the skills, the steering file, a wiki and custom tooling. You always start the agent there, and from there it reaches into the other repositories by path.

ComponentLives in the home repo as
Private skills.claude/skills/ — available in every session he starts
Spin-up, editor and tool settingssettings.json, versioned, so a change reaches everyone at once
NavigationCLAUDE.md or AGENTS.md with pointers to the repos he touches
Personal wikiA directory of markdown files, queried by the agent
Custom toolingScripts that talk to Gmail, Slack, Discord, YouTube, GitHub, calendars, and his own business systems
Because he always runs from the same directory, everything in that directory is in context by default — which is exactly the property that was missing when skills were copied around. The pattern is less "a clever repo layout" than "choose one working directory and make it the canonical one".

🔍 Inside his home repo 2:53

The tour is short but specific, and two details stand out.

DetailWhy it matters
Skills he explicitly does not want to publishThey are "extremely good and extremely sensitive to my business" — so the home repo is not necessarily public, and may not be shareable with a team
Navigation as plain paths in the steering fileNo registry, no manifest, no tooling — a list of directories
Settings committed rather than localVersioned configuration that propagates immediately
That first detail changes who can use this pattern. A team home repo must exclude personal business skills; a personal home repo can accumulate anything. Mixing the two — as his does — works for a one-person business and would be a security and confidentiality problem inside a company. Decide which of the two you are building before you start moving files.

⚙️ Zero-setup cloning and worktrees 4:16

The mechanic that makes it feel effortless: the steering file contains paths, and the agent handles the rest.

SituationWhat the agent does
Path does not exist on a fresh machineClones the repo down
Several agents at once in the same repoUses a git worktree, so they do not fight over one working copy
You want to add a repoEdit one line in the steering file
Using worktrees instead of clones is the detail that makes multi-agent work safe here: each session gets its own checkout of the same repository, so two agents editing different features never collide in the index. He notes the cost honestly — you eventually have to clean worktrees up.

📈 Where it stops scaling 4:44

Repo countApproach
20–40Flat list of paths in the steering file
HundredsProgressive disclosure: group the steering file into front-end, back-end, internal tooling, and link into each group
EffectThe agent finds the right repo "by simple file-system tactics" instead of being handed a list
His ceiling estimate is a rare thing in this genre: a number. Flat lists work to a few dozen repos; beyond that, the context cost of naming every repo exceeds the benefit, and you switch to a hierarchy of index files. It is the same progressive-disclosure principle Anthropic uses for skills, applied to directories instead of procedures.

🧱 But monorepos first 5:14

"I love monorepos — if all this stuff could live in one repo, I would do it. I used to be employed at Vercel as the Turborepo DevRel. But you can't always do them, especially if some repos need to be public and some need to be private."
This caveat is what separates the pattern from cargo cult. The home repo is a workaround for organisational reality, not an architectural ideal: if you can consolidate, consolidate. The stated blocker is access control — a mix of public and private repositories cannot be merged, and the second blocker he names is political will, which is honest.

📚 The wiki and the tooling 5:43

He calls it "burying the lead": the home repo is where he keeps a personal wiki of audience-relevant material, and a set of custom tools that connect the agent to his actual business.

Tooling connects toExample use
Gmail, Slack, Discord, YouTube, GitHub, Google CalendarReading real signals from where work and audience actually live
Publishing HTML reports, appending to a bufferOutput that is useful without a human copying text around
His course video manager and course reposThe compound example: read a Discord message, fix the crash-course repo using existing skills, then use the video-manager skill to edit the course itself
That three-step example is the whole argument. A request that arrived as a chat message ends with an edited course, and the agent needs no new instructions for any step because the skills and tools were already in one place. Centralisation is what turns "my agent can edit files" into "my agent can run a piece of my business".

🔬 What the tooling actually supports 2:53

Every mechanic he relies on is documented behaviour, not a hack — which is why the pattern works without custom tooling:

MechanicDocumented support
Skills in .claude/skills/<name>/SKILL.mdProject-level skills, loaded for the session
Skills in ~/.claude/skills/Personal skills, available across all projects — the option he rejects on organisational grounds
Skills from a directory you add to the sessionLoaded the same way as project skills; --add-dir and permissions.additionalDirectories put extra repositories in scope
Parallel sessions on one repoWorktree isolation is a first-class feature
So the real mechanism is not "a special home repo" — it is --add-dir plus skills loaded from the directory you start in. That reframing matters: it means you can get the same effect by starting in whichever repo holds the canonical skills, and it means the pattern's durability depends on the tool continuing to load skills from the launch directory rather than only from the git root of the edited file.

⚠️ What he does not say 5:43

RiskWhy it matters
Permission scopeExtra directories widen what the agent can touch; writes outside the launch project are governed by permission rules you must configure deliberately, not by hope
Blast radiusOne repo holding business skills, a private wiki and credentials-adjacent tooling is a single target — and it runs with more access than any individual project does
Secret hygieneTools that talk to Slack, Gmail and Discord need credentials; a home repo is the worst place to leak one, and the best place to centralise them badly
Team vs personal ambiguityHe mixes both in one repo; a company must not
No CI, no reviewA home repo's changes affect every session and typically ship without the checks your product repos have
Bus factorIf the pattern is personal, your context walks out with the person who built it
The pattern concentrates context, and concentration cuts both ways. Everything that makes it powerful — one place, always loaded, connected to everything — is also a description of a high-value target. The mitigation is boring and mostly absent from the video: keep the tooling least-privileged, keep credentials in a secret manager rather than files, review changes to the home repo, and separate team skills from personal ones.

🛠 How to adopt it 7:57

He has published a write-up with a setup prompt that interviews you about your repos and starts moving things across. The manual version is smaller than the article suggests:

StepAction
1Create an empty repo — private if it will hold anything business-specific
2Add .claude/skills/ (or your harness's equivalent) and one skill you already use everywhere
3Write the steering file as a list of paths to the repos you touch weekly — nothing cleverer
4Commit your team-level settings so changes propagate
5Start every session there, and add only the repos you actually need to that session
6Once a month, delete the skills that nobody used — the repo rots exactly like the copies did
Start with one skill, not a framework. The pattern's value is proportional to how much context you were previously duplicating; if you have three repos and one skill, copying is fine. It pays off at the point where you catch yourself syncing files between repos — which is the same signal that made CI config drift painful a decade ago.

✅ Claims checked

ClaimVerdictNotes
An agent can work in multiple directories and open a PR in eachSupportedMulti-directory scope is documented; separate pull requests per repo follow from it
Skills and steering files must be duplicated per repo otherwiseCorrect in practiceProject-level skills are loaded per working directory; user-level skills exist but are shared invisibly
Putting them in the home directory causes them to fall behindOrganisational truthNothing enforces updates on personal config; he frames it as a visibility problem, correctly
Running from a home repo makes its skills available in every sessionMatches documented behaviourSkills load from the directory the session starts in, and from directories added with --add-dir
Paths in the steering file let the agent clone missing repos and use worktrees for parallel runsPlausible and consistentCloning is agent behaviour, not a feature; worktree isolation is documented
Flat lists work to 20–40 repos; beyond that use progressive disclosureHis estimateReasonable and unusual in being quantified; no measurement given
Monorepos are preferable where possibleStated preferenceHe names access control (public/private mix) and political will as blockers
He was Turborepo DevRel at VercelSelf-reportedConsistent with his public work; not independently verified here
A three-step Discord → repo → course-edit flow worksDemonstrated inside his own businessDepends entirely on tooling he has not published
None of the risks (permissions, secrets, blast radius) are discussedCorrect — they are absentThe article adds them; the video treats the pattern as purely organisational

Basis note. Built from the full 8:53 recording and checked against the documented behaviour of project-level and personal skills, additional directories and worktree isolation in the Claude Code harness he is using. Disclosure: the video promotes his paid course and newsletter; those links are excluded here, and the free written version of the pattern is cited below because it is the primary source, not because it is a purchase funnel.

🔑 Key takeaways

  • The problem is drift, not capability. Skills copied into thirty repos are thirty sources of truth.
  • One working directory is the whole trick: always start the agent in the repo that holds the canonical context.
  • Navigation can be a list of paths. No registry, no manifest — the steering file names the directories.
  • Team config belongs in git; personal config belongs in your home directory. Invisible config rots.
  • Worktrees make parallel sessions safe on the same repository, at the cost of periodic cleanup.
  • Quantified ceiling: flat lists to a few dozen repos, then a hierarchy of index files.
  • Monorepos first. The home repo is a workaround for public/private splits and political will, not an ideal.
  • The payoff is compound tooling: a chat message becoming a course edit, with no new instructions at any step.
  • Underneath, it is --add-dir plus skills loaded from the launch directory — which is why no custom tooling is needed.
  • Extra directories widen the permission surface. Configure the allowlist deliberately, not by accident.
  • Concentrated context is a concentrated target: business-critical skills, a private wiki and API-connected tooling in one repo.
  • Do not mix team and personal in one home repo — his does, and that works for a one-person business only.
  • No CI, no review on the repo that shapes every session; treat its changes as production changes.
  • Start with one skill. Adopt when you notice yourself syncing files between repos.

🔗 Resources

  • The video — Matt Pocock, 8:53 (course and newsletter links excluded)
  • The Home Repo Pattern — the written version, including the setup prompt he mentions
  • Harness documentation for the mechanics relied on: project and personal skills, --add-dir / additionalDirectories, and worktree isolation
Basis note. This is a workflow opinion, so the article separates what is documented platform behaviour from what is his judgement, and adds the operational risks the video omits — permissions, secrets and concentration — because those are what determine whether a team can adopt it.

⏱ Timestamp index

0:00"Too simple to post" — and then it went viral
0:27The multi-repo problem
0:52Multi-directory sessions and two pull requests
1:28Duplicated skills and steering files
1:48Why the user directory is the wrong place
2:20The home repo, defined
2:53Tour: private skills, settings, steering file
4:16Paths, cloning, worktrees, zero setup
4:44Scaling to 20–40 repos, then progressive disclosure
5:14Why not monorepos
5:43The personal wiki
6:27Custom tooling: Gmail, Slack, Discord, YouTube, GitHub
7:20The Discord → repo → course-edit flow
7:57How to set one up
☰ View all