From claude-harness
Orchestrates unified workflows for feature implementation, bug fixes, autonomous batch processing, planning, ATDD agent teams, and end-to-end coding.
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-agent-framework --plugin panayiotism-claude-harnessThis skill uses the workspace's default tool permissions.
The single command for all development workflows. Handles the entire feature lifecycle from creation to merge.
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
The single command for all development workflows. Handles the entire feature lifecycle from creation to merge.
Arguments: $ARGUMENTS
All workflows run through this single entry point with flags:
/claude-harness:flow "Add dark mode support" # Standard workflow
/claude-harness:flow --autonomous # Batch process all features
/claude-harness:flow --plan-only "Big refactor" # Plan only, implement later
/claude-harness:flow --team "Add user login" # ATDD with Agent Team (3 teammates)
Lifecycle: Context -> Creation -> [Subagent Delegation] -> Planning -> Implementation -> Verification -> Checkpoint -> Merge -> [Result Processing]
Context Isolation: In standard mode, Phases 3-6 run inside an isolated subagent (via Task tool). The main context stays clean after feature completion -- no /clear needed between features.
ATDD Team Lifecycle (with --team): Context -> Creation (with Gherkin criteria) -> [Subagent Delegation] -> Planning -> Team Spawn -> Acceptance Tests (RED) -> Implementation (GREEN) -> Review -> Verify -> Checkpoint -> Merge
| Phase | Effort | Why |
|---|---|---|
| Context Compilation | low | Mechanical data loading |
| Feature Creation / Selection / Conflict Detection | low | Template-based, deterministic |
| Planning | max | Determines approach quality, avoids past failures |
| Implementation | high | Core coding, escalate to max on retry |
| Verification / Debug | max | Root-cause analysis needs deepest reasoning |
| Checkpoint / Merge | low | Mechanical operations |
| Subagent Delegation (autonomous) | low | Mechanical prompt assembly and result parsing |
Adaptive Escalation (progressive on retries): Attempts 1-5: high. Attempts 6-10: max. Attempts 11-15: max + full procedural memory.
On models without effort controls, all phases run at default effort.
Parse arguments:
feature-\d+: Resume existing featurefix-feature-\d+-\d+: Resume existing fix--fix <feature-id> "description": Create fix linked to featureParse options:
--no-merge: Skip merge phase (stop at checkpoint)--quick: Implement directly without planning phase--plan-only: Stop after Phase 3. Resume later with feature ID.--autonomous: Outer loop -- iterate all active features--team: Use Agent Teams for ATDD implementation (requires agentTeams.enabled in config.json)Mode validation:
--autonomous: Compatible with --no-merge, --quick, and --team. Proceed to Autonomous Wrapper.--plan-only: Proceeds through Phases 0-3 then STOPS. Incompatible with --team.--team: Compatible with --autonomous, --no-merge. Incompatible with --quick and --plan-only.Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full Agent Teams ATDD details.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS env var is set to 1.claude-harness/config.json agentTeams section: verify enabled is truedefaultTeamSize, roles, requirePlanApproval, teammateModelWhen --autonomous is set, the flow operates as a lean orchestrator loop that iterates all active features. Each feature is executed in an isolated subagent context via the Task tool.
Read ${CLAUDE_SKILL_DIR}/references/autonomous-wrapper.md for the full autonomous orchestration phases (A.1 through A.7).
Both standard and autonomous modes delegate feature implementation to a general-purpose subagent via the Task tool. This provides:
--team is used, the Agent Team lifecycle is fully contained within the subagentStandard mode (Phase 2.5): Single feature delegated after creation. Autonomous mode (Phase A.4): Multiple features delegated in a loop.
Read all memory layers IN PARALLEL for speed.
Set paths:
FEATURES_FILE=".claude-harness/features/active.json"MEMORY_DIR=".claude-harness/memory/"ARCHIVE_FILE=".claude-harness/features/archive.json"Parse and cache GitHub repo (do this ONCE):
REMOTE_URL=$(git remote get-url origin 2>/dev/null)
Parse owner/repo from SSH or HTTPS URL. Store for reuse.
Read IN PARALLEL: failures.json, successes.json, decisions.json, rules.json, active.json
Compile working context to .claude-harness/sessions/{session-id}/context.json:
{
"version": 3, "computedAt": "{ISO}", "sessionId": "{session-id}",
"github": { "owner": "{parsed}", "repo": "{parsed}" },
"activeFeature": null,
"relevantMemory": { "recentDecisions": [], "projectPatterns": [], "avoidApproaches": [], "learnedRules": [] }
}
Display context summary: memory stats, GitHub info.
Use cached GitHub owner/repo from Phase 1.
Generate feature ID: Read active.json, find highest ID, generate next feature-XXX.
Define acceptance criteria (ATDD -- always on):
acceptanceCriteria (from PRD breakdown): use those{ "scenario", "given", "when", "then" }Create GitHub Issue: mcp__github__create_issue with labels ["feature", "claude-harness", "flow"], body with Problem/Solution/Acceptance Criteria (Gherkin)/Verification. STOP if fails.
Create and checkout branch: mcp__github__create_branch, then git fetch origin && git checkout feature/feature-XXX.
Create feature entry in active.json: id, name, status "in_progress", acceptanceCriteria, github refs, verificationCommands, maxAttempts 15.
Skip this phase if --plan-only or --autonomous.
After feature creation, delegate the remaining lifecycle to an isolated subagent for clean context. Read ${CLAUDE_SKILL_DIR}/references/implementation.md for the full subagent prompt format and result processing logic.
subagent_type="general-purpose"Note: In standard mode, this phase runs inside the delegated subagent. It only runs inline when --plan-only is set.
Uses Claude Code's native Tasks for visual progress tracking.
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full team roster and ATDD spawn prompts.
Summary: Prepare team structure with tester, implementer, reviewer roles. Prepare ATDD spawn prompts for each role.
If --plan-only: display plan summary (feature ID, issue, branch) with resume command and EXIT.
Read ${CLAUDE_SKILL_DIR}/references/implementation.md for full implementation details including loop state schema, standard vs team implementation, and verification.
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full ATDD team implementation including team creation, monitoring, shutdown gate, and cleanup.
Triggers when verification passes. Read ${CLAUDE_SKILL_DIR}/references/checkpoint.md for detailed checkpoint phases.
Summary:
.claude-harness/claude-progress.json with session summary.claude-harness/session-briefing.mdOnly proceeds if PR approved and CI passes.
mcp__github__get_pull_request_statusgit branch -d), prune refs, clear loop state/claude-harness:flow feature-XXX:
.claude-harness/sessions/.recovery/interrupted.jsonpending -> Phase 3, in_progress -> Phase 4, needs_review -> Phase 6, passing -> already complete| Command | Behavior |
|---|---|
/flow "Add X" | Full lifecycle with context isolation: implement -> verify -> checkpoint -> merge |
/flow feature-XXX | Resume existing feature from current phase |
/flow --no-merge "Add X" | Stop at checkpoint |
/flow --quick "Simple fix" | Skip planning, implement directly |
/flow --plan-only "Big feature" | Plan only, implement later |
/flow --fix feature-001 "Bug" | Create and complete a bug fix |
/flow --autonomous | Batch process all features |
/flow --autonomous --no-merge | Batch, stop at checkpoint |
/flow --autonomous --quick | Autonomous without planning |
/flow --team "Add X" | ATDD with Agent Team: tester + implementer + reviewer |
/flow --team --no-merge "Add X" | Team ATDD, stop at checkpoint |
/flow --team --autonomous | Teams for each feature in autonomous batch |
Flag combinations: --no-merge --plan-only (plan before implementing), --autonomous --no-merge --quick (fast batch without merge), --team --autonomous --no-merge (team ATDD batch without merge)
| Mode | Use Case |
|---|---|
Default (/flow "desc") | Standard feature development (context-isolated via subagent) |
--no-merge | Review PR before merging |
--plan-only | Complex features needing upfront design |
--quick | Simple fixes -- skips planning |
--autonomous | Batch processing feature backlog unattended |
--team | Complex features benefiting from parallel review + ATDD |
--team --autonomous | High-quality batch processing with code review |