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
11 changes: 10 additions & 1 deletion docs/proto.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ Example:

"macos.codex": "~/.codex/AGENTS.md",
"windows.codex": "%USERPROFILE%\\.codex\\AGENTS.md",
"linux.codex": "~/.codex/AGENTS.md"
"linux.codex": "~/.codex/AGENTS.md",

"macos.claude": "~/.claude/CLAUDE.md",
"windows.claude": "%USERPROFILE%\\.claude\\CLAUDE.md",
"linux.claude": "~/.claude/CLAUDE.md"
},
"cueme.proto.prefix": {
"vscode": [
Expand All @@ -65,12 +69,16 @@ Example:
"---"
],
"codex": [],
"claude": [],
"windsurf": []
},
"cueme.proto.runtime": {
"codex": [
"When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.",
"不要误解“更新 todo_list”的指令,因为你是 codex,你需要做的是:把 update_plan 当作 todo_list 来维护任务,而不是创建本地 todo_list 文件。"
],
"claude": [
"When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts."
]
},
"cueme.proto.protocol_path": "~/path/to/protocol.md"
Expand Down Expand Up @@ -131,6 +139,7 @@ Auto-detect (current platform only):
- `vscode`: `.vscode/prompts/human_proto.md` (workspace) then platform user path
- `windsurf`: `.codeium/windsurf/memories/global_rules.md` (workspace) then platform user path
- `codex`: uses `~/.codex/AGENTS.md` by default (not auto-detected)
- `claude`: uses `~/.claude/CLAUDE.md` by default (not auto-detected)

### Helpers

Expand Down
1 change: 1 addition & 0 deletions src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function detectAgentTerminal() {
}

async function handleJoin(db, agent_runtime) {
await initSchema(db);
const agent_id = generateName();
const project_dir = process.cwd();
const agent_terminal = detectAgentTerminal();
Expand Down
9 changes: 9 additions & 0 deletions src/proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ function defaultPathMapTemplate() {
out['windows.codex'] = path.join(userProfile, '.codex', 'AGENTS.md');
out['linux.codex'] = path.join(home, '.codex', 'AGENTS.md');

// Claude Code (global)
out['macos.claude'] = path.join(home, '.claude', 'CLAUDE.md');
out['windows.claude'] = path.join(userProfile, '.claude', 'CLAUDE.md');
out['linux.claude'] = path.join(home, '.claude', 'CLAUDE.md');

return out;
}

Expand All @@ -164,6 +169,7 @@ function defaultConfigTemplate() {
'cueme.proto.path': defaultPathMapTemplate(),
'cueme.proto.prefix': {
codex: [],
claude: [],
windsurf: [],
vscode: ['---', 'applyTo: "**"', '---'],
kiro: [],
Expand All @@ -173,6 +179,9 @@ function defaultConfigTemplate() {
'When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.',
'不要误解“更新 todo_list”的指令,因为你是 codex,你需要做的是:把 update_plan 当作 todo_list 来维护任务,而不是创建本地 todo_list 文件。',
],
claude: [
'When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.',
],
},
'cueme.proto.protocol_path': protocolPath,
};
Expand Down