From ea53d9154b25685b20d371fd277c7e85386fa2b3 Mon Sep 17 00:00:00 2001 From: Jaco du Preez Date: Sun, 2 Aug 2026 18:52:33 +0200 Subject: [PATCH] fix: point assign-models.js at canonical .agents/agents (#96) AGENTS_DIR resolved to .opencode/agents, which is only a valid path when that symlink is correctly materialized (see #93). Anywhere it is inert, this script silently scans 0 agent files instead of erroring. Point it directly at the canonical source of truth, .agents/agents. Verified: readdirSync now finds all 51 agent files regardless of .opencode/agents symlink state. --- utils/assign-models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/assign-models.js b/utils/assign-models.js index b003eb8..3cdf51a 100644 --- a/utils/assign-models.js +++ b/utils/assign-models.js @@ -2,7 +2,7 @@ const fs = require("fs"); const path = require("path"); -const AGENTS_DIR = path.resolve(__dirname, "..", ".opencode", "agents"); +const AGENTS_DIR = path.resolve(__dirname, "..", ".agents", "agents"); const MODEL_RE = /^(model:\s*).+/m; function usage() {