Skip to content

[Framework] assign-models.js reads from symlinked .opencode/agents instead of canonical .agents/agents #96

Description

@striderZA

Problem

utils/assign-models.js line 5 sets AGENTS_DIR = path.resolve(__dirname, "..", ".opencode", "agents"). This works only when .opencode/agents is a real resolved symlink to .agents/agents. Anywhere that symlink is inert (see the Windows symlink issue), this script silently finds 0 agent files instead of erroring — compounding that bug for anyone trying to fix model assignments on an affected machine.

Fix

Point AGENTS_DIR directly at the canonical source of truth: .agents/agents, not the .opencode symlink indirection.

Acceptance criteria

  • utils/assign-models.js reads/writes .agents/agents/*.md directly
  • Script works correctly regardless of .opencode/agents symlink state

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcross-platformCross-platform compatibility (Windows/macOS/Linux)framework-reviewIdentified during comprehensive framework reviewpriority-mediumFix when possible

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions