Skip to content

init --agent: missing detect markers and incomplete agent choices #79

@rajkumarsakthivel

Description

@rajkumarsakthivel

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions