ericshang98/Perfect-Web-Clone ↗★ 253
perfect-web-clone
DeepSeek Harness 像素级网页克隆智能体:通过输入 URL 自动捕获、规划并组装 React 页面
AI 分析
核心用途是实现网页的像素级克隆与自动修复。适合需要快速克隆现有网页并生成 Vite + React 结构代码的开发者。需要 Python 3.10+ 和 Node 20+ 环境。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ericshang98/Perfect-Web-Clone说明文档
阅读完整 README ↗Perfect Web Clone
A pixel-clone agent on DeepSeek Harness. Paste a URL. The gates decide, not the model.
This repository is the public clone runtime:
- DeepSeek Harness runs the conversation, the model, and the tool loop
pwccore captures the page, plans sections, assembles a Vite + React shell, and scores the result- The skill tells the agent to repair the worst measured section until the gates are green or the budget is gone
v2 (Claude Agent SDK + FastAPI + Next.js IDE) is archived as the v2-archive tag. Do not revive that loop.
Install
Python 3.10+ and Node 20+ (for DeepSeek Harness and the Vite clone output).
pip install "git+https://github.com/ericshang98/Perfect-Web-Clone.git"
playwright install chromium
npx @deepseek-ai/dsh web
dsh plugin --profile web add github:ericshang98/Perfect-Web-Clone
Then say:
clone https://example.com
Claude Code / Codex users can install the same playbook from
perfect-web-clone-skill
and run the pwc CLI locally.
What actually happens
pwc extract— Playwright capture, assets localized, integrity checkedpwc plan— deterministic sections from real#mainchildren- The agent authors clean React for each section
pwc assemble/pwc build— Vite + React + Tailwind shellpwc fingerprints,pwc weight,pwc score— measured gates- Repair the worst section, rebuild, re-measure
- Stop at
ready_for_user_revieworfailed_with_residuals
The core never calls an LLM. If a page is WebGL, runtime canvas, or scroll-choreographed, the classifier reports that ceiling up front. Content still clones; the runtime-drawn look may not.
CLI
pwc extract https://example.com
pwc plan
pwc assemble
pwc build
pwc fingerprints dist/
pwc weight dist/
pwc score --ref reference.png --cand clone.png
Every command prints JSON. ok is the only pass/fail that matters.
Layout
core/ deterministic extract / plan / gates / sandbox
pwc/ CLI
plugin/ DeepSeek Harness tools + skill registration
skill/ the playbook (same file published to the skill repo)
templates/ Vite + React + Tailwind shell
Private customer sites and the private v4 MCP server are not in this repository.
License
MIT