{"id":49109992,"url":"https://github.com/plwp/duplicat-rex","last_synced_at":"2026-04-21T04:06:24.312Z","repository":{"id":349559307,"uuid":"1202626601","full_name":"plwp/duplicat-rex","owner":"plwp","description":"Agentic SaaS reverse-engineering and duplication engine","archived":false,"fork":false,"pushed_at":"2026-04-06T14:34:54.000Z","size":244,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T15:37:37.480Z","etag":null,"topics":["ai","browser-automation","developer-tools","playwright","reverse-engineering","specification"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T08:18:36.000Z","updated_at":"2026-04-06T14:35:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/plwp/duplicat-rex","commit_stats":null,"previous_names":["plwp/duplicat-rex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/plwp/duplicat-rex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plwp%2Fduplicat-rex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plwp%2Fduplicat-rex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plwp%2Fduplicat-rex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plwp%2Fduplicat-rex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plwp","download_url":"https://codeload.github.com/plwp/duplicat-rex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plwp%2Fduplicat-rex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32076295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","browser-automation","developer-tools","playwright","reverse-engineering","specification"],"created_at":"2026-04-21T04:06:22.801Z","updated_at":"2026-04-21T04:06:24.306Z","avatar_url":"https://github.com/plwp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duplicat-Rex\n\nAgentic SaaS reverse-engineering engine. Gathers intelligence from every available source, synthesises structured specifications, and drives chief-wiggum's build pipeline to produce full-feature-parity clones.\n\n## What This Repo Is\n\nDuplicat-rex owns the **intelligence pipeline**: reconnaissance, spec synthesis, behavioral comparison, and gap analysis. It does not generate code directly — it produces structured specifications and GitHub issues that chief-wiggum's build pipeline (`/plan-epic`, `/architect`, `/implement-wave`, `/close-epic`) consumes.\n\nThree repos in play:\n1. **duplicat-rex** (this repo) — intelligence/recon engine\n2. **chief-wiggum** — build engine (configured as skill source)\n3. **output repo** (e.g. `plwp/abuello`) — the generated app, one per target\n\n```mermaid\ngraph LR\n    DR[duplicat-rex\u003cbr/\u003eIntelligence Layer] --\u003e|specs \u0026 issues| CW[chief-wiggum\u003cbr/\u003eBuild Engine]\n    CW --\u003e|implementation| OUT[abuello\u003cbr/\u003eOutput App]\n    DR --\u003e|compare| OUT\n    OUT --\u003e|gaps| DR\n```\n\n## Tech Stack\n\n- **Language**: Python 3.11+\n- **CLI**: Typer\n- **AI**: Multi-model (Claude, Codex, Gemini) with structured adjudication\n- **Browser automation**: Browser-use + Playwright\n- **Transcription**: whisper + ffmpeg + yt-dlp\n- **Secrets**: System keychain (never env vars)\n\n## Setup\n\n```bash\n# Clone and install\ngit clone https://github.com/plwp/duplicat-rex\ncd duplicat-rex\npip install -e \".[dev]\"\n\n# Configure secrets (API keys stored in macOS Keychain)\npython3 scripts/keychain.py set ANTHROPIC_API_KEY\n\n# Verify chief-wiggum skills are accessible\n# (requires chief-wiggum configured in .claude/settings.local.json)\n```\n\n## Usage\n\n```bash\n# Recon a target SaaS\n/recon trello.com --scope \"boards, lists, cards, drag-drop, labels, members, auth\"\n\n# Full duplication pipeline (recon → spec → build → compare → loop)\n/duplicate trello.com --output plwp/trello-clone --scope \"boards, lists, cards\"\n\n# Compare clone against target\n/compare plwp/trello-clone --target trello.com\n\n# Run gap analysis and feed back into build\n/converge plwp/trello-clone --target trello.com\n```\n\nOr via the CLI directly:\n\n```bash\nduplicat-rex recon trello.com --scope \"boards, lists, cards\"\nduplicat-rex duplicate trello.com --output plwp/trello-clone\n```\n\n## Core Loop\n\n```mermaid\ngraph TD\n    R[Recon\u003cbr/\u003eMulti-source intelligence] --\u003e S[Spec Synthesis\u003cbr/\u003eTyped specs with provenance]\n    S --\u003e T[Test Generation\u003cbr/\u003eDual-execution test cases]\n    T --\u003e B[Build\u003cbr/\u003evia chief-wiggum]\n    B --\u003e C[Compare\u003cbr/\u003eBehavioral conformance]\n    C --\u003e G{Gap\u003cbr/\u003eAnalysis}\n    G --\u003e|gaps found| R\n    G --\u003e|parity achieved| D[Deploy]\n    \n    style R fill:#1D76DB,color:#fff\n    style S fill:#5319E7,color:#fff\n    style C fill:#D93F0B,color:#fff\n    style G fill:#FBCA04,color:#000\n    style D fill:#0E8A16,color:#fff\n```\n\n### Recon Sources (ranked by authority)\n\n```mermaid\ngraph LR\n    subgraph Authoritative\n        LA[Live App\u003cbr/\u003eBrowser-use + Playwright]\n        AD[API Docs\u003cbr/\u003eOfficial documentation]\n    end\n    subgraph Observational\n        HC[Help Center]\n        TV[Training Videos\u003cbr/\u003ewhisper + ffmpeg]\n    end\n    subgraph Anecdotal\n        MK[Marketing Pages]\n        RD[Reddit / Community]\n        CL[Changelog]\n    end\n    \n    LA \u0026 AD --\u003e SS[Spec Store\u003cbr/\u003eFacts with provenance]\n    HC \u0026 TV --\u003e SS\n    MK \u0026 RD \u0026 CL --\u003e SS\n    \n    style LA fill:#0E8A16,color:#fff\n    style AD fill:#0E8A16,color:#fff\n    style HC fill:#1D76DB,color:#fff\n    style TV fill:#1D76DB,color:#fff\n    style MK fill:#D93F0B,color:#fff\n    style RD fill:#D93F0B,color:#fff\n    style CL fill:#D93F0B,color:#fff\n```\n\n### Fact Lifecycle\n\n```mermaid\nstateDiagram-v2\n    [*] --\u003e UNVERIFIED: create()\n    UNVERIFIED --\u003e VERIFIED: verify(corroborating_fact_id)\n    UNVERIFIED --\u003e CONTRADICTED: contradict(contradicting_fact_id)\n    VERIFIED --\u003e CONTRADICTED: contradict(contradicting_fact_id)\n    CONTRADICTED --\u003e [*]: supersede(new_fact_id)\n```\n\nSee [ARCHITECTURE.md](ARCHITECTURE.md) for full details.\n\n## Development\n\n```bash\n# Run tests\npytest\n\n# Lint\nruff check .\n\n# Type check\nmypy scripts/\n```\n\n## Repo Layout\n\n```\n.claude/commands/        # Skills: /recon, /duplicate, /compare, /converge\nscripts/\n├── recon/               # Recon modules (browser, API docs, videos, community)\n├── cli.py               # Typer CLI entry point\n├── keychain.py          # Secret management (system keyring)\n├── models.py            # Canonical data model (Fact, SpecBundle, enums)\n├── scope.py             # Scope parsing + dependency graph\n├── spec_store.py        # File-backed spec store with provenance\n├── spec_synthesizer.py  # LLM synthesis with provenance (planned)\n├── compare.py           # Behavioral conformance testing (planned)\n└── gap_analyzer.py      # Gap identification + circuit breaker (planned)\ntemplates/\n├── spec-schema.json     # JSON Schema Draft 2020-12 for all entities\n└── ...                  # Prompt templates, report formats\ntests/                   # 224+ pytest tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplwp%2Fduplicat-rex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplwp%2Fduplicat-rex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplwp%2Fduplicat-rex/lists"}