HAVE AI NEWS HAVE AI NEWS
tg subscribe

GenAI Design Patterns: RLM and Harness Engineering for Agentic AI

By: HAVE AI NEWS desk Updated #AI Agents #LLM #Books #RAG #MCP

The updated translation of GenAI Design Patterns covers 32 approaches to building LLM-powered applications. The new edition adds Recursive Language Model and agent harness patterns to address context, tooling, result validation, and orchestration challenges.

The Russian translation of GenAI Design Patterns by Valliappa Lakshmanan and Hannes Hapke is being released almost simultaneously with the updated English edition. The book adds solutions reflecting the development of agentic AI in 2025–2026, including RLM and harness engineering patterns.

What the authors cover

The book addresses practical challenges in developing applications powered by large language models. Many solutions look convincing in demos, but in production they encounter hallucinations, unpredictable behavior, context limitations, and high processing costs.

The authors have collected 32 patterns covering different stages of building GenAI applications: style control, RAG, multi-agent systems, and safeguards such as Guardrails. Valliappa Lakshmanan previously led AI solutions at Google, while Hannes Hapke is a senior ML engineer at Digits and a Google Developer Expert in machine learning.

Pattern 8: Recursive Language Model

The Recursive Language Model pattern offers a different way to work with large amounts of context. Simply expanding the context window to 1–10 million tokens does not solve every problem: as the text grows, it becomes harder for models to find the information they need, and the computational cost of the attention mechanism becomes significant.

With the RLM approach, context is not passed to the model as one enormous block of text. Instead, it is treated as an external variable in a REPL environment, such as a Python sandbox. The book presents this method as an alternative to approaches based solely on expanding the context window.

Pattern 19: Harness Engineering

Harness engineering describes the infrastructure around a language model that coordinates its work as part of an agent. The authors treat the LLM itself as a stateless function: it receives context and generates text, but cannot execute code, write files, or verify its own output on its own.

An agent harness connects the model to tools and the external environment, manages task execution, and verifies results. With this infrastructure layer, a text generator can operate as a full-fledged agentic system, like Devin.

Who the book is for

  • Architects and backend developers integrating LLMs into enterprise systems.
  • AI engineers who need to compare RAG, GraphRAG, and RLM and determine where each approach fits.
  • Team leads designing multi-agent solutions and working with orchestration, memory, and Guardrails.

The near-simultaneous release of the Russian translation and the new English edition gives Russian-speaking developers access to updated material on RLM, agent harnesses, quality degradation with long contexts, and verifying agent actions in production systems.

About the authors and the edition

Valliappa Lakshmanan is co-founder and CTO of Obin.ai, an agentic AI startup, a former head of AI solutions at Google, and an O'Reilly author. Hannes Hapke is a senior ML engineer at Digits, a Google Developer Expert in machine learning, and co-author of Natural Language Processing in Action.

GenAI Design Patterns: Solutions to Common Problems in Building GenAI Agents and Applications is available on the publisher's website. Buyers of the print edition receive the e-book by email as a gift. Habr members get a 25% discount with the promo code GenAI.

Original byline: ph_piter

Source: habr.com

How an AI Agent Works: The Anatomy of a System from Token Prediction to MCP
Tools

How an AI Agent Works: The Anatomy of a System from Token Prediction to MCP

We examine the inner workings of autonomous neural network agents: how a standard text generator gains hands, memory, and access to real-world tools, why context breaks down, and where the primary risks of automation lie.

Google introduces Tool Retrieval for Gemini: fewer tokens when working with hundreds of tools
Tools

Google introduces Tool Retrieval for Gemini: fewer tokens when working with hundreds of tools

The new Gemini API mechanism loads tool schemas only on request. In Google's calculated scenario, token usage for an agent with 200 functions falls from approximately 164,000 to 23,650.

Local Neural Networks in AppSec: How Open Source is Reshaping Code and Service Security Testing
Tools

Local Neural Networks in AppSec: How Open Source is Reshaping Code and Service Security Testing

The shift from closed cloud APIs to autonomous local LLMs opens new opportunities for security teams: from automated SAST false-positive filtering to dynamic pentesting without the risk of source code leaks.

Zero-Trust Architecture for LLMs: How to Securely Deploy Enterprise AI Agents On-Premises
Tools

Zero-Trust Architecture for LLMs: How to Securely Deploy Enterprise AI Agents On-Premises

Developers from AGIMA have presented an engineering framework for secure on-premise deployment of AI agents. Here is how dual-circuit gateways, Vault integration, and enforced user impersonation prevent corporate secrets from leaking into language models.

Why Enterprise RAG Degrades in Production and How to Bring the Assistant Back to Life
Tools

Why Enterprise RAG Degrades in Production and How to Bring the Assistant Back to Life

We analyze the key reasons RAG systems fail on real-world data—from fatal chunking mistakes to cluttered knowledge bases—and build a robust hybrid search pipeline.

From Harness to MCP: 8 Terms Essential to Understanding Modern AI
Education

From Harness to MCP: 8 Terms Essential to Understanding Modern AI

The artificial intelligence industry has moved beyond simple chatbots to autonomous systems. We break down the key technological vocabulary: the MCP protocol, model harnesses, loop engineering, and the GEO concept.