~/beer-and-code
▪ Clã Beer and Code the largest AI Engineering community in Brazil · live, every week join the Clã ›
Latest news all (77) ›
Featured tutorials all (26) ›
01 · laravel · php
Self-improving harness: how to let the agent rewrite its own rules without breaking what works

55% of the improvements an agent proposed for its own harness fixed one failure and broke something that worked. A PHP tutorial for a self-improving harness with the piece that makes it engineering: the regression gate. Git-versioned rules, failure mining, minimal rules, protected cases, provisional promotion and pruning.

02 · laravel · ai-agents
AI agent verification: why your agent can't grade its own exam

Across 54 cycles, the agent said it improved every time. In 56%, nothing changed or it got worse. The progress mirage measured in a paper, why a bigger LLM judge doesn't fix it, and how to build a Laravel loop with an external verification gate: checkable exit, hard budget, and a guard that stops the agent from editing its own exam.

03 · laravel · php
Filesystem as agent memory: progress file, feature list and git log in practice

An agent that runs across several context windows forgets everything each session. The pattern Anthropic, Manus and LangChain converged on: move state out of the window and into files. A JSON feature list that only accepts status changes, a progress log, a session start ritual and offloading large results with a restorable pointer, all with PHP code.

04 · php · ai-agents
Subagents: use them to isolate context, not to build an agent team

A subagent isn't a job title, it's a context window. When to use subagents (and when one agent is enough), the difference between isolated and fork modes, the numbers from Anthropic and Cognition, and how to implement both in a PHP harness straight on the Claude API, no framework.

Meet the Clã Beer and Code
playing