Skip to content
Merged
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
20 changes: 16 additions & 4 deletions crates/hk-core/src/adapter/omp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ impl AgentAdapter for OmpAdapter {

fn skill_dirs(&self) -> Vec<PathBuf> {
// Native omp skills live one level under ~/.omp/agent/skills/ (first,
// so it stays the install target). omp also always loads auto-learn
// skills from ~/.omp/agent/managed-skills/ (`omp-managed` provider)
// and the shared ~/.agents/skills/ (`agents` provider), the same
// cross-agent dir cursor/gemini/copilot claim.
// so it stays the install target). omp also loads auto-learn skills from
// ~/.omp/agent/managed-skills/ (`omp-managed` provider, always) and
// the shared ~/.agents/skills/ (`agents` provider, on unless
// `skills.enableAgentsUser` is false), the same cross-agent dir
// cursor/gemini/copilot claim.
vec![
self.agent_dir().join("skills"),
self.agent_dir().join("managed-skills"),
Expand Down Expand Up @@ -268,6 +269,13 @@ impl AgentAdapter for OmpAdapter {
vec![".omp/skills".into()]
}

fn project_skill_read_dirs(&self) -> Vec<String> {
// omp also loads project skills from .agents/skills (`agents`
// provider) and .claude/skills (`claude` provider), both on by
// default; writes stay on .omp/skills.
vec![".agents/skills".into(), ".claude/skills".into()]
}

fn project_mcp_config_relpath(&self) -> Option<String> {
// omp reads .omp/mcp.json (and the compat .omp/.mcp.json); writes go to
// .omp/mcp.json. See docs/mcp-config.md "Preferred config locations".
Expand Down Expand Up @@ -474,6 +482,10 @@ mod tests {
adapter.project_skill_dirs(),
vec![".omp/skills".to_string()]
);
assert_eq!(
adapter.project_skill_read_dirs(),
vec![".agents/skills".to_string(), ".claude/skills".to_string()]
);
assert_eq!(
adapter.project_mcp_config_relpath(),
Some(".omp/mcp.json".into())
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/docs/reference/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The desktop app doesn't read environment variables set in your shell. The variab

HarnessKit counts an agent as installed when its home folder, listed below, exists. Devin Desktop also counts when `~/.devin/extensions/` exists, and Pi counts only when `~/.pi/agent/` exists. A folder that another tool created can make an agent look installed.

Some skill folders are shared. Several agents read `~/.agents/skills/`, and each agent's section says whether it does. `<project>/.agents/skills/` is shared too: HarnessKit lists it under Codex, Antigravity, Qoder CN and Pi, and Gemini CLI, Copilot, Grok Build and DeepSeek Harness also load skills from it. Turning off or deleting a skill in a shared folder affects every agent that reads it.
Some skill folders are shared. Several agents read `~/.agents/skills/`, and each agent's section says whether it does. `<project>/.agents/skills/` is shared too: HarnessKit lists it under Codex, Antigravity, Qoder CN and Pi, and Gemini CLI, Copilot, Grok Build, Oh My Pi and DeepSeek Harness also load skills from it. Turning off or deleting a skill in a shared folder affects every agent that reads it.

This page doesn't cover plugins. [Extensions](/docs/guides/extensions/) shows which agents have them, and what HarnessKit does to turn one off.

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/zh/docs/reference/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ HarnessKit 支持 {AGENT_COUNT} 个 agent。本页列出每个 agent 把 skill

只要 agent 的主目录(见下表)存在,HarnessKit 就视其为已安装。Devin Desktop 还会识别 `~/.devin/extensions/`,Pi 则要求 `~/.pi/agent/` 存在。因此,其他工具创建的文件夹也可能让某个 agent 看起来已安装。

有些 skill 文件夹是共享的。多个 agent 都读取 `~/.agents/skills/`,各 agent 的小节中注明了是否读取。`<project>/.agents/skills/` 也是共享的:HarnessKit 把它列在 Codex、Antigravity、Qoder CN 和 Pi 下,Gemini CLI、Copilot、Grok Build 和 DeepSeek Harness 也会从这里读取 skill。在共享文件夹中禁用或删除一个 skill,所有读取该文件夹的 agent 都会受到影响。
有些 skill 文件夹是共享的。多个 agent 都读取 `~/.agents/skills/`,各 agent 的小节中注明了是否读取。`<project>/.agents/skills/` 也是共享的:HarnessKit 把它列在 Codex、Antigravity、Qoder CN 和 Pi 下,Gemini CLI、Copilot、Grok Build、Oh My Pi 和 DeepSeek Harness 也会从这里读取 skill。在共享文件夹中禁用或删除一个 skill,所有读取该文件夹的 agent 都会受到影响。

本页不涉及 plugin。哪些 agent 有 plugin、HarnessKit 如何禁用 plugin,请参阅[扩展](/zh/docs/guides/extensions/)。

Expand Down
3 changes: 2 additions & 1 deletion website/src/data/agent-reference-zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export const AGENT_REFERENCE_ZH: Readonly<Record<string, Sentences>> = {
nativeDisable: { mcp: "为该 server 设置 `enabled: false`,并将其名称从 `~/.omp/agent/mcp.json` 的 `enabledServers` 中移除。" },
notes: [
"HarnessKit 只读取默认 profile,不读取 `~/.omp/profiles/` 下的其他 profile。",
"Oh My Pi 本身也会读取 `~/.agents/skills/` 和 `~/.claude/skills/`,但 HarnessKit 不把这两个文件夹列在 Oh My Pi 下。",
"`~/.omp/agent/managed-skills/` 存放 Oh My Pi 自动生成的 skill(auto-learn)。",
"Oh My Pi 本身还会读取 `<project>/.claude/skills/` 中的 skill;在其设置中启用后,也会读取 `~/.claude/skills/`。HarnessKit 不把这两个文件夹列在 Oh My Pi 下。",
],
},
dsh: {
Expand Down
10 changes: 7 additions & 3 deletions website/src/data/agent-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ export const AGENT_REFERENCE: readonly AgentReference[] = [
{
id: "omp",
homeDir: "~/.omp/",
skillDirs: { global: ["~/.omp/agent/skills/"], project: ["<project>/.omp/skills/"] },
readsSharedAgentsSkills: false,
skillDirs: {
global: ["~/.omp/agent/skills/", "~/.omp/agent/managed-skills/", "~/.agents/skills/"],
project: ["<project>/.omp/skills/"],
},
readsSharedAgentsSkills: true,
mcp: { file: "~/.omp/agent/mcp.json", format: "JSON", key: "mcpServers", projectFile: "<project>/.omp/mcp.json" },
rulesFiles: [
"~/.omp/agent/AGENTS.md",
Expand All @@ -311,7 +314,8 @@ export const AGENT_REFERENCE: readonly AgentReference[] = [
},
notes: [
"HarnessKit reads the default profile only, not the ones under `~/.omp/profiles/`.",
"Oh My Pi itself also reads `~/.agents/skills/` and `~/.claude/skills/`. HarnessKit does not list those folders under Oh My Pi.",
"`~/.omp/agent/managed-skills/` holds the skills Oh My Pi writes itself (auto-learn).",
"Oh My Pi itself also loads skills from `<project>/.claude/skills/` and, when that is turned on in its settings, from `~/.claude/skills/`. HarnessKit does not list those folders under Oh My Pi.",
],
},
{
Expand Down
Loading