Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backend/biz/task/usecase/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@ func modelRuntimeDefaults(m *db.Model) (thinking bool, contextLimit int, outputL
// 后按目录结构展开;plugin 的 entry 字段再以 file:// 注入到 opencode.json 的
// `plugin` 数组里。Claude / Codex 不消费 plugin(spec §6.3)。
const (
agentRuleBaseDir = "/tmp/codingmatrix-project-tpl/.ai-ready/rules/"
agentSkillBaseDir = "/tmp/codingmatrix-project-tpl/.ai-ready/skills/"
agentPluginBaseDir = "/tmp/codingmatrix-project-tpl/.ai-ready/plugins/"
agentRuleBaseDir = "${HOME}/.codingmatrix/project-tpl/.ai-ready/rules/"
agentSkillBaseDir = "${HOME}/.codingmatrix/project-tpl/.ai-ready/skills/"
agentPluginBaseDir = "${HOME}/.codingmatrix/project-tpl/.ai-ready/plugins/"
)

// parseStringUUIDs 把字符串切片解析成 uuid.UUID 切片。单条解析失败时打一条
Expand Down
5 changes: 4 additions & 1 deletion backend/templates/opencode.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
},
"model": "monkeycode-ai/{{.model}}",
"disabled_providers": ["openai", "opencode"],
"instructions": ["/tmp/codingmatrix-project-tpl/.ai-ready/rules/*.md"]
"instructions": ["${HOME}/.codingmatrix/project-tpl/.ai-ready/rules/*.md"],
"skills": {
"paths": ["${HOME}/.codingmatrix/project-tpl/.ai-ready/skills/"]
}
}