Help us improve
Share bugs, ideas, or general feedback.
From claude-harness
Initializes, upgrades, or migrates claude-harness plugin in projects. Handles fresh installs, v2.x migrations, legacy cleanup, memory directories, and .gitignore updates for ephemeral files.
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-agent-framework --plugin panayiotism-claude-harnessHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-harness:setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize or upgrade claude-harness in the current project directory.
Syncs HCF project config with latest plugin defaults: adds missing CLAUDE.md/.claude files, appends .gitignore entries, flags pipeline differences. Use after HCF plugin updates.
Migrates Mycelium projects from legacy npx-degit install (.claude/skills) to plugin install (.claude/ state only). Detects state, guides plugin setup, runs migration via git, verifies preservation. Idempotent.
Initializes and repairs Harness project configuration: CLAUDE.md, Plans.md, hooks, sync, CI/CD, Codex CLI, memory setup, agent config, and mirror sync.
Share bugs, ideas, or general feedback.
Initialize or upgrade claude-harness in the current project directory.
This command automatically detects what needs to be done:
.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).
setup.sh handles fresh installs, v2.x migrations, and cleanup in a single script. Always run it.
Steps:
bash {plugin-root}/setup.sh
.gitignore patterns, CLAUDE.md.claude/commands/ and legacy hooks.gitignore patterns are added if missingsetup.sh handles itFallback: 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.
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 .gitignore file (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.
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 (v8) | Phase 4 implementation |
sessions/{id}/autonomous-state.json | schemas/autonomous-state.schema.json (v3) | --autonomous mode |
features/active.json | schemas/active-features.schema.json (v3) | Phase 2 feature creation |
memory/procedural/failures.json | schemas/memory-entries.schema.json (v3) | Verification failures |
memory/procedural/successes.json | schemas/memory-entries.schema.json (v3) | Verification passes |
All other memory files (episodic, semantic, learned) use v3 schemas as created by setup.sh.
Report:
/claude-harness:start to compile context and sync GitHub/claude-harness:prd-breakdown @./prd.md to analyze PRD and extract features/claude-harness:flow "description" for end-to-end automated workflow (recommended)/claude-harness:flow --no-merge "description" for step-by-step control/claude-harness:flow --fix feature-XXX "bug" to create bug fixes