Teaching an agent to auto-fix bugs
Linear routes Datadog-detected problems into triage, where an automation assigns them to the Linear Agent to run a dedicated skill and attempt a fix. Dead feature flags (a flag evaluating the same way 100% of the time) are one-shot nearly every time because the task is narrow and uniform. Failing background tasks (failure rate above 0.2%) vary too much and get the right fix only about a third of the time, so confidence gates make the agent prove it understands the problem before writing a PR. Success depends on scoping tasks tightly and leaving context for the agent: skills, encoded conventions and legible code.
Related posts
- Agents hate friction: early thoughts on building for agents
ClickHouse easyNovice
Tools designed with good human developer experience (CLIs, SDKs) work with agents but often only adequately, because agents use them differently and abandon products when they hit friction. In ClickHouse's testing with model/harness combinations given varying context, agents have given up after around 30 failed attempts and switched to another database. The author proposes dimensions for measuring agent experience: steps to completion, error messages that enable self-correction, run-to-run consistency, context and token efficiency, and reusing familiar CLI patterns like gh or kubectl. Adding actionable hints to errors is called the lowest-hanging fruit, with the caveat that these lessons may shift as models improve.
- Agent experience and agent-led growth: a chat with Caelean Barnes
Mux easyNovice
Coding agents like Claude Code and Codex increasingly choose which developer tools get adopted, and Gauge measures that choice by running agents in sandboxes, checkpointing sessions, and testing variants of prompts, docs, skills and CLIs against success criteria over many trials. Technical documentation, especially framework-specific setup guides that match the agent's codebase, drives tool selection more than marketing content. Small wording changes have large effects: turning Clerk's "claim your key" prompt into an error roughly tripled CLI account creation, and rephrasing a skill-install suggestion as "verify you have the skill installed" stopped agents from treating it as prompt injection. Detailed, actionable error messages and CLIs with well-defined commands tend to work better for agents than static skill files, which are hard to update.
- IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST
Hugging Face mediumAdeptApplying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace). Open models fail through cascading errors (Kimi-K2 4.7, GPT-OSS-120B 5.3), where an early reasoning-action mismatch poisons context and leads to derailment. Incorrect verification is the strongest predictor of failure overall: agents declare success without checking ground truth. Kimi-K2 struggles mainly with termination, and GPT-OSS-120B loses conversation history in 24% of traces. The recommended fixes are architectural rather than prompt tweaks: external tool-based verification gates, termination and loop control via state machines outside the model, explicit clarify-or-read-only branches, and aggressive context hygiene.
- Skill Issue, Writing /skills to solve agent failures
Railway mediumAdeptAgents driving Railway failed because they lacked platform knowledge: they guessed CLI flags, ignored the 30-tool MCP server unless told to call it, and invented features. Railway fixed this with Agent Skills, first turning internal runbooks into skills scoped to allowed tools. They then published twelve public skills, but agents were bad at loading and unloading them on demand, so the set was collapsed into a single `use-railway` skill. In that skill, SKILL.md acts as a router that loads one or two intent-specific reference files and supporting scripts. A `railway skills install` CLI command distributes the skills to Claude Code, Cursor, Codex and other agent directories, with background auto-updates.
- Agent-driven development in Copilot Applied Science
GitHub Engineering mediumAdeptA Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents. Three principles made this work: conversational, verbose prompting in plan mode; continuous refactoring, documentation and dead-code cleanup so the repo is easy for agents to navigate; and a "blame process, not agents" approach backed by strict typing, linters, and human-only contract tests that prevent agents from rewriting regression tests. With this setup five contributors added 11 agents and four skills in under three days, using a loop of /plan, /autopilot, automated Copilot Code Review iterations, and human review, plus weekly agent-run audits for missing tests, duplication and doc gaps.