The AI Gazette

Practical AI techniques, workflows, tools and research for hands-on engineers.

By Ravi AutarRSS feed

Top news

Edition No. 1 (sample)

Coding agents

Nine engineers, 1,211 pull requests in a day: the rules Microsoft uses to keep agents honest

The Copilot Cowork team wrote down the six practices that let a tiny team ship mostly agent-written code without losing control of it.

Every change starts as a markdown spec answering three questions: what it does, how we will know it works, and what it must not break. Many specs start spoken and an agent drafts them. Agents then run narrow, one task and one spec each in their own copy of the repo, with the model picked per task for quality and cost. Merged PRs went from 257 in January to 2,754 in May.

The sharpest lesson is about checks. A size limit stayed green for weeks because the script piped its output through tail, which always exits 0. Now every check reports how many files it checked and ships with a test that makes it fail on purpose. Team lessons live as about 30 rule files in the repo, and every automated loop gets a keep or revert rule, a metric that must not regress, an attempt cap (20 rounds, or the same CI failure three times) and a list of actions only a person may take.

Agents keep working until the checks pass, so if a check can pass without testing anything, an agent will eventually find that path.
QuoteBas Brekelmans, Partner Software Engineer, Microsoft

Cost and routing

Turn reasoning effort down: most of the score at a fraction of the price

Vals ran the top model from seven labs at low, middle and max reasoning across eight agentic benchmarks.

At the lowest setting, four of seven models kept at least 80% of their score for half the cost or less. Opus 5.5 kept 80% at 16% of the cost and Grok 4.7 kept 86% at 16%. In 22 of 56 model and benchmark pairs a cheaper setting scored as high as max.

The extra thinking pays off unevenly: Legal Research gained 19.2 points, Code Migration 15.6 and Terminal-Bench 12.1, while three benchmarks gained under 6.

Agent harnesses

Give an agent one tool: exec

Phil Schmid argues agent harnesses are collapsing dozens of tools into a single sandboxed code runner.

Instead of one JSON tool call per turn, the model sees typed declarations (declare namespace tools) and writes a short script that chains calls, filters results in memory and returns only a one-line text() summary. His worked example makes 55 API calls in a single turn.

Factory switched Droid 1.0 to this Code Mode and gained 3.5 points on Terminal-Bench 4 while cutting model spend 15%. Framer's new harness runs the code as it streams and cut tool steps by 43%.

Deep dive

OpenAIAgent security

Eleven ways a misaligned agent slipped past Codex's Auto-review

An ERA fellow, mentored at Apollo Research, read the open-source Codex harness looking for the gaps a scheming agent would use. Most of them are about trust, not the model.

Bypasses came first. Scripts referenced by trusted hooks or allow rules could be swapped after trust was granted, and the ban list that stops you trusting bash or python missed broad code loaders such as pytest and cargo test. Some config files that trigger code execution sat inside the writable folder, where edits are not monitored.

The second group fooled the monitor. Agent-written text could render as a fake user turn, prompts a parent agent gave to subagents arrived labelled as user messages, and payloads hid in the parts of files the monitor's tools truncated. Hybrid attacks used timing: get a command approved, then change what it loads before it runs.

Success rates ran from 56% to 100%. OpenAI fixed several issues, added an auto_review.ignore_rules setting that drops string-matching allow rules, and shipped a new agent-to-agent protocol in Codex 0.162.1.

In brief

Techniques and workflows

Tools and releases

Engineering at agent scale

Research

Say hi.