Skip to content

[EPIC] Fork Realignment — Minimize Divergence, Automate Sync #158

@randomm

Description

@randomm

Objective

Reduce our fork from 303 changed files to a minimal, maintainable surface, automate upstream sync, and eliminate unnecessary divergence.

Current State (after WS1 + WS3 + WS4 work)

Branches with completed work (NOT YET MERGED TO DEV)

  • ws1/refactor-async-tasks — async-tasks.ts extraction + resolveTools reversal (commits f39765847, e86ce0e)
  • ws3/rg-tool-clean — 2 clean rg tool commits on anomalyco/dev base (commits 0be1b50b1, 5ffca707f)
  • ws4/remove-oclite — 42 oclite files deleted (commit a912e9dd3)

Full Fork Audit (303 files vs upstream)

Category Files Action Issue
Desktop pkg deletion 139 Restore upstream ✅ decided #166
Oclite TUI 65 Deleted ✅ #162
GitHub workflows 23 Restore upstream ✅ decided #166
Async task tool ~14 Keep — core feature ✅ #159
rg tool 8 Keep — rebase patch ✅ #161
Remory integration 5 Remove ✅ decided #167
1M context 2 Keep until upstream fixes
processor.ts + prompt.ts 2 Reduce mixed diffs #164
Scattered core mods ~31 Audit + minimize #165
Build/config ~10 Clean up with sync #165
TUI performance TBD Surgical fixes #168

Key Metrics After WS1 Refactoring

All Issues (Priority Order)

Completed ✅

Decisions Made ✅

Pending Work

Execution Order

  1. Merge completed branches — ws1, ws3, ws4 into dev
  2. [WS7] Decide fate of remory integration (5 files) #167 — Remove remory files
  3. [WS1.1] Reduce processor.ts and prompt.ts diff — investigate mixed changes #164 — Reduce processor.ts + prompt.ts diffs
  4. [WS1.2] Audit and minimize scattered core file modifications #165 — Audit remaining core file modifications
  5. [WS6] Decide fate of desktop package deletion and CI workflows #166 — Restore desktop + workflows (during first upstream sync)
  6. [WS8] Surgical TUI performance improvements to upstream OpenCode TUI #168 — Surgical TUI fixes (needs scoping session)
  7. [WS2] Implement shuvcode-style upstream sync automation #160 — Build sync automation with fork-features.json
  8. [WS5] Contribute async task refactor to upstream (PR #7206 / issue #5887) #163 — Contribute async tasks upstream (long-term)

Success Criteria

  • Fork diff reduced from 303 to ≤30 intentional files
  • Every remaining diff is documented and justified
  • Automated sync handles upstream releases
  • All branches merged to dev
  • TUI performance acceptable for long sessions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions