Hi! I'm Pere Villega
I'm a principal engineer with over 20 years of industry experience. I provide AI and software consulting to companies. I live in Barcelona and have been working remotely or hybrid since 2014.
Recent Posts
-
Building Agent Memory That Survives Between Sessions
Every Claude Code session starts from scratch. Teresa Torres's three-layer context system and Patrick Zandl's claudecode-kb offer two practical approaches to the same insight -- memory is a design problem, not a tooling problem. The key habit is stop and capture, turning every repeated explanation into a reusable context file.
-
The One File That Makes or Breaks Your AI Workflow
CLAUDE.md is the single file that determines whether your AI coding agent shines or flounders. Research shows auto-generated context files hurt performance — what works is a minimal, human-curated briefing containing only what the agent cannot discover on its own.
-
Your First Day With Claude Code
The setup checklist I wish I'd had on day one with Claude Code — isolation and sandboxing, terminal configuration, LSP integration, token monitoring, and what not to install.
-
AI Is an Exoskeleton, Not a Coworker
A rigorous study found AI-assisted developers are 19% slower yet believe they're 24% faster. The gap reveals that AI is best understood as an exoskeleton — amplifying human judgment rather than replacing it — and that the real risk isn't bad code but cognitive debt from velocity without understanding.
-
Code Is Cheap Now, And That Changes Everything
AI coding agents have made code production nearly free. Drawing on insights from Kent Beck, Paul Ford, and Simon Willison, this post argues that the value has shifted from writing code to defining systems — contracts, invariants, SLAs, and verification.