Episode 5: The Hook Git Fires That Nobody Documents omslagsbild

Episode 5: The Hook Git Fires That Nobody Documents

Episode 5: The Hook Git Fires That Nobody Documents

Lyssna kostnadsfritt nu, utan abonnemang

Visa detaljer

Das größte Angebot der Saison | 0,99 € pro Monat für die ersten 3 Monate + 15 € Audible-Guthaben

Danach 6,99 €/Monat. Bedingungen gelten. Monatlich kündbar.
Om den här titeln
`git worktree add` fires the `post-checkout` hook — and the `git-worktree` man page never mentions hooks at all. That one undocumented line is how every parallel agent gets its own ports, its own database and its own `.env` automatically, instead of by hand forever. Episode 3 gave every agent its own worktree; this is the layer underneath it. Plus three finds, two tips, and one ten-minute thing to do today. ## In this episode - **Cloudflare OS (5 Aug 2026)** — an agent workspace on Cloudflare Workers: isolated runtime, governance layer for internal data and services. **Apache-2.0** (licence file read directly), free to self-host on your own Cloudflare account. The planned managed dashboard product **names no price**. The README calls the project **"in a state of heavy development"** and an **"early access" release**. "Thousands of people across every function" using it internally daily is **Cloudflare's own count**, unaudited. - **Meta Muse Code (beta) + Muse Spark 1.2 (5 Aug 2026)** — Meta's terminal coding agent. **No licence stated anywhere**, so not "open source". **No price stated for the CLI**, which is not the same as free. **macOS and Linux only — no Windows.** Install host is `dev.meta.ai`, *not* `developers.meta.ai` — and the flag is `-fsSL`, with a **capital S and a capital L** (curl's flags are case-sensitive, and a lowercase `-l` is a different flag that fails quietly). Model API, per Artificial Analysis attributing Meta's API: **$1.25 / 1M input tokens, $4.25 / 1M output tokens** (standard tier). Meta's post shows benchmark **charts with no numbers printed in the text**. - **"How Castform + Neon Beats Frontier Models on Price and Efficiency"** — a 4B open-source model post-trained to match GPT-5.6 Sol on search retrieval at 100x less cost. The unit that matters: **~$0.03 per end-to-end multi-turn search request**. The honesty beat is what's missing — no base model named, no licence, no numeric accuracy scores, no benchmark named — and Hacker News said so. - **The Recipe** — give every parallel agent its own ports, database and env file automatically: slugify the branch, install one `post-checkout` hook, derive identity and ports, generate the env file, isolate Compose projects, isolate database names, and set per-worktree git config. - **Tip 1** — stop allocating ports at all. Publish a container port in Compose with **no host port**, let the kernel pick, and read it back with `docker compose port SERVICE PRIVATE_PORT`. Zero collisions by construction. - **Tip 2, and a correction we ran ourselves** — the docs say `git config --worktree` behaves as `--local` when `extensions.worktreeConfig` is unset, which sounds like a silent data leak across worktrees. It isn't. With a second worktree present git **hard-errors** (`fatal: --worktree cannot be used with multiple working trees…`, exit 128, nothing written). The silent fallback only happens in a repo with exactly one worktree — where there's nobody to leak into. Correct quote, wrong inference; running the command settled it in ten seconds. - **Spelling, said out loud** — the file is `.worktreeinclude`: one word, no hyphen, leading dot. The standalone binary `git-worktreeinclude` (MIT, by Satoshi Ebisawa) **does** have a hyphen, and you invoke it as `git worktreeinclude apply`. Note Claude Code requires a paid Claude plan — there is no free tier. - **The published counter-argument** — David Mytton (Arcjet) built this shape and rejected parts of it: dynamic ports don't propagate through the devcontainer spec, and per-workspace databases cost too much on a laptop. They run one shared infrastructure stack instead, and accept there's no per-workspace data isolation. - **Do This Today** — write a two-line `post-checkout` hook that fires on the null ref (forty zeros), and prove to yourself that `git worktree add` runs it. ## Sources **Fresh Finds** - [Cloudflare OS — announcement](https://blog.cloudflare.com/cloudflare-os/) - [cloudflare/cloudflare-os](https://github.com/cloudflare/cloudflare-os) - [Introducing Muse Code and Muse Spark 1.2 — Meta AI Research](https://research.meta.ai/blog/introducing-muse-code-and-muse-spark-1-2) - [How Castform + Neon beats frontier models on price and efficiency](https://neon.com/blog/how-castform-neon-beats-frontier-models-on-price-and-efficiency) - [Hacker News discussion](https://news.ycombinator.com/item?id=49186762) **The Recipe** - [Ally Piechowski — A setup script for git worktrees](https://piechowski.io/post/setup-script-git-worktrees/) - [githooks — official documentation](https://git-scm.com/docs/githooks) - [git-worktree — official documentation](https://git-scm.com/docs/git-worktree) - [git-config — official documentation](https://git-scm.com/docs/git-config) - [Mark Skelton — Using Git hooks when creating worktrees](https://mskelton.dev/bytes/using-git-hooks-when-creating-worktrees) - [Claude Code — worktrees and `.worktreeinclude`](https://...
adbl_web_anon_alc_button_suppression_t1
Inga recensioner ännu