{"id":10143,"date":"2026-11-19T11:56:46","date_gmt":"2026-11-19T10:56:46","guid":{"rendered":"https:\/\/orienteed.com\/?p=10143"},"modified":"2026-11-24T10:21:41","modified_gmt":"2026-11-24T09:21:41","slug":"ai-harness-reduce-coding-agent-costs","status":"publish","type":"post","link":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/","title":{"rendered":"AI harness: how we cut the cost of our coding agents by 24%"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A coding agent like Claude Code in a five-minute demo looks like a brilliant intern. In a real repository, with hundreds of thousands of lines, it looks more like a brilliant intern with amnesia. It remembers what happens in the current session well, but forgets the project's rules when the context fills up, rereads the whole history on every turn and, every so often, tries to push unreviewed code or touch a file with credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The outcome is familiar: sessions that drag on, a context that degrades, an API bill that climbs and technical debt that grows unseen until the release review.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2.jpg\" alt=\"AI harness: an AI model surrounded by four controls (guardrails, context, model routing and verification)\" class=\"wp-image-10225\" srcset=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2.jpg 1200w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2-300x169.jpg 300w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2-1024x576.jpg 1024w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2-768x432.jpg 768w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-en-v2-18x10.jpg 18w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The problem isn\u2019t the model. Frontier models are within reach of any team, so everyone starts with the same capabilities. What separates the teams that deliver reliable code from those that pile up bills and technical debt is the <strong>AI harness<\/strong> they build around the model (commonly referred to as <em>AI harness engineering<\/em>). We sum it up in an equation:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Agent = Model + Harness<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The model is a probabilistic reasoning engine: very good at proposing code, but it guarantees nothing. The harness is the deterministic software chassis that gives it hands (tools), memory (project state), routes (which model to use for each task) and brakes (controls that block what must not happen). A simple comparison: the CPU does the computing, but without an operating system nobody can use it safely. The model is the CPU; the harness is the operating system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The golden rule of an AI harness: polite suggestions vs. hard blocks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The most common way to control an agent is to write rules in CLAUDE.md or AGENTS.md: \u00abdon't commit secrets\u00bb, \u00abrun the tests before closing\u00bb, \u00abdon't commit to main\u00bb. They work in the demo. In a long session, with the context loaded with logs and files, the model tends to rationalise: it decides this exception doesn't apply or that it has already tested enough. A written rule is a suggestion. It is not a guarantee.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That is why we propose a simple design principle:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Whatever can be checked is checked by a deterministic script. The AI decides only what requires judgement. And every time a written rule is broken, it becomes an automated control.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A pre-commit hook (a script that Git runs automatically before each commit) that scans the diff, i.e., the changes, for API keys is a rule that the model cannot skip. A pre-push that requires green tests also does not depend on the agent remembering to run them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The four pillars of a production harness<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"1024\" src=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1.png\" alt=\"Diagram: Agent = Model + Harness. The 4 pillars of an AI harness: deterministic guardrails, context hygiene, model routing and independent verification\" class=\"wp-image-10359\" style=\"aspect-ratio:0.7998136253203315;width:645px;height:auto\" srcset=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1.png 1080w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1-240x300.png 240w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1-819x1024.png 819w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1-768x960.png 768w, https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/pilares-harness-ia-en-4x5-1-10x12.png 10w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1. Deterministic guardrails (fail-closed by default)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A guardrail fails closed: if it cannot verify something, it blocks the action. A typical setup includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A pre-commit hook that looks for secrets and private data in the diff and blocks the commit if it finds any.<\/li>\n\n\n\n<li>A commit-msg hook that requires traceability: every change must point to a task or ticket.<\/li>\n\n\n\n<li>A pre-push hook that runs the tests and blocks the push if they fail.<\/li>\n\n\n\n<li>Tool-use hooks that stop the agent from reading sensitive files or running destructive commands.<\/li>\n\n\n\n<li>A merge blocked until an independent review mark exists that the agent itself cannot write.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Context and memory hygiene<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There is a hidden cost in any long session: the agent rereads the entire conversation history on every turn. In published measurements of real Claude Code sessions, <a href=\"https:\/\/dev.to\/ploofnexa\/i-measured-where-claude-code-actually-spends-tokens-968-is-re-reading-history-my-typing-was-16gm?utm_source=orienteed.com&amp;utm_medium=referral&amp;utm_campaign=blog-harness-ia\" target=\"_blank\" rel=\"noopener\">96.8% of tokens went to rereading the history<\/a> (32 sessions analyzed). Caching makes those rereads cheaper, but they still add to the bill and fill the context with information that is no longer relevant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The answer is not to ban long sessions, but to reset them with judgement. We use <code>\/clear<\/code> often, combined with a lightweight state-recovery script that injects only what is essential: active branch, task in progress, latest test result and next step. The rest is discarded. The agent picks up the work without dragging the whole session along.<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-advanced-columns-0ae5908b\" class=\"wp-block-themeisle-blocks-advanced-columns alignfull has-1-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-equal-layout has-vertical-center has-light-bg\"><div class=\"wp-block-themeisle-blocks-advanced-columns-overlay\"><\/div><div class=\"innerblocks-wrap\">\n<div id=\"wp-block-themeisle-blocks-advanced-column-5cce5366\" class=\"wp-block-themeisle-blocks-advanced-column\">\n<div class=\"wp-block-themeisle-blocks-service ticss-e80cdc60\">\n<div id=\"wp-block-themeisle-blocks-font-awesome-icons-f80ba529\" class=\"wp-block-themeisle-blocks-font-awesome-icons\"><span class=\"wp-block-themeisle-blocks-font-awesome-icons-container\"><i class=\"fas fa-inbox\"><\/i><\/span><\/div>\n\n\n\n<h2 id=\"wp-block-themeisle-blocks-advanced-heading-68845a16\" class=\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-68845a16\">Subscribe to our newsletter.<\/h2>\n\n\n\n<p id=\"wp-block-themeisle-blocks-advanced-heading-b333ac52\" class=\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b333ac52\">Get the latest insights on digital solutions, industry trends, expert articles, and upcoming events.<\/p>\n\n\n\n<div style=\"text-align: center\" class=\"sender-form-field\" data-sender-form-id=\"lx1ps3zoejyq5d4dkux\"><\/div>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. Model routing and isolated subagents<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not every task deserves the same model. Planning an architecture or reviewing a design decision requires high-level reasoning; writing a repetitive test or changing a template does not. That is why the harness separates roles:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A high-reasoning model in the main thread, which plans and reviews.<\/li>\n\n\n\n<li>Faster, cheaper subagents to run bounded tasks, each on its own work branch.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Each subagent works in isolation, with a closed scope, and returns a result that the main thread validates. This way an error in one task does not contaminate the others.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Independent verification<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An agent cannot mark its own homework. A reviewer who inherits the conversation where the code was written inherits its assumptions too. That is why review always happens in a clean context window, without the history of the session that produced the change. The reviewer receives the diff, the acceptance criteria and the project rules, and nothing else. Many of the errors the author misses show up there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AGENTS.md and the harness, version-controlled in the repository<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For all of this to scale, the harness lives in the repository itself, under version control. The rules are defined in <a href=\"https:\/\/agents.md\/?utm_source=orienteed.com&amp;utm_medium=referral&amp;utm_campaign=blog-harness-ia\" target=\"_blank\" rel=\"noopener\">AGENTS.md<\/a>, an open standard that most coding agents understand (Claude Code, Codex, OpenCode and Cursor, among others), so they aren\u2019t tied to any one tool. Skills, scripts, hooks and templates live alongside it: all in one place, with the same history as the code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The advantage is that an improvement made once reaches every project. Each project only declares its own requirements in a small configuration file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In short: AGENTS.md defines the rules, and the hooks and scripts make sure they are followed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Results: 24.4% savings that pay for quality<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Analyzing our internal engineering sessions (both local and in the cloud) against a baseline without harness controls, we recorded <strong>total savings of 24.4% in API costs<\/strong>, broken down as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>17.6% from model routing: Sonnet for execution instead of Opus for everything.<\/li>\n\n\n\n<li>4.5% from context resets and state recovery.<\/li>\n\n\n\n<li>2.3% from deterministic scripts (Python and Bash) that read logs, roadmaps and the continuous integration (CI) status, instead of letting the model read huge files.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The most relevant figure is not just the savings, but what we reinvest them in. In fact, <strong>19.5% of total spend<\/strong> was deliberately allocated to clean-context code reviews, bug fixes and automated retrospectives. The 24.4% savings comfortably exceed that quality spend: the harness pays for itself.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why move from prompts to an AI harness<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tuning prompts has diminishing returns. A harness works the other way round: every control you add protects all future sessions across the whole team. If your team uses coding agents and still governs them with a rules file, the question is not whether you will have an incident, but when.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stop fine-tuning prompts and start designing the harness. Rules that get broken become controls; tasks that can be checked become scripts; and decisions that need judgment become independent reviews.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to understand how to connect agents to your systems, also read our article on <a href=\"https:\/\/orienteed.com\/en\/model-context-protocol-mcp-the-key-to-a-real-time-ai-that-acts-in-real-time\/\">Model Context Protocol (MCP)<\/a> and how we apply <a href=\"https:\/\/orienteed.com\/en\/ai-in-software-development\/\">AI in software development<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Want an AI harness for your team?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">At Orienteed, we help organizations audit their AI workflows and deploy ready-to-use deterministic harnesses directly in their Git repositories. No external servers and no vendor lock-in. It\u2019s how we build software ourselves: AI speeds up the work, and every change goes through deterministic controls and human review. Book a 30-minute session with our team and we\u2019ll review your setup together.<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-advanced-columns-766c474e\" class=\"wp-block-themeisle-blocks-advanced-columns alignfull has-1-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-equal-layout has-vertical-unset has-light-bg\"><div class=\"wp-block-themeisle-blocks-advanced-columns-overlay\"><\/div><div class=\"innerblocks-wrap\">\n<div id=\"wp-block-themeisle-blocks-advanced-column-90d47fbe\" class=\"wp-block-themeisle-blocks-advanced-column\">\n<div id=\"wp-block-themeisle-blocks-advanced-columns-d3ee70fd\" class=\"wp-block-themeisle-blocks-advanced-columns has-1-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-equal-layout has-vertical-unset\"><div class=\"wp-block-themeisle-blocks-advanced-columns-overlay\"><\/div><div class=\"innerblocks-wrap\">\n<div id=\"wp-block-themeisle-blocks-advanced-column-435148ce\" class=\"wp-block-themeisle-blocks-advanced-column\">\n<div id=\"wp-block-themeisle-blocks-font-awesome-icons-2cb6454f\" class=\"wp-block-themeisle-blocks-font-awesome-icons\"><span class=\"wp-block-themeisle-blocks-font-awesome-icons-container\"><i class=\"fas fa-code\"><\/i><\/span><\/div>\n\n\n\n<h2 id=\"wp-block-themeisle-blocks-advanced-heading-6b9eba4d\" class=\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-6b9eba4d\">Do you need to develop a digital solution for your business?<\/h2>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\" style=\"font-size:24px\">Contact us today here to start an incredible project together.<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-button-group-d9752f49\" class=\"wp-block-themeisle-blocks-button-group wp-block-buttons align-center-desktop\">\n<div id=\"wp-block-themeisle-blocks-button-7db3b5d3\" class=\"wp-block-themeisle-blocks-button wp-block-button\"><a href=\"https:\/\/orienteed.com\/en\/contact-us\/\" target=\"_self\" rel=\"noopener noreferrer\" class=\"wp-block-button__link\"><span>Contact<\/span><\/a><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n<\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Rules in CLAUDE.md aren't enough. Here's how we built an AI harness with deterministic controls that cut our API costs by 24%. Let's talk about your case.<\/p>","protected":false},"author":1,"featured_media":10225,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[188],"tags":[10,256],"class_list":["post-10143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-inteligencia-artificial","tag-inteligencia-artificial","tag-software-development"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Francesco Schettini\"\/>\n\t<meta name=\"google-site-verification\" content=\"google-site-verification=OP49dSEB6tiqv44IxGOKRY9c8TyzfbjxeYPNhyxhcs8\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Orienteed \u2022 We transform technology into exceptional experiences.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API\" \/>\n\t\t<meta property=\"og:description\" content=\"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-19T10:56:46+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-24T09:21:41+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/profile.php?id=61555846676066\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@orienteed\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@orienteed\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#blogposting\",\"name\":\"Harness de IA: c\\u00f3mo reducimos un 24 % el coste de API\",\"headline\":\"Harness de IA: c\\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\\u00f3digo\",\"author\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/author\\\/fschettinioriuenteed-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/orienteed.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/ai-harness-engineering-es-v2.jpg\",\"width\":1200,\"height\":675,\"caption\":\"Harness de IA: un modelo de IA rodeado de cuatro controles (guardarra\\u00edles, contexto, enrutado de modelos y verificaci\\u00f3n)\"},\"datePublished\":\"2026-11-19T11:56:46+01:00\",\"dateModified\":\"2026-11-24T10:21:41+01:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#webpage\"},\"articleSection\":\"Inteligencia Artificial, inteligencia artificial, Software Development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/orienteed.com\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/category\\\/inteligencia-artificial\\\/#listItem\",\"name\":\"Inteligencia Artificial\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/category\\\/inteligencia-artificial\\\/#listItem\",\"position\":2,\"name\":\"Inteligencia Artificial\",\"item\":\"https:\\\/\\\/orienteed.com\\\/en\\\/category\\\/inteligencia-artificial\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#listItem\",\"name\":\"Harness de IA: c\\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\\u00f3digo\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#listItem\",\"position\":3,\"name\":\"Harness de IA: c\\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\\u00f3digo\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/category\\\/inteligencia-artificial\\\/#listItem\",\"name\":\"Inteligencia Artificial\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#organization\",\"name\":\"Orienteed\",\"description\":\"Orienteed \\u2022 We specialize in the development and implementation of digital solutions for your business. Digital Commerce, AI, PLM, Cloud Computing, QA, Testing and more.\",\"url\":\"https:\\\/\\\/orienteed.com\\\/en\\\/\",\"telephone\":\"+34981914837\",\"foundingDate\":\"2016-03-04\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":10,\"maxValue\":50},\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/orienteed.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/logo-orienteed-2024-destacado.png\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#organizationLogo\",\"width\":1920,\"height\":1080,\"caption\":\"logo orienteed 2025\"},\"image\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=61555846676066\",\"https:\\\/\\\/twitter.com\\\/orienteed\",\"https:\\\/\\\/www.instagram.com\\\/orienteedsl\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@orienteed\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/orienteed\\\/\",\"https:\\\/\\\/www.yelp.es\\\/biz\\\/orienteed-sl-a-corua\",\"https:\\\/\\\/www.threads.com\\\/@orienteedsl\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/author\\\/fschettinioriuenteed-com\\\/#author\",\"url\":\"https:\\\/\\\/orienteed.com\\\/en\\\/author\\\/fschettinioriuenteed-com\\\/\",\"name\":\"Francesco Schettini\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d64bbea2b81e2eedf01c882cc599e030115656fbdbbe5e1e5cb9b30f404744b9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Francesco Schettini\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#webpage\",\"url\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/\",\"name\":\"Harness de IA: c\\u00f3mo reducimos un 24 % el coste de API\",\"description\":\"Las reglas en CLAUDE.md no bastan. As\\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/author\\\/fschettinioriuenteed-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/author\\\/fschettinioriuenteed-com\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/orienteed.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/ai-harness-engineering-es-v2.jpg\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#mainImage\",\"width\":1200,\"height\":675,\"caption\":\"Harness de IA: un modelo de IA rodeado de cuatro controles (guardarra\\u00edles, contexto, enrutado de modelos y verificaci\\u00f3n)\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/harness-de-ia-reducir-coste-agentes-codigo\\\/#mainImage\"},\"datePublished\":\"2026-11-19T11:56:46+01:00\",\"dateModified\":\"2026-11-24T10:21:41+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/orienteed.com\\\/en\\\/\",\"name\":\"Orienteed \\u2022 leading digital solutions.\",\"alternateName\":\"Orienteed\",\"description\":\"We transform technology into exceptional experiences.\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/orienteed.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"AI harness: how we cut our API costs by 24%","description":"Rules in CLAUDE.md aren't enough. Here's how we built an AI harness with deterministic controls that cut our API costs by 24%. Let's talk about your case.","canonical_url":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"google-site-verification":"google-site-verification=OP49dSEB6tiqv44IxGOKRY9c8TyzfbjxeYPNhyxhcs8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#blogposting","name":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API","headline":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\u00f3digo","author":{"@id":"https:\/\/orienteed.com\/en\/author\/fschettinioriuenteed-com\/#author"},"publisher":{"@id":"https:\/\/orienteed.com\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg","width":1200,"height":675,"caption":"Harness de IA: un modelo de IA rodeado de cuatro controles (guardarra\u00edles, contexto, enrutado de modelos y verificaci\u00f3n)"},"datePublished":"2026-11-19T11:56:46+01:00","dateModified":"2026-11-24T10:21:41+01:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#webpage"},"isPartOf":{"@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#webpage"},"articleSection":"Inteligencia Artificial, inteligencia artificial, Software Development"},{"@type":"BreadcrumbList","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/orienteed.com\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/#listItem","name":"Inteligencia Artificial"}},{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/#listItem","position":2,"name":"Inteligencia Artificial","item":"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/","nextItem":{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#listItem","name":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\u00f3digo"},"previousItem":{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#listItem","position":3,"name":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\u00f3digo","previousItem":{"@type":"ListItem","@id":"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/#listItem","name":"Inteligencia Artificial"}}]},{"@type":"Organization","@id":"https:\/\/orienteed.com\/en\/#organization","name":"Orienteed","description":"Orienteed \u2022 We specialize in the development and implementation of digital solutions for your business. Digital Commerce, AI, PLM, Cloud Computing, QA, Testing and more.","url":"https:\/\/orienteed.com\/en\/","telephone":"+34981914837","foundingDate":"2016-03-04","numberOfEmployees":{"@type":"QuantitativeValue","minValue":10,"maxValue":50},"logo":{"@type":"ImageObject","url":"https:\/\/orienteed.com\/wp-content\/uploads\/2024\/12\/logo-orienteed-2024-destacado.png","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#organizationLogo","width":1920,"height":1080,"caption":"logo orienteed 2025"},"image":{"@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/profile.php?id=61555846676066","https:\/\/twitter.com\/orienteed","https:\/\/www.instagram.com\/orienteedsl\/","https:\/\/www.youtube.com\/@orienteed","https:\/\/www.linkedin.com\/company\/orienteed\/","https:\/\/www.yelp.es\/biz\/orienteed-sl-a-corua","https:\/\/www.threads.com\/@orienteedsl"]},{"@type":"Person","@id":"https:\/\/orienteed.com\/en\/author\/fschettinioriuenteed-com\/#author","url":"https:\/\/orienteed.com\/en\/author\/fschettinioriuenteed-com\/","name":"Francesco Schettini","image":{"@type":"ImageObject","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d64bbea2b81e2eedf01c882cc599e030115656fbdbbe5e1e5cb9b30f404744b9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Francesco Schettini"}},{"@type":"WebPage","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#webpage","url":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/","name":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API","description":"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/orienteed.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#breadcrumblist"},"author":{"@id":"https:\/\/orienteed.com\/en\/author\/fschettinioriuenteed-com\/#author"},"creator":{"@id":"https:\/\/orienteed.com\/en\/author\/fschettinioriuenteed-com\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg","@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#mainImage","width":1200,"height":675,"caption":"Harness de IA: un modelo de IA rodeado de cuatro controles (guardarra\u00edles, contexto, enrutado de modelos y verificaci\u00f3n)"},"primaryImageOfPage":{"@id":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/#mainImage"},"datePublished":"2026-11-19T11:56:46+01:00","dateModified":"2026-11-24T10:21:41+01:00"},{"@type":"WebSite","@id":"https:\/\/orienteed.com\/en\/#website","url":"https:\/\/orienteed.com\/en\/","name":"Orienteed \u2022 leading digital solutions.","alternateName":"Orienteed","description":"We transform technology into exceptional experiences.","inLanguage":"en-US","publisher":{"@id":"https:\/\/orienteed.com\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Orienteed \u2022 We transform technology into exceptional experiences.","og:type":"article","og:title":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API","og:description":"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.","og:url":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/","og:image":"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg","og:image:secure_url":"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg","og:image:width":1200,"og:image:height":675,"article:published_time":"2026-11-19T10:56:46+00:00","article:modified_time":"2026-11-24T09:21:41+00:00","article:publisher":"https:\/\/www.facebook.com\/profile.php?id=61555846676066","twitter:card":"summary_large_image","twitter:site":"@orienteed","twitter:title":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de API","twitter:description":"Las reglas en CLAUDE.md no bastan. As\u00ed montamos un harness de IA con controles deterministas que redujo un 24 % el coste de API. Hablemos de tu caso.","twitter:creator":"@orienteed","twitter:image":"https:\/\/orienteed.com\/wp-content\/uploads\/2026\/11\/ai-harness-engineering-es-v2.jpg"},"aioseo_meta_data":{"post_id":"10143","title":"AI harness: how we cut our API costs by 24%","description":"Rules in CLAUDE.md aren't enough. Here's how we built an AI harness with deterministic controls that cut our API costs by 24%. Let's talk about your case.","keywords":null,"keyphrases":{"additional":[],"focus":{"keyphrase":"harness de IA"}},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-11-17 12:08:44","updated":"2026-11-24 10:07:58","seo_analyzer_scan_date":null,"focus_keyword":"harness de IA","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/orienteed.com\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/\" title=\"Inteligencia Artificial\">Inteligencia Artificial<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHarness de IA: c\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\u00f3digo\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/orienteed.com\/en\/"},{"label":"Inteligencia Artificial","link":"https:\/\/orienteed.com\/en\/category\/inteligencia-artificial\/"},{"label":"Harness de IA: c\u00f3mo reducimos un 24 % el coste de nuestros agentes de c\u00f3digo","link":"https:\/\/orienteed.com\/en\/harness-de-ia-reducir-coste-agentes-codigo\/"}],"_links":{"self":[{"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/posts\/10143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/comments?post=10143"}],"version-history":[{"count":14,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/posts\/10143\/revisions"}],"predecessor-version":[{"id":10361,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/posts\/10143\/revisions\/10361"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/media\/10225"}],"wp:attachment":[{"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/media?parent=10143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/categories?post=10143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orienteed.com\/en\/wp-json\/wp\/v2\/tags?post=10143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}