setup
Skill79 starsChanged 4 months agoMITView on GitHub
Initialize, upgrade, or migrate the claude-harness plugin in a project. Use for first-time setup, plugin installation, version migration, memory directory configuration, legacy file cleanup, and project harness initialization.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- hydra-db/hydradb-claude-codetheir own version, first seen Nov 8, 2026
- WALKERKILLER/Look-Tongji-Notestheir own version, first seen Nov 8, 2026
- steerlabs/opensteertheir own version, first seen Nov 8, 2026
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- dsifry/metaswarmtheir own version, first seen Nov 8, 2026
- anombyte93/prd-taskmastertheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-voice-transcription, add-discord and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
juancruzmunozalbeloSkilladd-voice-transcription
Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.
Also in 5 projects that use this
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
juancruzmunozalbeloSkilladd-telegram-swarm
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Also in 7 projects that use this
- +8 more from microsoft
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- anthropics/knowledge-work-plugins★ 35ksame name
- garrytan/gbrain★ 32ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- Q00/ouroboros★ 6.3ksame name
- pytorch/executorch★ 5.2ksame name
- agenticnotetaking/arscontexta★ 3.5ksame name
- aws/agent-toolkit-for-aws★ 3.4ksame name
- spotify/portal-ai-plugins★ 2.8ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkpointSkill
- flowSkill
- mergeSkill
- prd-breakdownSkill
- startSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 1 is distinctive, and 9 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Fallback: If the plugin root path is not available in the session context, fall through to Phase 1 -> Phase 4 (manual setup).
- Very specific: line 37
Plugin updates: Run claude plugin update claude-harness to update the plugin itself.
- Very specific: line 45
Read the current .gitignore file (create if missing)
- Very specific: line 47
Check if .claude-harness/sessions/ pattern exists in the file
- Very specific: line 49
If the pattern is NOT present, append these lines to .gitignore:
- Very specific: line 59
Use the Edit tool to append these patterns to .gitignore
- Very specific: line 85
Run /claude-harness:start to compile context and sync GitHub
- Very specific: line 87
Use /claude-harness:flow "description" for end-to-end automated workflow (recommended)
- Very specific: line 88
Use /claude-harness:flow --no-merge "description" for step-by-step control
- Very specific: line 89
Use /claude-harness:flow --fix feature-XXX "bug" to create bug fixes
“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Setup - Initialize or Upgrade Claude Harness
Initialize or upgrade claude-harness in the current project directory.
Auto-Detection
This command automatically detects what needs to be done:
- Fresh install: Creates v3.0 structure from scratch
- v2.x upgrade: Migrates existing files to v3.0 memory architecture
- Cleanup: Removes legacy command copies from
.claude/commands/(commands are now served from plugin cache)
Note: Commands and hooks are served from the plugin cache. setup.sh only initializes project-level state (memory directories, CLAUDE.md, .gitignore, migrations).
Phase 0: Run setup.sh (Handles ALL Cases)
setup.sh handles fresh installs, v2.x migrations, and cleanup in a single script. Always run it.
Steps:
- Find the plugin root path from the session context (look for "Plugin Root:" in the session start context)
- Run:
bash {plugin-root}/setup.sh- Fresh install: Creates v3.0 structure,
.gitignorepatterns, CLAUDE.md - v2.x migration: Detects legacy files, migrates to v3.0 structure, then creates missing files
- Cleanup: Removes stale command copies from
.claude/commands/and legacy hooks - Existing project files are NEVER overwritten (skipped automatically)
.gitignorepatterns are added if missing
- Fresh install: Creates v3.0 structure,
- Report what was created vs what was skipped
- Skip Phase 3 --
setup.shhandles it
Fallback: If the plugin root path is not available in the session context, fall through to Phase 1 -> Phase 4 (manual setup).
Plugin updates: Run claude plugin update claude-harness to update the plugin itself.
Phase 3: Update Project .gitignore (FALLBACK -- only if setup.sh unavailable)
CRITICAL: You MUST update the project's .gitignore to exclude harness ephemeral files. This prevents uncommitted file clutter after /checkpoint.
Execute these steps:
- Read the current
.gitignorefile (create if missing) - Check if
.claude-harness/sessions/pattern exists in the file - If the pattern is NOT present, append these lines to
.gitignore:# Claude Harness - Ephemeral/Per-Session State .claude-harness/sessions/ .claude-harness/memory/compaction-backups/ # Claude Code - Local settings .claude/settings.local.json - Use the Edit tool to append these patterns to
.gitignore - Report: "Updated .gitignore with harness ephemeral patterns"
DO NOT SKIP THIS PHASE - it is required for proper harness operation.
File Schemas
Canonical schemas are defined in the plugin's schemas/ directory (JSON Schema format). Key state files:
| File | Schema | Created By |
sessions/{id}/context.json | schemas/context.schema.json (v3) | Phase 1 context compilation |
sessions/{id}/loop-state.json | schemas/loop-state.schema.json (v9) | Phase 4 implementation |
sessions/{id}/autonomous-state.json | schemas/autonomous-state.schema.json (v4) | --autonomous mode |
features/active.json | schemas/active-features.schema.json (v3) | Phase 2 feature creation |
Memory knowledge layers (memory/decisions/, failures/, successes/, patterns/, rules/) are an OKF v0.1 bundle -- markdown concept files with YAML frontmatter, not JSON. Their conformance rules are documented in schemas/okf-memory.md and checked by scripts/check-okf.py; setup.sh migrates legacy JSON memory files to the bundle automatically (stamp-gated). Semantic memory (memory/semantic/*.json) and runtime state stay JSON with v3 schemas as created by setup.sh.
After Setup
Report:
- What was done (fresh install / migration / version update)
- Files created or migrated
- Current plugin version
- Next steps:
- Run
/claude-harness:startto compile context and sync GitHub - For new projects: Run
/claude-harness:prd-breakdown @./prd.mdto analyze PRD and extract features - Use
/claude-harness:flow "description"for end-to-end automated workflow (recommended) - Use
/claude-harness:flow --no-merge "description"for step-by-step control - Use
/claude-harness:flow --fix feature-XXX "bug"to create bug fixes
- Run
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
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.

