Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(agent): 说明 Skill 与 MCP 禁用都按名字匹配,只写 harness 专属名字

Dashaf981d1aee10
diff --git a/docs/dev-rules/maker-core-and-agent-behavior.md b/docs/dev-rules/maker-core-and-agent-behavior.md
index efd9a3e754..18391d1abd 100644
--- a/docs/dev-rules/maker-core-and-agent-behavior.md
+++ b/docs/dev-rules/maker-core-and-agent-behavior.md
@@ -309,8 +309,9 @@ sessionRunningRetry 就停。每次因 replacement 关闭而重新入队都计
`skills.config`。各 harness 适配层用同一个判断函数决定能否执行某条路由并生成参数,
`findUnenforcedCapabilityRoutes`(`packages/maker-core/src/agents/capability-route-support.ts`)
直接复用这些判断;路由表里有执行不了的规则(来源类型不对、缺必填字段、Pi 等没有适配的
- harness)会被测试拦下,不会静默失效。Skill 覆盖按名字匹配,`design` 这类通用名会误伤用户同名 Skill,只关 harness
- 专属名字。
+ harness)会被测试拦下,不会静默失效。Claude 的 `skillOverrides` 与 `deniedMcpServers` 都只按名字
+ 匹配,分不清来源,同名的用户/项目 Skill 或 MCP 会被一起关掉;路由表只写 harness 专属名字(如
+ `artifact-*`、带命名空间的插件 Skill、`claude.ai ` 前缀的账号连接器),`design` 这类通用名不关。
- Cindy 的目标模式由 `goal-host` 统一管理续跑、预算与暂停/恢复。Codex 创建和恢复线程时
使用会话级 `features.goals=false`,避免模型另建原生目标,形成绕过宿主调度与来源标记的
第二套循环;不写用户的全局 Codex 配置。不能仅把无来源事件改判为目标事件,否则用户
diff --git a/packages/maker-core/src/agents/claude-code/capability-routing.ts b/packages/maker-core/src/agents/claude-code/capability-routing.ts
index cbc51c09a9..e4f0346d66 100644
--- a/packages/maker-core/src/agents/claude-code/capability-routing.ts
+++ b/packages/maker-core/src/agents/claude-code/capability-routing.ts
@@ -162,6 +162,9 @@ export function buildClaudeDisallowedTools(
* only the server's tools would leave its server instructions in the prompt;
* a denied server is never connected. Claude merges this list with the user's
* own deny list instead of replacing it.
+ *
+ * Like `skillOverrides`, the deny matches by server name only, so host policy
+ * names only harness-specific servers such as `claude.ai ` account connectors.
*/
export function buildClaudeDeniedMcpServers(
policy: CapabilityRoutingPolicy | undefined,