DEV Community

Gabriel Anhaia profile picture

Gabriel Anhaia

Senior Software Engineer @ Monta · 10+ years in backend, distributed systems & AI agents · Creator of Hermes IDE (AI-native terminal) & Neural Playground · Author of 2 books · Open-source enthusiast

Location Berlin, Germany Joined Joined on  Personal website https://xgabriel.com github website

Work

Software Engineer and Book Author

Six Year Club
Top 7
Writing Debut
Five Year Club
Four Year Club
Three Year Club
Two Year Club
One Year Club
What to Capture on an Agent Span (and What to Redact)

What to Capture on an Agent Span (and What to Redact)

Comments 1
6 min read
Trace Sampling for Agents: Keeping the Trajectories That Matter

Trace Sampling for Agents: Keeping the Trajectories That Matter

Comments
6 min read
Per-Agent Cost and Token Attribution Straight From Your Traces

Per-Agent Cost and Token Attribution Straight From Your Traces

Comments
7 min read
Silent Drift in Agent Decision Quality: Catching It Before Your Users Do

Silent Drift in Agent Decision Quality: Catching It Before Your Users Do

Comments
7 min read
Evals for Agents: Scoring Task Success, Trajectory, and Human Review

Evals for Agents: Scoring Task Success, Trajectory, and Human Review

Comments
8 min read
Tracing an Agent Trajectory as a Tree of Spans

Tracing an Agent Trajectory as a Tree of Spans

Comments
7 min read
Agent State Desync: Why Your Agent Forgets and How to Fix It

Agent State Desync: Why Your Agent Forgets and How to Fix It

Comments
6 min read
The Agent Production-Readiness Checklist You Can Run Before Shipping

The Agent Production-Readiness Checklist You Can Run Before Shipping

Comments
7 min read
Multi-Agent Coordination: Message-Bus Patterns That Keep Agents Sane

Multi-Agent Coordination: Message-Bus Patterns That Keep Agents Sane

Comments
6 min read
Incident Response When Your Agent Is on Fire: A Runbook

Incident Response When Your Agent Is on Fire: A Runbook

Comments
6 min read
Deploying Agents: Containers, Orchestration, and Scaling the Loop

Deploying Agents: Containers, Orchestration, and Scaling the Loop

Comments
7 min read
The 2 a.m. Runaway Loop: Detecting and Killing an Agent That Won't Stop

The 2 a.m. Runaway Loop: Detecting and Killing an Agent That Won't Stop

Comments
7 min read
Context Bloat in Long-Running Agents: What to Keep, Summarize, and Drop

Context Bloat in Long-Running Agents: What to Keep, Summarize, and Drop

Comments
6 min read
Tool Abuse and the 2026 Agent Security Posture

Tool Abuse and the 2026 Agent Security Posture

Comments
7 min read
Meta's Agents Rule of Two: A Practical Defense Against Prompt Injection

Meta's Agents Rule of Two: A Practical Defense Against Prompt Injection

Comments
6 min read
Agent Guardrails: Loop Limits, Cost Caps, and Human Approval Gates

Agent Guardrails: Loop Limits, Cost Caps, and Human Approval Gates

Comments
8 min read
Picking an Agent Framework in 2026: An Honest Verdict on Six of Them

Picking an Agent Framework in 2026: An Honest Verdict on Six of Them

Comments
6 min read
Pydantic AI: Typed, Testable Agents for Engineers Who Like Guarantees

Pydantic AI: Typed, Testable Agents for Engineers Who Like Guarantees

Comments
6 min read
CrewAI vs AutoGen vs the Rest: The 2026 Multi-Agent Framework Landscape

CrewAI vs AutoGen vs the Rest: The 2026 Multi-Agent Framework Landscape

Comments
7 min read
The Claude Agent SDK and Computer Use: A Production Walkthrough

The Claude Agent SDK and Computer Use: A Production Walkthrough

Comments 1
8 min read
The OpenAI Agents SDK in Production: What It Gives You and What It Hides

The OpenAI Agents SDK in Production: What It Gives You and What It Hides

Comments
8 min read
LangGraph in 2026: Modeling an Agent as a State Machine

LangGraph in 2026: Modeling an Agent as a State Machine

Comments
7 min read
Three Kinds of Agent Systems: Workflow, Autonomous, and the Middle

Three Kinds of Agent Systems: Workflow, Autonomous, and the Middle

Comments
6 min read
Planning and Decomposition for Agents: Structured Output Over Free-Form Reasoning

Planning and Decomposition for Agents: Structured Output Over Free-Form Reasoning

Comments
6 min read
Agent Memory Done Right: Short-Term, Long-Term, and the Scratchpad

Agent Memory Done Right: Short-Term, Long-Term, and the Scratchpad

Comments
6 min read
Designing Agent Tools: Schemas and Descriptions That Prevent Misfires

Designing Agent Tools: Schemas and Descriptions That Prevent Misfires

Comments
6 min read
Your First Tool-Calling Agent With No Framework, Just the Bare SDK

Your First Tool-Calling Agent With No Framework, Just the Bare SDK

Comments
6 min read
The ReAct Loop From Scratch: The Agent Baseline Before Any Framework

The ReAct Loop From Scratch: The Agent Baseline Before Any Framework

Comments
7 min read
The 7 New Failure Modes You Inherit the Moment You Ship an Agent

