diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml
deleted file mode 100644
index 0350e43877c..00000000000
--- a/.github/workflows/triage.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-name: triage
-
-on:
- issues:
- types: [opened]
-
-jobs:
- triage:
- runs-on: blacksmith-4vcpu-ubuntu-2404
- permissions:
- contents: read
- issues: write
- steps:
- - name: Checkout repository
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- with:
- fetch-depth: 1
-
- - name: Check exempt issue author
- id: author
- run: |
- LOGIN="${{ github.event.issue.user.login }}"
- ASSOCIATION="${{ github.event.issue.author_association }}"
-
- if [ "$LOGIN" = "opencode-agent[bot]" ] ||
- [ "$ASSOCIATION" = "OWNER" ] ||
- [ "$ASSOCIATION" = "MEMBER" ] ||
- grep -qxiF "$LOGIN" .github/TEAM_MEMBERS; then
- echo "skip=true" >> "$GITHUB_OUTPUT"
- echo "Skipping issue automation for exempt author: $LOGIN ($ASSOCIATION)"
- else
- echo "skip=false" >> "$GITHUB_OUTPUT"
- fi
-
- - name: Setup Bun
- if: steps.author.outputs.skip != 'true'
- uses: ./.github/actions/setup-bun
-
- - name: Install opencode
- if: steps.author.outputs.skip != 'true'
- run: curl -fsSL https://opencode.ai/install | bash
-
- - name: Triage issue
- if: steps.author.outputs.skip != 'true'
- env:
- OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- ISSUE_TITLE: ${{ github.event.issue.title }}
- ISSUE_BODY: ${{ github.event.issue.body }}
- run: |
- opencode run --agent triage "The following issue was just opened, triage it:
-
- Title: $ISSUE_TITLE
-
- $ISSUE_BODY"
diff --git a/.opencode/agent/triage.md b/.opencode/agent/triage.md
deleted file mode 100644
index 11c4c816cfa..00000000000
--- a/.opencode/agent/triage.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-mode: primary
-hidden: true
-model: opencode/gpt-5.4-mini
-color: "#44BA81"
-tools:
- "*": false
- "github-triage": true
----
-
-You are a triage agent responsible for triaging github issues.
-
-Use your github-triage tool to triage issues.
-
-This file is the source of truth for ownership/routing rules.
-
-Assign issues by choosing the team with the strongest overlap. The github-triage tool will assign a random member from that team.
-
-Do not add labels to issues. Only assign an owner.
-
-When calling github-triage, pass one of these team values: tui, desktop_web, core, inference, windows.
-
-## Teams
-
-### TUI
-
-Terminal UI issues, including rendering, keybindings, scrolling, terminal compatibility, SSH behavior, crashes in the TUI, and low-level TUI performance.
-
-### Desktop / Web
-
-Desktop application and browser-based app issues, including `opencode web`, desktop-specific UI behavior, packaging, and web view problems.
-
-### Core
-
-Core opencode server and harness issues, including sqlite, snapshots, memory, API behavior, agent context construction, tool execution, provider integrations, model behavior, documentation, and larger architectural features.
-
-### Inference
-
-OpenCode Zen, OpenCode Go, and billing issues.
-
-### Windows
-
-Windows-specific issues, including native Windows behavior, WSL interactions, path handling, shell compatibility, and installation or runtime problems that only happen on Windows.
diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc
index b0f7d59447d..4506cf49fef 100644
--- a/.opencode/opencode.jsonc
+++ b/.opencode/opencode.jsonc
@@ -14,7 +14,6 @@
},
"mcp": {},
"tools": {
- "github-triage": false,
"github-pr-search": false,
},
}
diff --git a/.opencode/tool/github-triage.ts b/.opencode/tool/github-triage.ts
deleted file mode 100644
index c6f2f9c6875..00000000000
--- a/.opencode/tool/github-triage.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-///
-import { tool } from "@opencode/plugin"
-
-const TEAM = {
- tui: ["kommander", "simonklee"],
- desktop_web: ["Hona", "Brendonovich"],
- core: ["jlongster", "rekram1-node", "neriousy", "nexxeln", "kitlangton"],
- inference: ["fwang", "MrMushrooooom", "starptech"],
- windows: ["Hona"],
-} as const
-
-function pick(items: readonly T[]) {
- return items[Math.floor(Math.random() * items.length)]!
-}
-
-function getIssueNumber(): number {
- const issue = parseInt(process.env.ISSUE_NUMBER ?? "", 10)
- if (!issue) throw new Error("ISSUE_NUMBER env var not set")
- return issue
-}
-
-async function githubFetch(endpoint: string, options: RequestInit = {}) {
- const response = await fetch(`https://api.github.com${endpoint}`, {
- ...options,
- headers: {
- Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
- Accept: "application/vnd.github+json",
- "Content-Type": "application/json",
- ...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers),
- },
- })
- if (!response.ok) {
- throw new Error(`GitHub API error: ${response.status} ${response.statusText}`)
- }
- return response.json()
-}
-
-export default tool({
- description: `Use this tool to assign a GitHub issue.
-
-Provide the team that should own the issue. This tool picks a random assignee from that team and does not apply labels.`,
- args: {
- team: tool.schema
- .enum(Object.keys(TEAM) as [keyof typeof TEAM, ...(keyof typeof TEAM)[]])
- .describe("The owning team"),
- },
- async execute(args) {
- const issue = getIssueNumber()
- const owner = "anomalyco"
- const repo = "opencode"
- const assignee = pick(TEAM[args.team])
-
- await githubFetch(`/repos/${owner}/${repo}/issues/${issue}/assignees`, {
- method: "POST",
- body: JSON.stringify({ assignees: [assignee] }),
- })
-
- return `Assigned @${assignee} from ${args.team} to issue #${issue}`
- },
-})