HCF (Halt and Catch Fire)
Autonomous development plugin for Claude Code. Define requirements with a PM, then let parallel workers implement everything using TDD.
Table of Contents
Overview
HCF separates planning (human-in-the-loop) from execution (fully autonomous):
Planning → Human + AI collaborate on requirements
Execution → Parallel TDD workers implement autonomously
Getting Started
Installation
Add the marketplace, install, then reload:
/plugin marketplace add markshust/hcf
/plugin install hcf@hcf
/reload-plugins
Optionally, show the running plan's progress in your statusline:
/hcf:statusline
It shows Context: 15% · Plan: 60%, with Plan colored red to green and moving as TDD workers tick off requirements. An existing statusline is kept, with the plan placed right after its Context: N% (or at the end of the line if it has none). Plan only appears while a plan is running.
Quick Start
1. Setup Project (one-time)
/project-setup
Interactively configures your project:
- Auto-detects tech stack (Laravel, React, etc.)
- Asks about testing, linting, architecture
- Creates
.claude/ config directory
2. Plan a Feature
Just describe what you want:
"Help me implement user authentication with JWT"
The plan-create skill activates automatically to:
- Discover & brainstorm — explore the codebase and enumerate scope/assumption permutations a senior engineer would catch
- Create a
feature/{plan-name} branch for the work
- Ask grounded clarifying questions categorized as must-answer vs will-default-if-silent
- Break down into tasks with dependencies
- Write requirements as test descriptions
- Create
.claude/plans/user-auth/ with task files (or your configured plans directory)
- Run post-plan pipeline agents (devil's advocate by default) to find gaps before execution
After planning completes, you'll be asked:
Ready to begin autonomous implementation?
- Yes, start now
- No, I'll run it later
3. Execute Autonomously
If you chose "later" or want to re-run, say:
"Run the user-auth plan" or "Execute the plan"
The plan-orchestrate skill auto-triggers. It verifies you're on the correct feature/{plan-name} branch before starting.
Session persistence is native to Claude Code — no plugin required. Auto-compaction handles context limits, and all run state (task statuses, requirement checkboxes, retry counts) lives in the plan files, so an interrupted run resumes by re-running the plan. For large plans, you can optionally set a goal first so execution completes unattended:
/goal the user-auth plan run reached a terminal state: plan-orchestrate output ALL_TASKS_COMPLETE or TASKS_BLOCKED
After completion, you'll be prompted to push the branch and create a PR (never done without your permission).
How It Works
Four Phases
| Phase | Type | What Happens |
|---|
| Setup | One-time | Configure project for autonomous dev |
| Planning | Interactive | Discover codebase, brainstorm scope, then define tasks with human guidance |
| Post-Plan Hooks | Automated | Agents enrolled at the post-plan hook review the plan |
| Execution | Autonomous | Parallel TDD implementation, with agents enrolled at the implementation hooks |
Pipeline
The pipeline controls which agents run at fixed points in the plan/implementation flow. HCF uses convention over configuration: there is no central registry — each agent enrolls itself by declaring a phase in its own YAML frontmatter. If an agent declares a phase, it runs at that hook; if it has no phase, it never runs via a hook.
Hook points:
There are exactly 8 hook points where enrolled agents can run: