/claude-harness:startfrom Claude Harness
Initializes a development session with context compilation, GitHub sync, and memory loading. Covers session start, project status checks, context restoration, and GitHub issue synchronization.
Ships in Claude Harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prepare for a new coding session: compile memory context, show status, sync GitHub.
Session ID: ${CLAUDE_SESSION_ID} — session state lives in .claude-harness/sessions/${CLAUDE_SESSION_ID}/.
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/compile-briefing.py" .claude-harness 2>/dev/null || echo "(harness state not initialized - run /claude-harness:setup)"
Migrations are handled by setup.sh, which the SessionStart hook runs automatically whenever the plugin version changes. Only act here if legacy files are visible at the project root (feature-list.json, feature-archive.json, claude-progress.json, working-context.json, agent-context.json, agent-memory.json, init.sh): run bash {plugin-root}/setup.sh once (plugin root is in the session context) and report what it migrated.
FEATURES_FILE=".claude-harness/features/active.json"ARCHIVE_FILE=".claude-harness/features/archive.json"MEMORY_DIR=".claude-harness/memory/"SESSION_DIR=".claude-harness/sessions/${CLAUDE_SESSION_ID}/"Important: All subsequent phases must use these path variables instead of hardcoded paths.
The snapshot above already contains the compiled overview (features, recent decisions, failures to avoid, learned rules, last session). Use it directly - do NOT re-read the memory files unless you need detail beyond the snapshot.
Deep-dive reads (only when needed): if the active feature requires filtering memory by relatedFiles, read IN PARALLEL (single message, multiple Read calls) -- memory layers are OKF concept files (markdown with YAML frontmatter), so read each directory's index.md first, then only the relevant concept files:
${FEATURES_FILE} (full feature entries)${MEMORY_DIR}/failures/index.md (then relevant Failure concepts)${MEMORY_DIR}/successes/index.md (then relevant Success concepts)${MEMORY_DIR}/decisions/index.md (then relevant Decision concepts)${MEMORY_DIR}/rules/index.md (then relevant Rule concepts)Write compiled context to ${SESSION_DIR}/context.json:
{
"version": 3,
"computedAt": "{ISO timestamp}",
"sessionId": "${CLAUDE_SESSION_ID}",
"github": { "owner": "{from session context}", "repo": "{from session context}" },
"activeFeature": "{feature-id or null}",
"relevantMemory": {
"recentDecisions": [{...}],
"projectPatterns": [{...}],
"avoidApproaches": [{...}],
"learnedRules": [{...}]
},
"currentTask": {
"description": "{feature description}",
"files": ["{relatedFiles}"],
"acceptanceCriteria": ["{verification}"]
}
}
relevantMemory filtering: failures/successes where feature matches or files overlap the active feature's relatedFiles (top 5 each); decisions from the last 7 days or last 20 entries; learned rules where applicability.always is true, or applicability.features/filePatterns match the active feature.Display memory summary:
MEMORY CONTEXT COMPILED
Recent decisions: {N} loaded
Success patterns: {N} loaded
Approaches to AVOID: {N} loaded
Learned rules: {N} active
If avoidApproaches or learned rules have entries, list them prominently.
Regenerate persistent session briefing at .claude-harness/session-briefing.md (same format as the snapshot above, keep under 120 lines). This keeps the briefing fresh for the next session start. Report: "Session briefing refreshed".
If the compiled context has an activeFeature, display prominently:
=== Resuming Work ===
Feature: {activeFeature} - {summary}
Working files: {relatedFiles}
Next steps: {from briefing}
Read .claude-harness/claude-progress.json for last-session summary and blockers.
Read ${FEATURES_FILE} to identify next priority.
grep for pending features and run /claude-harness:checkpoint to archive completed ones.Check active loop state (PRIORITY):
.claude-harness/sessions/.recovery/interrupted.json. If it exists:
INTERRUPTED SESSION DETECTED
Feature: {feature} | TDD Phase: {tddPhase} | Attempt: {attemptAtInterrupt}
Resume: /claude-harness:flow {feature} (recovery options will be presented)
${SESSION_DIR}/loop-state.json (legacy fallbacks: .claude-harness/loops/state.json, .claude-harness/loop-state.json)status is "in_progress": display feature/fix, attempt count, last approach and result, and the resume command /claude-harness:flow {feature}status is "escalated": show escalation reason and history summary; recommend providing guidance or retrying with a fresh delegationCheck pending fixes: read ${FEATURES_FILE} fixes array for entries with status != "passing" and list them with their linked features.
Check orchestration state: read .claude-harness/agents/context.json if it exists.
currentSession.activeFeature set -> incomplete orchestration; recommend /claude-harness:flow {feature-id} to resumeteamState non-null -> display the team roster and status. Note: Agent Teams do not survive session restarts; if teammates are gone, flow will offer to spawn fresh ones or fall back to direct implementation.Check procedural memory hotspots: read ${MEMORY_DIR}/patterns/index.md if it exists; report any Pattern concepts affecting current work.
Get GitHub owner/repo: use the cached values from the session context (injected at SessionStart). Only if absent, parse once from git remote get-url origin.
Fetch and display GitHub dashboard (requires gh CLI; on failure check gh auth status and skip gracefully):
gh issue list --label feature --json number,title,labelsgh pr list --json number,title,headRefName,statusCheckRollup${FEATURES_FILE}Sync GitHub Issues with ${FEATURES_FILE}:
gh issue close {number}/claude-harness:flow {fix-id}/claude-harness:flow {feature-id}/claude-harness:flow {fix-id}/claude-harness:prd-breakdown @./prd.md/claude-harness:flow {feature-id}/claude-harness:flow "description"/claude-harness:flow --fix {feature-id} "bug description"What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/checkpointSave session progress by committing changes, pushing to remote, creating or updating a pull request, persisting decisions and patterns to memory layers, compiling session briefing, and archiving completed features. Use when saving work, creating a PR, preserving session state, or manually checkpointing progress./flowUnified end-to-end development workflow - creates a feature (GitHub issue, branch, Gherkin acceptance criteria), implements it in an isolated subagent via ATDD, verifies, checkpoints (commit/push/PR), and merges. Use for implementing features, fixing bugs, batch-processing a feature backlog, or planning implementations./mergeMerge all open pull requests, close linked issues, delete feature branches, and clean up local and remote refs. Use when completing features, merging PRs after review, or finalizing a release cycle.panayiotism-claude-harness@cascade-ai-ml-agents-agent-framework is listed by joshuarweaver/cascade-ai-ml-agents-agent-framework — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-agent-framework --plugin panayiotism-claude-harnessOther plugins' skills for the same job