Context
Follow-up from PR #77 (cce init --agent flag). Two gaps worth tracking.
1. Instruction files for agents/copilot lack directory-based detect markers
The existing instruction file entries (cursorrules, gemini, tabnine) detect via editor directory markers (.cursor, .gemini, .tabnine). The new entries (agents, copilot) only detect via the instruction file itself (AGENTS.md, .github/copilot-instructions.md).
In auto mode, this means a first-time user who has Codex or Copilot installed (but hasn't created the instruction file yet) won't get the instruction file written. The codex entry in EDITORS has detect: [".codex"] at the home level, which triggers MCP config but not the instruction file.
Suggested fix: Add editor directory markers to the detect list for these entries, or bridge the gap by checking whether the editor was detected (via EDITORS) when deciding which instruction files to write in auto mode.
2. No --agent cursor / --agent gemini / --agent tabnine
_INIT_AGENT_TO_EDITORS only maps claude, codex, copilot. Users of Cursor, Gemini CLI, or Tabnine have to use auto or all.
Suggested fix: Add the remaining editors to the choice list. Straightforward since the plumbing already exists.
Context
Follow-up from PR #77 (
cce init --agentflag). Two gaps worth tracking.1. Instruction files for agents/copilot lack directory-based detect markers
The existing instruction file entries (
cursorrules,gemini,tabnine) detect via editor directory markers (.cursor,.gemini,.tabnine). The new entries (agents,copilot) only detect via the instruction file itself (AGENTS.md,.github/copilot-instructions.md).In
automode, this means a first-time user who has Codex or Copilot installed (but hasn't created the instruction file yet) won't get the instruction file written. Thecodexentry inEDITORShasdetect: [".codex"]at the home level, which triggers MCP config but not the instruction file.Suggested fix: Add editor directory markers to the
detectlist for these entries, or bridge the gap by checking whether the editor was detected (viaEDITORS) when deciding which instruction files to write inautomode.2. No
--agent cursor/--agent gemini/--agent tabnine_INIT_AGENT_TO_EDITORSonly mapsclaude,codex,copilot. Users of Cursor, Gemini CLI, or Tabnine have to useautoorall.Suggested fix: Add the remaining editors to the choice list. Straightforward since the plumbing already exists.