From ac42ff67880213fde44d2361a4a4455c9c20bfe1 Mon Sep 17 00:00:00 2001 From: ismeth Date: Thu, 19 Feb 2026 02:20:34 +0100 Subject: [PATCH] refactor(athena): remove athena_council from plugin wiring Drop the barrel export, tool-registry registration, and agent-tool-restriction entry for the deleted athena_council tool. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/plugin/tool-registry.ts | 7 ------- src/shared/agent-tool-restrictions.ts | 1 - src/tools/index.ts | 1 - 3 files changed, 9 deletions(-) diff --git a/src/plugin/tool-registry.ts b/src/plugin/tool-registry.ts index 5e864bb56..22abc3372 100644 --- a/src/plugin/tool-registry.ts +++ b/src/plugin/tool-registry.ts @@ -13,7 +13,6 @@ import { builtinTools, createBackgroundTools, createCallOmoAgent, - createAthenaCouncilTool, createSwitchAgentTool, createLookAt, createSkillMcpTool, @@ -173,11 +172,6 @@ export function createToolRegistry(args: { pluginConfig.agents, pluginConfig.categories, ) - const athenaCouncilConfig = pluginConfig.agents?.athena?.council - const athenaCouncilTool = createAthenaCouncilTool({ - backgroundManager: managers.backgroundManager, - councilConfig: athenaCouncilConfig, - }) const isMultimodalLookerEnabled = !(pluginConfig.disabled_agents ?? []).some( (agent) => agent.toLowerCase() === "multimodal-looker", @@ -274,7 +268,6 @@ export function createToolRegistry(args: { ...factories.createSessionManagerTools(ctx), ...backgroundTools, call_omo_agent: callOmoAgent, - athena_council: athenaCouncilTool, switch_agent: createSwitchAgentTool({ client: ctx.client, }), diff --git a/src/shared/agent-tool-restrictions.ts b/src/shared/agent-tool-restrictions.ts index d883f5a47..09bd1e5cc 100644 --- a/src/shared/agent-tool-restrictions.ts +++ b/src/shared/agent-tool-restrictions.ts @@ -58,7 +58,6 @@ const AGENT_RESTRICTIONS: Record> = { edit: false, task: false, call_omo_agent: false, - athena_council: false, }, } diff --git a/src/tools/index.ts b/src/tools/index.ts index 6c5f484cd..5c85bc5d3 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -36,7 +36,6 @@ import type { BackgroundManager } from "../features/background-agent" type OpencodeClient = PluginInput["client"] export { createCallOmoAgent } from "./call-omo-agent" -export { createAthenaCouncilTool } from "./athena-council" export { createLookAt } from "./look-at" export { createDelegateTask } from "./delegate-task" export { createSwitchAgentTool } from "./switch-agent"