Hype — Document-Driven Development
Hype enforces a strict development cycle: Plan → Document → Implement → Test → Repeat.
All tracking documents live in .hype/ at the project root.
No task advances without passing verification. This is the core invariant.
Documents
| File |
Written by |
Purpose |
.hype/IDEA.md |
User (Claude appends when asked) |
Freeform idea scratchpad. Not part of the hype cycle. Claude may append when the user says so (e.g., "put that in IDEA", "メモしてね"). Claude never edits or deletes existing entries. |
.hype/TODO.md |
Claude (with user approval) |
Phase-structured task plan. The user reads this to understand what Claude will do. |
.hype/PROGRESS.md |
Claude |
Append-only execution log. The user reads this to understand what Claude has done. |
.hype/KNOWLEDGE.md |
Claude |
Accumulated project knowledge. Read on session restart to restore context. |
Workflow Overview
INIT → PLAN (with user) → [ DOCUMENT → IMPLEMENT → TEST → UPDATE ] → COMPLETE
↑ |
└── fix & re-test ←────┘ (on failure)
Phase 1: Initialize
- Read
.hype/KNOWLEDGE.md first if it exists — this restores context from previous sessions
- Read
.hype/TODO.md and .hype/PROGRESS.md if they exist — resume from where things left off
- If starting fresh:
- Create
.hype/ directory
- Create
.hype/TODO.md, .hype/PROGRESS.md, .hype/KNOWLEDGE.md using templates in references/document-templates.md
- Create
.hype/IDEA.md only if the user requests it
- Detect project type:
- Code project: Identify language and build system from existing files. Set up the idiomatic test framework for that language if not already configured.
- Non-code project: Identify the domain (writing, design, research, etc.). Verification will use review checklists instead of automated tests (see Non-Code Adaptation below).
Phase 2: Plan (with user)
This phase is collaborative. Do not proceed without user confirmation.
- If
.hype/IDEA.md exists, read it first. Propose incorporating relevant ideas into the plan (e.g., "IDEA.md にこれがあるけど、タスクに入れる?")
- Discuss the user's goals, constraints, and preferences
- Break the work into phases, each containing discrete, verifiable tasks
- Each task must have:
- Clear acceptance criteria
- A defined verification approach (test, checklist, or review)
- Write to
.hype/TODO.md using the phase-structured format:
## Phase 1 — <phase name>
- [ ] P0: Task description — Acceptance: criteria — Test: approach
- [ ] P1: Task description — Acceptance: criteria — Test: approach
## Phase 2 — <phase name>
- [ ] P1: Task description — Acceptance: criteria — Test: approach
- Present the plan to the user and wait for approval
- Adjust tasks based on user feedback
- Only proceed after explicit user confirmation
Phase 3: Development Cycle
Execute for each task in order (phase by phase, priority within each phase):
Step 1 — Document
Select the next task. Update its status to [~] in .hype/TODO.md.
Before writing any code, append a "Started" entry to .hype/PROGRESS.md:
- What will be implemented and how
- Expected behavior, function signatures, or API surface
- Verification cases (inputs → expected outputs)
This serves as the specification for the implementation step.
Step 2 — Implement
Write the change based on the spec from Step 1. Keep changes focused on the single task.
If a task is larger than expected, stop and split it into subtasks in .hype/TODO.md before continuing.
Step 3 — Test
Write or update tests, then execute the full test suite.
- Tests must cover the acceptance criteria in
.hype/TODO.md
- At minimum: happy path, one edge case, one error case
- Use the idiomatic test framework for the project's language
- For general testing guidance, see references/testing-workflows.md
Gate:
- All tests pass → proceed to Step 4
- Any test fails → diagnose, fix, re-run the full suite
- NEVER proceed with failing tests
Step 4 — Update
- Mark task
[x] in .hype/TODO.md
- Update the entry in
.hype/PROGRESS.md with: files changed, test results, notes
- If the task revealed reusable project knowledge (conventions, patterns, gotchas, architectural decisions), append to
.hype/KNOWLEDGE.md
- Communicate progress to the user
- Return to Step 1 for the next task
Phase 4: Complete
When all tasks in .hype/TODO.md are [x]:
- Run the full test suite one final time
- Append a completion summary to
.hype/PROGRESS.md
- Update
.hype/KNOWLEDGE.md with any final insights
- Report to user: tasks completed, tests passing, remaining notes
Non-Code Adaptation
For non-code projects (writing, research, design, etc.), the cycle is the same but Step 3 adapts:
| Code project |
Non-code project |
| Automated tests |
Review checklist |
cargo test, pytest, etc. |
Manual verification against criteria |
| Pass/fail binary |
Checklist all items ✅ |
Example for a novel:
- [ ] P1: Write Chapter 3 — Acceptance: introduces antagonist, 2000-3000 words — Review: continuity with Ch.1-2, no plot holes, consistent character voice
The gate still applies: all checklist items must pass before moving on.
Rules
- NEVER skip verification. Every change requires tests or a review checklist.
- NEVER mark a task
[x] unless verification passes.
- ALWAYS document before implementing.
- ALWAYS update
.hype/TODO.md and .hype/PROGRESS.md after each task.
- ALWAYS run the full test suite, not just new tests.
- ALWAYS confirm the plan with the user before starting.
- ALWAYS read
.hype/KNOWLEDGE.md at session start.
.hype/TODO.md is the single source of truth for remaining work.
.hype/PROGRESS.md is append-only — never modify existing entries.
.hype/IDEA.md is user-owned — append only when the user explicitly asks. Never edit or delete existing entries.
.hype/KNOWLEDGE.md is updated when tasks reveal reusable project knowledge.
- If a task needs splitting, split it in
.hype/TODO.md before implementing.
- When the user adds a new request mid-cycle, add it as new tasks in
.hype/TODO.md — do not abandon the current workflow.
- Communicate current task and progress at each step boundary.
1---2name: hype3description: Document-driven development with test-gated progression. Enforces a disciplined workflow: plan tasks with the user in .hype/TODO.md, document before implementing, track progress in .hype/PROGRESS.md, accumulate project knowledge in .hype/KNOWLEDGE.md, and require all tests to pass before advancing. Language-agnostic — works with any programming language or even non-code projects. Use when: (1) starting new projects with structured planning, (2) implementing features or bug fixes with mandatory test verification, (3) managing development tasks with document-based tracking, (4) the user mentions "hype", "document-driven development", "TODO tracking", or wants a disciplined plan-document-implement-test cycle.4---56# Hype — Document-Driven Development78Hype enforces a strict development cycle: **Plan → Document → Implement → Test → Repeat**.910All tracking documents live in `.hype/` at the project root.11**No task advances without passing verification.** This is the core invariant.1213## Documents1415| File | Written by | Purpose |16|------|------------|---------|17| `.hype/IDEA.md` | User (Claude appends when asked) | Freeform idea scratchpad. Not part of the hype cycle. Claude may append when the user says so (e.g., "put that in IDEA", "メモしてね"). Claude never edits or deletes existing entries. |18| `.hype/TODO.md` | Claude (with user approval) | Phase-structured task plan. The user reads this to understand what Claude will do. |19| `.hype/PROGRESS.md` | Claude | Append-only execution log. The user reads this to understand what Claude has done. |20| `.hype/KNOWLEDGE.md` | Claude | Accumulated project knowledge. Read on session restart to restore context. |2122## Workflow Overview2324```25INIT → PLAN (with user) → [ DOCUMENT → IMPLEMENT → TEST → UPDATE ] → COMPLETE26 ↑ |27 └── fix & re-test ←────┘ (on failure)28```2930## Phase 1: Initialize31321. Read `.hype/KNOWLEDGE.md` first if it exists — this restores context from previous sessions332. Read `.hype/TODO.md` and `.hype/PROGRESS.md` if they exist — resume from where things left off343. If starting fresh:35 - Create `.hype/` directory36 - Create `.hype/TODO.md`, `.hype/PROGRESS.md`, `.hype/KNOWLEDGE.md` using templates in [references/document-templates.md](references/document-templates.md)37 - Create `.hype/IDEA.md` only if the user requests it384. Detect project type:39 - **Code project**: Identify language and build system from existing files. Set up the idiomatic test framework for that language if not already configured.40 - **Non-code project**: Identify the domain (writing, design, research, etc.). Verification will use review checklists instead of automated tests (see Non-Code Adaptation below).4142## Phase 2: Plan (with user)4344This phase is **collaborative**. Do not proceed without user confirmation.45461. If `.hype/IDEA.md` exists, read it first. Propose incorporating relevant ideas into the plan (e.g., "IDEA.md にこれがあるけど、タスクに入れる?")472. Discuss the user's goals, constraints, and preferences483. Break the work into **phases**, each containing discrete, verifiable tasks493. Each task must have:50 - Clear acceptance criteria51 - A defined verification approach (test, checklist, or review)524. Write to `.hype/TODO.md` using the phase-structured format:5354```markdown55## Phase 1 — <phase name>5657- [ ] P0: Task description — Acceptance: criteria — Test: approach58- [ ] P1: Task description — Acceptance: criteria — Test: approach5960## Phase 2 — <phase name>6162- [ ] P1: Task description — Acceptance: criteria — Test: approach63```64655. **Present the plan to the user and wait for approval**66 - Adjust tasks based on user feedback67 - Only proceed after explicit user confirmation6869## Phase 3: Development Cycle7071Execute for each task in order (phase by phase, priority within each phase):7273### Step 1 — Document7475Select the next task. Update its status to `[~]` in `.hype/TODO.md`.7677Before writing any code, append a "Started" entry to `.hype/PROGRESS.md`:78- What will be implemented and how79- Expected behavior, function signatures, or API surface80- Verification cases (inputs → expected outputs)8182This serves as the specification for the implementation step.8384### Step 2 — Implement8586Write the change based on the spec from Step 1. Keep changes focused on the single task.87If a task is larger than expected, **stop and split** it into subtasks in `.hype/TODO.md` before continuing.8889### Step 3 — Test9091Write or update tests, then execute the full test suite.9293- Tests must cover the acceptance criteria in `.hype/TODO.md`94- At minimum: happy path, one edge case, one error case95- Use the idiomatic test framework for the project's language96- For general testing guidance, see [references/testing-workflows.md](references/testing-workflows.md)9798**Gate**:99- **All tests pass** → proceed to Step 4100- **Any test fails** → diagnose, fix, re-run the full suite101- **NEVER proceed with failing tests**102103### Step 4 — Update1041051. Mark task `[x]` in `.hype/TODO.md`1062. Update the entry in `.hype/PROGRESS.md` with: files changed, test results, notes1073. If the task revealed reusable project knowledge (conventions, patterns, gotchas, architectural decisions), append to `.hype/KNOWLEDGE.md`1084. Communicate progress to the user1095. Return to Step 1 for the next task110111## Phase 4: Complete112113When all tasks in `.hype/TODO.md` are `[x]`:1141151. Run the full test suite one final time1162. Append a completion summary to `.hype/PROGRESS.md`1173. Update `.hype/KNOWLEDGE.md` with any final insights1184. Report to user: tasks completed, tests passing, remaining notes119120## Non-Code Adaptation121122For non-code projects (writing, research, design, etc.), the cycle is the same but Step 3 adapts:123124| Code project | Non-code project |125|---|---|126| Automated tests | Review checklist |127| `cargo test`, `pytest`, etc. | Manual verification against criteria |128| Pass/fail binary | Checklist all items ✅ |129130Example for a novel:131```markdown132- [ ] P1: Write Chapter 3 — Acceptance: introduces antagonist, 2000-3000 words — Review: continuity with Ch.1-2, no plot holes, consistent character voice133```134135The **gate** still applies: all checklist items must pass before moving on.136137## Rules1381391. **NEVER** skip verification. Every change requires tests or a review checklist.1402. **NEVER** mark a task `[x]` unless verification passes.1413. **ALWAYS** document before implementing.1424. **ALWAYS** update `.hype/TODO.md` and `.hype/PROGRESS.md` after each task.1435. **ALWAYS** run the full test suite, not just new tests.1446. **ALWAYS** confirm the plan with the user before starting.1457. **ALWAYS** read `.hype/KNOWLEDGE.md` at session start.1468. `.hype/TODO.md` is the single source of truth for remaining work.1479. `.hype/PROGRESS.md` is append-only — never modify existing entries.14810. `.hype/IDEA.md` is user-owned — append only when the user explicitly asks. Never edit or delete existing entries.14911. `.hype/KNOWLEDGE.md` is updated when tasks reveal reusable project knowledge.15012. If a task needs splitting, split it in `.hype/TODO.md` before implementing.15113. When the user adds a new request mid-cycle, add it as new tasks in `.hype/TODO.md` — do not abandon the current workflow.15214. Communicate current task and progress at each step boundary.