From 29dbc0f57b6057d20697db93a12ce7b1fc2cf819 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 7 Jan 2026 01:24:44 +0900 Subject: [PATCH] chore: cleanup agent model references and defaults (#547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor(agents): remove unused model references Consistent cleanup of agent model references across all agent files. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) * fix(agents): use glm-4.7-free as default librarian model 🤖 Generated with [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) * make playwright skill to be called more --- src/agents/document-writer.ts | 2 +- src/agents/explore.ts | 1 - src/agents/frontend-ui-ux-engineer.ts | 2 +- src/agents/librarian.ts | 3 +-- src/agents/multimodal-looker.ts | 1 - src/agents/oracle.ts | 1 - src/features/builtin-skills/skills.ts | 2 +- 7 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/agents/document-writer.ts b/src/agents/document-writer.ts index 6de0929..a00cdf3 100644 --- a/src/agents/document-writer.ts +++ b/src/agents/document-writer.ts @@ -16,7 +16,7 @@ export const DOCUMENT_WRITER_PROMPT_METADATA: AgentPromptMetadata = { export function createDocumentWriterAgent( model: string = DEFAULT_MODEL ): AgentConfig { - const restrictions = createAgentToolRestrictions(["background_task"]) + const restrictions = createAgentToolRestrictions([]) return { description: diff --git a/src/agents/explore.ts b/src/agents/explore.ts index fd0478d..3e5e7ad 100644 --- a/src/agents/explore.ts +++ b/src/agents/explore.ts @@ -28,7 +28,6 @@ export function createExploreAgent(model: string = DEFAULT_MODEL): AgentConfig { const restrictions = createAgentToolRestrictions([ "write", "edit", - "background_task", ]) return { diff --git a/src/agents/frontend-ui-ux-engineer.ts b/src/agents/frontend-ui-ux-engineer.ts index 6778ef3..517e561 100644 --- a/src/agents/frontend-ui-ux-engineer.ts +++ b/src/agents/frontend-ui-ux-engineer.ts @@ -22,7 +22,7 @@ export const FRONTEND_PROMPT_METADATA: AgentPromptMetadata = { export function createFrontendUiUxEngineerAgent( model: string = DEFAULT_MODEL ): AgentConfig { - const restrictions = createAgentToolRestrictions(["background_task"]) + const restrictions = createAgentToolRestrictions([]) return { description: diff --git a/src/agents/librarian.ts b/src/agents/librarian.ts index 5c8c0c1..561385c 100644 --- a/src/agents/librarian.ts +++ b/src/agents/librarian.ts @@ -2,7 +2,7 @@ import type { AgentConfig } from "@opencode-ai/sdk" import type { AgentPromptMetadata } from "./types" import { createAgentToolRestrictions } from "../shared/permission-compat" -const DEFAULT_MODEL = "anthropic/claude-sonnet-4-5" +const DEFAULT_MODEL = "opencode/glm-4.7-free" export const LIBRARIAN_PROMPT_METADATA: AgentPromptMetadata = { category: "exploration", @@ -25,7 +25,6 @@ export function createLibrarianAgent(model: string = DEFAULT_MODEL): AgentConfig const restrictions = createAgentToolRestrictions([ "write", "edit", - "background_task", ]) return { diff --git a/src/agents/multimodal-looker.ts b/src/agents/multimodal-looker.ts index 71b104f..0c1370d 100644 --- a/src/agents/multimodal-looker.ts +++ b/src/agents/multimodal-looker.ts @@ -18,7 +18,6 @@ export function createMultimodalLookerAgent( "write", "edit", "bash", - "background_task", ]) return { diff --git a/src/agents/oracle.ts b/src/agents/oracle.ts index 7d067a7..e77503d 100644 --- a/src/agents/oracle.ts +++ b/src/agents/oracle.ts @@ -102,7 +102,6 @@ export function createOracleAgent(model: string = DEFAULT_MODEL): AgentConfig { "write", "edit", "task", - "background_task", ]) const base = { diff --git a/src/features/builtin-skills/skills.ts b/src/features/builtin-skills/skills.ts index 75deae7..a68d975 100644 --- a/src/features/builtin-skills/skills.ts +++ b/src/features/builtin-skills/skills.ts @@ -2,7 +2,7 @@ import type { BuiltinSkill } from "./types" const playwrightSkill: BuiltinSkill = { name: "playwright", - description: "Browser automation with Playwright MCP. Use for web scraping, testing, screenshots, and browser interactions.", + description: "MUST USE for any browser-related tasks. Browser automation via Playwright MCP - verification, browsing, information gathering, web scraping, testing, screenshots, and all browser interactions.", template: `# Playwright Browser Automation This skill provides browser automation capabilities via the Playwright MCP server.`,