ERR_SESSION_LOST
Sessions vanish
Claude Code deletes transcripts after 30 days unless told otherwise, and renaming a project folder orphans its sessions. Unfinished work disappears quietly.
IN DESIGN · NOTHING TO INSTALL YET
harness is a thin layer around Claude Code and Codex. It gives every session a verdict and a cause, then turns the lessons into better rules, skills and prompts. Practice in, improvement out.
SIGNAL LOST
Claude Code and Codex already keep rules and memories between sessions. What they lack is a verdict: which sessions worked, which failed, and why. Without it, rules change by feel.
ERR_SESSION_LOST
Claude Code deletes transcripts after 30 days unless told otherwise, and renaming a project folder orphans its sessions. Unfinished work disappears quietly.
ERR_SILENT_SUCCESS
When an agent gets it right, people simply move on. Silence is not a verdict, so nothing ever tells your setup what worked.
ERR_RULES_BY_FEEL
CLAUDE.md and AGENTS.md change after the session that annoyed you most, not after the evidence of a month of work.
THE LOOP
Five stages, run on your own sessions. The link that session viewers and reflection tools leave open is the middle one: from a verdict, to its cause, to a change you can measure.
STAGE 01 / 05
Run Claude Code or Codex as you always do. harness listens through their own hooks and changes nothing in how you work.
ONE SESSION, ONE RECORD
Two fields instead of one: whether the work is finished, and whether it worked. A cause says what to change, and a source says who decided.
SESSION RECORD#0042
A sketch of the planned command line on made-up sessions. The commands and their output will change.
THIN BY DESIGN
harness wraps the agents you already use. It reads, marks and proposes; the agents and their files stay theirs.
Transcripts stay exactly as Claude Code and Codex wrote them. Marks live in a store of their own, keyed by session.
Both expose SessionStart, Stop and SessionEnd. One command serves them; only the readers of their logs differ.
The end of a session never blocks. A verdict is one word, given when you choose to give it.
harness has no server. Marks and transcripts stay on your machine; a judge, if you want one, runs through an agent you already use.
Git tells silence apart: a commit or a merged pull request is not a diff left alone for days.
harness proposes changes to your rules and skills. It never rewrites them on its own.
TWO ENGINES
The two agents keep their sessions in different places but share the hook events that matter. harness reads each in its own way and speaks to both the same.
~/.claude/projects/<path>/<id>.jsonlclaude --resume <id>SessionStart · Stop · SessionEndtranscripts expire after 30 days by default~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonlcodex resume <id>SessionStart · Stop · SessionEndhooks run only after you trust them in /hooksFLIGHT PLAN
Each phase is useful on its own, so data starts to pile up long before there is anything to look at.
This site and the plan. Do one thing today: raise cleanupPeriodDays, so Claude Code keeps transcripts past 30 days.
A store of marks and readers for both logs: one list of the sessions of Claude Code and Codex.
One hook for both agents: wip by default at the end, a name on resume, a one-word verdict on request.
Every unfinished session across both agents, with its resume command — and the sessions a renamed folder lost.
Layered signals: rejected edits and corrections, git state, then an opt-in daily judge for the rest, with its confidence.
A local queue to confirm marks in minutes a week, and the success rate per agent, project and cause.
Failures grouped by cause become proposed edits to rules, skills and prompts, each measured afterwards.
PART OF LIFEOS
harness is not alone. Agents that are your colleagues need somewhere to work with you, and a way to get better at it.
harness is being designed in public. Watch the repository to see the first phase land, or open an issue with the lesson your agents keep getting wrong.