~/beer-and-code
▪ Clã Beer and Code the largest AI Engineering community in Brazil · live, every week join the Clã ›
~ / tag / #laravel $ grep

#Laravel

10 posts
01 #laravel · #google
Gemini 4 Hydrogen vs Opus 5.5: 2.7x Cheaper per Token, but Should You Swap It Into Your Agent?

Gemini 4 Hydrogen costs 2.7x less than Claude Opus 5.5 per token and has a free tier. But where your coding agent lives, Opus still holds. Benchmarks side by side (Google vs Anthropic), the math on a cached agentic session, which Gemini 4 to use after Carbon and Argon double in price on 12/1, and a Laravel fallback with the list of what breaks when you switch.

16 Nov · 10 min ›
02 #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.

07 Nov · 12 min ›
03 #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.

06 Nov · 6 min ›
04 #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.

06 Nov · 5 min ›
05 #laravel · #google
Gemini 4 Argon vs Claude Opus 5.5: half the price until Nov 30, but is it worth switching?

Gemini 4 Argon beats Claude Opus 5.5 on 14 of 18 of Google's benchmarks and costs half the price. But it loses on Terminal-Bench, where coding agents live, and on December 1 the price evens out. The numbers side by side (Google's and independent ones), what an agentic session costs on all three with GPT-6.1 Sol as the yardstick, what breaks when you migrate, and a Laravel fallback switched by .env.

16 Oct · 12 min ›
06 #laravel · #ai-agents
Higgsfield MCP: What It Is and 10 Systems Where a Dev Can Integrate Image and Video

Higgsfield MCP hands your agent more than 30 image and video models, with the generation harness already built. How to connect it to Claude Code, what each generation costs in credits, and 10 systems where a dev can integrate it.

01 Oct · 11 min ›
07 #laravel · #php
Claude Code headless: how claude -p becomes an AI agent orchestrated by your code

An artisan command, a queue and Claude Code in headless mode (claude -p) generating 11 sites inside the subscription. How to orchestrate the agent from PHP, where the math works out, and how to plug in Higgsfield as an asset step with a budget controlled by code.

30 Sep · 8 min ›
08 #laravel · #php
Laravel AI SDK vs Prism PHP: Which One to Use in Each Case

The internet treats the Laravel AI SDK and Prism PHP as competitors and keeps repeating that the official SDK uses Prism under the hood. The composer.json says otherwise. In this post: what each package actually does, the code side by side, the table of what only exists in one of them, the release cadence of both, and a decision guide by concrete case. No "it depends".

20 Aug · 4 min ›
09 #laravel · #php
What Is the Laravel AI SDK: A Practical Guide to Laravel's Native AI SDK

The Laravel AI SDK is Laravel's first-party AI package: agents as PHP classes, tool calling, structured output, streaming, embeddings with pgvector and fakes for testing without burning tokens. A practical guide from composer require to your first running agent, covering what the SDK solves, what it doesn't, and the limitations nobody tells you about.

18 Aug · 5 min ›
10 #laravel · #php
Spec-Driven Development: A Practical Guide from PRD to Code

Vibe coding with an agent in Laravel works until the feature has business rules. Then the agent makes things up. Spec-Driven Development fixes that by turning the specification into the source of truth. In this post we walk through the PRD, spec, plan, tasks, code and tests cycle on a feature that looks silly: exporting a sales report as a PDF. PHP stack, Claude Code and Spec Kit, from scratch.

04 May · 13 min ›
Meet the Clã Beer and Code
playing