Skip to main content

12 posts tagged with "claude-code"

View All Tags

Claude Code Worktrees: Where They Live, How They Work and How to Use Them Well

· 14 min read
Pere Pages
Software Engineer
A flat illustration of one tree trunk splitting into three branches, each holding its own lit desk with a laptop: robot assistants work at two desks and a person at the third, and thin lines run from every desk back to a shared archive of drawers at the roots

Two Claude Code sessions in the same folder will sooner or later edit the same file and undo each other's work. A worktree fixes that by giving each session its own copy of the files on its own branch. Here is where Claude Code stores worktrees, how they work, what they share with your main folder, and the small routine that makes them worth using.

Sandboxing Agent Graphs in Claude: Where Each Agent Runs and What It Can Reach

· 22 min read
Pere Pages
Software Engineer
Seven small robots work at desks on a dark blue background. Six of them sit inside glass cubes and one does not. Glowing lines carry small notes between them, and the lines that lead away from the group end at closed gates on both sides.

When many Claude agents work together, a single agent that is tricked by hidden instructions can pass those instructions on to all the others. This post explains what a sandbox protects in a group of agents, which kinds of isolation exist from a simple command filter to a separate virtual machine, how to configure them in Claude Code, and which setups work well in practice.

Resuming Claude Code Sessions Properly: What Comes Back and What Doesn't

· 12 min read
Pere Pages
Software Engineer
A person at a terminal desk picking up one of several luminous threads that trail from the keyboard back into a dark archive of drawers; the chosen thread glows brighter than the others, and a paper notebook lies open beside the keyboard

I opened Claude Code on a side project after a day away, and it greeted me with a careful reconstruction of what we had been doing, pieced together from the notes file and the working tree. It was right, but it was a guess. The whole conversation that produced that work was sitting on disk, one command away. Here is how sessions actually persist, what a resumed one gives you back, and what it never will.

Skimming AI-Written Code Is a Bet: Review the Structure, Not the Diff

· 17 min read
Pere Pages
Software Engineer
A small figure inspects a single glowing brick through a large magnifying glass while the whole brick tower above leans badly out of true; an architectural blueprint lies unrolled and ignored under their feet

When a coding agent writes most of the code, reading every diff stops being realistic, and "reading diagonally" — skimming — becomes the default. It is a real bet, not a safe one: architecture doesn't break in any single diff, it erodes across all of them, and skimming checks exactly the part that was never the problem.

The 'Always Allow' Trap: Auditing the Permissions You've Granted Your Coding Agent

· 14 min read
Pere Pages
Software Engineer
A long row of open gates guarded by a single distracted gatekeeper waving everything through

Every "always allow" click quietly trades a little control for a little convenience — and after a few months of daily agent use, those clicks add up to a security posture nobody designed. Here's how to audit what your coding agent can already do without asking, which grants deserve scrutiny, and how to put deliberate guardrails back.

Modular Claude Code Skills: Building a Dependency Graph That Doesn't Exist

· 10 min read
Pere Pages
Software Engineer
A small graph of connected nodes with one shared hub node highlighted, representing skills depending on a common skill

Claude Code skills have no requires: field, no imports, no dependency resolver — and yet you can build a real graph of skills that depend on each other. This post lays out the mental model, the three composition mechanisms that fall out of it, and a refactor of this blog's own skill folder as a case study in what happens when you skip them.

Generating Blog Covers and Social Cards With an Image MCP Server for Claude Code

· 14 min read
Pere Pages
Software Engineer
A blog post cover being assembled from a title card and an AI-generated illustration

Every post on this blog needs two images that do completely different jobs: a social card that has to earn a click in a feed, and an inline hero that opens the article. This post is about how the blog makes both — a typographic default that costs nothing, an opt-in artificial-intelligence (AI) cover that costs about four cents, and the little Model Context Protocol (MCP) server that wires an image model straight into Claude Code. The cover above was made by that exact pipeline.