plwp/duplicat-rex

GitHub: plwp/duplicat-rex

这是一个基于多源情报收集的 SaaS 逆向工程引擎,通过自动侦察与规范综合来驱动目标应用的完全克隆构建。

Stars: 0 | Forks: 0

# Duplicat-Rex Agentic SaaS 逆向工程引擎。从所有可用来源收集情报,综合结构化规范,并驱动 chief-wiggum 的构建流水线以生成功能完全对等的克隆版本。 ## 本仓库简介 Duplicat-rex 负责**情报流水线**:侦察、规范综合、行为对比和差距分析。它不直接生成代码——它生成结构化规范和 GitHub issues,供 chief-wiggum 的构建流水线(`/plan-epic`、`/architect`、`/implement-wave`、`/close-epic`)消费。 涉及三个仓库: 1. **duplicat-rex**(本仓库)——情报/侦察引擎 2. **chief-wiggum**——构建引擎(配置为技能源) 3. **output repo**(例如 `plwp/abuello`)——生成的应用,每个目标对应一个 ``` graph LR DR[duplicat-rex
Intelligence Layer] -->|specs & issues| CW[chief-wiggum
Build Engine] CW -->|implementation| OUT[abuello
Output App] DR -->|compare| OUT OUT -->|gaps| DR ``` ## 技术栈 - **语言**:Python 3.11+ - **CLI**:Typer - **AI**:多模型(Claude、Codex、Gemini)配合结构化裁决 - **浏览器自动化**:Browser-use + Playwright - **转录**:whisper + ffmpeg + yt-dlp - **密钥**:系统密钥链(绝不使用环境变量) ## 安装说明 ``` # Clone and install git clone https://github.com/plwp/duplicat-rex cd duplicat-rex pip install -e ".[dev]" # Configure secrets (API keys stored in macOS Keychain) python3 scripts/keychain.py set ANTHROPIC_API_KEY # Verify chief-wiggum skills are accessible # (requires chief-wiggum configured in .claude/settings.local.json) ``` ## 使用方法 ``` # Recon a target SaaS /recon trello.com --scope "boards, lists, cards, drag-drop, labels, members, auth" # Full duplication pipeline (recon → spec → build → compare → loop) /duplicate trello.com --output plwp/trello-clone --scope "boards, lists, cards" # Compare clone against target /compare plwp/trello-clone --target trello.com # Run gap analysis and feed back into build /converge plwp/trello-clone --target trello.com ``` 或者直接通过 CLI 使用: ``` duplicat-rex recon trello.com --scope "boards, lists, cards" duplicat-rex duplicate trello.com --output plwp/trello-clone ``` ## 核心循环 ``` graph TD R[Recon
Multi-source intelligence] --> S[Spec Synthesis
Typed specs with provenance] S --> T[Test Generation
Dual-execution test cases] T --> B[Build
via chief-wiggum] B --> C[Compare
Behavioral conformance] C --> G{Gap
Analysis} G -->|gaps found| R G -->|parity achieved| D[Deploy] style R fill:#1D76DB,color:#fff style S fill:#5319E7,color:#fff style C fill:#D93F0B,color:#fff style G fill:#FBCA04,color:#000 style D fill:#0E8A16,color:#fff ``` ### 侦察来源(按权威性排序) ``` graph LR subgraph Authoritative LA[Live App
Browser-use + Playwright] AD[API Docs
Official documentation] end subgraph Observational HC[Help Center] TV[Training Videos
whisper + ffmpeg] end subgraph Anecdotal MK[Marketing Pages] RD[Reddit / Community] CL[Changelog] end LA & AD --> SS[Spec Store
Facts with provenance] HC & TV --> SS MK & RD & CL --> SS style LA fill:#0E8A16,color:#fff style AD fill:#0E8A16,color:#fff style HC fill:#1D76DB,color:#fff style TV fill:#1D76DB,color:#fff style MK fill:#D93F0B,color:#fff style RD fill:#D93F0B,color:#fff style CL fill:#D93F0B,color:#fff ``` ### 事实生命周期 ``` stateDiagram-v2 [*] --> UNVERIFIED: create() UNVERIFIED --> VERIFIED: verify(corroborating_fact_id) UNVERIFIED --> CONTRADICTED: contradict(contradicting_fact_id) VERIFIED --> CONTRADICTED: contradict(contradicting_fact_id) CONTRADICTED --> [*]: supersede(new_fact_id) ``` 详情请参阅 [ARCHITECTURE.md](ARCHITECTURE.md)。 ## 开发 ``` # Run tests pytest # Lint ruff check . # Type check mypy scripts/ ``` ## 仓库布局 ``` .claude/commands/ # Skills: /recon, /duplicate, /compare, /converge scripts/ ├── recon/ # Recon modules (browser, API docs, videos, community) ├── cli.py # Typer CLI entry point ├── keychain.py # Secret management (system keyring) ├── models.py # Canonical data model (Fact, SpecBundle, enums) ├── scope.py # Scope parsing + dependency graph ├── spec_store.py # File-backed spec store with provenance ├── spec_synthesizer.py # LLM synthesis with provenance (planned) ├── compare.py # Behavioral conformance testing (planned) └── gap_analyzer.py # Gap identification + circuit breaker (planned) templates/ ├── spec-schema.json # JSON Schema Draft 2020-12 for all entities └── ... # Prompt templates, report formats tests/ # 224+ pytest tests ```
标签:BeEF, CLI, DNS解析, Playwright, Python, SaaS, Typer, Whisper, WiFi技术, 云资产清单, 人工智能, 代码生成, 克隆, 多模型, 工作流自动化, 开源框架, 开源项目, 情报收集, 技术侦察, 持续集成, 无后门, 浏览器自动化, 渗透测试工具, 漏洞研究, 爬虫, 特征检测, 用户模式Hook绕过, 竞品分析, 网络调试, 自动化, 规格合成, 视频下载, 软件架构, 逆向工具, 逆向工程, 音频转写