// TIL

Today I learned

Short things I learn while shipping: a surprise, a snippet, a link, posted the day it happens. Longer pieces are in the blog.

2026

Nov 27, 2026 · ai-agents git monorepo · via Anthropic Engineering ↗

Anthropic moved its main monorepo off git to an in-house system called Scion. 7 people, 5 months.

The reason is not that git is bad. Merges went from about 2,500 a day in May to over 30,000 in September, most of it from agents. CI alone does around 25 million checkouts a day, and the history of main is almost 100 GB. Fetched the git way, that would be over 600 PB of traffic per day.

So they flipped the model: history, blame, merges and rebases live on the server, and the client keeps only the directories it asked for plus a bounded cache.

  • 200x less CPU and memory than their old git mirrors
  • CI checkouts in seconds instead of minutes

The part most reposts skip: Anthropic says Scion is "by no means a suitable replacement for git for general use". Git was designed for a human with a full clone on a laptop, and for almost every repo that is still the right design.

PHAST - This is so coool. It is very fast. Dependency manager for PHP.

Written in Rust, it reads your existing composer.json, so trying it out is just:
phast install.

Two things tripped me up on a real Laravel project, though:

  • Private GitHub repos fail with a 404. Phast ignores the github-oauth key from Composer's auth.json. The token has to go into ~/.phast/auth.toml under [github-token].
  • Version parsing is stricter than Composer's. A transitive package had the constraint ^8.1-@dev. Composer accepts it, Phast 0.1.0 fails with invalid version segment, and the install stops there.

It also doesn't read composer.lock. It resolves everything from scratch into its own phast.lock, so you can land on different versions than the ones you ship.

Very promising, but at 0.1.0 not ready to replace Composer on a production project.

I spent an afternoon chasing "1 error" in a sync log, and the job was never actually broken.

I was re-running a sync of invoice items, twice. Both times: around 85k items from the API, all but one updated, 1 error. Same thing each run, always at exactly 10 minutes in. I was already convinced one item was missing somewhere.

It wasn't. The job had $timeout = 600 and the sync takes a bit over 10 minutes. At the 10-minute mark the worker tries to kill the job and record it in failed_jobs. That insert blew up with null value in column "id" of relation "failed_jobs", because our table wasn't created by the stock Laravel migration and the id column never got a sequence. The exception landed inside my own try/catch around a single item, got counted as "1 error", and the job happily ran to the end.

Two fixes, in this order: raise the job timeout first (keep it below queue retry_after), then give the table back what $table->id() would have created:

CREATE SEQUENCE failed_jobs_id_seq OWNED BY failed_jobs.id;
ALTER TABLE failed_jobs ALTER COLUMN id SET DEFAULT nextval('failed_jobs_id_seq');

Lesson I'm keeping: an always-empty failed_jobs table is a symptom, not a success.

Claude code has security plugin which can check code and it's free!

/security-review - built in command, no need for install. Run it on current branch

security-guidance plugin
/plugin install security-guidance@claude-plugins-official

Today I just realized Claude artifacts can be public.

So apparently, the thing I was playing around with can be shared with the entire internet. 🤯😄

Today’s reminder that sometimes you have to go back to basics: I had to compile PHP from source because Ondřej's packages were overloaded.