The 7 New Failure Modes You Inherit the Moment You Ship an Agent

Comments
7 min read
What Makes an LLM an Agent: The Model Controls the Control Flow

What Makes an LLM an Agent: The Model Controls the Control Flow

Comments
6 min read
Graceful Degradation in Go: Fallback When a Downstream Adapter Fails

Graceful Degradation in Go: Fallback When a Downstream Adapter Fails

Comments
7 min read
Mapping Go Domain Errors to HTTP Status Codes at the Boundary

Mapping Go Domain Errors to HTTP Status Codes at the Boundary

Comments
6 min read
Retries and Backoff in Go: Where They Belong in a Hexagonal Service

Retries and Backoff in Go: Where They Belong in a Hexagonal Service

Comments
6 min read
A Circuit Breaker at the Go Adapter: Fail Fast, Leave the Domain Alone

A Circuit Breaker at the Go Adapter: Fail Fast, Leave the Domain Alone

Comments
6 min read
Idempotency Keys in Go HTTP Handlers: Stop Double-Processing Requests

Idempotency Keys in Go HTTP Handlers: Stop Double-Processing Requests

Comments
7 min read
The Transactional Outbox in Go: Reliable Events Without a Message Broker

The Transactional Outbox in Go: Reliable Events Without a Message Broker

Comments
7 min read
A Logging Port in Go: Keeping slog at the Edge of Your Hexagon

A Logging Port in Go: Keeping slog at the Edge of Your Hexagon

Comments
7 min read
Injecting a Clock in Go: Testable Time in Your Hexagonal Domain

Injecting a Clock in Go: Testable Time in Your Hexagonal Domain

Comments
6 min read
google/wire in Go: Compile-Time DI for Hexagonal Services

google/wire in Go: Compile-Time DI for Hexagonal Services

Comments
6 min read
testcontainers-go: Real Integration Tests for Go Without Mocks

testcontainers-go: Real Integration Tests for Go Without Mocks

Comments
6 min read
Injecting Version Info at Build Time in Go With -ldflags

Injecting Version Info at Build Time in Go With -ldflags

Comments
6 min read
Debugging Go With Delve: Beyond fmt.Println

Debugging Go With Delve: Beyond fmt.Println

Comments
6 min read
staticcheck for Go: The Analyzer Rules That Pay for Themselves

staticcheck for Go: The Analyzer Rules That Pay for Themselves

Comments
7 min read
golangci-lint in 2026: A Config That Catches Bugs Without the Noise

golangci-lint in 2026: A Config That Catches Bugs Without the Noise

Comments
6 min read
benchstat in Go: Comparing Benchmarks Without Fooling Yourself

benchstat in Go: Comparing Benchmarks Without Fooling Yourself

Comments
6 min read
Native Fuzzing in Go: Finding Edge Cases With go test -fuzz

Native Fuzzing in Go: Finding Edge Cases With go test -fuzz

Comments
6 min read
The Go Execution Tracer: Finding Latency the Profiler Misses

The Go Execution Tracer: Finding Latency the Profiler Misses

Comments
6 min read
pprof in Go: A CPU and Heap Profiling Walkthrough From Zero

pprof in Go: A CPU and Heap Profiling Walkthrough From Zero

Comments
7 min read
govulncheck: Scan Go Code for CVEs You Can Actually Reach

govulncheck: Scan Go Code for CVEs You Can Actually Reach

Comments
6 min read
From sort.Slice to slices.Sort in Go: Cleaner, Faster, Type-Safe

From sort.Slice to slices.Sort in Go: Cleaner, Faster, Type-Safe

Comments
6 min read
regexp in Go: MustCompile, Reuse, and the Performance You're Leaving Behind

regexp in Go: MustCompile, Reuse, and the Performance You're Leaving Behind

Comments
6 min read
encoding/gob in Go: Binary Serialization Built for Go-to-Go Services

encoding/gob in Go: Binary Serialization Built for Go-to-Go Services

Comments
7 min read
html/template in Go: The Auto-Escaping That Stops XSS (When You Let It)

html/template in Go: The Auto-Escaping That Stops XSS (When You Let It)

Comments
7 min read
signal.NotifyContext in Go: Clean Ctrl-C Handling in One Line

signal.NotifyContext in Go: Clean Ctrl-C Handling in One Line

Comments
5 min read
bufio.Scanner in Go: The Default Buffer Limit That Truncates Your Lines

bufio.Scanner in Go: The Default Buffer Limit That Truncates Your Lines

Comments
5 min read
io.Pipe, io.TeeReader, io.LimitReader: Go Stream Composition Toolkit

io.Pipe, io.TeeReader, io.LimitReader: Go Stream Composition Toolkit

Comments
7 min read
database/sql in Go: NullString, Contexts, and Connection Lifecycle

database/sql in Go: NullString, Contexts, and Connection Lifecycle

Comments
7 min read
Go 1.22 ServeMux: Method and Wildcard Routing Without a Framework

Go 1.22 ServeMux: Method and Wildcard Routing Without a Framework

Comments
7 min read
json.RawMessage in Go: Deferring Decode Until You Know the Type

json.RawMessage in Go: Deferring Decode Until You Know the Type

Comments
6 min read
Custom JSON in Go: Marshaler, Unmarshaler, and the omitempty Traps

Custom JSON in Go: Marshaler, Unmarshaler, and the omitempty Traps

Comments
7 min read
loading...