Building a self-improving harness for coding agents with Claude Code and Codex
The author describes a personal harness[1] built since July 2026 so that coding agents in Claude Code and Codex can carry out the author's work autonomously and remember earlier instructions. The agents handle not only development but also research, document preparation and checking chats. The author started because past work could not be traced, the same instructions had to be repeated, and the settings for Claude Code and Codex drifted apart.
The harness is split into five parts (rules, registry, context, journal and checks), all kept in one Git repository called _harness. Task status is stored in a machine-readable form using frontmatter[2], and hooks[3] save the full conversation automatically. The author argues that a fixed structure of folders and files matters more than a carefully written prompt, because a prompt ends with its session while a structure can be read and checked by any agent.
Over about four months, 316 tasks and 1,329 agent sessions ran through the harness, and the author says productivity changes were not measured. In one case, an agent in another session found a conflict between a September decision and an old rule. During a harness review, an agent formed a team of six agents and paused only for questions that needed the author's decision. Agents also rebuilt 26 slides, made as images, into editable PowerPoint files, one slide at a time in parallel.
Sources
-
JPZenn JA
自分の代わりに動くAgentへ。Claude CodeとCodexで作る自律改善ハーネス






