PROJECT CASE STUDY
AI Coding Harness Kit: Memory for AI Coding Agents
Open-source toolkit that gives Claude Code, Codex, Cursor and other AI coding agents memory between sessions: four Markdown files, skills, a CLI and an MCP server.
The problem
AI coding agents start every session from zero. They repeat dead ends, undo yesterday's decisions, and need the project explained again. The problem gets worse when several agents (Claude Code, Codex, Cursor, OpenCode) work on the same repository, or when a project is picked up again after months.
How it works
The project's working state lives in four plain files at the repository root. AGENTS.md holds how to work here and a short loop every agent follows. SESSION.md is the dated log of changes, findings, failed attempts, open issues and the next action. CHECKLIST.md is the deliverables or task list, ticked only with evidence. HANDOFF.md is the starting point for the next agent or person.
One command, npx ai-coding-harness-kit init, adds the files without overwriting anything. When a repository already has an AGENTS.md, it appends the workflow section. It also copies five skills (setup, log, verify, handoff, resume) into the folders each tool reads: .claude/skills for Claude Code, .agents/skills for Codex, Cursor, Copilot, Antigravity and OpenCode, and .windsurf/skills for Windsurf.
A zero-dependency MCP server exposes the harness to any MCP client as tools (status, log, set next action, handoff, init, doctor, archive), with the skills available as prompts. The kit also ships as a Claude Code plugin and a Gemini CLI extension. A doctor command flags when SESSION.md has fallen behind the git history.
Results and limits
The kit is published on GitHub under the MIT license, with an automated test suite for the CLI and the MCP protocol that runs on Linux, macOS and Windows. It grew out of the four-file setup described in the AI Coding Harness article, which I reuse on every project.
The harness depends on the agent following the instructions in AGENTS.md. Current frontier models generally do, but not always. SESSION.md needs occasional archiving on long projects, and agents working in parallel still need separate tasks.
Read the article behind the kit · View source and evidence · All work