Harness Engineering
10xChengTu/harness-engineering
Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.
Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-state --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/durable-session-state .claude/skills/durable-session-state && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .claude/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-stateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-state --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/durable-session-state .agents/skills/durable-session-state && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .agents/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-state --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/durable-session-state .cursor/skills/durable-session-state && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .cursor/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZaxbyHub/opencode-swarm.git --path .claude/skills/durable-session-state--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-state --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/durable-session-state .gemini/skills/durable-session-state && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .gemini/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-stateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/durable-session-state .github/skills/durable-session-state && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .github/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZaxbyHub/opencode-swarm durable-session-state --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/durable-session-state .opencode/skills/durable-session-state && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "durable-session-state" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/durable-session-state into .opencode/skills/durable-session-state/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "durable-session-state", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
durable-session-stateKeeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.
Long swarm-mode sessions can outgrow the context window, and a compacted summary tends to lose what the approval gates depend on, such as which diff a reviewer signed off. The skill has the agent treat the conversation as a cache and keep real state in files under .claude/session/tasks/, in a folder named after the task. Four short files are updated in place: plan.md, decisions.md, evidence.md and gates.md, the last being a ledger of reviewer and critic verdicts. They count as working state, so they stay out of commits unless you ask.
Writing happens at phase boundaries, before a turn ends while background subagents are running, and ahead of compaction once the conversation gets long. On resume the agent re-reads the task files first, does not reopen settled decisions without new evidence or a request from you, and checks whether a recorded approval has gone stale against the current git HEAD and working-tree diff. The excerpt is cut off partway through that staleness check.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a69d1a9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Durable Session State loads about 896 tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 422 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZaxbyHub/opencode-swarm at commit a69d1a9, republished under its MIT licence (© ZaxbyHub). 422 words, ~896 tokens.
.claude/skills/durable-session-state/SKILL.md (or your agent's skills folder).Long swarm-mode sessions outlive their context window. Compaction summarizes history, and summaries lose exactly the things the swarm gates depend on: which diff a reviewer approved, what evidence was recorded, which decisions are settled. Without durable artifacts, a resumed session re-litigates settled decisions or — worse — treats a stale approval as current. Persist state to files as you go; treat the conversation as cache, not storage.
.claude/session/tasks/<task-slug>/ in the project..agents/issue-traces/<issue-slug>/ (that skill's own schema
— 08b-implementation-review.md, 09-final-critic.md — wins for its work)..swarm/ —
that directory is the OpenCode plugin's runtime state, not Claude Code's.git status and exclude
them explicitly.Keep it to four small files per task; update in place:
plan.md — task scope, success criteria, files in scope, what must not
break. Update when scope changes; never fork a second plan file.
decisions.md — one line per settled decision with a one-line rationale
("chose X over Y because Z"). Settled means: do not reopen without new
evidence or a user request.
evidence.md — validation commands run and their outcomes (pass/fail plus
the load-bearing output lines, not full logs).
gates.md — the approval ledger. One entry per reviewer/critic verdict:
## <gate> — <APPROVE|NEEDS_REVISION|BLOCKED>
when: <ISO timestamp or turn marker>
head: <git rev-parse HEAD>
diff: <git diff --stat summary>
items: <blocking items, or none>On resuming (after compaction, a restart, or a handoff), before doing new work:
decisions.md entries or redo work evidence.md
already proves, absent new evidence or a user request.git rev-parse HEAD or the working-tree diff no
longer matches the latest APPROVE entry in gates.md, that approval is
invalid — re-run the affected reviewer/critic gate on the current diff.The swarm-mode contract invalidates any approval issued before the latest
edit. The gates.md ledger is what makes that rule checkable instead of
vibes: record the HEAD and diff summary at approval time, compare on resume
and before final synthesis. If you cannot demonstrate approval-after-last-edit
from the ledger, the gate is not satisfied.
© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/durable-session-state of ZaxbyHub/opencode-swarm.
Open the folder on GitHubat commit a69d1a9
Durable Session State next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Durable Session State this skillZaxbyHub/opencode-swarm | 496 | — | ~896 | Automated safety check: Pass | MIT | |
| Harness Engineering10xChengTu/harness-engineering | 102 | 1 repos | ~1k | Automated safety check: Pass | None | |
| Memori Long-Term MemoryMemoriLabs/Memori | 17k | — | ~2k | Automated safety check: Notes | Custom licence | |
| Planning with FilesOthmanAdi/planning-with-files | 27k | — | ~2.9k | Automated safety check: Pass | MIT | |
| User Thoughts Memorysickn33/agentic-awesome-skills | 47k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Planning With FilesOthmanAdi/planning-with-files | 27k | — | ~3k | Automated safety check: Pass | MIT |
10xChengTu/harness-engineering
Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.
MemoriLabs/Memori
Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.
OthmanAdi/planning-with-files
Keeps a task plan, findings and progress log in markdown files on disk so long agent tasks survive context resets, with Gemini hooks and helper scripts.
sickn33/agentic-awesome-skills
Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.
OthmanAdi/planning-with-files
Keeps a task plan, findings and progress log as Markdown files in the project so long multi-step agent work survives context resets.
OthmanAdi/planning-with-files
Keeps task_plan.md, findings.md and progress.md on disk as the agent's working memory for multi-step work, wired into Kiro steering, with no hooks.
ZaxbyHub/opencode-swarm
Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.
ZaxbyHub/opencode-swarm
Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.
ZaxbyHub/opencode-swarm
Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.
ZaxbyHub/opencode-swarm
Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.
ZaxbyHub/opencode-swarm
Monitor a pull request after creation and act autonomously on pushed PR activity.
ZaxbyHub/opencode-swarm
Bundle transform safety — minification variant selection, consumer-constraint verification, identifier preservation, and namespace re-export coverage for build output.
Categories
Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes. Long swarm-mode sessions can outgrow the context window, and a compacted summary tends to lose what the approval gates depend on, such as which diff a reviewer signed off.claude/session/tasks/, in a folder named after the task.
Durable Session State fits situations like: running a long or multi-phase task that may hit context compaction; recording reviewer or critic approval verdicts during a swarm-mode task; resuming work after compaction, a session restart or a handoff.
Run `npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a claude-code`. Or copy the skill folder (.claude/skills/durable-session-state in ZaxbyHub/opencode-swarm) into .claude/skills/durable-session-state in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a codex`. Or copy the skill folder (.claude/skills/durable-session-state in ZaxbyHub/opencode-swarm) into .agents/skills/durable-session-state in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill durable-session-state -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/durable-session-state, .gemini/skills/durable-session-state, .github/skills/durable-session-state and .opencode/skills/durable-session-state in your project.
Going by SKILL.md and its folder, Durable Session State needs the command-line tools its instructions call (git). Our summary lists: A git repository.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Durable Session State is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 896 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Durable Session State: Harness Engineering (10xChengTu/harness-engineering, 102 stars), Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Planning with Files (OthmanAdi/planning-with-files, 27k stars) and User Thoughts Memory (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 496 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 11, 2026.
Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.