Skip to content

Remove the legacy upstream .opencode/ directory from the repo #177

Open

Description

@byapparov

Context

Raised in review of #176. The repo still ships the upstream opencode project directory .opencode/ (37 files):

  • agent/: docs, duplicate-pr, hush, translator, triage
  • command/: ai-deps, commit, issues, learn, rmslop, spellcheck
  • a glossary/ of UI translations
  • AGENTS.md, env.d.ts, .gitignore

Nothing in this repo's CI or docs uses them. translator.md still references models.dev flags (#40).

Problem

The directory is not just dead weight; the CLI reads parts of it:

  • With AICTRL_HEADLESS=true, the instruction loader reads only .opencode/AGENTS.md (session/instruction.ts:18-21). Headless runs against this repo therefore get upstream opencode instructions.
  • .opencode is one of the external directories scanned for skills (skill/skill.ts EXTERNAL_DIRS).

Proposal

Acceptance

  • git ls-files .opencode is empty.
  • No test or script depends on it.

Activity

  1. byapparov commented on Oct 17, 2026

    @byapparov
    MemberAuthor

    Noted in review of #194 (#151): besides translator.md (which also lists the now-removed AICTRL_DISABLE_AUTOUPDATE / AICTRL_DISABLE_DEFAULT_PLUGINS), .opencode/agent/triage.md routes issues to the deleted cli/cmd/tui / opentui code, and .opencode/tool/github-triage.ts hard-codes an opentui label. #194 leaves them alone because deleting .opencode/ here removes them all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Nice to have - Lowtech-debtTechnical debt cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions