import React, { useState, useMemo } from "react"; import type { Phase } from "../types"; interface DocumentPaneProps { content: string; onChange: (content: string) => void; phase: Phase; disabled: boolean; showOnboarding?: boolean; } function renderMarkdown(md: string): string { return ( md // Headers .replace(/^### (.*$)/gm, "
$2'
)
.replace(/`([^`]+)`/g, "$1")
// Lists
.replace(/^- \[x\] (.*$)/gm, '") .replace(/^(.+)$/gm, "
$1
") // Clean up .replace(/<\/p>/g, "") .replace(/
( ( (
A structured workflow for AI-assisted coding: Research → Plan → Implement.
Export your Anthropic API key: Get one at platform.claude.com Research: Claude analyzes your codebase and writes findings to Plan: Claude drafts an implementation plan in Implement: Claude executes the plan, marking tasks complete as it goes. Iterate on research and plan docs as long as you want. Click Submit when happy to move to the next phase.)/g, "$1")
.replace(/(<\/pre>)<\/p>/g, "$1")
.replace(/Claude Flow
Setup
export ANTHROPIC_API_KEY=your-key-hereGetting Started
Workflow
research.md. Add notes like // REVIEW: check this — click Review when done.plan.md with code snippets and a TODO list. Iterate the same way.