NewsCrawler.org

Building a self-improving harness for coding agents with Claude Code and Codex

自分の代わりに動くAgentへ。Claude CodeとCodexで作る自律改善ハーネス
左の「私」は一言で依頼し、確認と判断だけをする。中央では調査・資料作成・開発・検証・チャット確認・ハーネスの見直しのセッションが並行して動き、下のハーネス(規約・記録・共有ボード)がどのセッションにも同じ前提を渡し、次のセッションへ引き継ぐ
中心から大規模言語モデル(LLM)、Agentループ、コンテキスト、ハーネスの同心円。ハーネスの輪に規約、台帳、文脈の蓄積、記録と原本、検査と自己改善がある
Agentが薄い入口を読み、_harnessの規約、台帳、文脈、記録、スキル、スクリプト、フックと、作業場所がタスクIDでつながる構成図
Image: zenn.dev

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.

Read the original zenn.dev

Sources

  • Zenn JA

    自分の代わりに動くAgentへ。Claude CodeとCodexで作る自律改善ハーネス

    182 likes127 bookmarks0 comments

Earlier in this story

  1. DeepSeek harness: author says it handled a full project from UI to server deployment

The whole story · 2 →

Published: First seen: Читать по-русски

Open as a page