Skip to content

chore: open-source release cleanup #207

@anandgupta42

Description

@anandgupta42

Summary

Comprehensive cleanup needed before the repository goes public. This covers secrets removal, internal file cleanup, CI/CD fixes, and branding consistency.

Audit was performed across 4 dimensions: secrets/sensitive data, internal references/branding, directory structure, and configuration files.


Critical — Must fix before release

1. Remove hardcoded Azure Application Insights connection string

  • Status: OK as-is. Client-side telemetry instrumentation keys are designed to be public (write-only). Already has an explanatory comment in code.

2. Move production API endpoint to config

  • File: `packages/opencode/src/server/server.ts:560`
  • Status: Deferred — `app.altimate.ai` is the intended public endpoint for the product. Not a secret.

3. Delete `.github/TEAM_MEMBERS` file

4. Remove or rework PR enforcement workflows

  • Status: Done in chore: open-source release cleanup #208
  • `pr-standards.yml` kept (gracefully handles missing TEAM_MEMBERS, applies equally to all contributors)
  • `pr-management.yml` stripped broken `check-duplicates` job, kept `add-contributor-label`

5. Replace self-hosted runners with GitHub-hosted

  • Status: Done in chore: open-source release cleanup #208
  • `opencode.yml`: `blacksmith` → `ubuntu-latest`
  • `beta.yml`: removed entirely (referenced deleted `script/beta.ts`)
  • `stats.yml`: removed entirely (internal PostHog analytics)

6. Remove `experiments/` directory

  • Status: Kept — user decided to keep experiments in the repo

High — Should fix before release

7. Standardize internal placeholder URLs

8. Remove `stats.yml` workflow

9. Review `beta.yml` workflow


Medium — Should address

10. Decide on `@opencode-ai/*` npm scope

  • Status: Keeping as-is — upstream-compatible internal packages, renaming would break imports across codebase

11. Rename root `package.json` name

  • Status: Keeping as-is — root is `private: true`, name has no external impact

12. Review and remove internal docs


Completed (pre-PR)

  • Squash upstream history (12,800 → 99 commits)
  • Delete stale remote branches (329 → 22)
  • Remove upstream remote
  • Enforce squash-merge-only on main
  • Remove internal planning docs (FEATURES_*.md, IMPLEMENTATION_PLAN.md, PLATFORM_ENGINEER_SIMULATION.md, STATS.md)
  • Remove internal scripts (stats.ts, beta.ts, duplicate-pr.ts)
  • Remove .zed/ (single dev's editor config)
  • Move RELEASING.md to docs/
  • Push backup branch to remote

Completed (in #208)

Won't Do / Deferred

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions