# Teaching coding agents to work the way you do

> Source: <https://accomplish.ai/blog/teaching-coding-agents-to-work-the-way-you-do/>
> Published: 2026-11-17 00:00:00+00:00

**Recommendation:** Capture recurring corrections as rules in CLAUDE.md, AGENTS.md or skills files and apply them before the next task; the source measured 65% fewer steering messages on later tasks and 20% lower API cost.
More in the playbook "Working with AI coding agents": <https://wpnews.pro/playbooks/coding-agents>

Measuring self-improvement loops through simulation

Ever since my life started revolving around evaluating my agent’s work and giving feedback, I have found myself asking agents to back their claims with data, explain pros and cons in short tables, and answer my questions rather than taking them as a “go” to start implementing. These expectations often go unstated in my initial prompt because I never had to explain them to colleagues, so I end up repeating them.

I have to steer the agent as it works. If it starts changing code when I only asked a question, I stop it and ask it to answer first.

We wanted to measure whether an agent could learn these expectations from feedback and need less steering in later sessions. To repeat the comparison, we built a simulated version of me that could work through the same coding tasks: Robo-Yair.

## Building Robo-Yair

An agent reviewed 567 messages from 38 of my Claude Code and Codex sessions and extracted eight recurring rules for how the agent should work and communicate. It excluded tool- and company-specific details to avoid leaking confidential information.

The rules, their exceptions, and examples became Robo-Yair’s system prompt, along with my short, mostly lowercase writing style.

Opus 5.5 at medium effort played Robo-Yair in a persistent session for each task. It saw the coding agent’s messages, tool calls, diffs, and truncated output. It had no tools or direct access to files or Git.

## Testing across coding sessions

We used 27 tasks from entireio/cli, a Go repository, in SWE-Together. The benchmark reconstructs coding sessions with follow-up requests from a simulated user. These interactions let us observe how the agent responds to a developer’s expectations while doing coding work.

Sonnet 5.5 did the coding. In Plain, no guidance learned from earlier tasks carried forward. In Learning loop, each task used the guidance accumulated so far.

We ran Plain and Learning loop three times each, using the same task order and resetting learned state between runs. All six runs completed 27 tasks. Robo-Yair could send up to 15 steering messages per task. A separate Opus 5.5 session judged the final code; rubric scores of at least 0.85 counted as a pass.

## What changes between sessions

The learning process looks for moments in a session: corrections, failures, or repeated work. A judge decides whether to propose a change, watch for more evidence, or drop it. A reviewer turns selected moments into instruction changes.

The changes go into skills or context files such as CLAUDE.md and AGENTS.md, including pointers telling the agent when to read a skill. We applied them automatically before the next task. The model and coding agent stayed fixed. Learning and evaluation continued through the same sequence, including the warm-up period, simulating what a real user would have experienced.

## What happened over 27 tasks

We counted Robo-Yair’s steering messages separately from the benchmark’s scripted task follow-ups. Across three runs, Plain received 361 steering messages and Learning loop received 179. On tasks 11 through 27, Learning loop received 65% fewer.

The coding agent’s API cost was 14% lower overall and 20% lower on tasks 11 through 27.

Task success averaged 65.4% in Plain and 69.1% with learning across three runs, with no clear difference.

## What we’re exploring next

We’re now evaluating this approach across fleets of coding agents and simulating workflows end to end. We’re tracking behavior and performance metrics across those workflows as the agents continue to learn.
