chore: cleanup agent model references and defaults (#547)
* 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
This commit is contained in:
@@ -16,7 +16,7 @@ export const DOCUMENT_WRITER_PROMPT_METADATA: AgentPromptMetadata = {
|
|||||||
export function createDocumentWriterAgent(
|
export function createDocumentWriterAgent(
|
||||||
model: string = DEFAULT_MODEL
|
model: string = DEFAULT_MODEL
|
||||||
): AgentConfig {
|
): AgentConfig {
|
||||||
const restrictions = createAgentToolRestrictions(["background_task"])
|
const restrictions = createAgentToolRestrictions([])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ export function createExploreAgent(model: string = DEFAULT_MODEL): AgentConfig {
|
|||||||
const restrictions = createAgentToolRestrictions([
|
const restrictions = createAgentToolRestrictions([
|
||||||
"write",
|
"write",
|
||||||
"edit",
|
"edit",
|
||||||
"background_task",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const FRONTEND_PROMPT_METADATA: AgentPromptMetadata = {
|
|||||||
export function createFrontendUiUxEngineerAgent(
|
export function createFrontendUiUxEngineerAgent(
|
||||||
model: string = DEFAULT_MODEL
|
model: string = DEFAULT_MODEL
|
||||||
): AgentConfig {
|
): AgentConfig {
|
||||||
const restrictions = createAgentToolRestrictions(["background_task"])
|
const restrictions = createAgentToolRestrictions([])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { AgentConfig } from "@opencode-ai/sdk"
|
|||||||
import type { AgentPromptMetadata } from "./types"
|
import type { AgentPromptMetadata } from "./types"
|
||||||
import { createAgentToolRestrictions } from "../shared/permission-compat"
|
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 = {
|
export const LIBRARIAN_PROMPT_METADATA: AgentPromptMetadata = {
|
||||||
category: "exploration",
|
category: "exploration",
|
||||||
@@ -25,7 +25,6 @@ export function createLibrarianAgent(model: string = DEFAULT_MODEL): AgentConfig
|
|||||||
const restrictions = createAgentToolRestrictions([
|
const restrictions = createAgentToolRestrictions([
|
||||||
"write",
|
"write",
|
||||||
"edit",
|
"edit",
|
||||||
"background_task",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export function createMultimodalLookerAgent(
|
|||||||
"write",
|
"write",
|
||||||
"edit",
|
"edit",
|
||||||
"bash",
|
"bash",
|
||||||
"background_task",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ export function createOracleAgent(model: string = DEFAULT_MODEL): AgentConfig {
|
|||||||
"write",
|
"write",
|
||||||
"edit",
|
"edit",
|
||||||
"task",
|
"task",
|
||||||
"background_task",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
const base = {
|
const base = {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { BuiltinSkill } from "./types"
|
|||||||
|
|
||||||
const playwrightSkill: BuiltinSkill = {
|
const playwrightSkill: BuiltinSkill = {
|
||||||
name: "playwright",
|
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
|
template: `# Playwright Browser Automation
|
||||||
|
|
||||||
This skill provides browser automation capabilities via the Playwright MCP server.`,
|
This skill provides browser automation capabilities via the Playwright MCP server.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user