From db731f67456b888f8802db5eec09720062ba27e1 Mon Sep 17 00:00:00 2001 From: hc <1328308360@qq.com> Date: Tue, 31 Mar 2026 18:08:10 +0800 Subject: [PATCH] fix(agents): remove invalid 'model: inherit' configuration OpenCode requires models to be either explicitly defined with valid IDs or omitted to inherit the default model. --- .opencode/agents/code-writer.md | 1 - .opencode/agents/paper-analyzer.md | 1 - .opencode/agents/paper-director.md | 1 - .opencode/agents/paper-image-extractor.md | 1 - .opencode/agents/test-runner.md | 1 - 5 files changed, 5 deletions(-) diff --git a/.opencode/agents/code-writer.md b/.opencode/agents/code-writer.md index 1990432..d62de2c 100644 --- a/.opencode/agents/code-writer.md +++ b/.opencode/agents/code-writer.md @@ -5,7 +5,6 @@ description: | Works in TDD mode: receives test files, writes code to pass tests. Also manages project environment using Conda + uv. mode: subagent -model: inherit permission: edit: allow bash: diff --git a/.opencode/agents/paper-analyzer.md b/.opencode/agents/paper-analyzer.md index da0ac02..37d5711 100644 --- a/.opencode/agents/paper-analyzer.md +++ b/.opencode/agents/paper-analyzer.md @@ -5,7 +5,6 @@ description: | Produces paper_structure.md (what the paper contains) and replication_plan.md (what to implement). Requires image_understanding.md as input for complete analysis. mode: subagent -model: inherit permission: edit: allow bash: deny diff --git a/.opencode/agents/paper-director.md b/.opencode/agents/paper-director.md index eb46144..1c8a7c0 100644 --- a/.opencode/agents/paper-director.md +++ b/.opencode/agents/paper-director.md @@ -10,7 +10,6 @@ description: | 6. Dispatches test-runner for final verification Use when: User wants to replicate a paper, or runs /replicate command. mode: primary -model: inherit --- # Paper Replication Director diff --git a/.opencode/agents/paper-image-extractor.md b/.opencode/agents/paper-image-extractor.md index 84c8b89..62dca8f 100644 --- a/.opencode/agents/paper-image-extractor.md +++ b/.opencode/agents/paper-image-extractor.md @@ -5,7 +5,6 @@ description: | Analyzes architecture diagrams, experiment plots, algorithm pseudocode, and equations. Output is used by paper-analyzer to create complete replication plan. mode: subagent -model: inherit permission: edit: allow bash: diff --git a/.opencode/agents/test-runner.md b/.opencode/agents/test-runner.md index e21888a..7eadbc5 100644 --- a/.opencode/agents/test-runner.md +++ b/.opencode/agents/test-runner.md @@ -4,7 +4,6 @@ description: | Subagent that runs tests, verifies code correctness, and generates replication reports. Compares results with paper's expected values and documents any differences. mode: subagent -model: inherit permission: edit: allow bash: