agentleFS
solanodzsolanodz/harness-engineering-skills/skills/harness-state/SKILL.md

harness-state

Skill4 starsChanged 6 months agoMITView on GitHub

Pick up where the last session left off — feature list, progress log, and evidence on disk. Use when context is lost between sessions or long tasks need continuity across days.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not mark passing without an entry in evidence.

    line 60
  2. Very specific:

    Read progress.md → most recent verified state

    line 83
  3. Very specific:

    Read feature_list.json → highest-priority unfinished feature

    line 84
  4. Very specific:

    Update progress.md with what was done and what remains

    line 89
  5. Very specific:

    Update feature_list.json (status + evidence)

    line 90
  6. Distinctive:

    Commit if the repo is restartable

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness State

What this does for you

  • Memory that survives chat — progress and status in files, not context window
  • Clear next step — highest-priority unfinished feature is obvious
  • Proof of done — evidence recorded before marking a feature passing

Long tasks lose continuity if state lives only in chat (Lesson 05). Persist progress on disk so the next session resumes exactly where the last one stopped.

State artifacts

FileRoleUpdate when
feature_list.jsonSource of truth for featuresStatus changes or evidence is added
progress.md / claude-progress.mdSession logAt start (read) and close (write)
session-handoff.mdCompact handoffWhen closing long sessions
Git logChange historyDescriptive commits

feature_list.json rules

{
  "rules": {
    "single_active_feature": true,
    "passing_requires_evidence": true,
    "do_not_skip_verification": true
  }
}

Valid statuses:

  • not_started — no work yet
  • in_progress — active feature (only one)
  • blocked — blocker documented in notes
  • passing — verification run + evidence in evidence[]

Evidence format

"evidence": [
  {
    "date": "2026-06-16",
    "verification_run": "npm test && npm run lint",
    "result": "pass",
    "notes": "42 tests passed, 0 lint errors"
  }
]

Do not mark passing without an entry in evidence.

progress.md structure

# Progress Log

## Current State
- Active feature: [id] — [title]
- Last verification: [command] — [pass/fail]
- Blockers: [none | description]

## Session History

### YYYY-MM-DD — [brief title]
- Worked on: ...
- Verification: ...
- Next: ...

Multi-session flow

Session start:

  1. Read progress.md → most recent verified state
  2. Read feature_list.json → highest-priority unfinished feature
  3. git log --oneline -5 → recent changes
  4. ./init.sh → confirm healthy baseline

Session end:

  1. Update progress.md with what was done and what remains
  2. Update feature_list.json (status + evidence)
  3. Optional: complete session-handoff.md
  4. Commit if the repo is restartable

Anti-patterns

  • Relying on chat memory
  • Marking features done without evidence
  • Leaving multiple features as in_progress
  • Aspirational progress ("almost done") vs verified

Templates

  • templates/progress.md
  • templates/session-handoff.md
  • templates/feature-list.json

Course reference

  • Lesson 05: Why long tasks lose continuity
  • Project 03: Continuity across sessions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.