All field guides

    Chiri field guides

    The Field Guide to the AI Harness

    The systems that let an AI model act safely.

    Read the guide PDF options

    Guide contents
    1. The Model and Its Runtime
    2. Contents
    3. From Output to Action
    4. A Growing Engineering Practice
    5. What Is a Harness
    6. Working Components
    7. The Execution Loop
    8. Guides and Sensors
    9. Builder and User Layers
    10. Eight Useful Components
    11. Check Each Component
    12. Read Benchmark Results Carefully
    13. Check the Attribution
    14. Forecasts Are Not Adoption Counts
    15. A Published Runtime Example
    16. Define Chiri Acceptance Checks
    17. Improve the Complete System
    18. Working Definitions
    19. Sources and Review Limits

    The Model and Its Runtime

    A harness is software around a model. It manages tools, context, execution, and controls. Different harnesses can produce different results. The design needs testing for the intended task.

    Contents

    This guide covers execution loops, control layers, components, evaluations, and practical checks. The contents above link to each reviewed section.

    From Output to Action

    A model produces outputs. Surrounding software can execute tools and return results. Together, these parts can form an agent. The harness determines which actions the system permits.

    A Growing Engineering Practice

    Harness engineering combines instructions, tools, context management, execution, and feedback. Authors use different boundaries for the term. This guide does not assign a single inventor or a precise adoption date.

    What Is a Harness

    A harness connects a model to tools and execution controls. It can store state, manage context, and limit actions. Capabilities vary by implementation. Test the complete system rather than assuming the model alone determines results.

    Working Components

    Tools perform defined actions. Memory stores information across steps. Permission checks limit access. Logs record relevant events.

    These components need explicit interfaces and failure handling.

    Original source illustration and labels for Working Components, page 7.
    Archived source illustration. The reviewed text and its sources appear above.

    The Execution Loop

    The model proposes an action. The runtime checks permissions and executes the permitted action. The runtime returns a result. The next step uses that result.

    Define stopping rules and limits for repeated failures.

    Guides and Sensors

    Birgitta Böckeler describes guides and sensors in Harness Engineering on Martin Fowler’s website. Guides influence behavior before an action. Sensors provide feedback after an action. Tests can supply feedback about results.

    Builder and User Layers

    Ralph Bean discusses builder and user harnesses and credits Birgitta Böckeler for the distinction. Vendors and users can control different layers. A team may configure a runtime or build one. The boundary depends on the system.

    Eight Useful Components

    Databricks lists eight components: system prompts, tools, sandboxes, filesystem, memory, feedback, guardrails, and observability. This is a useful inventory. It is not a universal standard or a guarantee of production readiness.

    Check Each Component

    System prompts define instructions. Tools expose actions. Sandboxes isolate execution. Filesystems store data.

    Memory manages retained context. Feedback checks results. Guardrails limit permitted behavior. Observability records system behavior.

    Test boundaries between components as well as each component.

    Read Benchmark Results Carefully

    Endor Labs reported GPT-5.5 functional scores of 61.5% with Codex and 87.2% with Cursor in Agent Security League. These are functional scores, not security scores. They do not isolate the harness as the sole cause. METR reported 50.7% and 14.5% of bootstrap samples favoring the specialized scaffolds.

    These percentages are not task win rates. METR found neither time-horizon difference statistically significant.

    Check the Attribution

    Vivek Trivedy wrote The anatomy of an agent harness for LangChain. Birgitta Böckeler wrote Harness Engineering on Martin Fowler’s website. Anthropic describes runtime design for long-running agents. These sources use related concepts with different scopes.

    Forecasts Are Not Adoption Counts

    In August 2025, Gartner forecast task-specific agents in 40% of enterprise applications by the end of 2026. Its forecast started below 5% in 2025. A separate June 2025 forecast predicted cancellation of over 40% of agentic AI projects by the end of 2027. Neither forecast establishes an observed adoption or failure rate.

    A Published Runtime Example

    Anthropic describes separate initialization and coding work for long-running agents. Its design includes progress records and verification. This example illustrates context and continuity problems. It does not establish one mandatory architecture.

    Define Chiri Acceptance Checks

    Confirm the integrations needed for each use case. Test memory updates, permission failures, organization boundaries, and audit records. Verify export and ownership terms. Publish capability counts or guarantees only after checking current implementation evidence.

    Improve the Complete System

    Measure failures before changing the model or runtime. Add representative tests. Check context quality, permissions, and stopping rules. Compare changes on the same tasks.

    Record costs and limits beside success rates.

    Working Definitions

    A runtime executes and controls software actions. A harness connects that runtime with model instructions, tools, and context. A sandbox provides an execution boundary. Observability means records and signals that help inspect behavior.

    Boundaries vary across implementations.

    Sources and Review Limits

    Section links identify primary explanations and studies. Forecasts retain their dates and populations. Unsupported adoption figures and author attributions do not appear in this edition. The original PDF remains an archive.

    Optional archived PDF download

    The reviewed reading edition above is free. This form also requests Chiri email updates.

    The July 2026 PDF retains original claims. It does not include the corrections above.